/* ======================================
   0. TYPOGRAPHY — self-hosted web fonts
   ======================================
   Playfair Display (display/headings) and Source Sans 3 (body), self-hosted rather than
   pulled from a CDN so they resolve offline for the PWA and can be precached by sw.js.
   Both are variable fonts, so one file per subset covers the whole weight range.
   latin-ext is required, not optional: Twi uses characters such as Ɔ (U+0186) and
   ɛ (U+025B), which sit outside the latin subset.
*/
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('/fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ======================================
   1. CSS VARIABLES & CUSTOM PROPERTIES
   ====================================== */

:root {
    /* ========================================
       TYPE SYSTEM
       Two families and one scale, so page titles stop drifting between 40px and 64px
       from page to page. --step-hero is reserved for the homepage hero; every other
       top-level page uses --step-page-title.
       ======================================== */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --step-hero: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);        /* 40 → 64px, home only */
    --step-page-title: clamp(2rem, 1.4rem + 2.2vw, 3rem);    /* 32 → 48px, all heroes */
    --step-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --step-h4: 1.25rem;
    --step-h5: 1.125rem;
    --step-h6: 1rem;

    /* ========================================
       PRIMARY: ASANTE GOLD - Heritage & Prestige
       ======================================== */
    --asante-gold: #C8A864;
    --asante-gold-50: #F9F6F0;      /* Lightest tint - backgrounds */
    --asante-gold-100: #F0EAE0;     /* Very light tint */
    --asante-gold-200: #E5D4A6;     /* Light shade - accents */
    --asante-gold-300: #DCC488;     /* Lighter tone */
    --asante-gold-400: #D4B876;     /* Medium light */
    --asante-gold-500: #C8A864;     /* Base gold */
    --asante-gold-600: #B8985A;     /* Medium dark */
    --asante-gold-700: #A0844A;     /* Darker tone */
    --asante-gold-800: #8B6914;     /* Dark shade - primary dark */
    --asante-gold-900: #6B5310;     /* Darkest shade */
    --asante-gold-950: #3D2F08;     /* Near black */

    /* ========================================
       SECONDARY: EARTH TONES - Grounding & Tradition
       ======================================== */
    --asante-brown: #8B4513;
    --asante-brown-50: #F9F5F1;
    --asante-brown-100: #F0E6DC;
    --asante-brown-200: #E0CCBA;
    --asante-brown-300: #C7A68A;
    --asante-brown-400: #B8905A;
    --asante-brown-500: #8B4513;
    --asante-brown-600: #7A3A0F;
    --asante-brown-700: #632E0A;
    --asante-brown-800: #4A2207;
    --asante-brown-900: #3C1A05;

    /* ========================================
       ACCENT: EARTH TONE BASE - Cultural Foundation
       ======================================== */
    --earth-tone: #2d2416;
    --earth-tone-50: #F5F3F0;
    --earth-tone-100: #E8E4DE;
    --earth-tone-200: #D4CCC3;
    --earth-tone-300: #BFB2A3;
    --earth-tone-400: #8B7D6F;
    --earth-tone-500: #2d2416;
    --earth-tone-600: #29200F;
    --earth-tone-700: #1F1809;
    --earth-tone-800: #151005;
    --earth-tone-900: #0A0603;

    /* ========================================
       ACCENT 1: DUTCH ORANGE - International Connection
       ======================================== */
    --dutch-orange: #FF6B35;
    --dutch-orange-50: #FFF5F1;
    --dutch-orange-100: #FFE8DB;
    --dutch-orange-200: #FFD0B5;
    --dutch-orange-300: #FFA876;
    --dutch-orange-400: #FF8B4F;
    --dutch-orange-500: #FF6B35;
    --dutch-orange-600: #E85A24;
    --dutch-orange-700: #C7481A;
    --dutch-orange-800: #A0360E;
    --dutch-orange-900: #7A2608;

    /* ========================================
       ACCENT 2: ROYAL BLUE - Dignity & Authority
       ======================================== */
    --royal-blue: #1E3A8A;
    --royal-blue-50: #EFF6FF;
    --royal-blue-100: #DBE8FF;
    --royal-blue-200: #BFDBFE;
    --royal-blue-300: #93C5FD;
    --royal-blue-400: #60A5FA;
    --royal-blue-500: #3B82F6;
    --royal-blue-600: #2563EB;
    --royal-blue-700: #1D4ED8;
    --royal-blue-800: #1E3A8A;
    --royal-blue-900: #1E40AF;

    /* ========================================
       SEMANTIC COLORS - Status & Feedback
       ======================================== */
    /* Success - Cultural celebration */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-success-dark: #047857;

    /* Warning - Caution, attention needed */
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-warning-dark: #d97706;

    /* Danger - Critical, errors */
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-danger-dark: #dc2626;

    /* Info - Educational content */
    --color-info: #06b6d4;
    --color-info-light: #cffafe;
    --color-info-dark: #0891b2;

    /* ========================================
       NEUTRAL SCALE - Text & Backgrounds
       ======================================== */
    /* Neutrals for text, borders, backgrounds */
    --color-neutral-50: #FAFAF9;    /* Almost white */
    --color-neutral-100: #F5F5F4;   /* Very light gray */
    --color-neutral-200: #E7E5E4;   /* Light gray */
    --color-neutral-300: #D6D3D1;   /* Lighter gray */
    --color-neutral-400: #A8A29E;   /* Medium gray */
    --color-neutral-500: #78716C;   /* Medium-dark gray */
    --color-neutral-600: #57534E;   /* Dark gray */
    --color-neutral-700: #44403C;   /* Very dark gray */
    --color-neutral-800: #292524;   /* Near black */
    --color-neutral-900: #1C1917;   /* Black */
    --color-neutral-950: #0F0E0D;   /* Pure black */

    /* ========================================
       FUNCTIONAL COLORS - UI Components
       ======================================== */
    /* Primary for buttons, links, focus states */
    --color-primary: var(--asante-gold);
    --color-primary-dark: var(--asante-gold-800);
    --color-primary-light: var(--asante-gold-200);

    /* Secondary for alternative actions */
    --color-secondary: var(--dutch-orange);
    --color-secondary-dark: var(--dutch-orange-800);
    --color-secondary-light: var(--dutch-orange-100);

    /* Tertiary for calm, supportive actions */
    --color-tertiary: var(--royal-blue);
    --color-tertiary-dark: var(--royal-blue-900);
    --color-tertiary-light: var(--royal-blue-100);

    /* ========================================
       SURFACE COLORS - Backgrounds & Cards
       ======================================== */
    --surface-bg: #FFFFFF;          /* Main background */
    --surface-elevated: #F9F7F0;    /* Card backgrounds */
    --surface-overlay: rgba(0, 0, 0, 0.5);  /* Modal overlays */

    /* ========================================
       Bootstrap Overrides - Using Asante Heritage Colors
       ======================================== */
    --bs-primary: var(--asante-gold);
    --bs-primary-rgb: 200, 168, 100;
    --bs-secondary: var(--dutch-orange);
    --bs-success: var(--color-success);
    --bs-danger: var(--color-danger);
    --bs-warning: var(--color-warning);
    --bs-info: var(--color-info);
    --bs-light: var(--color-neutral-50);
    --bs-dark: var(--earth-tone);
    
    /* ========================================
       MODERN SPACING & SIZING
       ======================================== */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max-width: 1280px;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --shadow-gold: 0 4px 12px rgba(200, 168, 100, 0.3);
}


