/* ===========================================
   The Ijaw Project — Main Stylesheet
   File: assets/css/style.css
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Palette: Forest Green #0d3d2b | Gold #d4a853 | Cream #f5f0e8
=========================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-deep:   #0d3d2b;
    --green-mid:    #1a5c40;
    --green-light:  #2a7a56;
    --gold:         #d4a853;
    --gold-light:   #e8c47a;
    --gold-pale:    #f5e8c4;
    --cream:        #f5f0e8;
    --cream-dark:   #ece5d6;
    --text-dark:    #1a1a14;
    --text-mid:     #4a4438;
    --text-muted:   #8a7d65;
    --white:        #ffffff;
    --border:       rgba(13,61,43,0.15);
    --border-gold:  rgba(212,168,83,0.35);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  14px;
    --radius-xl:  20px;

    --shadow-sm:  0 1px 4px rgba(13,61,43,0.10);
    --shadow-md:  0 4px 20px rgba(13,61,43,0.12);
    --shadow-lg:  0 8px 40px rgba(13,61,43,0.16);

    --transition: 0.22s ease;
    --max-width:  1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout Helpers ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION
============================================ */
.site-header {
    background: var(--green-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
}

.logo-text small {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255,255,255,0.8);
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    background: var(--green-deep);
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative watermark pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        60deg,
        rgba(212,168,83,0.03) 0px,
        rgba(212,168,83,0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    max-width: 680px;
    margin: 0 auto 1.2rem;
    letter-spacing: -0.01em;
}

.hero h1 em {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto 2.2rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--green-deep);
    border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-green {
    background: transparent;
    color: var(--green-deep);
    border-color: var(--border);
}
.btn-outline-green:hover { background: var(--green-deep); color: var(--white); }

/* ============================================
   WORD OF THE DAY STRIP
============================================ */
.wod-strip {
    background: var(--gold);
    padding: 10px 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.wod-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-deep);
    font-weight: 500;
    opacity: 0.7;
}

.wod-word {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--green-deep);
    letter-spacing: 0.02em;
}

.wod-meaning {
    font-size: 13px;
    color: rgba(13,61,43,0.75);
    font-style: italic;
}

.wod-dialect {
    background: var(--green-deep);
    color: var(--gold);
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   SECTION COMMONS
============================================ */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--white);
}

.section-dark {
    background: var(--green-deep);
    color: var(--white);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--green-deep);
    line-height: 1.2;
}

.section-dark .section-title { color: var(--gold); }

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 300;
}

.section-link {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

/* ============================================
   DIALECT CARDS
============================================ */
.dialect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dialect-card {
    background: var(--green-deep);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1.5px solid rgba(212,168,83,0.15);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    text-decoration: none;
    display: block;
}

.dialect-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.dialect-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--green-deep);
}

.dialect-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.dialect-region {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   SEARCH BAR (Dictionary)
============================================ */
.search-wrap {
    background: var(--white);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-icon-svg {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 16px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-dark);
    outline: none;
}

.search-input::placeholder { color: var(--text-muted); }

.search-select {
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-mid);
    font-family: var(--font-body);
    outline: none;
    padding: 4px 0;
    cursor: pointer;
    border-left: 1px solid var(--border);
    padding-left: 12px;
}

/* ============================================
   BIOGRAPHY CARDS
============================================ */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.bio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.bio-card-header {
    background: var(--green-deep);
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Photo fills the card header smartly */
.bio-card-header img.bio-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.4s ease;
}

.bio-card:hover .bio-card-header img.bio-card-photo {
    transform: scale(1.04);
}

/* Gradient overlay at bottom of photo */
.bio-card-header .bio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(13,61,43,0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Gold decorative corner lines (no-photo state only) */
.bio-card-header.no-photo::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212,168,83,0.2);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2.5px solid var(--gold);
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.03em;
}

.bio-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bio-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-deep);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bio-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.bio-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
    flex: 1;
}

.bio-tag {
    display: inline-block;
    margin-top: 12px;
    background: var(--gold-pale);
    color: var(--green-deep);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Show more button */
.show-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

.btn-show-more {
    background: var(--cream-dark);
    color: var(--green-deep);
    border: 1.5px solid var(--border-gold);
    padding: 11px 32px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-show-more:hover {
    background: var(--green-deep);
    color: var(--gold);
    border-color: var(--green-deep);
}

.hidden-bios {
    display: none;
}

.hidden-bios.revealed {
    display: contents;
}

/* ============================================
   BIOGRAPHY FULL PAGE
============================================ */
.bio-hero {
    background: var(--green-deep);
    padding: 3.5rem 1.5rem;
    border-bottom: 2px solid var(--gold);
}

.bio-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bio-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    flex-shrink: 0;
}

.bio-hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 6px;
}

