/* === CENTRUM WIEDZY O DEPRESJI — WARM EDITORIAL LUXURY DESIGN SYSTEM === */
:root {
    --dep-primary: #8a6d3b;
    --dep-primary-dark: #664d27;
    --dep-accent: #b8860b;
    --dep-bg-soft: #faf8f5;
    --dep-border: #e8e2d8;
    --dep-glass: rgba(255, 255, 255, 0.92);
    --dep-text-title: #1a1a1a;
    --dep-text-body: #2d3748;
    --dep-text-muted: #5a6a7e;
    --font-serif: 'Playfair Display', Georgia, Cambria, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--dep-bg-soft);
    color: var(--dep-text-body);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.modular-page .main-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Hero Section */
.article-hero {
    padding: 70px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--dep-border);
    margin-bottom: 50px;
    background: radial-gradient(circle at center top, #ffffff, var(--dep-bg-soft));
}

.hero-badge-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.badge-accent {
    background: #664d27;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-subtle {
    background: rgba(138, 109, 59, 0.1);
    color: #664d27;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(138, 109, 59, 0.2);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.85rem;
    line-height: 1.25;
    color: var(--dep-text-title);
    max-width: 980px;
    margin: 0 auto 24px;
    font-weight: 700;
}

.hero-title-serif {
    font-style: italic;
    color: #664d27;
    display: block;
    margin-top: 6px;
}

.hero-lead {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: #4a5568;
    max-width: 820px;
    margin: 0 auto;
}

/* Chapter Cards Full Structure (Hub) */
.chapter-card-full {
    background: #ffffff;
    border: 1px solid var(--dep-border);
    border-radius: 20px;
    padding: 44px;
    margin-bottom: 56px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chapter-card-full:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.chapter-grid-split {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 44px;
    align-items: start;
}

.chapter-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    line-height: 1.35;
    color: var(--dep-text-title);
    margin-bottom: 16px;
}

.chapter-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #3b4554;
    font-weight: 500;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 3px solid #8a6d3b;
}

.chapter-body h3 {
    font-size: 1.15rem;
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.chapter-body p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 14px;
}

.link-subpage-btn {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #664d27;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 77, 39, 0.25);
}

.link-subpage-btn:hover {
    background: #4d3819;
    transform: translateX(4px);
    color: #fff;
}

.chapter-citation-box {
    margin-top: 24px;
    padding: 14px 18px;
    background: #fdfbf7;
    border: 1px solid var(--dep-border);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #555;
}

.chapter-visual-side figure {
    margin: 0;
}

.chapter-visual-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--dep-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.chapter-visual-side figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
    background: #faf8f5;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Bento Grid Navigation (Top Spis Części) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--dep-border);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: #8a6d3b;
    box-shadow: 0 8px 24px rgba(138, 109, 59, 0.08);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--dep-text-title);
    margin-top: 0;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #556070;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-card .link-subpage-btn {
    align-self: flex-start;
}

/* Moduł C Rycina Dydaktyczna na Podstronach */
.monograph-educational-illustration {
    margin: 40px 0;
}

.monograph-module-card {
    background: #ffffff;
    border: 1px solid var(--dep-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.module-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.module-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: var(--dep-text-title);
    margin: 8px 0;
}

.module-description {
    color: #556070;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.module-illustration-frame {
    padding: 24px;
    text-align: center;
    background: #faf8f5;
}

.module-illustration-frame img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--dep-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* FAQ Accordion Styling */
.faq-accordion {
    margin-top: 24px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--dep-border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #8a6d3b;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dep-text-title);
    margin: 0 0 10px;
    cursor: pointer;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* Responsywność */
@media (max-width: 960px) {
    .chapter-grid-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .chapter-card-full {
        padding: 26px;
    }
    .hero-title {
        font-size: 2.15rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ==============================================================
   SUBPAGE EDITORIAL POLISH & VISUAL REFINEMENT
   ============================================================== */
body {
    background-color: var(--color-bg, #faf8f5) !important;
    color: var(--color-ink, #212529);
    font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
    line-height: 1.75;
}

/* Breadcrumbs bar */
.subpage-breadcrumb-nav {
    padding: 1.25rem 0 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}
.subpage-breadcrumb-nav a {
    color: var(--color-gold, #947600);
    text-decoration: none;
    font-weight: 500;
}
.subpage-breadcrumb-nav a:hover {
    text-decoration: underline;
}
.subpage-breadcrumb-nav span {
    margin: 0 0.4rem;
    color: #cbd5e0;
}

/* Article Hero Modern */
.article-hero {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid rgba(20, 20, 20, 0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(250, 248, 245, 0.3) 100%);
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-serif {
    font-style: italic;
    font-weight: 400;
    color: #4a5568;
    display: block;
    font-size: 0.78em;
    margin-top: 0.35rem;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: #4a5568;
    max-width: 860px;
    margin-bottom: 0;
}

/* Sections rhythm */
.article-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.section-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-gold, #947600);
}

.article-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 1.25rem;
}

/* Educational Illustration Module */
.monograph-educational-illustration {
    padding: 1.5rem 0 3rem;
}

.monograph-module-card {
    background: #ffffff !important;
    border: 1px solid rgba(20, 20, 20, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monograph-module-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06) !important;
}

.module-header {
    border-bottom: 1px solid rgba(20, 20, 20, 0.06);
    background: #fdfcf9;
}

/* Feature cards in subpages */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, 0.07);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 118, 0, 0.4);
}

.feature-card h3 {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.7;
}

.feature-card li {
    margin-bottom: 0.5rem;
}

/* Callout boxes */
.callout-box {
    background: #fdfbf7;
    border-left: 4px solid var(--color-gold, #947600);
    padding: 1.5rem 1.75rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.callout-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3748;
}

/* FAQ Accordion polish */
.faq-accordion {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-question {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem;
    cursor: default;
}

.faq-answer p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #4a5568;
    margin: 0;
}

/* Navigation prev / next between parts */
.subpage-chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0 3.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.chapter-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, 0.12);
    border-radius: 8px;
    color: #1a202c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.chapter-nav-btn:hover {
    background: var(--color-gold, #947600);
    color: #ffffff;
    border-color: var(--color-gold, #947600);
    text-decoration: none;
}
