/* ============================================================
   Bogum Ao Foundation — Stylesheet
   Theme: Forest & Sky — deep Arunachal forest greens,
   mountain mist neutrals, saffron-gold accents.
   ============================================================ */

   :root {
    /* Primary — deep forest greens */
    --forest-dark:  #5e1175;
    --forest-mid:   #9230a9;
    --forest-light: #db49e0;

    /* Saffron / sunrise gold accents */
    --gold:         #d4811a;
    --gold-light:   #f0a832;
    --gold-pale:    #fdefd3;

    /* Backgrounds */
    --cream:        #f4f9f6;
    --white:        #ffffff;

    /* Neutrals / muted greens */
    --mist:         #5a7a66;
    --mist-light:   #98bda8;

    /* Text */
    --text-dark:    #0d1f17;
    --text-mid:     #254733;
    --text-light:   #5a7a66;

    /* Alert */
    --accent-red:   #8b1a1a;

    /* Shadows — green-tinted */
    --shadow:       0 4px 24px rgba(13,31,23,0.14);
    --shadow-lg:    0 12px 48px rgba(13,31,23,0.24);

    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body:    'Cormorant Garamond', serif;
    --font-ui:      'Inter', sans-serif;

    /* Header height token */
    --header-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.site-header {
    background: var(--forest-dark);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

/* ── Header inner wrapper ── */
.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ── Logo block ── */
.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;          /* never squish the logo */
}

.logo-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-emblem img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Fallback when no image (the ⚔ text emblem) */
.logo-emblem-icon {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 18px rgba(212,129,26,0.55);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.logo-tagline {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--mist-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* ── Main nav — desktop ── */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Top-level <ul> */
.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

/* All nav links */
.main-nav a {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--mist-light);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
    display: block;
}

.main-nav a:hover,
.main-nav li.active > a {
    color: var(--gold-light);
    background: rgba(212,129,26,0.12);
}

/* ── Dropdown ── */
.has-dropdown {
    position: relative;
}

/* Hide dropdown by default — both on desktop and inside mobile open state */
.has-dropdown > ul.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--forest-mid);
    border: 1px solid var(--forest-light);
    border-top: 2px solid var(--gold);
    min-width: 210px;
    padding: 0.4rem 0;
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

/* Show on desktop hover */
.has-dropdown:hover > ul.dropdown {
    display: block;
}

.has-dropdown > ul.dropdown li {
    display: block;
}

.has-dropdown > ul.dropdown a {
    padding: 0.5rem 1.1rem;
    border-radius: 0;
    font-size: 0.78rem;
    color: var(--mist-light);
}

.has-dropdown > ul.dropdown a:hover {
    color: var(--gold-light);
    background: rgba(212,129,26,0.1);
}

/* ── Hamburger toggle — hidden on desktop ── */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--mist);
    color: var(--mist-light);
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
    transition: border-color 0.2s, color 0.2s;
}
.menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION  (≤ 768 px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .logo-emblem { width: 38px; height: 38px; }
    .logo-emblem img { width: 38px; height: 38px; }
    .logo-name { font-size: 0.9rem; }
    .logo-tagline { display: none; }   /* hide tagline on small screens */

    /* Hide desktop nav by default */
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--forest-mid);
        border-bottom: 2px solid var(--gold);
        padding: 0.5rem 0 1rem;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        /* Reset flex so it stacks */
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Show when JS adds .open */
    .main-nav.open {
        display: flex;
    }

    /* Top-level list — vertical stack */
    .main-nav > ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .main-nav > ul > li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        border-radius: 0;
    }

    /* ── Dropdown in mobile — show as indented sub-list, NOT absolute ── */
    .has-dropdown > ul.dropdown {
        position: static;          /* break out of absolute positioning */
        display: none;             /* hidden by default */
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        background: rgba(0,0,0,0.2);
        padding: 0;
        min-width: 0;
        width: 100%;
    }

    /* Show sub-menu only when parent has .open class (toggled by JS) */
    .has-dropdown.open > ul.dropdown {
        display: block;
    }

    .has-dropdown > ul.dropdown a {
        padding: 0.6rem 1.25rem 0.6rem 2.25rem;   /* indent child items */
        font-size: 0.82rem;
        color: var(--mist-light);
        border-radius: 0;
    }

    /* Show hamburger */
    .menu-toggle { display: flex; align-items: center; }
}

/* Tablet nav — slightly tighter */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo-name { font-size: 0.9rem; }
    .logo-tagline { font-size: 0.55rem; }
    .main-nav a { font-size: 0.72rem; padding: 0.4rem 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-mid) 45%, var(--forest-light) 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;          /* never clip the stats bar */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212,129,26,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 15%, rgba(30,61,42,0.4) 0%, transparent 55%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: repeating-linear-gradient(
        45deg,
        var(--gold) 0px, var(--gold) 1px,
        transparent 1px, transparent 44px
    );
    pointer-events: none;
}