.bio-hero-text .bio-hero-title {
    font-size: 13px;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.bio-hero-text .bio-hero-era {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
}

.bio-hero-tag {
    display: inline-block;
    margin-top: 10px;
    background: rgba(212,168,83,0.15);
    color: var(--gold);
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(212,168,83,0.3);
}

.bio-content {
    max-width: 760px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.bio-content p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.4rem;
}

.bio-content strong {
    color: var(--green-deep);
    font-weight: 500;
}

.bio-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color var(--transition);
    text-decoration: none;
}

.bio-back:hover { color: var(--green-deep); }

/* ============================================
   LANGUAGE DICTIONARY PAGE
============================================ */
.dict-tabs {
    display: flex;
    gap: 4px;
    background: var(--cream-dark);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dict-tab {
    flex: 1;
    min-width: 80px;
    padding: 9px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.dict-tab.active,
.dict-tab:hover {
    background: var(--green-deep);
    color: var(--white);
}

.word-results {
    display: grid;
    gap: 12px;
}

.word-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--gold);
}

.word-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.word-main {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--green-deep);
}

.word-pos {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.word-meaning {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.word-example {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================
   ABOUT PAGE
============================================ */
.page-hero {
    background: var(--green-deep);
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

.about-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--green-deep);
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
}

.about-content p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--green-deep);
    padding: 3rem 0 0;
    margin-top: 4rem;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 500;
    margin-left: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-top: 10px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.1rem 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.footer-bottom a {
    color: var(--gold);
    opacity: 0.7;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--green-deep);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        border-bottom: 2px solid var(--gold);
        align-items: flex-start;
    }

    .main-nav.open { display: flex !important; }

    .nav-toggle { display: flex; }

    .bio-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
    }

    .dialect-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero { padding: 3.5rem 1rem 3rem; }
    .section { padding: 2.5rem 0; }
    .dialect-grid { grid-template-columns: repeat(2, 1fr); }
    .wod-strip { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================
   BIO PHOTO HINT
============================================ */
.bio-photo-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    letter-spacing: 0.03em;
}
/* ============================================
   STORIES — Histories & Myths
============================================ */
.story-filter-row {
    margin-bottom: 1rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.story-card-cover {
    height: 180px;
    background: var(--green-deep);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.story-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card-cover img {
    transform: scale(1.04);
}

.story-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(13,61,43,0.7) 0%, transparent 100%);
    pointer-events: none;
}

.story-card-cover.no-image::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212,168,83,0.2);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.story-card-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.story-featured-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--gold);
    color: var(--green-deep);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}

.story-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.story-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.story-type-badge.history  { background: rgba(212,168,83,0.15); color: var(--gold); border: 1px solid rgba(212,168,83,0.3); }
.story-type-badge.myth     { background: rgba(139,92,246,0.12); color: #8b5cf6;     border: 1px solid rgba(139,92,246,0.25); }
.story-type-badge.folklore { background: rgba(6,182,212,0.12);  color: #06b6d4;     border: 1px solid rgba(6,182,212,0.25); }

.story-origin-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    background: var(--cream);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: capitalize;
    letter-spacing: 0.04em;
}

.story-era {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.story-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-deep);
    line-height: 1.3;
    margin-bottom: 8px;
}

.story-card-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
    flex: 1;
}

.story-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--green-deep);
    letter-spacing: 0.03em;
    transition: gap var(--transition);
}

/* Story Hero (view pages) */
.story-hero {
    background: var(--green-deep);
    padding: 4rem 1.5rem;
    border-bottom: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.story-hero.has-image {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.story-hero-image {
    position: absolute;
    inset: 0;
}

.story-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.story-hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,61,43,0.95) 30%, rgba(13,61,43,0.5) 100%);
}

.story-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.story-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.story-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.story-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

/* Story full content */
.story-content {
    padding: 3rem 1.5rem;
}

.story-content-inner {
    max-width: 760px;
    margin: 0 auto;
}

.story-content-inner p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.4rem;
}

.story-content-inner h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--green-deep);
    margin: 2rem 0 0.75rem;
}

.story-content-inner h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green-deep);
    margin: 1.5rem 0 0.5rem;
}

.story-content-inner strong { color: var(--green-deep); font-weight: 500; }

/* Prev/Next nav */
.story-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

.story-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    max-width: 45%;
}

.story-nav-link.next { align-items: flex-end; text-align: right; }

.story-nav-dir {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.story-nav-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--green-deep);
    font-weight: 500;
    line-height: 1.3;
    transition: color var(--transition);
}

.story-nav-link:hover .story-nav-title { color: var(--gold); }

@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-nav-link { max-width: 100%; }
}