/* ═══════════════════════════════════════════════════════════════════════════
   NENO TIME — Premium Design System  v6.0
   Theme : Deep Navy + Steel-Teal Blue + Amber Gold (from logo)
   Accent: Sacred Amber Gold — brand identity
   Fonts : Outfit (UI) + Playfair Display (headings) — loaded via HTML preconnect
   ═══════════════════════════════════════════════════════════════════════════ */
/* Note: Google Fonts loaded via non-blocking <link> in header.php for performance */

/* ─── DARK MODE (default) ────────────────────────────────────────────────────
   Base: Deep navy #0F1623  /  Surface: #17202F  /  Elevated: #1E2A3F
   Text: Bright white #F0F4FF  /  Muted: #8B9AB5  /  Dim: #566079
   Contrast ratio text/bg: ≈ 14:1 (WCAG AAA)
   ─────────────────────────────────────────────────────────────────────────── */
:root, [data-theme="light"], body.theme-light {
    /* LIGHT MODE (Default — Warm Soft Parchment Paper) */
    --bg-main:     #F5F0E8;          /* Soft Warm Parchment */
    --bg-surface:  #FFFFFF;          /* Pure White Card Surface */
    --bg-elevated: #EAE2D5;          /* Warm Tan Surface */
    --bg-glass:    rgba(245, 240, 232, 0.95);
    --bg-glass-lt: rgba(255, 255, 255, 0.92);

    --gold-100: #101A2D;
    --gold-300: #936C22;
    --gold-500: #B08630;
    --gold-700: #85611B;
    --primary:       #B08630;
    --primary-glow:  rgba(176, 134, 48, 0.2);
    --primary-glow2: rgba(176, 134, 48, 0.08);
    --secondary:     #85611B;

    --border-glass:       rgba(30, 22, 10, 0.12);
    --border-glass-hover: rgba(176, 134, 48, 0.6);
    --border-subtle:      rgba(30, 22, 10, 0.08);

    --text-main:   #1E1B18;          /* Rich Dark Espresso Black (100% visible) */
    --text-muted:  #5C5245;          /* Rich Dark Brown Subtitle Text */
    --text-dim:    #7A6F60;          /* Dim Label Text */
    
    --teal-500: #0284C7;
    --teal-400: #0369A1;
    --teal-700: #075985;
    --teal-glow: rgba(2, 132, 199, 0.15);

    --success:     #059669;
    --danger:      #DC2626;
    --warning:     #D97706;
    --info:        #0284C7;

    --card-shadow:       0 8px 30px rgba(30, 22, 10, 0.08);
    --card-shadow-hover: 0 16px 40px rgba(30, 22, 10, 0.12);

    --bg-footer: #E6DEC3;

    --bg-item:            rgba(30, 22, 10, 0.03);
    --bg-hover:           rgba(30, 22, 10, 0.06);
    --bg-table-row:       rgba(30, 22, 10, 0.02);
    --bg-table-row-hover: rgba(30, 22, 10, 0.04);

    --font-sans:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color-scheme: light;
}

[data-theme="dark"], body.theme-dark {
    /* DARK MODE */
    --bg-main:     #0F172A;          /* Rich Midnight Slate */
    --bg-surface:  #1E293B;          /* Dark Navy Card Surface */
    --bg-elevated: #334155;          /* Muted Elevated Surface */
    --bg-glass:    rgba(15, 23, 42, 0.92);
    --bg-glass-lt: rgba(30, 41, 59, 0.85);

    --gold-100: #FFF3D6;
    --gold-300: #FACC15;
    --gold-500: #CD9A3A;             /* Core Logo Gold */
    --gold-700: #B08630;
    --primary:       #CD9A3A;
    --primary-glow:  rgba(205, 154, 58, 0.2);
    --primary-glow2: rgba(205, 154, 58, 0.08);
    --secondary:     #936C22;

    --border-glass:       rgba(255, 255, 255, 0.12);
    --border-glass-hover: rgba(205, 154, 58, 0.6);
    --border-subtle:      rgba(255, 255, 255, 0.08);

    --text-main:   #F8FAFC;          /* Crisp Bright White */
    --text-muted:  #94A3B8;          /* Soft Blue-Gray Muted Text */
    --text-dim:    #64748B;          /* Dim Gray */
    
    --teal-500: #38BDF8;
    --teal-400: #0284C7;
    --teal-700: #0369A1;
    --teal-glow: rgba(56, 189, 248, 0.15);

    --success:     #10B981;
    --danger:      #EF4444;
    --warning:     #F59E0B;
    --info:        #38BDF8;

    --card-shadow:       0 8px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 16px rgba(205, 154, 58, 0.15);

    --bg-footer: #090D16;

    --bg-item:            rgba(255, 255, 255, 0.04);
    --bg-hover:           rgba(255, 255, 255, 0.08);
    --bg-table-row:       rgba(255, 255, 255, 0.02);
    --bg-table-row-hover: rgba(255, 255, 255, 0.05);

    color-scheme: dark;
}

/* Light Mode Contrast Hardening Overrides — Ensures 0 Invisible Text */
body.theme-light .glass-card,
body.theme-light .card,
body.theme-light .modal-content,
body.theme-light .dropdown-menu {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-color: var(--border-glass) !important;
    box-shadow: 0 10px 30px rgba(30, 22, 10, 0.08) !important;
}

body.theme-light .text-white,
body.theme-light .text-light,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6,
body.theme-light .nav-link,
body.theme-light .dropdown-item,
body.theme-light .post-body,
body.theme-light .post-body p,
body.theme-light .post-body li {
    color: var(--text-main) !important;
}

body.theme-light .text-muted {
    color: var(--text-muted) !important;
}

body.theme-light .btn-glass-secondary {
    background: rgba(30, 22, 10, 0.05) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(30, 22, 10, 0.12) !important;
}

body.theme-light .btn-glass-secondary:hover {
    background: rgba(30, 22, 10, 0.1) !important;
}

body.theme-light .form-control,
body.theme-light .form-select {
    background-color: #FFFFFF !important;
    color: #1E1B18 !important;
    border-color: rgba(30, 22, 10, 0.2) !important;
}

body.theme-light .form-control::placeholder {
    color: #8A7E6E !important;
}

/* Dark Mode Contrast Hardening Overrides — Ensures 100% Text Legibility & High Contrast */
body.theme-dark,
[data-theme="dark"] {
    color: var(--text-main);
}

body.theme-dark .glass-card,
body.theme-dark .card,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .offcanvas,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .offcanvas {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-color: var(--border-glass) !important;
}

body.theme-dark .text-muted,
body.theme-dark .text-secondary,
body.theme-dark .text-black-50,
body.theme-dark .text-body-secondary,
body.theme-dark .text-body-tertiary,
body.theme-dark .form-text,
body.theme-dark .card-subtitle,
body.theme-dark .stat-label,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-black-50,
[data-theme="dark"] .text-body-secondary,
[data-theme="dark"] .text-body-tertiary,
[data-theme="dark"] .form-text,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .stat-label {
    color: var(--text-muted) !important; /* #94A3B8 — soft blue-gray on dark bg */
}

/* Ensure .text-dark turns white in dark mode, EXCEPT inside yellow/light badges or buttons */
body.theme-dark .text-dark:not(.btn-warning):not(.badge-warning):not(.bg-warning):not(.bg-warning *):not(.badge.bg-warning *):not(.btn.btn-warning *):not(.badge.bg-light *):not(.btn-info *):not(.badge.bg-info *),
[data-theme="dark"] .text-dark:not(.btn-warning):not(.badge-warning):not(.bg-warning):not(.bg-warning *):not(.badge.bg-warning *):not(.btn.btn-warning *):not(.badge.bg-light *):not(.btn-info *):not(.badge.bg-info *) {
    color: var(--text-main) !important;
}

body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6,
body.theme-dark .h1, body.theme-dark .h2, body.theme-dark .h3,
body.theme-dark .h4, body.theme-dark .h5, body.theme-dark .h6,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3,
[data-theme="dark"] .h4, [data-theme="dark"] .h5, [data-theme="dark"] .h6 {
    color: var(--text-main);
}