/* ── Two-column grid: text left, visual right ── */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;     /* extra bottom padding keeps stats visible */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ── Text column ── */
.hero-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,129,26,0.45);
    padding: 0.3rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero h1 span { color: var(--gold-light); display: block; }

.hero-tagline {
    font-size: 1.3rem;
    color: var(--mist-light);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-family: var(--font-ui);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-actions .btn-primary,
.hero-actions .btn-outline {
    flex: 0 1 auto;     /* never grow to full width */
    min-width: 180px;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.85rem 2rem;
    border: 1.5px solid rgba(212,129,26,0.5);
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--white); transform: translateY(-2px); }

/* ── Visual column: emblem + stats stacked vertically ── */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Circular frame */
.hero-emblem {
    width: clamp(240px, 32vw, 400px);
    height: clamp(240px, 32vw, 400px);
    border: 2px solid rgba(212,129,26,0.3);
    border-radius: 50%;
    display: flex;
    align-items: flex-end;       /* image sits on "ground" of circle */
    justify-content: center;
    position: relative;
    overflow: hidden;            /* crop image to circle */
    flex-shrink: 0;
}

.hero-emblem::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212,129,26,0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* The image inside the circle */
.hero-emblem-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;             /* fallback text icon size */
    color: var(--gold);
}

/* Actual <img> tag inside .hero-emblem-icon */
.hero-emblem-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* fill the circle, crop edges */
    object-position: center top; /* keep face/top of figure visible */
    display: block;
    animation: heroFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 40px rgba(212,129,26,0.3); }
    50%       { text-shadow: 0 0 80px rgba(212,129,26,0.55), 0 0 120px rgba(212,129,26,0.25); }
}

/* ── Stats bar: horizontal row under the emblem ── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* always 4 columns */
    width: 100%;
    max-width: clamp(240px, 32vw, 400px);   /* match emblem width */
    background: rgba(13,31,23,0.92);
    border: 1px solid var(--forest-light);
    border-top: 2px solid var(--gold);
    border-radius: 6px;
    overflow: hidden;
    position: static;
    transform: none;
    margin-top: 1.5rem;         /* uniform space between emblem and stats */
}

.stat-item {
    padding: 0.7rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--forest-light);
}
.stat-item:last-child { border-right: none; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--gold-light);
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.55rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* ── Tablet: 769–1024px — keep two-column but tighten ── */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
        padding: 4rem 1.5rem 5rem;
    }
    .hero-visual { display: flex; }     /* override the 1024px hide rule below */
    .hero-emblem {
        width: clamp(180px, 28vw, 280px);
        height: clamp(180px, 28vw, 280px);
    }
    .hero-stats {
        max-width: clamp(180px, 28vw, 280px);
    }
    .stat-num { font-size: 1rem; }
}

/* ── Mobile: ≤ 768px — single column, image above text ── */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 1.25rem 3rem;
        text-align: center;
    }

    /* Image block moves ABOVE text */
    .hero-visual {
        display: flex;
        order: -1;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0;       /* gap handled by hero-inner gap */
    }

    .hero-emblem {
        width: clamp(140px, 52vw, 200px);
        height: clamp(140px, 52vw, 200px);
    }
    .hero-emblem::before { inset: 6px; }

    /* Stats: 2×2 grid on mobile — centred + spaced */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        width: min(320px, 90%);
        max-width: 100%;
        margin: 1.5rem auto 0;  /* top space + auto left/right = centred */
    }
    .stat-item {
        border-right: 1px solid var(--forest-light);
        border-bottom: 1px solid var(--forest-light);
    }
    .stat-item:nth-child(2n)   { border-right: none; }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4)    { border-bottom: none; }

    .stat-num  { font-size: 1.4rem; }
    .stat-label { font-size: 0.6rem; }

    .hero-actions { justify-content: center; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: auto;
        flex: 0 0 auto;
    }
    .hero h1  { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero-tagline { font-size: 1.1rem; }
    .hero-desc { font-size: 0.92rem; }
}

/* ── SECTION LAYOUT ───────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1320px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}
.section-rule {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.2rem auto 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-mid) 100%);
}
.section-alt .section-title { color: var(--white); }
.section-alt .section-subtitle { color: var(--mist-light); }

/* ── FEATURE CARDS ─────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;                         /* no gap — borders share edges */
}

.card {
    background: var(--white);
    border: 1px solid rgba(90,122,102,0.15);
    padding: 2.5rem 2rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: background 0.2s, box-shadow 0.2s;
    /* Inset top accent line — hidden until hover */
    overflow: hidden;
}