/* min-height, not height. With `height: 100%` the body box was pinned to the viewport
   while its flex children (.wrap + .footer) totalled more than that, so on any page
   taller than one screen the content overflowed the body box instead of growing it —
   measured on /site/login as a body of 889px containing 1008px of children. min-height
   keeps the sticky footer working on short pages and lets the box grow on long ones. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
}

/* One scale for headings everywhere. Page heroes previously ranged from 40px to 64px
   depending on which page you were on; .hero-title now pins them all to the same step,
   with the larger --step-hero reserved for the homepage. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1, .h1 { font-size: var(--step-page-title); }
h2, .h2 { font-size: var(--step-h2); }
h3, .h3 { font-size: var(--step-h3); }
h4, .h4 { font-size: var(--step-h4); }
h5, .h5 { font-size: var(--step-h5); }
h6, .h6 { font-size: var(--step-h6); }

.hero-title,
h1.hero-title {
    font-size: var(--step-page-title);
}

.home-hero .hero-title,
.hero-home .hero-title {
    font-size: var(--step-hero);
}

.wrap {
    flex: 1;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

footer.footer {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

/* ====================================
   NAVBAR LOGO STYLING
   ==================================== */
/* ====================================
   NAVBAR - Asante Heritage Styling
   ==================================== */
.navbar {
    background: linear-gradient(135deg, var(--asante-gold-800) 0%, var(--earth-tone) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--asante-gold-200);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--asante-gold-200);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-brand:hover img {
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(200, 168, 100, 0.4));
}

@media (max-width: 767px) {
    .navbar-brand img {
        height: 32px;
    }
}

.footer {
    background: linear-gradient(135deg, var(--earth-tone) 0%, var(--earth-tone-700) 100%);
    color: var(--color-neutral-200);
    padding: 1.5rem 0 0.5rem;
    margin-top: auto;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.15);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--asante-gold), var(--dutch-orange), var(--asante-gold-600));
}

.footer p {
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
    color: var(--color-neutral-300);
}

/* Pagination Spacing */
.pagination {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item {
    margin: 0.25rem;
}

.pagination .page-link {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid var(--asante-gold-200);
    color: var(--asante-gold-800);
}

.pagination .page-link:hover {
    background-color: var(--asante-gold-light);
    border-color: var(--asante-gold);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--asante-gold);
    border-color: var(--asante-gold);
    color: white;
}

.footer a {
    color: var(--asante-gold-200);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: var(--asante-gold);
    text-decoration: none;
}

.footer .hover-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer .hover-link:hover {
    color: var(--asante-gold-200) !important;
    text-decoration: underline !important;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--color-neutral-500);
    font-size: 0.875rem;
}

.error-summary {
    color: var(--color-danger-dark);
    background: var(--color-danger-light);
    border-left: 4px solid var(--color-danger);
    padding: 10px 20px;
    margin: 0 0 15px 0;
    border-radius: var(--border-radius);
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--earth-tone) 0%, var(--earth-tone-800) 50%, var(--earth-tone) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 3rem;
    margin-left: -15px;
    margin-right: -15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(200, 168, 100, 0.05) 35px, rgba(200, 168, 100, 0.05) 70px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--shadow-gold), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-symbol {
    animation: float 3s ease-in-out infinite;
}

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