body.theme-dark .table,
body.theme-dark .table > :not(caption) > * > *,
[data-theme="dark"] .table,
[data-theme="dark"] .table > :not(caption) > * > * {
    color: var(--text-main) !important;
    border-color: var(--border-subtle) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-table-row) !important;
    color: var(--text-main) !important;
}

body.theme-dark .table-hover > tbody > tr:hover > *,
[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: var(--bg-table-row-hover) !important;
    color: var(--text-main) !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .input-group-text,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-color: var(--border-glass) !important;
}

body.theme-dark .form-control::placeholder,
body.theme-dark .form-select::placeholder,
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

body.theme-dark .dropdown-item,
[data-theme="dark"] .dropdown-item {
    color: var(--text-main) !important;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus,
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-hover) !important;
    color: var(--primary) !important;
}

body.theme-dark .list-group-item,
[data-theme="dark"] .list-group-item {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-subtle) !important;
}

body.theme-dark .breadcrumb-item,
body.theme-dark .breadcrumb-item a,
[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item a {
    color: var(--text-muted) !important;
}

body.theme-dark .breadcrumb-item.active,
[data-theme="dark"] .breadcrumb-item.active {
    color: var(--primary) !important;
}

body.theme-dark .pagination .page-link,
[data-theme="dark"] .pagination .page-link {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-color: var(--border-glass) !important;
}

body.theme-dark .pagination .page-item.active .page-link,
[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--primary) !important;
    color: #0F172A !important;
    border-color: var(--primary) !important;
}

body.theme-dark .accordion-item,
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-glass) !important;
    color: var(--text-main) !important;
}

body.theme-dark .accordion-button,
[data-theme="dark"] .accordion-button {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
}

body.theme-dark .accordion-button:not(.collapsed),
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--bg-elevated) !important;
    color: var(--primary) !important;
}




/* ─── Base Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle radial glow behind content */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(205,154,58,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 35% at 90% 105%, rgba(43,95,123,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR / HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: 70px;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar-custom.scrolled {
    background: var(--bg-main);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ── Brand / Logo ─────────────────────────────────────────────────────── */

@keyframes logo-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(205,154,58,0.55), 0 0 18px rgba(205,154,58,0.25); }
    50%       { box-shadow: 0 0 0 3px rgba(205,154,58,0.85), 0 0 32px rgba(205,154,58,0.45); }
}
@keyframes logo-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 3px 10px 3px 3px;
    border-radius: 40px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.navbar-brand-custom:hover {
    background: rgba(205,154,58,0.08);
    transform: translateY(-1px);
}

/* ── Circular logo frame (navbar) ── */
.logo-frame {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #CD9A3A, #8B6914, #F5C842, #CD9A3A);
    background-size: 200% 200%;
    padding: 2.5px;
    animation: logo-glow-pulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.navbar-brand-custom:hover .logo-frame {
    transform: rotate(4deg) scale(1.07);
}
.logo-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}
.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: 50%;
    transition: transform 0.35s ease;
    background: none;
    padding: 0;
    box-shadow: none;
}
.navbar-brand-custom:hover .navbar-logo-img {
    transform: scale(1.1);
}

/* ── Brand text beside logo ── */
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-name {
    font-family: var(--font-display, 'Georgia', serif);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #F5C842 0%, #CD9A3A 50%, #F5C842 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.4s ease;
    white-space: nowrap;
}
.navbar-brand-custom:hover .brand-name {
    background-position: right center;
}
.brand-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim, #7A8BA6);
    white-space: nowrap;
    font-weight: 600;
}

/* ── Footer logo ── */
.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo-frame {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #CD9A3A, #8B6914, #F5C842, #CD9A3A);
    padding: 2.5px;
    box-shadow: 0 0 0 3px rgba(205,154,58,0.3), 0 8px 24px rgba(205,154,58,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-logo-wrap:hover .footer-logo-frame {
    transform: scale(1.07);
    box-shadow: 0 0 0 4px rgba(205,154,58,0.65), 0 12px 32px rgba(205,154,58,0.35);
}
.footer-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}
.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: 50%;
    background: none;
    padding: 0;
    transition: transform 0.35s ease;
}
.footer-logo-wrap:hover .footer-logo-img {
    transform: scale(1.08);
}
.footer-brand-name {
    font-family: var(--font-display, 'Georgia', serif);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #F5C842, #CD9A3A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: block;
}
.footer-brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim, #7A8BA6);
    white-space: nowrap;
    font-weight: 600;
}

/* Pulsing gold dot (kept for other uses) */
.brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-dot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px var(--primary); opacity: 1; }
    50%       { box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(205,154,58,0.3); opacity: 0.7; }
}


/* Hamburger */
.navbar-toggler {
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.4rem 0.65rem;
    background: var(--bg-glass-lt);
    transition: all 0.2s;
}
.navbar-toggler:hover { border-color: var(--primary); }
.navbar-toggler-icon { font-size: 1.4rem; }

/* Nav links */
.navbar-custom .nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
    position: relative;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: left 0.25s, right 0.25s;
    opacity: 0;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { left: 12%; right: 12%; opacity: 1; }
.navbar-custom .nav-link:hover { color: var(--primary) !important; }
.navbar-custom .nav-link.active { color: var(--primary) !important; font-weight: 600; }

