/* ==========================================
   RESOURCES / READING LIST STYLES
   Refined card design — professional, editorial,
   consistent with the rest of the site.
   ========================================== */

.section-resources {
    padding: 100px 0;
    background-color: var(--off-white);
}

.resources-grid {
    max-width: 960px;
    margin: 0 auto;
}

/* Intro line above the categories */
.resources-grid > p.reveal {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin-bottom: 4rem !important;
    font-size: 1.15rem !important;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------- Category header ---------- */
.resource-category {
    margin-bottom: 4.5rem;
}

.resource-category h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-bottom: 1rem;
    margin-bottom: 2.25rem;
    position: relative;
    border-bottom: 1px solid rgba(124, 140, 116, 0.18);
}

/* Subtle accent underline that overlays the bottom border */
.resource-category h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 64px;
    height: 3px;
    background: var(--primary-color);
}

/* ---------- Book card ---------- */
.book-card {
    background: var(--white);
    margin: 1.5rem 0;
    padding: 2.25rem 2.25rem 2rem;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 140, 116, 0.14);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease,
                border-color 0.35s ease, border-left-width 0.35s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    border-left-width: 6px;
    border-color: rgba(124, 140, 116, 0.25);
    border-left-color: var(--primary-dark);
}

/* Author / title line */
.book-card strong {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.005em;
    line-height: 1.35;
}

.book-card strong em {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-style: italic;
    font-weight: 500;
    font-size: 1.2em;
}

/* Description paragraph under the title */
.book-card > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 60ch;
}

/* ---------- Quote block ---------- */
.resource-quote {
    position: relative;
    background: var(--secondary-color);
    border-radius: 0;
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem 1.75rem 1.25rem 3.25rem;
    margin: 1rem 0 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
}

/* Stacked quotes get a small gap between them */
.resource-quote + .resource-quote {
    margin-top: 0.75rem;
}

/* Large refined quote glyph */
.resource-quote::before {
    content: "\201C"; /* left double quotation mark */
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
    position: absolute;
    top: 0.4rem;
    left: 0.85rem;
    color: var(--primary-color);
    opacity: 0.35;
    pointer-events: none;
}

/* Citation line — muted, smaller, sits below the quote */
.citations-list {
    display: block;
    margin-top: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.7;
}

/* ==========================================
   DARK MODE — Resources
   ========================================== */
body.dark-mode .section-resources {
    background-color: #1a1e1a;
}

body.dark-mode .resource-category h2 {
    color: #e4e0db;
    border-bottom-color: rgba(183, 196, 178, 0.18);
}

body.dark-mode .resource-category h2::after {
    background: var(--primary-light);
}

body.dark-mode .book-card {
    background: #242a24;
    border-color: rgba(183, 196, 178, 0.12);
    border-left-color: var(--primary-light);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .book-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    border-color: rgba(183, 196, 178, 0.22);
    border-left-color: #b7c4b2;
}

body.dark-mode .book-card strong {
    color: #d4cfc7;
}

body.dark-mode .book-card strong em {
    color: #f1ede6;
}

body.dark-mode .book-card > p {
    color: rgba(228, 224, 219, 0.75);
}

body.dark-mode .resource-quote {
    background: rgba(183, 196, 178, 0.06);
    border-left-color: var(--accent-color);
    color: #e4e0db;
}

body.dark-mode .resource-quote::before {
    color: var(--primary-light);
    opacity: 0.5;
}

body.dark-mode .citations-list {
    color: rgba(228, 224, 219, 0.55);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .section-resources { padding: 60px 0; }

    .resources-grid > p.reveal {
        margin-bottom: 2.5rem !important;
        font-size: 1.05rem !important;
    }

    .resource-category { margin-bottom: 3rem; }

    .book-card {
        padding: 1.5rem 1.25rem 1.25rem;
        margin: 1rem 0;
    }

    .book-card strong { font-size: 1rem; }
    .book-card strong em { font-size: 1.15em; }
    .book-card > p { font-size: 0.95rem; margin-bottom: 1.25rem; }

    .resource-quote {
        font-size: 0.98rem;
        padding: 1.25rem 1.25rem 1rem 2.5rem;
    }

    .resource-quote::before {
        font-size: 2.8rem;
        top: 0.3rem;
        left: 0.6rem;
    }
}

@media (max-width: 480px) {
    .book-card { padding: 1.25rem 1rem 1rem; }
    .resource-quote {
        padding: 1.1rem 1rem 0.9rem 2.25rem;
        font-size: 0.95rem;
    }
}