.adinkra-hero {
    color: var(--asante-gold);
    filter: drop-shadow(0 4px 8px rgba(200, 168, 100, 0.3));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--asante-gold-200), var(--asante-gold), var(--asante-gold-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(200, 168, 100, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--asante-gold-light);
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-neutral-200);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary {
    background: var(--asante-gold);
    border: 2px solid var(--asante-gold);
    color: var(--earth-tone);
}

.hero-actions .btn-primary:hover {
    background: var(--asante-gold-800);
    border-color: var(--asante-gold-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 168, 100, 0.4);
}

.hero-actions .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: white;
    color: var(--earth-tone);
    transform: translateY(-2px);
}

/* ====================================
   SECTION STYLING
   ==================================== */
.homepage-content {
    background: var(--surface-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth-tone);
    margin-bottom: 1rem;
}

.title-accent {
    color: var(--asante-gold);
    font-size: 1.5rem;
    margin: 0 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-neutral-500);
    font-weight: 300;
}

/* ====================================
   FEATURED TOPICS CARDS
   ==================================== */
.featured-topics {
    background: linear-gradient(to bottom, var(--asante-gold-50) 0%, var(--surface-bg) 100%);
}

.topic-card {
    background: var(--surface-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.golden-stool-card {
    border-top: 4px solid var(--asante-gold);
}

.golden-stool-card:hover {
    border-color: var(--asante-gold);
    background: linear-gradient(to bottom, rgba(200, 168, 100, 0.05), white);
}

.boachi-card {
    border-top: 4px solid var(--royal-blue);
}

.boachi-card:hover {
    border-color: var(--royal-blue);
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.05), white);
}

.heritage-card {
    border-top: 4px solid var(--asante-brown);
}

.heritage-card:hover {
    border-color: var(--asante-brown);
    background: linear-gradient(to bottom, rgba(139, 69, 19, 0.05), white);
}

.topic-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--asante-gold-300), var(--asante-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-gold);
}

.topic-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--earth-tone);
    margin-bottom: 1rem;
}

.topic-card p {
    color: var(--color-neutral-500);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.topic-highlight {
    background: var(--asante-gold-50);
    border-left: 4px solid var(--asante-gold);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--asante-brown-800);
}

.topic-highlight strong {
    color: var(--asante-gold-800);
}

/* ====================================
   TIMELINE TEASER
   ==================================== */
.timeline-teaser {
    background: linear-gradient(135deg, var(--asante-gold-50) 0%, var(--surface-bg) 100%);
    padding: 4rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--asante-gold);
    position: relative;
}

.timeline-item-link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 0.4rem 0.75rem 0.4rem 2rem;
    margin-left: -0.75rem;
    transition: all 0.3s ease;
}

.timeline-item-link:hover,
.timeline-item-link:focus-visible {
    background: rgba(200, 168, 100, 0.12);
    border-left-color: var(--asante-gold-700);
    transform: translateX(6px);
}

.timeline-item-link:focus-visible {
    outline: 3px solid rgba(200, 168, 100, 0.35);
    outline-offset: 6px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--asante-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--asante-gold-light);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--asante-gold-800);
    min-width: 100px;
    margin-right: 1.5rem;
}

.timeline-desc {
    color: var(--color-neutral-700);
    font-size: 1.05rem;
    flex: 1;
}

.cultural-quote {
    background: linear-gradient(135deg, var(--earth-tone), var(--earth-tone-800));
    border-radius: 16px;
    padding: 3rem;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cultural-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(200, 168, 100, 0.15);
    font-family: Georgia, serif;
}

.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--asante-gold-200);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-author {
    text-align: right;
    color: var(--color-neutral-300);
    font-size: 1.1rem;
}

.quote-author small {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ====================================
   LATEST ARTICLES
   ==================================== */
.latest-articles {
    padding: 4rem 0;
}

.article-card {
    background: var(--surface-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--asante-gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--earth-tone);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--asante-gold-800);
}

.article-excerpt {
    color: var(--color-neutral-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-neutral-400);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-content .btn-link {
    color: var(--asante-gold-800);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.article-content .btn-link:hover {
    color: var(--asante-gold);
    gap: 0.5rem;
}

/* ====================================
   CALL TO ACTION
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, var(--earth-tone) 0%, var(--earth-tone-800) 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(200, 168, 100, 0.05) 35px, rgba(200, 168, 100, 0.05) 70px);
}

.cta-card {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.cta-icon {
    font-size: 3rem;
    color: var(--asante-gold);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--color-neutral-200);
    max-width: 700px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-actions .btn-warning {
    background: var(--asante-gold);
    border: none;
    color: var(--earth-tone);
}

.cta-actions .btn-warning:hover {
    background: var(--asante-gold-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 168, 100, 0.4);
}

.cta-actions .btn-outline-dark {
    border: 2px solid white;
    color: white;
}

.cta-actions .btn-outline-dark:hover {
    background: white;
    color: var(--earth-tone);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .timeline-teaser .row {
        flex-direction: column-reverse;
    }
    
    .timeline-teaser .col-lg-6:first-child {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .topic-card {
        margin-bottom: 2rem;
    }
    
    .timeline-year {
        min-width: 80px;
        font-size: 1.3rem;
    }
    
    .cultural-quote {
        padding: 2rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* ====================================
   ABOUT PAGE STYLING
   ==================================== */
.about-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 50%, #1a1a1a 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    margin-left: -15px;
    margin-right: -15px;
}

.about-symbol {
    padding: 2rem;
}

.adinkra-large {
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 4px 12px rgba(200, 168, 100, 0.4));
    opacity: 0.9;
}