/* Luxury Sacred Gold Donate CTA button in nav */
.donate-nav-btn {
    background: linear-gradient(135deg, #F3C973 0%, #CD9A3A 50%, #B08630 100%) !important;
    color: #1E1200 !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 3px 14px rgba(205, 154, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.02em;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    min-height: 38px;
}
.donate-nav-btn i {
    color: #85530B !important;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}
.donate-nav-btn:hover {
    background: linear-gradient(135deg, #FCE09B 0%, #E2B258 50%, #CD9A3A 100%) !important;
    color: #0A0600 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(205, 154, 58, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.donate-nav-btn:hover i {
    transform: scale(1.18);
}

/* Glass-secondary buttons (lang switcher, login) */
.btn-glass-secondary {
    background: var(--bg-glass-lt);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.44rem 0.95rem;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.btn-glass-secondary:hover {
    background: rgba(205,154,58,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Dropdown menu */
.dropdown-menu.bg-dark {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(16, 26, 45, 0.15) !important;
    padding: 0.4rem !important;
    min-width: 160px;
}
.dropdown-menu .dropdown-item {
    color: var(--text-main) !important;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu .dropdown-item:hover {
    background: rgba(205,154,58,0.1) !important;
    color: var(--primary) !important;
}
.dropdown-divider { border-color: var(--border-glass) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SLIDESHOW
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
    background-color: #07090E;
}

/* Hero background image with luminous radial aura */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(255, 225, 150, 0.38) 0%, rgba(205, 154, 58, 0.18) 35%, rgba(10, 12, 18, 0.4) 68%, rgba(5, 6, 10, 0.75) 100%);
}

.hero-bg-overlay-linear {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.05) 0%, rgba(5, 6, 10, 0.2) 60%, rgba(5, 6, 10, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Animated shimmer line */
.hero-shimmer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #F5C842 50%, transparent 100%);
    animation: shimmer-line 3s ease-in-out infinite;
    z-index: 6;
}
@keyframes shimmer-line {
    0%   { opacity: 0.4; transform: scaleX(0.6); }
    50%  { opacity: 1;   transform: scaleX(1); }
    100% { opacity: 0.4; transform: scaleX(0.6); }
}

/* Floating gold particles */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: float-particle linear infinite;
    pointer-events: none;
}
@keyframes float-particle {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    20%  { opacity: 0.6; }
    80%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-200px) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 860px;
    width: 100%;
    padding: 4.5rem 1.5rem 3.5rem;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFE5A3 !important;
    background: rgba(205, 154, 58, 0.22) !important;
    border: 1px solid rgba(245, 200, 66, 0.5) !important;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: #FFFFFF !important;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
    min-height: clamp(80px, 10vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}
.hero-title .gold-word {
    background: linear-gradient(135deg, #FFE8A3 0%, #F5C842 50%, #CD9A3A 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 8px rgba(205, 154, 58, 0.4));
}

.typing-cursor {
    display: inline-block;
    width: 3.5px;
    height: 0.85em;
    background: linear-gradient(180deg, #FFE8A3, #F5C842);
    box-shadow: 0 0 14px rgba(245, 200, 66, 1);
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 2px;
    animation: blink 0.75s step-end infinite;
}
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    color: #F3EDE2 !important;
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    max-width: 650px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-subtitle strong {
    color: #F5C842 !important;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-group .btn-neon {
    background: linear-gradient(135deg, #F5C842 0%, #CD9A3A 50%, #B4781E 100%) !important;
    color: #0A0600 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(205, 154, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    border-radius: 50px !important;
}
.hero-cta-group .btn-neon:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(205, 154, 58, 0.65) !important;
    color: #000000 !important;
}

.hero-cta-group .btn-ghost-gold {
    background: rgba(10, 14, 23, 0.45) !important;
    color: #FFE5A3 !important;
    border: 1.5px solid rgba(245, 200, 66, 0.75) !important;
    backdrop-filter: blur(10px);
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
.hero-cta-group .btn-ghost-gold:hover {
    background: rgba(245, 200, 66, 0.2) !important;
    border-color: #F5C842 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) scale(1.03);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(205,154,58,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--card-shadow-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary) 0%, transparent 100%) 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY LIST
   ═══════════════════════════════════════════════════════════════════════════ */
.category-list-group { display: flex; flex-direction: column; gap: 0.4rem; }

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: var(--bg-item);
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.category-item:hover {
    background: var(--primary-glow2);
    border-color: var(--border-glass);
    color: var(--primary);
    transform: translateX(4px);
}
.category-item.active-cat {
    background: rgba(205,154,58,0.1);
    border-color: rgba(205,154,58,0.3);
    color: var(--primary);
    font-weight: 600;
}

.category-badge {
    background: rgba(205,154,58,0.12);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(205,154,58,0.2);
    min-width: 28px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.featured-post-hero {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: rgba(18, 24, 38, 0.4);
}
.featured-post-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}
.glass-card:hover .featured-post-img,
.featured-post-hero:hover .featured-post-img {
    transform: scale(1.03);
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(205,154,58,0.12);
    color: var(--primary);
    border: 1px solid rgba(205,154,58,0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.post-meta i { color: var(--primary); }

/* ─── Sidebar latest posts ───────────────────────────────────────────────────── */
.latest-posts-list { display: flex; flex-direction: column; gap: 0; }

.latest-post-sidebar-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border-bottom: 1px solid var(--border-subtle);
}
.latest-post-sidebar-item:last-child { border-bottom: none; }
.latest-post-sidebar-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.latest-post-sidebar-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--border-glass);
}

.latest-post-sidebar-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-post-sidebar-item:hover .latest-post-sidebar-title { color: var(--primary); }

.latest-post-sidebar-date {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PURPOSE / MISSION SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.mission-card {
    background: linear-gradient(135deg, rgba(205,154,58,0.06) 0%, rgba(20,17,12,0.95) 100%);
    border: 1px solid var(--border-glass-hover);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.mission-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 14rem;
    color: var(--primary);
    opacity: 0.04;
    position: absolute;
    top: -3rem; left: -1rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-neon {
    background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 60%, var(--secondary) 100%);
    color: #0A0600;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.6rem;
    font-size: 0.92rem;
    box-shadow: 0 4px 20px rgba(205,154,58,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(205,154,58,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #0A0600;
}
.btn-neon:active { transform: translateY(-1px); }

.btn-ghost-gold {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border-glass-hover);
    border-radius: 12px;
    padding: 0.7rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-ghost-gold:hover {
    background: var(--primary-glow2);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-custom {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 1.5rem 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
}
.footer-links a:hover { color: var(--primary); transform: translateX(3px); }

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-item);
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
}
.social-icon-btn:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--secondary));
    border-color: transparent;
    color: #0A0600;
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(205,154,58,0.3);
}

/* ── Prominent Social Follow Buttons (Facebook & Instagram) ── */
.social-follow-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: #FFFFFF !important;
    text-decoration: none;
    min-height: 50px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s;
    max-width: 220px;
    border: none;
}
.social-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0.92;
    color: #FFFFFF !important;
}
/* Facebook brand gradient */
.social-follow-btn.social-fb {
    background: linear-gradient(135deg, #1877F2 0%, #0A5DC9 100%);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}
/* Instagram brand gradient */
.social-follow-btn.social-ig {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 40%, #833AB4 70%, #405DE6 100%);
    box-shadow: 0 4px 14px rgba(193, 53, 132, 0.35);
}
/* Inactive state — no URL configured yet */
.social-follow-btn.social-follow-inactive {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    filter: grayscale(0.4);
}
/* Allow pointer events for admin so they can see the tooltip */
.social-follow-btn.social-follow-inactive[title] {
    pointer-events: auto;
    cursor: help;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2.5rem 0 1.5rem;
}

/* Publication Policy Card — Editorial, Professional Layout */
.footer-publication-policy {
    position: relative;
    background: linear-gradient(135deg, rgba(205, 154, 58, 0.07) 0%, rgba(15, 23, 42, 0.55) 100%) !important;
    border: 1px solid rgba(205, 154, 58, 0.28) !important;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.footer-publication-policy:hover {
    border-color: rgba(205, 154, 58, 0.48) !important;
    box-shadow: 0 12px 35px -8px rgba(205, 154, 58, 0.18);
}
.footer-publication-policy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
    border-radius: 4px 0 0 4px;
}
.policy-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(205, 154, 58, 0.22) 0%, rgba(205, 154, 58, 0.08) 100%);
    border: 1px solid rgba(205, 154, 58, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-300);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(205, 154, 58, 0.18);
}
.policy-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50rem;
    background: rgba(205, 154, 58, 0.14);
    border: 1px solid rgba(205, 154, 58, 0.3);
    color: var(--gold-300);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.policy-quote-highlight {
    color: var(--gold-200);
    font-weight: 600;
    background: rgba(205, 154, 58, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(205, 154, 58, 0.18);
    display: inline;
}
.policy-action-highlight {
    color: #FFFFFF;
    font-weight: 700;
    border-bottom: 1.5px dotted var(--gold-400);
}
.policy-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34D399 !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
body.theme-light .policy-status-badge,
[data-theme="light"] .policy-status-badge {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(5, 150, 105, 0.4) !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
}
body.theme-light .footer-publication-policy,
[data-theme="light"] .footer-publication-policy {
    background: linear-gradient(135deg, rgba(205, 154, 58, 0.09) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border-color: rgba(180, 130, 40, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
body.theme-light .policy-quote-highlight,
[data-theme="light"] .policy-quote-highlight {
    color: #8C6514;
    background: rgba(205, 154, 58, 0.14);
    border-color: rgba(205, 154, 58, 0.3);
}
body.theme-light .policy-action-highlight,
[data-theme="light"] .policy-action-highlight {
    color: #1E1B18;
    border-bottom-color: #A3771B;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KINGDOM PARTNERS — Luxury Horizontal Sliding Showcase
   ═══════════════════════════════════════════════════════════════════════════ */
.partner-marquee-section {
    position: relative;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    background: radial-gradient(ellipse 65% 90% at 50% 50%, var(--primary-glow2) 0%, transparent 100%),
                linear-gradient(180deg, var(--bg-main) 0%, var(--bg-elevated) 50%, var(--bg-main) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Section Background */
[data-theme="dark"] .partner-marquee-section,
body.theme-dark .partner-marquee-section {
    background: radial-gradient(ellipse 65% 90% at 50% 50%, rgba(205, 154, 58, 0.08) 0%, transparent 100%),
                linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.4) 100%);
    border-top-color: rgba(205, 154, 58, 0.2);
    border-bottom-color: rgba(205, 154, 58, 0.2);
}

.partner-marquee-section::before,
.partner-marquee-section::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.55;
    pointer-events: none;
}
.partner-marquee-section::before { top: 0; }
.partner-marquee-section::after { bottom: 0; }

@media (max-width: 767.98px) {
    .partner-marquee-section {
        display: none !important;
    }
}

.partner-marquee-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    padding: 0 1.25rem;
}

.partner-luxury-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 1.25rem;
    background: var(--primary-glow2);
    border: 1px solid var(--border-glass-hover);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--primary);
    box-shadow: 0 4px 18px var(--primary-glow);
    margin-bottom: 0.65rem;
    transition: all 0.3s ease;
}
.partner-luxury-pill:hover {
    box-shadow: 0 6px 24px var(--primary-glow);
    transform: translateY(-1px);
}
.partner-luxury-pill i {
    font-size: 0.92rem;
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.partner-marquee-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.partner-marquee-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
    padding: 0.5rem 0 1.2rem;
}

.partner-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    gap: 1.35rem !important;
    animation: partnerGlider 36s linear infinite !important;
    will-change: transform;
}
.partner-marquee-track:hover {
    animation-play-state: paused !important;
}

@keyframes partnerGlider {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-33.3333%, 0, 0); }
}

.partner-luxury-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    height: 82px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.95rem !important;
    padding: 0.75rem 1.05rem !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 18px !important;
    text-decoration: none !important;
    color: var(--text-main) !important;
    box-shadow: var(--card-shadow) !important;
    backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                background 0.3s ease !important;
    position: relative;
    overflow: hidden;
    box-sizing: border-box !important;
}
.partner-luxury-card.is-linked { cursor: pointer; }
.partner-luxury-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: inherit;
}
.partner-luxury-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--card-shadow-hover), 0 0 16px var(--primary-glow) !important;
}
.partner-luxury-card:hover::before { opacity: 1; }

