/* ============================================================
   benchmarkgroup.com.pl – Portal Design
   Paleta: granat #0f1e3d + złoto #c9973a
   Klimat: finanse, raporty, dane, profesjonalizm
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
    --pd-navy:    #0f1e3d;
    --pd-navyM:   #1a3a5c;
    --pd-blue:    #2563eb;
    --pd-blueL:   #3b82f6;
    --pd-gold:    #c9973a;
    --pd-goldL:   #e8b24a;
    --pd-light:   #f0f4f8;
    --pd-surface: #f8fafd;
    --pd-text:    #0f172a;
    --pd-muted:   #64748b;
    --pd-border:  rgba(15, 30, 61, 0.10);
    --pd-shadow:  0 4px 20px rgba(15, 30, 61, 0.08);
    --pd-shadowH: 0 16px 44px rgba(15, 30, 61, 0.14);
    --pd-tr:      all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL ===== */
body { background: var(--pd-surface) !important; }
html { scroll-behavior: smooth; }

/* ===== HEADER ===== */
.site-header {
    background: #fff !important;
    border-bottom: 2px solid var(--pd-gold) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
.main-nav .menu a { color: var(--pd-navy) !important; }
.main-nav .menu a:hover { color: var(--pd-gold) !important; }

/* ===== HERO ===== */
.pd-hero {
    background: linear-gradient(135deg, var(--pd-navy) 0%, #0c2d5e 55%, #0a1a38 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
/* grid lines pattern */
.pd-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(196,151,58,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,151,58,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
/* radial glow */
.pd-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.pd-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.pd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,151,58,0.15);
    border: 1px solid rgba(201,151,58,0.35);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-goldL);
    margin-bottom: 1.2rem;
}
.pd-hero__badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pd-goldL);
    animation: pdBlink 1.8s ease-in-out infinite;
}
@keyframes pdBlink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }
.pd-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.pd-hero h1 span { color: var(--pd-goldL); }
.pd-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    margin: 0 0 1.8rem;
    max-width: 520px;
}
.pd-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pd-gold);
    color: var(--pd-navy) !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: var(--pd-tr);
    box-shadow: 0 4px 16px rgba(201,151,58,0.4);
}
.pd-hero__cta:hover {
    background: var(--pd-goldL);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,151,58,0.5);
}
.pd-hero__symbol { position: relative; z-index: 2; }
.pd-hero__symbol svg { width: 100%; max-width: 260px; display: block; margin: 0 auto; filter: drop-shadow(0 8px 32px rgba(37,99,235,0.3)); }
@media (max-width: 768px) {
    .pd-hero__inner { grid-template-columns: 1fr; }
    .pd-hero__symbol { display: none; }
    .pd-hero { padding: 3.5rem 0 2.5rem; }
}

/* ===== QUICK LINKS ===== */
.pd-quick-links {
    background: #fff;
    border-bottom: 1px solid var(--pd-border);
    padding: 1rem 0;
    box-shadow: 0 2px 12px rgba(15,30,61,0.07);
}
.pd-quick-links__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-quick-links__inner::-webkit-scrollbar { display: none; }
.pd-ql-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pd-navyM);
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid var(--pd-border);
    transition: var(--pd-tr);
    background: var(--pd-light);
}
.pd-ql-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.pd-ql-item:hover {
    background: var(--pd-navy);
    color: #fff !important;
    border-color: var(--pd-navy);
    transform: translateY(-1px);
}