.symbol-caption {
    color: var(--asante-gold-light);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-style: italic;
}

.section-heading {
    color: var(--asante-gold-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--asante-gold);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.cultural-quote-inline {
    background: linear-gradient(135deg, rgba(200, 168, 100, 0.1), rgba(200, 168, 100, 0.05));
    border-left: 4px solid var(--asante-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 4px;
}

.cultural-quote-inline p {
    font-size: 1.2rem;
    color: #2d2416;
    margin-bottom: 0.5rem;
}

.cultural-quote-inline footer {
    color: var(--asante-gold-dark);
    font-weight: 600;
}

.connection-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.connection-card:hover {
    transform: translateY(-5px);
}

.connection-icon {
    font-size: 3rem;
    color: var(--asante-gold);
    margin-bottom: 1rem;
}

.connection-card h4 {
    color: var(--asante-gold-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.image-placeholder {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(200, 168, 100, 0.05), rgba(200, 168, 100, 0.1));
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--asante-gold);
    box-shadow: 0 8px 16px rgba(200, 168, 100, 0.2);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--asante-gold);
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--earth-tone), #1a1a1a);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
}

.cta-box h2 {
    color: var(--asante-gold-light);
    margin-bottom: 1.5rem;
}

.cta-box .lead {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 0;
    }
    
    .adinkra-large {
        width: 150px;
        height: 150px;
    }
    
    .section-heading::after {
        width: 40px;
    }
    
    .btn-group-lg .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* ====================================
   TIMELINE PAGE STYLING
   ==================================== */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(200, 168, 100, 0.35), var(--asante-gold), rgba(107, 83, 16, 0.9));
    box-shadow: 0 0 0 1px rgba(200, 168, 100, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 0;
}

.timeline-section {
    margin-bottom: 4rem;
}

.timeline-era {
    text-align: center;
    background: var(--asante-gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3rem;
    z-index: 2;
}

.timeline-era i {
    margin-right: 0.5rem;
}

.timeline-event {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: calc(50% + 40px);
    --timeline-card-accent: var(--asante-gold);
    --timeline-card-accent-soft: rgba(200, 168, 100, 0.12);
}

.timeline-event:nth-child(odd) {
    --timeline-card-accent: var(--royal-blue);
    --timeline-card-accent-soft: rgba(30, 58, 138, 0.12);
}

.timeline-event:nth-child(3n) {
    --timeline-card-accent: var(--dutch-orange);
    --timeline-card-accent-soft: rgba(255, 107, 53, 0.12);
}

.timeline-event:nth-child(4n) {
    --timeline-card-accent: var(--asante-brown);
    --timeline-card-accent-soft: rgba(139, 69, 19, 0.12);
}

.timeline-event:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--asante-gold);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--asante-gold-light);
    z-index: 1;
    top: 0;
}

.timeline-marker.golden {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--asante-gold-light), var(--asante-gold-dark));
    box-shadow: 0 0 0 4px var(--asante-gold-light), 0 0 20px rgba(200, 168, 100, 0.5);
}

.timeline-marker.dutch {
    background: var(--dutch-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
}

.timeline-marker.war {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
}

.timeline-content {
    background: linear-gradient(135deg, var(--timeline-card-accent-soft), #ffffff 55%);
    padding: 2.6rem 2rem 2rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-left: 5px solid var(--timeline-card-accent);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--timeline-card-accent), transparent);
    opacity: 0.9;
}

.timeline-badge {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    background: var(--timeline-card-accent);
}

.timeline-badge.era-ancient {
    background: linear-gradient(135deg, var(--asante-brown-600), var(--asante-brown-400));
}

.timeline-badge.era-foundation {
    background: linear-gradient(135deg, var(--asante-gold-800), var(--asante-gold-500));
}

.timeline-badge.era-european {
    background: linear-gradient(135deg, var(--dutch-orange-700), var(--dutch-orange-400));
}

.timeline-badge.era-wars {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.timeline-badge.era-colonial {
    background: linear-gradient(135deg, var(--earth-tone-700), var(--earth-tone-400));
}

.timeline-badge.era-modern {
    background: linear-gradient(135deg, var(--royal-blue-800), var(--royal-blue-500));
}

.timeline-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.timeline-card-link:focus-visible {
    outline: 3px solid rgba(200, 168, 100, 0.45);
    outline-offset: 6px;
    border-radius: 14px;
}

.timeline-card-link:hover .timeline-content,
.timeline-card-link:focus-visible .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.timeline-event:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--timeline-card-accent);
}

.timeline-content.highlight {
    background: linear-gradient(135deg, rgba(200, 168, 100, 0.12), #ffffff 60%);
    border-left-width: 6px;
    border-left-color: var(--asante-gold);
    box-shadow: 0 10px 26px rgba(200, 168, 100, 0.2);
}

.timeline-event:nth-child(even) .timeline-content.highlight {
    border-right-width: 6px;
    border-right-color: var(--asante-gold);
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--timeline-card-accent);
    margin-bottom: 0.5rem;
}