[data-theme="dark"] .partner-luxury-card,
body.theme-dark .partner-luxury-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .partner-luxury-card:hover,
body.theme-dark .partner-luxury-card:hover {
    border-color: rgba(205, 154, 58, 0.65) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(205, 154, 58, 0.25) !important;
}

.plc-logo-frame {
    width: 54px !important;
    height: 50px !important;
    min-width: 54px !important;
    border-radius: 13px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 22, 10, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 2;
}
[data-theme="dark"] .plc-logo-frame,
body.theme-dark .plc-logo-frame {
    background: rgba(10, 15, 29, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.plc-logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.partner-luxury-card:hover .plc-logo-frame {
    border-color: var(--primary);
}
.partner-luxury-card:hover .plc-logo-frame img { transform: scale(1.12); }

.plc-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    position: relative;
    z-index: 2;
}
.plc-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}
[data-theme="dark"] .plc-name,
body.theme-dark .plc-name {
    color: #F8FAFC;
}
.partner-luxury-card:hover .plc-name { color: var(--primary); }

.plc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    line-height: 1.35;
    white-space: nowrap;
}

.plc-badge-church {
    background: var(--primary-glow2);
    color: var(--primary);
    border: 1px solid rgba(176, 134, 48, 0.35);
}
[data-theme="dark"] .plc-badge-church,
body.theme-dark .plc-badge-church {
    background: rgba(205, 154, 58, 0.16);
    color: #E6B75A;
    border-color: rgba(205, 154, 58, 0.4);
}

.plc-badge-ngo {
    background: rgba(2, 132, 199, 0.12);
    color: #0284C7;
    border: 1px solid rgba(2, 132, 199, 0.35);
}
[data-theme="dark"] .plc-badge-ngo,
body.theme-dark .plc-badge-ngo {
    background: rgba(56, 189, 248, 0.16);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.4);
}

.plc-badge-ministry {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.35);
}
[data-theme="dark"] .plc-badge-ministry,
body.theme-dark .plc-badge-ministry {
    background: rgba(52, 211, 153, 0.16);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.4);
}

.plc-badge-other {
    background: rgba(133, 97, 27, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(133, 97, 27, 0.35);
}
[data-theme="dark"] .plc-badge-other,
body.theme-dark .plc-badge-other {
    background: rgba(167, 139, 250, 0.16);
    color: #A78BFA;
    border-color: rgba(167, 139, 250, 0.4);
}

.plc-link-indicator {
    font-size: 0.95rem;
    color: var(--text-dim);
    opacity: 0.6;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.partner-luxury-card:hover .plc-link-indicator {
    color: var(--primary);
    opacity: 1;
    transform: translate(2px, -2px) scale(1.15);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* Admin dashboard cards (used in partners.php only) */
.partner-elite-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
}
.partner-elite-card.is-clickable { cursor: pointer; }
.partner-card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.partner-logo-frame {
    width: 60px; height: 52px;
    border-radius: 13px;
    background: var(--bg-item);
    border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    padding: 0.35rem; flex-shrink: 0;
    transition: all 0.3s ease;
}
.partner-logo-frame img {
    max-width:100%; max-height:100%; object-fit:contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.partner-info-frame { flex-grow:1; min-width:0; }
.partner-title {
    font-size:0.92rem; font-weight:700; color:var(--text-main);
    line-height:1.3; margin-bottom:0.35rem; transition:color 0.2s ease;
}
.partner-category-pill {
    display:inline-flex; align-items:center;
    font-size:0.68rem; font-weight:600;
    padding:0.16rem 0.65rem; border-radius:9999px;
    letter-spacing:0.02em; line-height:1.3;
}
.partner-pill-church   { background:rgba(205,154,58,0.14);  color:var(--primary); border:1px solid rgba(205,154,58,0.35); }
.partner-pill-ngo      { background:rgba(56,189,248,0.14);   color:#38bdf8;        border:1px solid rgba(56,189,248,0.35); }
.partner-pill-ministry { background:rgba(52,211,153,0.14);   color:#34d399;        border:1px solid rgba(52,211,153,0.35); }
.partner-pill-other    { background:rgba(167,139,250,0.14);  color:#a78bfa;        border:1px solid rgba(167,139,250,0.35); }
.partner-link-icon { font-size:0.95rem; color:var(--text-dim); transition:all 0.25s ease; opacity:0.55; }
.partner-elite-card:hover { border-color:var(--border-glass-hover); transform:translateY(-4px); box-shadow:var(--card-shadow-hover), 0 0 20px rgba(205,154,58,0.12); }
.partner-elite-card:hover .partner-card-glow { opacity:1; }
.partner-elite-card:hover .partner-logo-frame { border-color:var(--primary); background:var(--bg-surface); }
.partner-elite-card:hover .partner-logo-frame img { transform:scale(1.1); }
.partner-elite-card:hover .partner-title { color:var(--primary); }
.partner-elite-card:hover .partner-link-icon { color:var(--primary); opacity:1; transform:translate(2px,-2px); }

/* ═══════════════════════════════════════════════════════════════════════════
   DONATE PAGE PAYMENT SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
.payment-option-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.1rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    user-select: none;
}
.payment-option-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(205,154,58,0.15); }
.payment-option-card.active { border-color: var(--primary); background: rgba(205,154,58,0.07); box-shadow: 0 0 0 3px rgba(205,154,58,0.15); }
.pay-icon { font-size: 1.9rem; line-height: 1; }
.pay-name { font-size: 0.88rem; font-weight: 700; }
.pay-sub  { font-size: 0.7rem; color: var(--text-muted); }
.pay-badge { display: inline-block; font-size: 0.63rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 4px; letter-spacing: 0.3px; }
.badge-success { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(250,204,21,0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.3); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-primary { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }

.payment-panel .panel-inner {
    background: var(--bg-glass);
    border: 1px solid;
    border-radius: 18px;
    padding: 1.8rem;
    backdrop-filter: blur(8px);
}
.payment-panel .panel-header { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.payment-panel .panel-header i { font-size: 1.35rem; }

.border-success { border-color: rgba(16,185,129,0.3) !important; }
.border-warning { border-color: rgba(250,204,21,0.3)  !important; }
.border-danger  { border-color: rgba(239,68,68,0.3)   !important; }
.border-primary { border-color: rgba(99,102,241,0.3)  !important; }

.form-control-custom {
    background-color: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-custom:focus {
    background-color: rgba(255,255,255,0.07) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    color: var(--text-main) !important;
    outline: none;
}
.form-control-custom::placeholder { color: var(--text-muted); opacity: 0.8; }
.flag-prefix {
    background: var(--bg-item) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    font-size: 0.88rem;
    border-radius: 12px 0 0 12px !important;
}
.flag-prefix + .form-control-custom { border-left: 0 !important; border-radius: 0 12px 12px 0 !important; }

#stkModal .modal-content {
    border-radius: 22px;
    background: var(--bg-surface) !important;
    box-shadow: 0 30px 80px rgba(16, 26, 45, 0.15);
    border: 1px solid var(--border-glass) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME — COMPONENT OVERRIDES
   Ensure every element reads cleanly on white background
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override Bootstrap light text utilities for the light theme */
.glass-card .text-white,
.glass-card .text-light,
.mission-card .text-white,
.mission-card .text-light,
.modal-content .text-white,
.modal-content .text-light,
body .text-white:not(.btn):not(.badge):not(.nav-link):not(.btn-neon),
body .text-light:not(.btn):not(.badge):not(.nav-link):not(.btn-neon) {
    color: var(--text-main) !important;
}

/* Override panel headers */
.payment-panel .panel-header {
    color: var(--text-main) !important;
}

/* Soften shadows and borders in light cards */
.glass-card {
    background: var(--bg-glass) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--card-shadow) !important;
}
.glass-card:hover {
    box-shadow: var(--card-shadow-hover) !important;
}

.mission-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    box-shadow: var(--card-shadow) !important;
}
.mission-card .text-light {
    color: var(--text-muted) !important;
}

/* Category item highlights */
.category-item {
    color: var(--text-main) !important;
    background: var(--bg-item) !important;
    border: 1px solid var(--border-glass) !important;
}
.category-item:hover, .category-item.active-cat {
    background: var(--bg-hover) !important;
    border-color: var(--border-glass-hover) !important;
    color: var(--primary) !important;
}

/* Modals */
.modal-content {
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
}

/* Form labels and inputs */
.form-label {
    color: var(--text-main) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Premium Sidebar & Stat Cards
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sidebar container */
.dashboard-sidebar {
    min-height: calc(100vh - 70px);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-glass);
    padding-top: 0;
}

/* Sidebar nav link */
.db-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
    margin-bottom: 2px;
}
.db-nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.db-nav-link:hover {
    background: var(--primary-glow2);
    color: var(--primary);
    transform: translateX(3px);
}
.db-nav-link.active {
    background: var(--primary-glow2);
    color: var(--primary) !important;
    font-weight: 700;
    border: 1px solid var(--border-glass-hover);
}
/* Gold left accent bar on active link */
.db-nav-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

/* Notification badge in sidebar */
.db-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

/* Logout button */
.db-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.04);
    transition: all 0.18s ease;
    width: 100%;
}
.db-logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
    color: #dc2626;
    transform: translateX(3px);
}