/* ===== CATEGORY TAGS ===== */
.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.lcat--fundusze .pd-tag    { background: rgba(37,99,235,0.1);  color: #1d4ed8; }
.lcat--inwestycje .pd-tag  { background: rgba(6,182,212,0.1);  color: #0e7490; }
.lcat--emerytury .pd-tag   { background: rgba(201,151,58,0.12); color: #92400e; }
.lcat--ekonomia .pd-tag    { background: rgba(16,185,129,0.1);  color: #065f46; }
.lcat--oszczednosci .pd-tag { background: rgba(139,92,246,0.1); color: #5b21b6; }

/* ===== CATEGORY DESCRIPTIONS ===== */
.pd-cat-desc {
    font-size: 0.92rem;
    color: var(--pd-muted);
    line-height: 1.7;
    margin: 0 0 1.6rem;
    padding: 0.85rem 1.2rem;
    background: #fff;
    border-left: 3px solid var(--pd-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--pd-shadow);
}
.lcat--fundusze .pd-cat-desc    { border-left-color: var(--pd-blue); }
.lcat--inwestycje .pd-cat-desc  { border-left-color: #06b6d4; }
.lcat--emerytury .pd-cat-desc   { border-left-color: var(--pd-gold); }
.lcat--ekonomia .pd-cat-desc    { border-left-color: #10b981; }
.lcat--oszczednosci .pd-cat-desc { border-left-color: #8b5cf6; }

/* ===== POST CARDS ===== */
.post-card {
    background: #fff !important;
    border: 1px solid var(--pd-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--pd-shadow) !important;
    transition: var(--pd-tr) !important;
    overflow: hidden !important;
}
.post-card:hover {
    box-shadow: var(--pd-shadowH) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(37,99,235,0.2) !important;
}
.post-card > div[itemprop="item"] {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}
.post-title a { color: var(--pd-text) !important; }
.post-title a:hover { color: var(--pd-blue) !important; }

/* thumbnail (Najnowsze Tematy) */
.post-thumbnail {
    display: block !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    position: relative !important;
}
.post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}
.post-card:hover .post-thumbnail img { transform: scale(1.04) !important; }

/* text-only cards (category sections) */
.lcat--fundusze .post-card .post-content,
.lcat--inwestycje .post-card .post-content,
.lcat--emerytury .post-card .post-content,
.lcat--ekonomia .post-card .post-content,
.lcat--oszczednosci .post-card .post-content {
    padding: 1.4rem !important;
}
.lcat--fundusze .post-card    { border-top: 3px solid var(--pd-blue) !important; }
.lcat--inwestycje .post-card  { border-top: 3px solid #06b6d4 !important; }
.lcat--emerytury .post-card   { border-top: 3px solid var(--pd-gold) !important; }
.lcat--ekonomia .post-card    { border-top: 3px solid #10b981 !important; }
.lcat--oszczednosci .post-card { border-top: 3px solid #8b5cf6 !important; }

/* ===== SECTION HEADER ===== */
.section-title {
    position: relative !important;
    padding-left: 1rem !important;
}
.section-title::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 4px !important;
    background: linear-gradient(180deg, var(--pd-blue), var(--pd-navy)) !important;
    border-radius: 2px !important;
}
.lcat--inwestycje .section-title::before  { background: linear-gradient(180deg, #06b6d4, #0e7490) !important; }
.lcat--emerytury .section-title::before   { background: linear-gradient(180deg, var(--pd-goldL), var(--pd-gold)) !important; }
.lcat--ekonomia .section-title::before    { background: linear-gradient(180deg, #34d399, #10b981) !important; }
.lcat--oszczednosci .section-title::before { background: linear-gradient(180deg, #a78bfa, #8b5cf6) !important; }

/* ===== INFOBAR ===== */
.pd-infobar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-navyM) 100%);
    border-radius: 14px;
    margin: 0.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.pd-infobar::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--pd-gold), var(--pd-goldL)); }
.pd-infobar::after  { content: ''; position: absolute; top: -60px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%); pointer-events: none; }
.pd-infobar__icon { width: 48px; height: 48px; flex-shrink: 0; color: var(--pd-goldL); opacity: 0.85; position: relative; z-index: 1; }
.pd-infobar__body { flex: 1; position: relative; z-index: 1; }
.pd-infobar__label { display: block; font-size: 0.63rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--pd-goldL); margin-bottom: 0.4rem; }
.pd-infobar__title { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 0.4rem; }
.pd-infobar__text  { font-size: 0.85rem; line-height: 1.68; color: rgba(255,255,255,0.62); margin: 0; }
.pd-infobar__cta {
    flex-shrink: 0;
    position: relative; z-index: 1;
    white-space: nowrap;
    background: var(--pd-gold) !important;
    color: var(--pd-navy) !important;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-weight: 700; font-size: 0.84rem;
    text-decoration: none !important;
    transition: var(--pd-tr);
}
.pd-infobar__cta:hover { background: var(--pd-goldL) !important; transform: translateY(-2px); }
@media (max-width: 768px) { .pd-infobar { flex-direction: column; text-align: center; padding: 1.5rem 1.2rem; } .pd-infobar__icon { display: none; } .pd-infobar__cta { width: 100%; text-align: center; } }

/* ===== SCROLL REVEAL ===== */
.pd-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.48s ease, transform 0.48s ease; }
.pd-reveal.pd-visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
.site-footer { position: relative !important; background: var(--pd-navy) !important; }
.site-footer::before { content: '' !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 4px !important; background: linear-gradient(90deg, var(--pd-navyM), var(--pd-gold), var(--pd-navyM)) !important; }
.footer-bottom { background: rgba(0,0,0,0.3) !important; text-align: center !important; }
.footer-widget h3 { color: var(--pd-goldL) !important; border-bottom: 1px solid rgba(201,151,58,0.2) !important; padding-bottom: 0.6rem !important; margin-bottom: 1.2rem !important; font-size: 1.05rem !important; }
.footer-widget a:hover { color: var(--pd-goldL) !important; padding-left: 4px !important; transition: all 0.2s !important; }

/* ===== WPISY ===== */
.breadcrumbs { padding: 0.75rem 0 !important; font-size: 0.86rem !important; color: #9ca3af !important; border-bottom: 1px solid rgba(0,0,0,0.05) !important; margin-bottom: 1.8rem !important; }
.breadcrumbs a { color: #6b7280 !important; }
.breadcrumbs a:hover { color: var(--pd-blue) !important; }
.post-single { background: #fff !important; border-radius: 14px !important; box-shadow: var(--pd-shadow) !important; padding: 2.5rem 3rem !important; }
.post-single .post-content h2 { font-size: 1.7rem !important; color: var(--pd-navy) !important; border-left: 4px solid var(--pd-blue) !important; padding-left: 1rem !important; margin: 2.5rem 0 1.2rem !important; }
.post-single .post-content p { line-height: 1.84 !important; margin-bottom: 1.4rem !important; font-size: 1.04rem !important; color: #374151 !important; }