.timeline-content.highlight .timeline-date {
    color: var(--asante-gold-800);
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.timeline-significance {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--asante-gold);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.timeline-significance i {
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-event,
    .timeline-event:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 30px;
        transform: none;
    }
    
    .timeline-content,
    .timeline-event:nth-child(even) .timeline-content {
        border-left: 4px solid var(--asante-gold-light);
        border-right: none;
    }
    
    .timeline-content.highlight,
    .timeline-event:nth-child(even) .timeline-content.highlight {
        border-left-width: 6px;
        border-right-width: 0;
    }
}

@media (max-width: 768px) {
    
    .timeline-era {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-date {
        font-size: 1.2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
}

/* ====================================
   FIGURES PAGE STYLING
   ==================================== */

.key-figures-page .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--asante-gold-dark);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 6px solid var(--asante-gold);
}

.key-figures-page .section-title i {
    margin-right: 0.5rem;
    color: var(--asante-gold);
}

.figure-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #f3f4f6;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.figure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--asante-gold-light);
}

.figure-card.featured {
    border: 3px solid var(--asante-gold);
}

.figure-card.warrior {
    border-top: 6px solid #dc2626;
}

.figure-card.modern {
    border-top: 6px solid var(--royal-blue);
}

.figure-header {
    background: linear-gradient(135deg, rgba(200, 168, 100, 0.1), rgba(200, 168, 100, 0.05));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--asante-gold-light);
}

.figure-icon {
    width: 60px;
    height: 60px;
    background: var(--asante-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.figure-icon.spiritual {
    background: linear-gradient(135deg, var(--asante-gold), var(--asante-gold-dark));
}

.figure-icon.warrior {
    background: #dc2626;
}

.figure-icon.dutch {
    background: var(--dutch-orange);
}

.figure-icon.modern {
    background: var(--royal-blue);
}

.figure-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.figure-dates {
    color: #6b7280;
    font-size: 0.95rem;
    font-style: italic;
}

.figure-body {
    padding: 1.5rem;
}

.figure-title {
    color: var(--asante-gold-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.figure-body > p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.achievements h5,
.legacy-box h5 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.achievements ul,
.legacy-box ul {
    list-style: none;
    padding-left: 0;
}

.achievements li,
.legacy-box li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: #4b5563;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--asante-gold);
    font-weight: bold;
}

.legacy {
   background: rgba(200, 168, 100, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.legacy strong {
    color: var(--asante-gold-dark);
}

.legend-note {
    background: linear-gradient(135deg, rgba(200, 168, 100, 0.15), rgba(200, 168, 100, 0.05));
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
    color: #2d2416;
}

.legend-note i {
    color: var(--asante-gold);
    margin-right: 0.5rem;
}

.hero-quote {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 4px;
    font-style: italic;
}

.hero-quote p {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-quote footer {
    color: #6b7280;
    font-size: 0.9rem;
}

.legacy-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--dutch-orange);
}

.legacy-box ul li::before {
    content: '●';
    color: var(--dutch-orange);
}

@media (max-width: 768px) {
    
    .key-figures-page .section-title {
        font-size: 1.5rem;
    }
    
    .figure-header h3 {
        font-size: 1.2rem;
    }
}

/* ====================================
   ARTICLE PAGES STYLING
   ==================================== */

/* Category Hero Section */

/* Empty Category State */
.empty-category-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px dashed #dee2e6;
}

.empty-category-state .empty-icon {
    animation: floatEmpty 3s ease-in-out infinite;
}

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

/* Article Admin Page */
.article-admin .grid-view td {
    vertical-align: middle;
}

.article-admin .action-column {
    white-space: nowrap;
}

/* Article Form Page */
.article-form .card {
    border: 1px solid #dee2e6;
}

.article-form .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Article Index Page */
/* Articles Hero Section */

/* Section Headers */
.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth-tone);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--asante-gold), var(--asante-gold-dark));
    border-radius: 2px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Categories Section */
.categories-section {
    background: #fff;
}

/* Category Cards Modern Design */
.category-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.category-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--asante-gold), var(--asante-gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-link:hover .category-card-modern {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--asante-gold-light);
}

.category-link:hover .category-card-modern::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3rem;
    color: var(--asante-gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.category-link:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--earth-tone);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.category-link:hover .category-name {
    color: var(--asante-gold-dark);
}

.category-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.article-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--asante-gold-dark);
    display: flex;
    align-items: center;
}

.arrow-icon {
    font-size: 1.5rem;
    color: var(--asante-gold);
    transition: transform 0.3s ease;
}

.category-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* Latest Articles Section */
.latest-articles-section {
    background: #f8f9fa;
}

/* Old category card - keep for backward compatibility */
.category-card {
    border: 1px solid #dee2e6;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive Design for Articles Page */
@media (max-width: 768px) {
        .section-header .section-title {
        font-size: 1.8rem;
    }
    
    .category-card-modern {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-name {
        font-size: 1.2rem;
    }
}

/* Article View Page */
.article-view .article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-view .article-content h1,
.article-view .article-content h2,
.article-view .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-view .article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.article-view .article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-view .article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
    letter-spacing: 0.3px;
}

.article-view .article-content p {
    margin-bottom: 2rem;
    text-align: justify;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.article-view .article-content p:first-letter {
    font-weight: 600;
}

.article-view .article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.article-view .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    border-left: 4px solid #d4af37;
    padding-left: 1rem;
}

.article-view .article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
}