/* ── Stat Cards ── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.stat-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0A0600;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(205,154,58,0.25);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 0.25rem;
}

/* ── Dashboard Tables ── */
.table,
.table-custom,
.table-dark-custom,
.prayers-table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-main) !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-hover-bg: var(--bg-hover) !important;
    --bs-table-hover-color: var(--text-main) !important;
    background: transparent !important;
    color: var(--text-main) !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table > :not(caption) > * > *,
.table-custom > :not(caption) > * > *,
.table-dark-custom > :not(caption) > * > *,
.prayers-table > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
}
.table-custom thead th,
.table-dark-custom thead th {
    background: var(--bg-elevated) !important;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-bottom: 2px solid var(--border-glass-hover) !important;
    padding: 0.9rem 1rem;
    box-shadow: none !important;
}
.table-custom tbody tr,
.table-dark-custom tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
    background: transparent !important;
}
.table-custom tbody tr:hover,
.table-dark-custom tbody tr:hover {
    background: var(--bg-table-row-hover) !important;
}
.table-custom td,
.table-dark-custom td {
    color: var(--text-main) !important;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT & FORM PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-main); margin-bottom: 0.4rem; }
.form-control {
    background: var(--bg-item) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-glow) !important; outline: none; }
.form-control::placeholder { color: var(--text-muted); opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE BODY — Optimized Reading Typography
   Line height, spacing, heading hierarchy, blockquotes, lists, images
   ═══════════════════════════════════════════════════════════════════════════ */
.post-body {
    color: var(--text-main);
    /* Base size: 1em ≈ 18px (matches basePx in JS); JS overrides --post-font-scale */
    --post-font-scale: 1;
    font-size: calc(1.06rem * var(--post-font-scale));
    line-height: 1.95;
    letter-spacing: 0.01em;
    word-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ── Paragraphs ── */
.post-body p {
    margin-bottom: 1.6em;
    text-align: left;
}
.post-body p:last-child { margin-bottom: 0; }

/* First paragraph emphasis — subtle drop cap effect */
.post-body > p:first-of-type {
    font-size: 1.08em;
    color: var(--text-main);
}
.post-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.2em;
    line-height: 0.85;
    float: left;
    margin-right: 0.12em;
    margin-top: 0.05em;
    color: var(--primary);
    font-weight: 700;
}

/* ── Headings inside articles ── */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    font-family: var(--font-display);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    scroll-margin-top: 100px;
}
.post-body h2 {
    font-size: clamp(1.3em, 3vw, 1.55em);
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--border-glass);
}
.post-body h3 {
    font-size: clamp(1.1em, 2.5vw, 1.28em);
    color: var(--gold-300);
}
.post-body h4 { font-size: clamp(0.95em, 2vw, 1.1em); }
.post-body h5 { font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Blockquotes / Scripture highlights ── */
.post-body blockquote {
    background: linear-gradient(135deg, var(--primary-glow2) 0%, var(--bg-glass) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    padding: 1.4rem 1.6rem;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.05em;
    line-height: 1.85;
    color: var(--text-main);
    position: relative;
}
.post-body blockquote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 0.1em;
    left: 0.3em;
    pointer-events: none;
}
.post-body blockquote p { margin-bottom: 0.6em; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote cite,
.post-body blockquote footer {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.88em;
    color: var(--primary);
    margin-top: 0.8em;
}

/* ── Lists ── */
.post-body ul,
.post-body ol {
    padding-left: 1.4em;
    margin-bottom: 1.6em;
}
.post-body li {
    margin-bottom: 0.55em;
    line-height: 1.8;
    padding-left: 0.3em;
}
.post-body ul > li::marker {
    color: var(--primary);
    font-size: 1.1em;
}
.post-body ol > li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* ── Links ── */
.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(205,154,58,0.3);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.post-body a:hover {
    color: var(--gold-300);
    text-decoration-color: var(--gold-300);
}

/* ── Images & figures ── */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.8em auto;
    display: block;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-glass);
}
.post-body figure {
    margin: 2em 0;
    text-align: center;
}
.post-body figcaption {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.6rem;
    text-align: center;
}

/* ── Code / reference ── */
.post-body code {
    background: var(--bg-elevated);
    color: var(--primary);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 500;
    border: 1px solid var(--border-glass);
}
.post-body pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.8em 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
.post-body pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ── Horizontal rules ── */
.post-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2.5em 0;
    opacity: 0.3;
}

/* ── Tables inside articles ── */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.92em;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}
.post-body th {
    background: var(--bg-elevated);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.8rem 1rem;
    text-align: left;
}
.post-body td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-main);
}
.post-body tr:hover td { background: var(--bg-table-row-hover); }

/* ── Strong / emphasis ── */
.post-body strong,
.post-body b {
    font-weight: 700;
    color: var(--text-main);
}
.post-body em,
.post-body i:not([class]) {
    font-style: italic;
    color: var(--gold-300);
}