/* Gold top bar slides down on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
    background: rgba(212,129,26,0.03);
    box-shadow: inset 0 0 0 1px rgba(212,129,26,0.25);
    z-index: 1;
}

/* Number badge — top-left */
.card-num {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 1.25rem;
    display: block;
}

/* Short gold rule between number and title */
.card-rule {
    width: 32px;
    height: 2px;
    background: var(--gold);
    opacity: 0.5;
    margin-bottom: 1rem;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.card:hover .card-rule {
    width: 56px;
    opacity: 1;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}

.card-desc {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.75;
    flex: 1;                        /* pushes arrow to bottom */
}

/* Arrow CTA at bottom */
.card-arrow {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive: 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cards-grid { grid-template-columns: 1fr; }
    .card { padding: 2rem 1.5rem; }
    .card-arrow { opacity: 1; transform: none; }  /* always show on touch */
}

/* ── PERSONALITY CARDS ─────────────────────────────────────── */

/* Default grid — personalities.php full listing */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Homepage variant — fixed 4 columns, tighter cards */
.personality-grid--home {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.personality-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(90,122,102,0.2);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.personality-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Photo — shorter on homepage grid */
.personality-photo {
    width: 100%;
    height: 180px;
    background: linear-gradient(160deg, var(--forest-mid), var(--forest-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--mist);
    overflow: hidden;
    flex-shrink: 0;
}
.personality-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Shorter photo specifically inside homepage 4-col grid */
.personality-grid--home .personality-photo {
    height: 150px;
}

/* Body — centered */
.personality-body {
    padding: 1.1rem 1rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.personality-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

/* Tighter name on full listing page (more space available) */
.personality-grid:not(.personality-grid--home) .personality-name {
    font-size: 1.05rem;
}

.personality-role {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.personality-desc {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

/* Hide description on home grid to keep cards compact */
.personality-grid--home .personality-desc {
    display: none;
}

.personality-tag {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.62rem;
    padding: 0.18rem 0.65rem;
    background: rgba(212,129,26,0.1);
    color: var(--gold);
    border: 1px solid rgba(212,129,26,0.2);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.btn-read-more {
    display: inline-block;
    margin-top: 0.85rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(212,129,26,0.3);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-read-more:hover { color: var(--forest-mid); border-color: var(--forest-mid); }

/* ── PERSONALITY GRID RESPONSIVE ── */
@media (max-width: 1100px) {
    .personality-grid--home { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .personality-grid--home { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .personality-grid--home .personality-photo { height: 130px; }
    .personality-grid--home .personality-name { font-size: 0.85rem; }
}
@media (max-width: 420px) {
    .personality-grid--home { grid-template-columns: 1fr 1fr; }
}

/* ── GENEALOGY TREE ────────────────────────────────────────── */
.tree-container { overflow-x: auto; padding: 2rem 0; }
.tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tree-level { display: flex; gap: 2rem; justify-content: center; align-items: flex-start; padding: 1rem 0; }
.tree-node {
    background: var(--white);
    border: 1.5px solid var(--mist-light);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
    box-shadow: var(--shadow);
}
.tree-node.root {
    background: var(--forest-dark);
    border-top-color: var(--gold-light);
    color: var(--white);
    border-color: var(--forest-light);
    min-width: 200px;
}
.tree-node-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }
.tree-node-sub { font-family: var(--font-ui); font-size: 0.7rem; color: var(--mist); margin-top: 0.2rem; }
.root .tree-node-sub { color: var(--mist-light); }

/* ── EXECUTIVE TABLE ───────────────────────────────────────── */
.tenure-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tenure-tab {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--mist-light);
    border-radius: 3px;
    cursor: pointer;
    background: var(--white);
    color: var(--text-mid);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.tenure-tab.active, .tenure-tab:hover {
    background: var(--gold);
    color: var(--forest-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.members-table thead { background: var(--forest-dark); }
.members-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.members-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(90,122,102,0.12);
    font-family: var(--font-ui);
}
.members-table tr:last-child td { border-bottom: none; }
.members-table tr:hover td { background: rgba(212,129,26,0.04); }

/* ── NEWS GRID ──────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.news-card {
    background: var(--white);
    border: 1px solid rgba(90,122,102,0.2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card-body { padding: 1.5rem; }
.news-category {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.news-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.4; }
.news-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; font-family: var(--font-ui); }
.news-date { font-family: var(--font-ui); font-size: 0.72rem; color: var(--mist); margin-top: 1rem; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-info p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 1rem; font-family: var(--font-ui); line-height: 1.7; }
.contact-detail { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-detail-icon { font-size: 1.2rem; margin-top: 0.1rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(90,122,102,0.4);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,129,26,0.12);
}
textarea.form-control { min-height: 130px; resize: vertical; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--forest-dark), var(--forest-mid));
    padding: 4rem 2rem;
    border-bottom: 2px solid var(--gold);
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.page-hero p { color: var(--mist-light); font-style: italic; font-size: 1.1rem; }

/* ── CLAN INCHARGE CARDS ─────────────────────────────────────── */
.incharge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.incharge-card {
    background: var(--white);
    border: 1px solid rgba(90,122,102,0.25);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.incharge-clan {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.incharge-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.incharge-detail { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--forest-dark);
    border-top: 3px solid var(--gold);
    color: rgba(255,255,255,0.55);
    font-family: var(--font-ui);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.site-footer p { font-size: 0.82rem; line-height: 1.8; margin-bottom: 0.5rem; }
.site-footer h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold-light); }

.btn-footer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(212,129,26,0.4);
    border-radius: 3px;
    color: var(--gold-light) !important;
    font-size: 0.8rem;
    transition: background 0.2s, border-color 0.2s;
}
.btn-footer:hover { background: rgba(212,129,26,0.1); border-color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
    max-width: 1320px;
    margin: 0 auto;
}
.footer-bottom em { color: rgba(212,129,26,0.45); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--forest-dark);
    border-right: 2px solid var(--forest-light);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--forest-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 0.06em;
}

.admin-sidebar nav ul { list-style: none; padding: 1rem 0; }
.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--mist-light);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--gold-light);
    background: rgba(212,129,26,0.08);
    border-left-color: var(--gold);
}
.admin-sidebar nav .nav-section {
    padding: 1rem 1.5rem 0.3rem;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
}

.admin-main { background: #f0f4f2; }
.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid rgba(90,122,102,0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-topbar h1 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); }
.admin-content { padding: 2rem; }

.admin-card {
    background: var(--white);
    border: 1px solid rgba(90,122,102,0.2);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.admin-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(90,122,102,0.15);
    background: rgba(212,129,26,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.admin-card-body { padding: 1.5rem; }

.admin-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.admin-stat {
    background: var(--white);
    border: 1px solid rgba(90,122,102,0.2);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.admin-stat-label { font-family: var(--font-ui); font-size: 0.75rem; color: var(--mist); margin-top: 0.25rem; }

.table-admin { width: 100%; border-collapse: collapse; }
.table-admin th {
    background: rgba(212,129,26,0.06);
    padding: 0.7rem 1rem;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    border-bottom: 2px solid rgba(212,129,26,0.15);
}
.table-admin td {
    padding: 0.72rem 1rem;
    border-bottom: 1px solid rgba(90,122,102,0.1);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-mid);
}
.table-admin tr:hover td { background: rgba(212,129,26,0.03); }

.btn-sm { padding: 0.28rem 0.75rem; font-size: 0.75rem; border-radius: 3px; cursor: pointer; border: none; font-family: var(--font-ui); font-weight: 500; text-decoration: none; display: inline-block; }
.btn-edit { background: rgba(212,129,26,0.1); color: var(--gold); }
.btn-edit:hover { background: var(--gold); color: var(--white); }
.btn-delete { background: rgba(139,26,26,0.08); color: var(--accent-red); }
.btn-delete:hover { background: var(--accent-red); color: var(--white); }
.btn-add { background: var(--gold); color: var(--forest-dark); font-weight: 700; padding: 0.5rem 1.2rem; }
.btn-add:hover { background: var(--gold-light); }

.badge {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 600;
    font-family: var(--font-ui);
}
.badge-green { background: rgba(39,174,96,0.1); color: #27ae60; }
.badge-gray  { background: rgba(150,150,150,0.12); color: #888; }
.badge-gold  { background: rgba(212,129,26,0.12); color: var(--gold); }

/* ── LOGIN PAGE ────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--forest-dark), var(--forest-mid));
}
.login-box {
    background: var(--white);
    border-radius: 8px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon { font-size: 3rem; color: var(--gold); display: block; }
.login-logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.login-logo-sub { font-family: var(--font-ui); font-size: 0.72rem; color: var(--mist); }
.alert { padding: 0.85rem 1rem; border-radius: 4px; margin-bottom: 1.25rem; font-family: var(--font-ui); font-size: 0.85rem; }
.alert-error   { background: rgba(139,26,26,0.07); color: var(--accent-red); border: 1px solid rgba(139,26,26,0.18); }
.alert-success { background: rgba(39,174,96,0.07); color: #27ae60; border: 1px solid rgba(39,174,96,0.18); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — LARGE TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }



    .contact-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .section { padding: 3rem 1.25rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .tenure-tabs { gap: 0.3rem; }
    .members-table { display: block; overflow-x: auto; }



}