.article-view .article-content ul,
.article-view .article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-view .article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-view .article-content blockquote {
    border-left: 4px solid #d4af37;
    padding: 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    background: #f9f7f2;
    border-radius: 0.25rem;
}

.article-featured-img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.article-placeholder-image {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-placeholder-content {
    text-align: center;
    color: white;
}

.article-placeholder-icon-lg {
    font-size: 3rem;
    opacity: 0.6;
}

.article-placeholder-text {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.themed-summary-card {
    border-color: #d4af37 !important;
    background: linear-gradient(135deg, #f8f5f0 0%, #fff5e6 100%);
}

.summary-icon {
    font-size: 1.5rem;
    color: #d4af37;
}

.summary-title {
    color: #2c3e50;
}

.summary-text {
    font-size: 1rem;
}

.summary-category-badge,
.bg-gold {
    background-color: #d4af37 !important;
    color: #333;
}

.key-insights-section {
    background: #f0f8ff;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

.key-insights-title {
    color: #2c3e50;
}

.insight-item-card {
    background: white;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

.insight-quote {
    font-style: italic;
    color: #555;
    border: none;
    padding: 0;
    margin: 0;
}

.cultural-multimedia-section {
    background: #fff8f0;
    border-radius: 8px;
}

.multimedia-card-framed {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.multimedia-card-framed:hover {
    transform: translateY(-4px);
}

.multimedia-video {
    background: #333;
}

.multimedia-icon {
    color: #d4af37;
}

.author-avatar {
    width: 60px;
    height: 60px;
}

.related-articles .card-img-top {
    height: 150px;
    object-fit: cover;
}

/* Article Item Partial */
.article-item .card {
    border: 1px solid #dee2e6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-item .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.article-gallery-item {
    margin: 0;
}

.article-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-placeholder {
    height: 200px;
}

.article-placeholder-icon {
    font-size: 4rem;
}

.empty-category-icon {
    font-size: 4rem;
    color: #6c757d;
}

.empty-category-title {
    color: #495057;
}

.login-test-accounts {
    color: #999;
}

/* OAuth Login Page */
.login-page {
    padding-bottom: 3rem;
}

.login-card {
    border-radius: 18px;
    border: 1px solid #efe7d6;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border-top: 4px solid var(--asante-gold);
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-alert {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--earth-tone);
}

.login-brand-icon {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--asante-gold-700);
}

.login-brand-divider {
    width: 36px;
    height: 2px;
    background: var(--asante-gold);
    display: inline-block;
}

.login-brand-name {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.login-description {
    text-align: center;
    font-weight: 600;
    color: var(--earth-tone);
    margin-bottom: 1rem;
}

.social-login .auth-clients {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 1.25rem;
    list-style: none;
}

.social-login .auth-clients li {
    margin: 0;
}

.social-login .auth-clients a {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f6f0 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-login .auth-clients a:hover {
    transform: translateY(-2px);
    border-color: var(--asante-gold-300);
    box-shadow: 0 10px 20px rgba(200, 168, 100, 0.2);
}

.social-login .auth-clients img {
    width: 26px;
    height: 26px;
}

.login-info-card {
    border-radius: 18px;
    border: 1px solid #f1e6cf;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
    border-top: 4px solid var(--asante-gold-200);
}

.login-info-card .card-body {
    padding: 2rem;
}

.login-info-title {
    font-weight: 700;
    color: var(--earth-tone);
    margin-bottom: 1rem;
}

.login-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.login-info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-neutral-600);
}

.login-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--asante-gold-600);
    font-weight: 700;
}

.login-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-neutral-500);
}

@media (max-width: 768px) {

    .login-card .card-body {
        padding: 2rem;
    }

    .login-info-card .card-body {
        padding: 1.5rem;
    }
}

.profile-avatar-img {
    max-width: 150px;
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    background-color: #6c757d;
    color: white;
    font-size: 3rem;
}

.profile-label-col {
    width: 200px;
}

.sankofa-icon {
    width: 200px;
    height: 200px;
    opacity: 0.8;
}

.bulk-actions-card.is-hidden,
.poll-result.is-hidden,
.is-hidden {
    display: none;
}

.comment-select-col {
    width: 30px;
}

/* Error Page */
.site-error {
    min-height: 600px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff9f0 100%);
}

.error-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.error-header {
    text-align: center;
    margin-bottom: 50px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 600;
}