/* ── Reading progress bar (at top of page) ── */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
    z-index: 1050;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Estimated reading time badge ── */
.reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--bg-item);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}
.reading-time-badge i { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.hover-primary:hover { color: var(--primary) !important; }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.gold-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2rem 0;
    opacity: 0.35;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--primary-glow2);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

/* Slideshow legacy compat */
.slideshow-container { display: none; } /* replaced by hero-section */

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Breakpoints: xs<576 | sm≥576 | md≥768 | lg≥992 | xl≥1200
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Large desktops (≥1200px) ────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .hero-section   { min-height: 560px; }
    .hero-title     { font-size: 3.6rem; }
    .hero-subtitle  { font-size: 1.15rem; }
}

/* ── Tablet landscape / small desktop (768–991px) ───────────────────────── */
@media (max-width: 991px) {
    /* Navbar collapses — give the drawer proper padding */
    .navbar-custom { padding: 0.6rem 1rem; }
    #navbarContent {
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: 16px;
        margin-top: 0.5rem;
        padding: 1rem;
    }
    .navbar-custom .nav-link { padding: 0.6rem 0.8rem !important; }
    .donate-nav-btn { text-align: center; justify-content: center; }
    .btn-glass-secondary { justify-content: center; }

    /* Hero */
    .hero-section   { min-height: 400px; }
    .hero-content   { padding: 3rem 1.5rem; }
    .hero-title     { font-size: 2.2rem; min-height: 70px; }
    .hero-subtitle  { font-size: 1rem; }

    /* Mission card */
    .mission-card { padding: 1.8rem; }
    .mission-card::before { font-size: 10rem; }

    /* Glass card hover: reduce transform on touch */
    .glass-card:hover { transform: translateY(-3px); }

    /* Footer */
    .footer-custom { padding: 3rem 1rem 1.2rem; }
}

/* ── Tablet portrait (576–767px) ─────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Dashboard Sidebar Mobile Adaptation */
    .dashboard-sidebar {
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-glass) !important;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    /* Hero */
    .hero-section   { min-height: 360px; }
    .hero-content   { padding: 2.5rem 1.2rem; }
    .hero-title     { font-size: 1.8rem; min-height: 64px; }
    .hero-eyebrow   { font-size: 0.72rem; padding: 0.28rem 0.8rem; }
    .hero-subtitle  { font-size: 0.92rem; margin-bottom: 1.5rem; }
    .hero-cta-group { gap: 0.7rem; }
    .hero-cta-group .btn { padding: 0.65rem 1.3rem; font-size: 0.88rem; }

    /* Cards: disable hover lift on touch devices */
    .glass-card:hover       { transform: none; }
    .category-item:hover    { transform: none; }
    .payment-option-card:hover { transform: none; }

    /* Mission card stats: stack nicely */
    .mission-card { padding: 1.4rem; }

    /* Featured post image shorter on tablet portrait */
    .featured-post-img { height: 200px; }

    /* Sidebar list items: slightly more compact */
    .latest-post-sidebar-img { width: 55px; height: 55px; }

    /* Payment cards: 2×2 grid handled by Bootstrap col-6 */
    .pay-name { font-size: 0.82rem; }
    .pay-icon { font-size: 1.6rem; }

    /* Footer: single column stacking */
    .footer-custom { padding: 2.5rem 1rem 1rem; }
}

/* ── Mobile (≤575px) ─────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    /* Base font slightly smaller */
    body { font-size: 0.95rem; }

    /* ── Navbar ── */
    .navbar-custom { padding: 0.5rem 0.75rem; min-height: 60px; }
    .logo-frame   { width: 38px; height: 38px; }  /* smaller circular logo on mobile */
    .brand-name   { font-size: 0.9rem; }
    .brand-tagline{ display: none; }               /* hide tagline on very small screens */
    .brand-dot    { width: 6px; height: 6px; }

    /* ── Hero ── */
    .hero-section   { min-height: 320px; }
    .hero-content   { padding: 2rem 1rem; }
    .hero-title     { font-size: 1.5rem; min-height: 56px; line-height: 1.2; }
    .hero-eyebrow   { display: none; } /* too narrow for eyebrow on tiny screens */
    .hero-subtitle  { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .hero-cta-group { flex-direction: column; align-items: center; gap: 0.6rem; }
    .hero-cta-group .btn { width: 100%; max-width: 260px; justify-content: center; }

    /* ── Content container ── */
    .container-fluid.container-xl { padding-left: 0.75rem; padding-right: 0.75rem; }

    /* ── Glass cards ── */
    .glass-card         { border-radius: 14px; }
    .glass-card:hover   { transform: none; }
    .glass-card .p-4    { padding: 1rem !important; }
    .glass-card .p-md-4 { padding: 1rem !important; }

    /* ── Mission card ── */
    .mission-card { padding: 1.2rem; border-radius: 14px; }
    .mission-card::before { display: none; }
    .mission-card .row .col-4 { padding: 0.25rem; }

    /* ── Category sidebar ── */
    .category-item { padding: 0.6rem 0.8rem; font-size: 0.85rem; border-radius: 10px; }
    .category-badge { font-size: 0.7rem; padding: 0.15rem 0.45rem; }

    /* ── Featured post ── */
    .featured-post-img { height: 170px; }

    /* ── Latest posts sidebar ── */
    .latest-post-sidebar-img  { width: 50px; height: 50px; border-radius: 8px; }
    .latest-post-sidebar-title { font-size: 0.82rem; }
    .latest-post-sidebar-date  { font-size: 0.68rem; }
    .latest-post-sidebar-item  { padding: 0.65rem 0.3rem; gap: 0.7rem; }

    /* ── Buttons ── */
    .btn-neon        { padding: 0.65rem 1.3rem; font-size: 0.88rem; border-radius: 10px; }
    .btn-ghost-gold  { padding: 0.65rem 1.3rem; font-size: 0.88rem; border-radius: 10px; }

    /* ── Donate page ── */
    .payment-option-card { padding: 0.9rem 0.5rem; border-radius: 14px; }
    .pay-icon { font-size: 1.5rem; }
    .pay-name { font-size: 0.78rem; }
    .pay-sub  { display: none; }
    .pay-badge { font-size: 0.58rem; padding: 1px 6px; }
    .panel-inner { padding: 1rem !important; border-radius: 14px !important; }

    /* STK modal on small screen */
    #stkModal .modal-dialog { margin: 0.5rem; }
    #stkModal .modal-content { border-radius: 18px; }
    #stkModal .modal-body { padding: 1.5rem 1rem; }

    /* ── Footer ── */
    .footer-custom { padding: 2rem 0.75rem 1rem; }
    .footer-brand-name { font-size: 1.25rem; }
    .social-icon-btn { width: 38px; height: 38px; font-size: 1rem; }
    .footer-links a { font-size: 0.83rem; }

    /* ── Tables (dashboard) ── */
    .table-dark-custom thead th { font-size: 0.72rem; padding: 0.65rem 0.5rem; }
    .table-dark-custom td        { font-size: 0.82rem; padding: 0.6rem 0.5rem;  }

    /* ── Contact / login forms ── */
    .form-control { border-radius: 10px; }
    .form-control-custom { border-radius: 10px; }
}

/* ── Extra-small (≤380px) — very small phones ─────────────────────────────── */
@media (max-width: 380px) {
    .hero-title { font-size: 1.25rem; }
    .brand-wordmark { font-size: 1.05rem; }
    .navbar-custom { padding: 0.4rem 0.6rem; }
}

/* ── Touch device: remove hover transforms site-wide ─────────────────────── */
@media (hover: none) {
    .glass-card:hover          { transform: none; box-shadow: var(--card-shadow); border-color: var(--border-glass); }
    .btn-neon:hover            { transform: none; }
    .btn-ghost-gold:hover      { transform: none; }
    .donate-nav-btn:hover      { transform: none; }
    .social-icon-btn:hover     { transform: none; }
    .payment-option-card:hover { transform: none; }
    .latest-post-sidebar-item:hover { transform: none; }
    .category-item:hover       { transform: none; }
}

/* ── Reduced-motion accessibility ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .brand-dot { animation: none; }
    .hero-shimmer { animation: none; }
    .hero-particle { display: none; }
    .typing-cursor { animation: none; }
}

/* ── Print Styles (Robust High Contrast, Clean White Layout) ─────────────── */
@media print {
    /* Hide background pseudo-elements that cause black overlays */
    body::before, body::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }

    /* Hide non-printable UI elements */
    .no-print,
    .navbar-custom,
    .hero-section,
    .footer-custom,
    .cookie-banner,
    .reading-progress,
    .reading-progress-bar,
    .modal,
    .modal-backdrop,
    #comments-section,
    .donate-nav-btn,
    .btn,
    .social-icon-btn,
    nav[aria-label="breadcrumb"],
    .section-label,
    .related-posts-container {
        display: none !important;
    }

    /* Show Print-only Header */
    .print-only-header {
        display: block !important;
    }

    /* Force all elements to be visible and un-animated */
    *, *::before, *::after {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Reset root, html, body & containers to pure white background */
    html, body, main, article, section, header, footer,
    .container, .container-fluid, .glass-card, .row, .col-12, .col-lg-8, .col-xl-8,
    #articleContent, #postArticleBody, .post-body {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force crisp dark text for all text nodes */
    h1, h2, h3, h4, h5, h6,
    p, span, div, small, strong, b, em, i, li, a, label, code, pre,
    .text-white, .text-light, .text-muted, .text-warning, .text-info, .text-danger, .text-success {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }

    /* Specific typography for printed post */
    h1 {
        font-size: 24pt !important;
        line-height: 1.3 !important;
        margin-top: 10pt !important;
        margin-bottom: 12pt !important;
        color: #000000 !important;
    }

    .post-body {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: #111111 !important;
    }

    .post-body p {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        margin-bottom: 12pt !important;
        color: #111111 !important;
    }

    .post-meta {
        border-bottom: 1px dashed #aaaaaa !important;
        padding-bottom: 8pt !important;
        margin-bottom: 14pt !important;
        color: #444444 !important;
    }

    .post-meta * {
        color: #444444 !important;
    }

    /* Style cover image nicely */
    img {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 14pt !important;
        page-break-inside: avoid;
    }

    /* Prevent breaking sentences mid-page */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    article, .post-body p {
        page-break-inside: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CKEDITOR 5 PREMIUM WYSIWYG THEMING (Dark / Light support)
   ═══════════════════════════════════════════════════════════════════════════ */
.ck.ck-editor {
    border-radius: 12px !important;
    overflow: hidden;
}

/* ── Dark Mode overrides (default) ── */
.ck.ck-editor__main>.ck-editor__editable {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-glass) !important;
    border-top: none !important;
}
.ck.ck-editor__main>.ck-editor__editable:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.ck.ck-toolbar {
    background-color: var(--bg-elevated) !important;
    border: 1px solid var(--border-glass) !important;
}
.ck.ck-toolbar__items {
    background-color: transparent !important;
}
.ck.ck-button {
    color: var(--text-main) !important;
}
.ck.ck-button:hover, .ck.ck-button:active {
    background-color: var(--bg-item) !important;
    color: var(--primary) !important;
}
.ck.ck-button.ck-on {
    background-color: var(--primary-glow) !important;
    color: var(--primary) !important;
}
.ck.ck-icon {
    color: inherit !important;
}
.ck.ck-dropdown__panel {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-glass) !important;
}
.ck.ck-list__item .ck-button {
    color: var(--text-main) !important;
}
.ck.ck-list__item .ck-button:hover {
    background-color: var(--bg-hover) !important;
    color: var(--primary) !important;
}

/* ── Cookie Consent Banner ── */
@keyframes cookie-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(8deg); }
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    z-index: 9999;
    background: var(--bg-surface, #FFFFFF);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass-hover, rgba(205, 154, 58, 0.4));
    border-radius: 20px;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.25), 
        0 0 25px rgba(245, 158, 11, 0.15);
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    overflow: hidden;
}