.error-message {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.error-decoration {
    text-align: center;
    margin: 30px 0;
    font-size: 3rem;
    opacity: 0.6;
}

.action-buttons {
    text-align: center;
    margin: 40px 0;
}

.btn-home {
    background-color: #d4af37;
    color: #2c3e50;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    margin: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
}

.btn-home:hover {
    background-color: transparent;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.suggestions-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #d4af37;
}

.suggestions-title {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

.suggestions-title:before {
    content: '✦ ';
    color: #d4af37;
    margin-right: 10px;
}

.suggestions-title:after {
    content: ' ✦';
    color: #d4af37;
    margin-left: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.category-link {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 500;
}

.articles-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border-left: 4px solid #d4af37;
}

.articles-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-link {
    display: block;
    color: #555;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.article-link:hover {
    color: #d4af37;
    text-decoration: none;
    transform: translateX(5px);
}

.asante-symbol {
    color: #d4af37;
    margin-right: 8px;
}

.error-help-section {
    margin-top: 30px;
    background: #f0f8ff;
    border-left-color: #d4af37;
}

.error-help-text {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.error-help-symbol {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-container {
        padding: 20px;
    }
}

/* ====================================
   PROFILE PAGE STYLING
   ==================================== */
.avatar-placeholder {
    font-weight: bold;
}

/* ====================================
   BREADCRUMB STYLING
   ==================================== */
.breadcrumb-custom {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.25rem;
    box-shadow: none;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-custom .breadcrumb-item {
    color: var(--color-neutral-500);
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "•";
    color: var(--color-neutral-400);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0 0.5rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--asante-gold-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--asante-gold-800);
    text-decoration: underline;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--earth-tone);
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumb-custom {
        font-size: 0.8rem;
    }
}

/* ====================================
   CONTACT PAGE STYLING
   ==================================== */
.contact-page {
    padding-bottom: 3rem;
}

.contact-section {
    padding-bottom: 2rem;
}

.contact-form-card,
.contact-info-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-form-card .card-body,
.contact-info-card .card-body {
    padding: 2rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.contact-info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.contact-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--asante-gold);
    font-weight: 700;
}

.contact-help .btn {
    border-radius: 999px;
}

.contact-alert {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {

    .contact-form-card .card-body,
    .contact-info-card .card-body {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE / PWA STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Bottom navigation bar ───────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--bs-dark, #1a1a1a);
    border-top: 1px solid rgba(200, 168, 100, 0.25);
    padding: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
    /* Safe area inset for notched phones */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.25rem 0.45rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.2rem;
    display: block;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--asante-gold, #C8A864);
}

/* Add padding to body so content isn't hidden behind bottom nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── PWA install banner ───────────────────────────────────────────────────── */
/* Pinned to the bottom of the viewport as a dismissible bar. It used to sit in normal
   flow at the very top of <body>, where the position:fixed navbar (z-index 1030) rendered
   on top of it — invisible and unclickable — while it still pushed the whole page down
   ~49px. Fixed positioning here means it never pushes content, and the bottom placement
   avoids coupling to the variable navbar height. On mobile it clears the fixed bottom-nav;
   on desktop (no bottom-nav) it sits at the very bottom. */
.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #f0ede4;
    border-top: 2px solid var(--asante-gold, #C8A864);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 991.98px) {
    /* Sit just above the fixed bottom-nav (~59px) so both stay visible and tappable.
       The bottom-nav already carries the safe-area inset, so drop it here. */
    .pwa-install-banner {
        bottom: 59px;
        padding-bottom: 0;
    }
}

/* ── Newsletter strip in footer ──────────────────────────────────────────── */
.newsletter-strip {
    background: rgba(200, 168, 100, 0.06);
}

.newsletter-form {
    max-width: 440px;
}

@media (max-width: 767.98px) {
    .newsletter-form {
        max-width: 100%;
    }
}

/* ── Mobile hero adjustments ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .page-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }
}

/* ── Card touch feedback ──────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .btn:active {
        transform: scale(0.96);
    }
}

/* ── Sticky navbar + top padding for fixed-top bar ──────────────────────── */
/* The fixed navbar is cleared once, by `.wrap > .container { padding-top }`, at every
   width. A second `.wrap { padding-top: 60px }` here stacked on top of that below 992px,
   so mobile pages opened with ~60px of dead space above the hero. Removed — the container
   padding is the single source of the offset. */

/* ── Push notification button ────────────────────────────────────────────── */
#push-subscribe-btn {
    font-size: 0.85rem;
}

/* ======================================
   INTERACTIVE TIMELINE FILTER BAR
   ====================================== */
.timeline-filter-bar {
    background: var(--asante-dark, #1a1a1a);
    border-bottom: 2px solid var(--asante-gold, #C8A864);
    padding: 1rem 0;
    position: sticky;
    top: 56px; /* below fixed navbar */
    z-index: 100;
}

.timeline-filter-btn {
    background: transparent;
    border: 1px solid rgba(200, 168, 100, 0.4);
    color: rgba(255,255,255,0.75);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.timeline-filter-btn:hover {
    border-color: var(--asante-gold, #C8A864);
    color: #fff;
}
.timeline-filter-btn.active {
    background: var(--asante-gold, #C8A864);
    border-color: var(--asante-gold, #C8A864);
    color: #1a1a1a;
    font-weight: 600;
}

.timeline-filter-bar .input-group .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(200,168,100,0.35);
    color: #fff;
    font-size: 0.85rem;
}
.timeline-filter-bar .input-group .form-control::placeholder { color: rgba(255,255,255,0.45); }
.timeline-filter-bar .input-group .form-control:focus {
    background: rgba(255,255,255,0.12);
    box-shadow: none;
    border-color: var(--asante-gold, #C8A864);
    color: #fff;
}
.timeline-filter-bar .input-group-text,
.timeline-filter-bar .btn-outline-secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(200,168,100,0.35);
    color: rgba(255,255,255,0.6);
}
.timeline-filter-bar .text-muted { color: rgba(255,255,255,0.5) !important; }
.timeline-filter-bar strong { color: var(--asante-gold, #C8A864); }

/* ======================================
   PHOTO ARCHIVE
   ====================================== */

.photo-filters {
    background: var(--asante-gold-50, #F9F6F0);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--asante-gold-200, #E5D4A6);
}

.photo-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    height: 100%;
}
.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.photo-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }

.photo-thumb-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}
.photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.photo-card:hover .photo-thumb { transform: scale(1.04); }

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.photo-overlay {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

.photo-card-body {
    padding: 0.65rem 0.75rem;
}
.photo-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.photo-view-image-wrap img {
    max-height: 550px;
    width: 100%;
    object-fit: contain;
    background: #000;
}


/* ======================================
   SHORT-PAGE LAYOUT — compact hero + slim footer
   ======================================
   Pages that are just a hero plus one card (Login, Donation, the legal pages, the error
   and offline pages) were overflowing the fold by a small margin, which costs a scroll
   for no content. Trimming padding alone was not enough — Login measured hero 296 +
   card + footer 158 against an 889px viewport — so short pages opt into a shorter hero
   and a condensed footer via .page-short on <body>.

   Long pages (Home, Articles, Article detail, Timeline, Key Figures, Photo Archive,
   Video Gallery, About) deliberately do NOT use this: they scroll normally.
*/
.page-short .page-hero,
.page-short .hero-section {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.25rem;
}

.page-short .hero-title,
.page-short h1.hero-title {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.page-short .hero-subtitle {
    margin-bottom: 0;
    font-size: 1rem;
}

.page-short .wrap > .container {
    padding-bottom: 0.75rem;
}

.page-short .footer {
    padding: 0.75rem 0 0.35rem;
}

.page-short .newsletter-strip {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.page-short .footer .container.py-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* ======================================
   SHARED PAGE HERO (A3)
   ======================================
   One treatment for top-level pages: full-bleed dark band, gold rule, centred content.
   The homepage keeps its boxed variant deliberately. Rendered by views/layouts/_hero.php
   so new pages stop hand-rolling their own hero markup and drifting apart.
*/
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;

    /* Full-bleed. The partial renders inside .wrap > .container (max-width 1320px), so
       without breaking out the band would sit inset with margins either side and read as
       a boxed panel — the Home treatment, which is kept deliberately distinct. */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
}

.page-hero .hero-title {
    color: var(--asante-gold-200, #E5D4A6);
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 46rem;
    margin-inline: auto;
}

/* Theme CTA. The donation buttons used Bootstrap's default btn-primary blue, which
   clashes with the gold/brown palette used everywhere else on the site. */
.btn-gold {
    background: var(--asante-gold, #C8A864);
    border: 1px solid var(--asante-gold, #C8A864);
    color: #1a1a1a;
    font-weight: 600;
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--asante-gold-200, #E5D4A6);
    border-color: var(--asante-gold-200, #E5D4A6);
    color: #1a1a1a;
}

.btn-gold:focus-visible {
    outline: 3px solid var(--asante-gold-200, #E5D4A6);
    outline-offset: 2px;
}

/* Contact sidebar follows the scroll instead of leaving ~900px of dead space beside the
   form. 90px clears the fixed-top navbar. Only above lg, where the columns sit side by
   side; stacked on smaller screens sticky would just be in the way. */
@media (min-width: 992px) {
    .contact-info-sticky {
        position: sticky;
        top: 90px;
    }
}

/* Figure portrait, used where an authentic openly-licensed likeness exists. Matches the
   footprint of .figure-icon so cards with and without a portrait line up. */
.figure-portrait {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--asante-gold, #C8A864);
    background: var(--asante-gold-50, #F9F6F0);
}

.figure-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ======================================================================
   MOBILE SPACING RHYTHM
   ======================================================================
   The layouts lean on Bootstrap's largest spacing utilities — py-5, my-5,
   mt-5, mb-5, p-5, p-4 (3rem / 1.5rem) — applied at every width. None were
   reduced for small screens, so a phone stacked four py-5 sections plus
   my-5 gaps into screens of dead vertical space (the homepage measured
   ~5850px tall at 590px wide). Bootstrap's own utilities are !important, and
   site.css loads after bootstrap.css, so equal-specificity !important rules
   here win by source order.

   Scope: <= 767.98px only. Desktop rhythm is deliberately untouched.
   ====================================================================== */
@media (max-width: 767.98px) {
    /* Section vertical padding: 3rem -> 1.5rem */
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .pt-5 { padding-top: 1.5rem !important; }
    .pb-5 { padding-bottom: 1.5rem !important; }

    /* Block padding on cards / callouts */
    .p-5 { padding: 1.5rem !important; }
    .p-4 { padding: 1.25rem !important; }

    /* Section vertical margins: 3rem -> 1.5rem */
    .my-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .mt-5 { margin-top: 1.5rem !important; }
    .mb-5 { margin-bottom: 1.5rem !important; }

    /* Card grid gaps: 1.5rem -> 1rem when cards are stacked single-column */
    .row.g-4 { --bs-gutter-y: 1rem; }

    /* Content sits under the fixed navbar (66px); 70px left a visible gap */
    .wrap > .container { padding-top: 66px; }

    /* Section headings carried 3rem+ of margin of their own */
    .section-header { margin-bottom: 1.5rem !important; }

    /* Homepage hero: 500px on a phone is more than half the fold before any
       content. The page-hero partial is already trimmed separately above. */
    .hero-section {
        min-height: 360px;
        margin-bottom: 1.5rem;
    }
}