[data-theme="dark"] .cookie-banner,
body.theme-dark .cookie-banner {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(205, 154, 58, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(205, 154, 58, 0.15);
}

[data-theme="light"] .cookie-banner,
body.theme-light .cookie-banner {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(176, 134, 48, 0.3);
    box-shadow: 0 16px 40px rgba(30, 22, 10, 0.12), 0 0 20px rgba(176, 134, 48, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    padding: 1.4rem;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.cookie-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-icon {
    font-size: 1.35rem;
    color: #F59E0B;
    animation: cookie-pulse 3s ease-in-out infinite;
}

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main, #1E1B18);
    margin: 0;
    line-height: 1.2;
}

.cookie-banner-text {
    font-size: 0.86rem;
    color: var(--text-muted, #5C5245);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-accept,
.cookie-banner-decline {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}

.cookie-banner-accept {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.cookie-banner-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
}

.cookie-banner-decline {
    background: transparent;
    color: var(--text-main, #1E1B18) !important;
    border: 1px solid var(--border-glass-hover, rgba(176, 134, 48, 0.4));
}

.cookie-banner-decline:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: #F59E0B;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVENESS & TOUCH UX OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Global Overflow & Image Protection */
html, body {
    width: 100%;
    overflow-x: hidden;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Post body overflow & responsive elements */
.post-body iframe, 
.post-body table, 
.post-body pre, 
.post-body code {
    max-width: 100% !important;
    overflow-x: auto;
}
.post-body table {
    display: block;
    width: 100% !important;
}

/* Mobile Screens (< 768px) */
@media (max-width: 767.98px) {
    .container, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Navbar circular logo sizing on small mobile */
    .logo-frame { width: 40px; height: 40px; }

    /* Navbar mobile drawer layout */
    .navbar-custom .navbar-collapse {
        background: var(--bg-surface);
        padding: 1rem;
        border-radius: 14px;
        margin-top: 0.5rem;
        border: 1px solid var(--border-glass);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem;
    }

    .navbar-custom .btn-glass-secondary,
    .navbar-custom .donate-nav-btn {
        width: 100%;
        justify-content: center;
    }

    /* Modals on mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        border-radius: 16px !important;
    }
    .modal-body {
        padding: 1.25rem !important;
    }

    /* Cards & Glass Containers */
    .glass-card {
        border-radius: 14px !important;
    }


    /* Article Reading Toolbar on post.php */
    .post-body-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    /* Prayer cards & action buttons */
    .pray-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .pray-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Table responsive scrollbars */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
}

/* Extra Small Screens (< 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }

    h1, .display-4, .display-5 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4, h5 { font-size: 1.1rem !important; }

    /* Button touch targets — WCAG 2.5.5 minimum 44×44px */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero: much less tall on small phones */
    .hero-section {
        min-height: 340px !important;
    }
    .hero-content {
        padding: 2rem 1rem !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    /* Cookie banner: readable on small screens */
    .cookie-banner {
        font-size: 0.85rem !important;
        padding: 1rem !important;
    }
    .cookie-banner-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .cookie-banner-accept,
    .cookie-banner-decline {
        width: 100% !important;
        text-align: center !important;
    }

    /* Post body: prevent long URLs breaking layout */
    .post-body {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Navbar touch targets */
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-link {
        min-height: 44px;
        display: flex !important;
        align-items: center;
    }
}

/* ── Modern Premium Privacy Warning Card ───────────────────────────────────── */
.privacy-warning-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;
    border: 1px solid #FDBA74 !important;
    border-left: 5px solid #F59E0B !important;
    border-radius: 14px !important;
    padding: 1rem 1.15rem !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
    transition: all 0.25s ease !important;
}

.privacy-warning-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

.privacy-warning-title {
    color: #92400E !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
}

.privacy-warning-badge {
    background: #F59E0B !important;
    color: #FFFFFF !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}

.privacy-warning-text {
    color: #78350F !important;
    font-size: 0.83rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

/* Dark Theme Overrides */
[data-theme="dark"] .privacy-warning-card,
body.theme-dark .privacy-warning-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    border-left: 5px solid #F59E0B !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

[data-theme="dark"] .privacy-warning-title,
body.theme-dark .privacy-warning-title {
    color: #FBBF24 !important;
}

[data-theme="dark"] .privacy-warning-text,
body.theme-dark .privacy-warning-text {
    color: #FEF08A !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PWA INSTALL SMART BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(14, 18, 27, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(205, 154, 58, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(205, 154, 58, 0.15);
    border-radius: 20px;
    padding: 0.85rem 1.15rem;
    z-index: 1060;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.pwa-install-banner.show {
    opacity: 1;
    transform: translateY(0);
}
[data-theme="light"] .pwa-install-banner,
body.theme-light .pwa-install-banner {
    background: rgba(245, 240, 232, 0.96);
    border: 1px solid rgba(176, 134, 48, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .pwa-install-banner .text-white,
body.theme-light .pwa-install-banner .text-white {
    color: #1A1208 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD STATS & ENVIRONMENT CARDS (LIGHT & DARK CONTRAST FIX)
   ═══════════════════════════════════════════════════════════════════════════ */
.stat-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    transition: all 0.2s ease;
}
.stat-mini-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.3px;
}
.stat-mini-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 4px;
}
.stat-val-primary { color: #F8FAFC !important; }
.stat-val-warning { color: #FBBF24 !important; }
.stat-val-success { color: #34D399 !important; }

.env-mode-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.env-mode-card.active-prod {
    border-color: #10B981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
}
.env-mode-card.active-dev {
    border-color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.06) !important;
}

/* Light Mode Overrides */
[data-theme="light"] .stat-mini-card,
body.theme-light .stat-mini-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .stat-mini-label,
body.theme-light .stat-mini-label {
    color: #475569 !important;
    font-weight: 600 !important;
}
[data-theme="light"] .stat-val-primary,
body.theme-light .stat-val-primary {
    color: #0F172A !important;
}
[data-theme="light"] .stat-val-warning,
body.theme-light .stat-val-warning {
    color: #B45309 !important;
}
[data-theme="light"] .stat-val-success,
body.theme-light .stat-val-success {
    color: #047857 !important;
}

[data-theme="light"] .env-mode-card,
body.theme-light .env-mode-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .env-mode-card.active-prod,
body.theme-light .env-mode-card.active-prod {
    border-color: #059669 !important;
    background: rgba(5, 150, 105, 0.06) !important;
}
[data-theme="light"] .env-mode-card.active-dev,
body.theme-light .env-mode-card.active-dev {
    border-color: #D97706 !important;
    background: rgba(217, 119, 6, 0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REAL-TIME INTERNET CONNECTION POPUP & OFFLINE BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.connection-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    width: 92%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(239, 68, 68, 0.2);
    border-radius: 18px;
    padding: 0.9rem 1.25rem;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.connection-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.connection-popup.is-online {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.25);
}

.connection-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.connection-icon-box.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    animation: pulse-offline 2s infinite;
}
.connection-icon-box.online {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

@keyframes pulse-offline {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.connection-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 2px;
}
.connection-desc {
    font-size: 0.76rem;
    color: #94A3B8;
    line-height: 1.4;
}
.connection-close-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    padding: 0 4px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.connection-close-btn:hover {
    color: #FFFFFF;
}

/* Light Theme Overrides */
[data-theme="light"] .connection-popup,
body.theme-light .connection-popup {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(220, 38, 38, 0.1);
}
[data-theme="light"] .connection-popup.is-online,
body.theme-light .connection-popup.is-online {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(5, 150, 105, 0.12);
}
[data-theme="light"] .connection-title,
body.theme-light .connection-title {
    color: #0F172A;
}
[data-theme="light"] .connection-desc,
body.theme-light .connection-desc {
    color: #475569;
}
[data-theme="light"] .connection-close-btn,
body.theme-light .connection-close-btn {
    color: #64748B;
}
[data-theme="light"] .connection-close-btn:hover,
body.theme-light .connection-close-btn:hover {
    color: #0F172A;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SACRED SCRIPTURE PRELOADER ("NENO TIME SANCTUARY LOADER")
   ═══════════════════════════════════════════════════════════════════════════ */
.sanctuary-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #07090E;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(205, 154, 58, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(197, 168, 128, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sanctuary-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    pointer-events: none;
}

[data-theme="light"] .sanctuary-preloader,
body.theme-light .sanctuary-preloader {
    background-color: #F5F0E8;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(205, 154, 58, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(180, 134, 48, 0.08) 0%, transparent 50%);
}

.preloader-glass-content {
    max-width: 580px;
    width: 100%;
    background: rgba(14, 18, 27, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(205, 154, 58, 0.25);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 32px rgba(205, 154, 58, 0.12);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .preloader-glass-content,
body.theme-light .preloader-glass-content {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(180, 134, 48, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 24px rgba(205, 154, 58, 0.1);
}

.preloader-emblem-wrap {
    position: relative;
    display: inline-block;
}
.emblem-halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 154, 58, 0.4) 0%, transparent 70%);
    animation: preloader-pulse 2.2s infinite ease-in-out;
}
.emblem-inner {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(205, 154, 58, 0.2) 0%, rgba(205, 154, 58, 0.05) 100%);
    border: 1.5px solid rgba(205, 154, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #E6CA65;
    box-shadow: 0 0 20px rgba(205, 154, 58, 0.25);
}

@keyframes preloader-pulse {
    0% { transform: scale(0.92); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.9; }
    100% { transform: scale(0.92); opacity: 0.5; }
}

.preloader-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: #CD9A3A;
    text-transform: uppercase;
}

.preloader-scripture-quote {
    position: relative;
    margin: 1rem 0;
}
.preloader-scripture-quote .quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #F4F1EA;
}
[data-theme="light"] .preloader-scripture-quote .quote-text,
body.theme-light .preloader-scripture-quote .quote-text {
    color: #1A1208;
}

.preloader-scripture-quote .quote-ref {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #E6CA65;
    letter-spacing: 0.05em;
}
[data-theme="light"] .preloader-scripture-quote .quote-ref,
body.theme-light .preloader-scripture-quote .quote-ref {
    color: #B45309;
}

.preloader-progress-wrap {
    width: 140px;
    height: 3px;
    background: rgba(205, 154, 58, 0.2);
    border-radius: 10px;
    margin: 1.5rem auto 0 auto;
    overflow: hidden;
    position: relative;
}
.preloader-progress-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #E6CA65, #CD9A3A, #E6CA65);
    border-radius: 10px;
    animation: preloader-indeterminate 1.4s infinite ease-in-out;
}

@keyframes preloader-indeterminate {
    0% { transform: translateX(-100%); width: 30%; }
    50% { transform: translateX(100%); width: 60%; }
    100% { transform: translateX(350%); width: 30%; }
}

.preloader-loading-text {
    color: #E6CA65 !important;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 600;
}
[data-theme="light"] .preloader-loading-text,
body.theme-light .preloader-loading-text {
    color: #B45309 !important;
}


/* ─── Sign Language Video Player & Floating Controls ────────────────────────── */
.sl-video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass-hover);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sl-video-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}
.sl-play-btn {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px var(--primary-glow), 0 0 0 8px var(--primary-glow2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.sl-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px var(--primary-glow), 0 0 0 12px var(--primary-glow);
}

/* ─── Bible Verse Styling ──────────────────────────────────────────────── */
.bible-verse {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 0.8rem;
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
    line-height: 1.5;
}

.sl-tab-btn {
    transition: all 0.2s ease;
}
.sl-tab-btn.active {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700)) !important;
    border-color: var(--gold-500) !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.sl-tab-btn:hover:not(.active) {
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
    background: var(--bg-hover) !important;
}


/* Voice Reader highlight – applied to the paragraph currently spoken */
.highlight-reading {
    background: rgba(205, 154, 58, 0.16) !important;
    border-left: 3.5px solid var(--primary, #CD9A3A) !important;
    padding-left: 0.85rem !important;
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
}
