/* ==========================================================================
   ISLAMIC LAWS - 2026 WORLD-CLASS ULTRA-LUXURY DIGITAL PORTAL
   Design System: Obsidian & Velvet Emerald, Champagne Gold Foil,
   Frosted Diamond Glassmorphism, Bento Matrix, and Fluid GSAP Motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Background & Dark Foundations */
    --bg-obsidian: #011210;
    --bg-obsidian-card: rgba(3, 26, 23, 0.72);
    --bg-emerald-deep: #03211c;
    --bg-emerald-surface: #063830;
    --bg-silk-light: #f7f5ef;
    --bg-card-light: #ffffff;
    --bg-card-subtle: #faf8f2;

    /* Emerald Palette */
    --emerald-dark: #042e26;
    --emerald-primary: #0a5f51;
    --emerald-teal: #0e7d6b;
    --emerald-bright: #15a890;
    --emerald-glow: rgba(21, 168, 144, 0.35);
    --emerald-soft: #e8f5f1;

    /* Royal Champagne & Gold Foil Palette */
    --gold-dark: #8c6411;
    --gold-primary: #d4af37;
    --gold-bright: #f0cb54;
    --gold-light: #faeab0;
    --gold-shimmer: #fff8dc;
    --gold-glow: rgba(212, 175, 55, 0.45);
    --gold-glow-lg: 0 0 45px rgba(212, 175, 55, 0.5);

    /* Text Colors */
    --text-primary: #04241e;
    --text-secondary: #28443e;
    --text-muted: #5e7d77;
    --text-light: #ffffff;
    --text-light-muted: rgba(255, 255, 255, 0.85);

    /* Luminous Glass & Border Tokens */
    --border-light: rgba(10, 95, 81, 0.12);
    --border-card: rgba(10, 95, 81, 0.18);
    --border-gold-subtle: rgba(212, 175, 55, 0.35);
    --border-gold-bright: rgba(212, 175, 55, 0.85);
    --border-glass-dark: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --grad-gold-foil: linear-gradient(135deg, #c59828 0%, #faebaa 50%, #9e7314 100%);
    --grad-gold-accent: linear-gradient(135deg, #dfb74a 0%, #f7e49e 50%, #b88d22 100%);
    --grad-gold-glow: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    --grad-obsidian-hero: linear-gradient(180deg, #011210 0%, #03211c 60%, #063830 100%);
    --grad-obsidian-section: linear-gradient(145deg, #011210 0%, #042620 50%, #063830 100%);
    --grad-emerald-accent: linear-gradient(135deg, #063830 0%, #0e7d6b 100%);
    --grad-card-surface: linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px rgba(1, 18, 16, 0.08);
    --shadow-card-hover: 0 20px 50px rgba(1, 18, 16, 0.15);
    --shadow-glass-dark: 0 15px 40px rgba(0, 0, 0, 0.35);
    --shadow-gold-button: 0 10px 30px rgba(212, 175, 55, 0.35);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. BASE RESET & GLOBAL STYLES (FLUID PROFESSIONAL RESPONSIVE STANDARDS)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-silk-light);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    padding-top: 72px;
}

/* --------------------------------------------------------------------------
   2B. INITIAL MOTION STATE (COLORED BACKGROUND ONLY ON LOAD)
   Elements start at opacity 0 so the user only views the rich background
   and static header first, followed by fluid sequential animations.
   -------------------------------------------------------------------------- */
.interior-hero-badge,
.interior-hero-title,
.interior-hero-desc,
.meta-source-bar,
.category-pills-bar,
.hadith-quote-banner,
.taqlid-intro-card,
.top-video-links-bar,
.ulama-quote-banner,
.ulama-featured-banner,
.interior-hero-badge,
.interior-hero-title,
.interior-hero-desc,
.category-pills-bar,
.category-jump-nav,
.hadith-quote-banner,
.ulama-quote-banner,
.ulama-featured-banner,
.qa-intro-banner,
.ai-caution-banner,
.taqlid-intro-card,
.top-video-links-bar,
.meta-source-bar,
.interior-card-container,
.hero-awareness-pill,
.hero-statement-card,
.hero-statement-text,
.hero-gateways-grid .gateway-card-link,
.bento-card,
.vault-pillar-card,
.vault-proof-portal,
.timeline-node-card,
.timeline-arrow-bridge,
.portal-hub-card,
.quote-masterpiece-frame,
.rule-card-item,
.video-player-card,
.topic-matrix-card,
.multi-topic-card,
.multi-topic-card-wrapper,
.madressa-card,
.qa-card,
.resource-matrix-card,
.resource-link-card,
.resource-multi-card,
.scholar-card,
.ulama-action-btn,
.recent-ulama-card,
.ulama-multi-card,
.ulama-multi-action,
.ulama-ledger-table tbody tr,
.book-compilation-card,
.prose-academic-block,
.article-curated-item,
.video-highlight-item,
.sunni-critique-box,
.hadith-table-wrap,
.fourteen-centuries-table-wrap,
.hadith-critique-box,
.supplication-luxury-box,
.content-section-title,
.section-header-flex,
.section-header-luxury,
.section-header-modern,
.bottom-action-buttons-wrapper,
.back-to-main-wrapper,
.site-footer .footer-brand-title,
.site-footer .footer-mission-text,
.site-footer .footer-featured-portal-box,
.site-footer .footer-column-heading,
.site-footer .footer-menu-links li,
.site-footer .footer-bottom-bar {
    opacity: 0;
}

/* Headings inside animatable card containers/headers naturally inherit visibility with their parent */
.interior-card-container .content-section-title,
.taqlid-intro-card .content-section-title,
.section-header-flex .content-section-title,
.section-header-luxury .content-section-title,
.section-header-modern .content-section-title {
    opacity: 1;
}


/* Global Interactive Links & Typography */
a {
    color: var(--emerald-primary);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
    color: var(--gold-dark);
}

/* Meta Source Bars (Info Banners, Source Summaries & Extracts) */
.meta-source-bar {
    background: #ffffff;
    border: 1px solid rgba(10, 95, 81, 0.15);
    border-left: 4px solid var(--emerald-teal);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-source-bar a {
    color: var(--emerald-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.45);
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.meta-source-bar a:hover {
    color: var(--gold-dark);
    text-decoration-color: var(--gold-primary);
}

/* Inline content links within text blocks, paragraphs, and quote cards */
.interior-card-container a:not([class]),
.interior-main-content p a:not([class]),
.interior-main-content li a:not([class]),
.book-card-details a,
.hadith-quote-banner a,
.hadith-pedagogy-quote a,
.taqlid-lead-text a,
.tawqee-quote-box a,
.ulama-quote-banner a,
.ulama-featured-banner a {
    color: var(--emerald-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.45);
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.interior-card-container a:not([class]):hover,
.interior-main-content p a:not([class]):hover,
.interior-main-content li a:not([class]):hover,
.book-card-details a:hover,
.hadith-quote-banner a:hover,
.hadith-pedagogy-quote a:hover,
.taqlid-lead-text a:hover,
.tawqee-quote-box a:hover,
.ulama-quote-banner a:hover,
.ulama-featured-banner a:hover {
    color: var(--gold-dark);
    text-decoration-color: var(--gold-primary);
}

/* Islamic Geometric Micro-Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(14, 125, 107, 0.035) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.04) 0%, transparent 45%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%230a5f51' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    font-weight: 800;
    padding: 0.65rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 99999;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Fluid Professional Container - Scales Gracefully on Zoom Out & Desktop */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3.5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   3. LUXURY PRELOADER (SINGLE LANGUAGE & STABLE LAYOUT)
   -------------------------------------------------------------------------- */
.site-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #011210;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
    will-change: opacity, visibility;
}

.site-preloader.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-preloader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.preloader-inner {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 720px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-symbol-wrapper {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderSymbolEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.preloader-ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-ring-outer {
    position: absolute;
    inset: -6px;
    border: 2px dashed var(--gold-primary);
    border-radius: 50%;
    animation: preloaderSpin 12s linear infinite;
}

.preloader-crest {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #063830 0%, #03211c 100%);
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.preloader-calligraphy {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    animation: preloaderCalligraphyEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.preloader-bismillah-svg {
    width: 100%;
    max-width: 580px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.5));
}

.preloader-progress-track {
    width: 100%;
    max-width: 440px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    animation: preloaderSymbolEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--grad-gold-foil);
    box-shadow: 0 0 10px var(--gold-primary);
    transition: width 0.25s ease;
}

@keyframes preloaderSymbolEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes preloaderCalligraphyEntrance {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.82);
        filter: blur(10px);
    }

    60% {
        opacity: 0.95;
        transform: translateY(-3px) scale(1.02);
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes preloaderSpin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* --------------------------------------------------------------------------
   4. FLOATING BRAND HEADER (LOGO FAR LEFT, NAV TABS FAR RIGHT)
   -------------------------------------------------------------------------- */
.header-floating-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(1, 18, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--gold-primary);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: clamp(1rem, 2.5vw, 2.5rem);
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Brand Identity (Far Left) */
.header-brand-link,
.drawer-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.brand-monogram-badge {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #063830 0%, #03211c 100%);
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: transform var(--transition-spring);
    margin: 0;
}

.header-brand-link:hover .brand-monogram-badge,
.drawer-brand-group:hover .brand-monogram-badge {
    transform: scale(1.08) rotate(3deg);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Desktop Navigation Menu (Far Right) */
.desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-tab-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tab-item {
    position: relative;
}

.nav-tab-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.nav-tab-link i {
    font-size: 0.78rem;
    opacity: 0.8;
}

.nav-tab-link:hover {
    color: var(--gold-shimmer);
    background: rgba(255, 255, 255, 0.12);
}

.nav-tab-link.active {
    color: var(--bg-obsidian);
    background: var(--grad-gold-foil);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.nav-tab-link.active i {
    color: var(--bg-obsidian);
    opacity: 1;
}

/* Mobile Toggle - hidden on desktop */
.header-action-wrapper {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-navigation {
        display: none;
    }

    .header-action-wrapper {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .nav-toggle-btn {
        display: flex;
    }
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-sm);
    padding: 10px 9px;
    cursor: pointer;
}

.nav-toggle-btn .toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
}

/* Mobile Drawer Overlay & Panel */
html.drawer-open,
body.drawer-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

body.drawer-open .mobile-drawer-panel {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: min(340px, 88vw);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bg-obsidian);
    border-left: 2px solid var(--gold-primary);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem max(2rem, env(safe-area-inset-bottom, 24px)) 1.25rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-drawer-panel.active {
    right: 0;
}

/* Tablet & Large Screen Mobile Drawer Width & Proportion */
@media (min-width: 601px) and (max-width: 1024px) {
    .mobile-drawer-panel {
        width: min(440px, 60vw);
        padding: 1.75rem 1.75rem max(2.5rem, env(safe-area-inset-bottom, 28px)) 1.75rem;
    }

    .drawer-head {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .drawer-brand-group .brand-name {
        font-size: 1.35rem;
    }

    .drawer-brand-group .brand-monogram-badge {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .drawer-close-btn {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .drawer-link {
        font-size: 1.05rem;
        padding: 0.9rem 1.2rem;
        min-height: 52px;
        gap: 1rem;
    }

    .drawer-link i {
        font-size: 1.2rem;
        width: 26px;
    }

    .drawer-btn-pill {
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
        min-height: 52px;
    }
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.drawer-brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    color: var(--gold-light);
    font-size: 1.25rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-close-btn:active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
}

.drawer-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Eliminate All Bullets / Markers / Dots from Nav Lists */
.mobile-drawer-panel ul,
.mobile-drawer-panel ol,
.mobile-drawer-panel li,
.drawer-menu-list,
.drawer-nav-list,
.drawer-menu-list li,
.drawer-nav-list li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-drawer-panel li::marker,
.drawer-menu-list li::marker,
.drawer-nav-list li::marker {
    display: none !important;
    content: "" !important;
    font-size: 0 !important;
}

.mobile-drawer-panel li::before,
.mobile-drawer-panel li::after,
.drawer-menu-list li::before,
.drawer-nav-list li::before {
    display: none !important;
    content: none !important;
}

.drawer-menu-list,
.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    min-height: 46px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 2;
}

.drawer-link i {
    width: 22px;
    text-align: center;
    color: var(--gold-primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link:active,
.drawer-link.active {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-shimmer);
}

.drawer-footer-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.drawer-btn-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-btn-pill:active {
    transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   5. SECTION 1: HERO SANCTUARY SHOWCASE (Obsidian, Velvet Emerald & Gold)
   -------------------------------------------------------------------------- */
.hero-sanctuary-section {
    background: var(--grad-obsidian-hero);
    color: #ffffff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold-primary);
}

/* Ambient Lighting Orbs */
.hero-glow-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.25;
}

.glow-orb-left {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--emerald-bright) 0%, transparent 70%);
}

.glow-orb-right {
    bottom: -50px;
    right: -100px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Awareness Pill (Fiqh & Ulama) */
.hero-awareness-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.25rem;
}

.hero-awareness-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-gold-bright);
    border-radius: var(--radius-pill);
    padding: 0.75rem 2.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.3);
}

.hero-awareness-pill i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

/* Illuminated Statement Glass Card */
.hero-statement-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    margin-bottom: 2rem;
}

.statement-decorator-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--gold-primary);
    border-style: solid;
    pointer-events: none;
}

.corner-tl {
    top: 12px;
    left: 12px;
    border-width: 2px 0 0 2px;
}

.corner-tr {
    top: 12px;
    right: 12px;
    border-width: 2px 2px 0 0;
}

.corner-bl {
    bottom: 12px;
    left: 12px;
    border-width: 0 0 2px 2px;
}

.corner-br {
    bottom: 12px;
    right: 12px;
    border-width: 0 2px 2px 0;
}

.hero-statement-text {
    font-size: 1.25rem;
    line-height: 2.1;
    color: #ffffff;
    font-style: italic;
    font-weight: 400;
}

.statement-highlight {
    display: inline-block;
    color: var(--gold-light);
    font-weight: 700;
    font-style: normal;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    margin-top: 0.35rem;
}

/* Knowledge Gateway Action Pods (Matching Full Statement Width) */
.hero-gateways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.gateway-card-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.gateway-card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-gold-accent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.gateway-icon-halo {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    background: rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gateway-content-meta {
    position: relative;
    z-index: 1;
    flex: 1;
}

.gateway-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.gateway-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.gateway-arrow-indicator {
    position: relative;
    z-index: 1;
    color: var(--gold-light);
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.gateway-card-link:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 16px 45px rgba(212, 175, 55, 0.35);
}

.gateway-card-link:hover::before {
    opacity: 1;
}

.gateway-card-link:hover .gateway-icon-halo {
    background: var(--bg-obsidian);
    color: var(--gold-bright);
    transform: scale(1.1);
}

.gateway-card-link:hover .gateway-subtitle {
    color: var(--bg-emerald-deep);
}

.gateway-card-link:hover .gateway-title {
    color: var(--bg-obsidian);
}

.gateway-card-link:hover .gateway-arrow-indicator {
    color: var(--bg-obsidian);
    transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   6. SECTION HEADERS & KICKER BADGES (ORIGINAL STYLING RESTORED)
   -------------------------------------------------------------------------- */
.section-header-modern {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.section-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 95, 81, 0.08);
    color: var(--emerald-teal);
    border: 1.5px solid rgba(10, 95, 81, 0.2);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

.badge-theme-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

.section-title-display {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.title-light {
    color: #ffffff;
}

.section-lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.lead-light {
    color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   7. SECTION 2: JURISPRUDENCE BENTO MATRIX (WITH STAGED ROW ANIMATION)
   -------------------------------------------------------------------------- */
.section-fiqh-bento {
    padding: 5rem 0;
    background: var(--bg-silk-light);
}

.bento-fiqh-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.bento-card {
    background: var(--bg-card-light);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-gold-subtle);
}

.bento-card-header {
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    background: var(--grad-emerald-accent);
    color: #ffffff;
    border-bottom: 2px solid var(--gold-primary);
}

.bento-card-rules .bento-card-header {
    background: linear-gradient(135deg, #07473d 0%, #106f60 100%);
}

.bento-card-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid var(--gold-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.bento-header-title-wrap {
    display: flex;
    flex-direction: column;
}

.bento-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
}

.bento-card-title {
    font-family: 'Lora', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.bento-items-list {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    background: var(--grad-card-surface);
}

.bento-row-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-fast);
}

.bento-row-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.icon-glow-salaat {
    background: #e0f2fe;
    color: #0284c7;
}

.icon-glow-sawm {
    background: #fef3c7;
    color: #d97706;
}

.icon-glow-khums {
    background: #dcfce7;
    color: #16a34a;
}

.icon-glow-amr {
    background: #f0fdfa;
    color: #0d9488;
}

.icon-glow-food {
    background: #dcfce7;
    color: #15803d;
}

.icon-glow-family {
    background: #ffe4e6;
    color: #e11d48;
}

.icon-glow-business {
    background: #e0e7ff;
    color: #4338ca;
}

.icon-glow-death {
    background: #f1f5f9;
    color: #475569;
}

.bento-row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-row-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.bento-row-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bento-row-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.bento-row-link:hover {
    border-color: var(--gold-primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}

.bento-row-link:hover .bento-row-icon {
    transform: scale(1.12);
}

.bento-row-link:hover .bento-row-title {
    color: var(--emerald-primary);
}

.bento-row-link:hover .bento-row-arrow {
    color: var(--gold-dark);
    opacity: 1;
    transform: translateX(4px);
}

.bento-card-footer {
    padding: 1.25rem 2rem 1.75rem;
    background: var(--grad-card-surface);
    border-top: 1px solid rgba(10, 95, 81, 0.08);
    text-align: center;
}

.btn-bento-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: var(--grad-emerald-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(10, 95, 81, 0.25);
    transition: all var(--transition-smooth);
}

.btn-bento-secondary {
    background: linear-gradient(135deg, #042e26 0%, #0a5f51 100%);
}

.btn-bento-action:hover {
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-button);
}

/* --------------------------------------------------------------------------
   8. SECTION 3: SOURCES OF ISLAMIC LAWS (Dark Luxe Obsidian Vault)
   -------------------------------------------------------------------------- */
.section-foundations-vault {
    background: var(--grad-obsidian-section);
    color: #ffffff;
    padding: 5rem 0;
    border-top: 3px solid var(--gold-primary);
    border-bottom: 3px solid var(--gold-primary);
    position: relative;
}

.vault-architecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.vault-pillar-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass-dark);
    transition: all var(--transition-smooth);
}

.vault-pillar-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass-dark), 0 0 35px rgba(212, 175, 55, 0.25);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1.75rem;
}

.pillar-emblem {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.3;
}

.pillar-heading-link {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pillar-heading-link:hover {
    color: var(--gold-shimmer);
}

.pillar-sources-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-sources-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.pillar-sources-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(5px);
}

.pillar-source-icon {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pillar-source-content {
    display: flex;
    flex-direction: column;
}

.pillar-link-highlight {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pillar-link-highlight:hover {
    color: var(--gold-light);
}

.pillar-link-desc {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

/* Logical Taqlid Proof Portal Banner */
.vault-proof-portal {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(6, 56, 48, 0.7) 100%);
    backdrop-filter: blur(16px);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.proof-statement-row {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex: 1;
}

.proof-status-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-obsidian);
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.proof-statement-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.5;
}

.proof-link-gold {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.proof-link-gold:hover {
    color: var(--gold-shimmer);
}

.btn-vault-books-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 1.15rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: var(--shadow-gold-button);
    text-align: center;
    max-width: 100%;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.btn-vault-books-portal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 45px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   9. SECTION 4: SACRED TRANSMISSION TIMELINE (UNIFORM FIXED CARDS & ARROWS)
   -------------------------------------------------------------------------- */
.section-lineage-track {
    padding: 5rem 0;
    background: var(--bg-silk-light);
}

.timeline-stream-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-node-card {
    background: #ffffff;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: all var(--transition-smooth);
}

.timeline-node-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-card-hover);
}

.node-number-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--emerald-teal);
    background: var(--emerald-soft);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.badge-gold {
    color: var(--gold-dark);
    background: var(--gold-light);
}

.node-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.icon-node-prophet {
    background: #fef3c7;
    color: #d97706;
}

.icon-node-companions {
    background: #e0f2fe;
    color: #0284c7;
}

.icon-node-ulama {
    background: #dcfce7;
    color: #15803d;
}

.node-phase-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--emerald-teal);
    margin-bottom: 0.35rem;
}

.tag-gold {
    color: var(--gold-dark);
}

.node-title {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.node-title a {
    color: var(--emerald-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.node-title a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

.node-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.highlight-node {
    background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
    border-color: var(--gold-primary);
}

/* Centered Arrow Bridge */
.timeline-arrow-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.arrow-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: transform var(--transition-spring), background 0.3s ease, color 0.3s ease;
}

.timeline-arrow-bridge:hover .arrow-circle {
    transform: scale(1.15);
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
}

/* --------------------------------------------------------------------------
   10. SECTION 5: GLOBAL EDUCATIONAL RESOURCES
   -------------------------------------------------------------------------- */
.section-learning-portals {
    padding: 5rem 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
}

.portals-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portal-hub-card {
    background: var(--bg-card-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-smooth);
}

.portal-hub-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    background: #ffffff;
    box-shadow: var(--shadow-card-hover);
}

.portal-card-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.portal-hub-card:hover .portal-card-badge {
    transform: scale(1.1);
}

.badge-madressa {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-qa {
    background: #fef3c7;
    color: #b45309;
}

.badge-indian {
    background: #f0fdf4;
    color: #15803d;
}

.portal-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--emerald-teal);
    margin-bottom: 0.4rem;
}

.portal-card-title {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.portal-card-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portal-card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.portal-hub-card:hover .portal-card-action {
    color: var(--gold-dark);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. SECTION 6: ILLUMINATED HADITH MONUMENT
   -------------------------------------------------------------------------- */
.section-quote-monument {
    padding: 5rem 0;
    background: var(--bg-silk-light);
}

.quote-masterpiece-frame {
    background: var(--grad-obsidian-section);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--gold-glow-lg);
    position: relative;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.quote-background-arabesque {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.quote-gold-icon {
    font-size: 2.75rem;
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.quote-core-passage {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 2rem;
}

.quote-author-cite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.cite-line {
    width: 60px;
    height: 1.5px;
    background: var(--gold-primary);
}

.cite-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    font-style: normal;
}

/* --------------------------------------------------------------------------
   12. GLOBAL FOOTER (CENTERED REGAL TOP SUMMARY)
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-obsidian);
    color: #ffffff;
    padding: 5rem 0 2.5rem;
    border-top: 3px solid var(--gold-primary);
    position: relative;
}

.footer-top-row {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-brand-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-mission-text {
    font-size: 1.05rem;
    color: var(--text-light-muted);
    line-height: 1.8;
    text-align: center;
}

/* Prominent Jurisprudence Sister Portal Footer Card */
.footer-featured-portal-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(6, 56, 48, 0.88) 0%, rgba(3, 33, 28, 0.96) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.25rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(250, 235, 170, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-featured-portal-box:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 16px 45px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(250, 235, 170, 0.3);
    transform: translateY(-2px);
}

.portal-badge-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.portal-badge-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1.5px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.portal-badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.portal-badge-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.portal-badge-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.portal-badge-desc {
    font-size: 0.95rem;
    color: var(--text-light-muted);
    margin: 0;
    line-height: 1.5;
}

.btn-portal-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-portal-featured:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    color: var(--bg-obsidian);
}

.btn-portal-featured:active {
    transform: scale(0.98);
}

@media (max-width: 860px) {
    .footer-featured-portal-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .portal-badge-left {
        align-items: flex-start;
        gap: 1.1rem;
    }

    .portal-badge-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .portal-badge-title {
        font-size: 1.1rem;
    }

    .btn-portal-featured {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-column-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-menu-links li {
    display: flex;
    align-items: center;
    width: 100%;
}

.footer-menu-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: fit-content;
    align-self: flex-start;
    transition: all 0.25s ease;
}

.footer-menu-links a i {
    font-size: 0.8rem;
    color: var(--gold-primary);
    transition: transform 0.2s ease;
}

.footer-menu-links a:hover {
    color: var(--gold-shimmer);
    transform: translateX(4px);
}

.footer-menu-links a:hover i {
    transform: scale(1.2);
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    text-align: center;
}

.copyright-statement {
    color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   13. FLOATING BACK TO TOP BUTTON WITH SCROLL RING
   -------------------------------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: var(--bg-obsidian);
    border: none;
    border-radius: 50%;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0) scale(1);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.18s ease,
                color 0.18s ease,
                background 0.18s ease,
                opacity 0.25s ease,
                visibility 0.25s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    color: var(--gold-shimmer);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring-circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.15s ease;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES (FLUID BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
    .desktop-navigation {
        display: none;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .timeline-stream-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-arrow-bridge {
        display: none;
    }
}

@media (max-width: 992px) {

    .bento-fiqh-grid,
    .vault-architecture-grid,
    .portals-hub-grid {
        grid-template-columns: 1fr;
    }

    .hero-gateways-grid {
        grid-template-columns: 1fr;
    }

    .vault-proof-portal {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .proof-statement-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .btn-vault-books-portal {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
        white-space: normal;
        border-radius: var(--radius-pill);
        line-height: 1.35;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title-display {
        font-size: 2rem;
    }

    .hero-statement-text {
        font-size: 1.08rem;
    }

    .calligraphy-text {
        font-size: 1.8rem;
    }

    .calligraphy-pill {
        padding: 0.6rem 2rem;
    }

    .quote-core-passage {
        font-size: 1.35rem;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-awareness-pill {
        font-size: 0.92rem;
        padding: 0.6rem 1.4rem;
        letter-spacing: 1px;
    }

    .brand-name {
        font-size: 1.1rem;
        letter-spacing: 1.2px;
    }

    .brand-monogram-badge {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .hero-statement-card {
        padding: 1.75rem 1.25rem;
    }

    .quote-masterpiece-frame {
        padding: 2.25rem 1.5rem;
    }

    .bento-card-header,
    .bento-items-list,
    .bento-card-footer {
        padding: 1.25rem 1.25rem;
    }

    .vault-proof-portal {
        padding: 1.75rem 1rem;
    }

    .proof-statement-text {
        font-size: 1.05rem;
    }

    .btn-vault-books-portal {
        font-size: 0.88rem;
        padding: 0.9rem 1rem;
        gap: 0.5rem;
    }
}

@media (max-width: 580px) {
    .btn-vault-books-portal i {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   15. TOUCH-DEVICE / NO-CURSOR OPTIMIZATIONS (PREVENT STICKY HOVER & BAD TAPS)
   -------------------------------------------------------------------------- */
@media (hover: none) or (pointer: coarse) {
    /* Reset sticky transform and hover visual traps on touch devices */
    .gateway-card-link:hover,
    .bento-card:hover,
    .bento-row-link:hover,
    .vault-pillar-card:hover,
    .pillar-sources-list li:hover,
    .timeline-node-card:hover,
    .portal-hub-card:hover,
    .btn-vault-books-portal:hover,
    .btn-bento-action:hover,
    .back-to-top-btn:hover,
    .footer-menu-links a:hover,
    .header-brand-link:hover .brand-monogram-badge,
    .drawer-brand-group:hover .brand-monogram-badge {
        transform: none !important;
        box-shadow: inherit;
    }

    .gateway-card-link:hover::before {
        opacity: 0 !important;
    }

    .gateway-card-link:hover .gateway-icon-halo {
        background: rgba(212, 175, 55, 0.15) !important;
        color: var(--gold-light) !important;
        transform: none !important;
    }

    .gateway-card-link:hover .gateway-subtitle {
        color: var(--gold-light) !important;
    }

    .gateway-card-link:hover .gateway-title,
    .gateway-card-link:hover .gateway-arrow-indicator {
        color: #ffffff !important;
        transform: none !important;
    }

    .bento-row-link:hover .bento-row-icon,
    .bento-row-link:hover .bento-row-arrow,
    .portal-hub-card:hover .portal-card-badge,
    .portal-hub-card:hover .portal-card-action {
        transform: none !important;
    }

    /* Provide clean, immediate tactile touch-down feedback that releases instantly */
    .gateway-card-link:active,
    .bento-card:active,
    .bento-row-link:active,
    .vault-pillar-card:active,
    .portal-hub-card:active,
    .btn-vault-books-portal:active,
    .btn-bento-action:active,
    .drawer-btn-pill:active,
    .nav-toggle-btn:active,
    .drawer-close-btn:active {
        transform: scale(0.98) !important;
        opacity: 0.9;
        transition: transform 0.08s ease, opacity 0.08s ease;
    }

    .drawer-link:active {
        background: rgba(212, 175, 55, 0.2);
    }
}

/* ==========================================================================
   INTERIOR PAGES DESIGN SYSTEM EXTENSIONS
   ========================================================================== */

/* Interior Page Hero */
.interior-hero {
    position: relative;
    padding: 3rem 0;
    background: var(--grad-obsidian-hero);
    color: var(--text-light);
    overflow: hidden;
    border-bottom: 2px solid var(--gold-primary);
    text-align: center;
}

.interior-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(21, 168, 144, 0.15), transparent 70%);
    pointer-events: none;
}

.interior-hero .container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.interior-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.75rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-gold-bright);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.3);
    margin-bottom: 1.25rem;
}

.interior-hero-badge i {
    color: var(--gold-primary);
    font-size: 1rem;
}

.interior-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
}

.interior-hero-title .gold-accent {
    background: var(--grad-gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interior-hero-desc {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-light-muted);
    line-height: 1.6;
}

/* Breadcrumb Bar */
.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-nav a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Content Container & Sections */
.interior-main-content {
    padding: 60px 0 100px;
    background: var(--bg-silk-light);
}

.interior-card-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .interior-card-container {
        padding: 24px 16px;
    }
}

/* Section Header in Content */
.content-section-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--emerald-dark);
    margin-top: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

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

.content-section-title i {
    color: var(--gold-primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Luxury Quote Callout */
.hadith-quote-card {
    background: linear-gradient(135deg, rgba(6, 56, 48, 0.95), rgba(1, 18, 16, 0.98));
    border: 1px solid var(--border-gold-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    color: #ffffff;
    position: relative;
    box-shadow: var(--shadow-glass-dark);
}

.hadith-quote-card .arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--gold-shimmer);
    text-align: center;
    margin-bottom: 16px;
    direction: rtl;
}

.hadith-quote-card .translation {
    font-size: 1.05rem;
    color: var(--text-light-muted);
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 12px;
}

.hadith-quote-card .reference {
    text-align: center;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modern Luxury Tables */
.modern-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 30px;
    background: #ffffff;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}

.modern-table thead th {
    background: var(--emerald-dark);
    color: var(--gold-light);
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--gold-primary);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.modern-table tbody tr {
    border-bottom: 1px solid rgba(10, 95, 81, 0.08);
    transition: background var(--transition-fast);
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background: rgba(14, 125, 107, 0.04);
}

.modern-table td {
    padding: 14px 20px;
    color: var(--text-primary);
    vertical-align: middle;
}

.modern-table a {
    color: var(--emerald-teal);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.modern-table a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Modern Grid Cards for Books, Topics, Resources */
.modern-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.modern-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

@media (max-width: 600px) {
    .modern-grid-3, .modern-grid-2 {
        grid-template-columns: 1fr;
    }
}

.modern-entry-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.modern-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-gold-subtle);
}

.modern-entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--emerald-teal);
    transition: background var(--transition-fast);
}

.modern-entry-card:hover::before {
    background: var(--gold-primary);
}

.card-badge-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.card-entry-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emerald-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.card-entry-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(10, 95, 81, 0.08);
    padding-top: 14px;
    margin-top: auto;
}

.btn-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    border: 1px solid transparent;
}

.btn-pill-link:hover {
    background: var(--emerald-dark);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

.btn-pill-link.btn-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-dark);
    border-color: var(--border-gold-subtle);
}

.btn-pill-link.btn-gold:hover {
    background: var(--gold-primary);
    color: #ffffff;
}

/* Quick Filter Search Bar */
.search-filter-box {
    margin-bottom: 30px;
    position: relative;
    max-width: 600px;
}

.search-filter-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    background: #ffffff;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
    outline: none;
    transition: all var(--transition-fast);
}

.search-filter-box input:focus {
    border-color: var(--emerald-teal);
    box-shadow: 0 0 0 3px rgba(14, 125, 107, 0.2);
}

.search-filter-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* Equal-Width Bottom Action Buttons for Fiqh and Interior Pages */
.bottom-action-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 36px 20px 16px;
    margin: 0 auto;
    text-align: center;
    max-width: 680px;
    width: 100%;
    box-sizing: border-box;
}

.bottom-action-buttons-wrapper .btn-action-gold,
.btn-action-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--grad-gold-foil);
    color: var(--bg-obsidian);
    font-weight: 800;
    font-size: 0.98rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: var(--shadow-gold-button);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1 1 260px;
    max-width: 320px;
    box-sizing: border-box;
    text-align: center;
}

.bottom-action-buttons-wrapper .btn-action-gold:hover,
.btn-action-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    color: var(--bg-obsidian);
}

@media (max-width: 640px) {
    .bottom-action-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 16px 12px;
    }
    .bottom-action-buttons-wrapper .btn-action-gold {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* Top Video Links Bar mobile layout */
    .top-video-links-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px !important;
        margin: 1.2rem 0 1.6rem !important;
    }
    .top-video-links-bar a {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* QA Intro Treatise Link mobile layout */
    .qa-intro-banner {
        padding: 1.4rem 1rem !important;
    }
    .qa-treatise-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 12px 16px !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.9rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }
    .qa-treatise-link i {
        flex-shrink: 0 !important;
    }
    .qa-treatise-link span {
        flex: 1 !important;
        text-align: center !important;
        text-decoration: none !important;
    }

    /* Category Jump Nav mobile layout */
    .category-jump-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px !important;
        margin-bottom: 20px !important;
    }
    .category-jump-pill {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 11px 16px !important;
        box-sizing: border-box !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
    }
    .category-jump-pill i {
        flex-shrink: 0 !important;
    }

    /* Taqlid & Ijtihad Rule Cards & Quotes mobile layout */
    .taqlid-intro-card {
        padding: 1.25rem 1rem !important;
    }
    .tawqee-quote-box {
        padding: 1.1rem 1rem !important;
        font-size: 0.92rem !important;
        line-height: 1.7 !important;
        border-radius: 12px !important;
        margin: 1rem 0 !important;
    }
    .rule-card-item {
        padding: 1.15rem 1rem !important;
        border-left-width: 3px !important;
        border-radius: 12px !important;
    }
    .rule-header-row {
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
    .rule-badge-group {
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .rule-number-badge {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
        margin-top: 2px !important;
    }
    .rule-title-text {
        font-size: 0.98rem !important;
        line-height: 1.45 !important;
    }
    .rule-content-body {
        font-size: 0.93rem !important;
        line-height: 1.7 !important;
        text-align: left !important;
    }
    .rule-content-body blockquote {
        padding: 12px 14px !important;
        margin: 12px 0 !important;
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
        border-left-width: 3px !important;
        border-radius: 8px !important;
        text-align: left !important;
    }
    .rule-content-body blockquote small {
        display: block !important;
        margin-top: 8px !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    .rule-bullet-list {
        gap: 10px !important;
        margin: 10px 0 !important;
    }
    .rule-bullet-list li {
        padding-left: 20px !important;
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    .rule-bullet-list li::before {
        left: 2px !important;
        font-size: 0.8rem !important;
    }

    /* Madressa Supplication & Hadith Quote mobile layout */
    .supplication-luxury-box {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
        margin: 20px 0 16px !important;
    }
    .supplication-title {
        font-size: 1.05rem !important;
        gap: 8px !important;
    }
    .supplication-text {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        margin-bottom: 14px !important;
    }
    .hadith-pedagogy-quote {
        padding: 12px 14px !important;
        border-radius: 8px !important;
        margin-top: 14px !important;
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }
    .hadith-pedagogy-speaker {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    .hadith-arabic-quote {
        font-size: 1.15rem !important;
        line-height: 1.8 !important;
        margin-top: 12px !important;
        padding-top: 10px !important;
    }

    /* Fiqh Topics Matrix Cards & Section Header mobile layout */
    .topics-grid-matrix {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .topic-matrix-card,
    .multi-topic-card {
        padding: 13px 15px !important;
        min-height: 72px !important;
    }
    .topic-card-left {
        gap: 12px !important;
    }
    .topic-card-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        border-radius: 9px !important;
    }
    .topic-card-content {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .topic-card-title {
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .topic-card-arrow {
        margin-left: 8px !important;
    }

    /* Scholar & Ulama Cards & Grids mobile layout */
    .recent-ulama-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ulama-links-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .recent-ulama-card,
    .ulama-action-btn {
        padding: 12px 14px !important;
        min-height: 72px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .ulama-card-left {
        gap: 12px !important;
    }
    .ulama-card-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.05rem !important;
        border-radius: 9px !important;
    }
    .recent-ulama-title {
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
    }
    .ulama-card-meta {
        gap: 6px !important;
    }
    .ulama-date-badge {
        font-size: 0.78rem !important;
        padding: 2px 8px !important;
    }
    .multi-resource-tag {
        font-size: 0.7rem !important;
        padding: 2px 7px !important;
    }
    .multi-ulama-indicator {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
        margin-left: 6px !important;
    }
    .ulama-quote-banner {
        padding: 18px 16px !important;
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }
    .ulama-featured-banner {
        padding: 14px 16px !important;
        margin-bottom: 20px !important;
    }
    .ulama-featured-title {
        font-size: 0.95rem !important;
    }
}

/* --------------------------------------------------------------------------
   20B. UNIVERSAL CARD SYMBOLS & INTERACTION DESIGN SYSTEM
   Standardizes all card symbols, icons, arrows, tags, popovers, and states
   cohesively across every interior and index page on the entire portal.
   -------------------------------------------------------------------------- */

/* 1. Universal Card Icon Square (Default State) */
.topic-card-icon,
.card-icon-wrap,
.ulama-card-icon,
.ulama-btn-icon,
.qa-icon-wrap,
.madressa-icon-wrap,
.gateway-icon-halo,
.resource-card-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: var(--emerald-soft) !important;
    color: var(--emerald-teal) !important;
    border: 1px solid rgba(10, 95, 81, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    transition: all var(--transition-fast) !important;
    box-sizing: border-box !important;
}

/* 2. Universal Card Icon Square (Hover, Focus & Active States) */
.topic-matrix-card:hover .topic-card-icon,
.topic-matrix-card:focus-within .topic-card-icon,
.multi-topic-card:hover .topic-card-icon,
.multi-topic-card:focus-within .topic-card-icon,
.multi-topic-card.is-active .topic-card-icon,
.resource-link-card:hover .card-icon-wrap,
.resource-link-card:focus-within .card-icon-wrap,
.resource-multi-card:hover .card-icon-wrap,
.resource-multi-card:focus-within .card-icon-wrap,
.resource-multi-card.is-active .card-icon-wrap,
.multi-topic-card:hover .card-icon-wrap,
.multi-topic-card:focus-within .card-icon-wrap,
.multi-topic-card.is-active .card-icon-wrap,
.taqlid-card:hover .card-icon-wrap,
.taqlid-card:focus-within .card-icon-wrap,
.recent-ulama-card:hover .ulama-card-icon,
.recent-ulama-card:focus-within .ulama-card-icon,
.ulama-multi-card:hover .ulama-card-icon,
.ulama-multi-card:focus-within .ulama-card-icon,
.ulama-multi-card.is-active .ulama-card-icon,
.ulama-action-btn:hover .ulama-btn-icon,
.ulama-action-btn:focus-within .ulama-btn-icon,
.ulama-action-btn.is-active .ulama-btn-icon,
.qa-card:hover .card-icon-wrap,
.qa-card:focus-within .card-icon-wrap,
.qa-card:hover .qa-icon-wrap,
.qa-card:focus-within .qa-icon-wrap,
.madressa-card:hover .card-icon-wrap,
.madressa-card:focus-within .card-icon-wrap,
.madressa-card:hover .madressa-icon-wrap,
.madressa-card:focus-within .madressa-icon-wrap,
.gateway-card-link:hover .gateway-icon-halo {
    transform: scale(1.08) rotate(3deg) !important;
    background: var(--emerald-dark) !important;
    color: var(--gold-primary) !important;
    border-color: var(--emerald-dark) !important;
}

/* 3. Universal Card Height & Layout Alignment for Ulama Action Buttons */
.ulama-action-btn {
    min-height: 82px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.ulama-action-btn-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* 4. Universal Right Arrow for Single Link Cards */
.topic-card-arrow,
.card-arrow,
.recent-ulama-arrow,
.recent-ulama-card-arrow,
.gateway-arrow-indicator,
.ulama-action-btn .fa-chevron-right {
    color: var(--gold-dark) !important;
    font-size: 0.85rem !important;
    margin-left: 10px !important;
    flex-shrink: 0 !important;
    opacity: 0.6 !important;
    transition: all var(--transition-fast) !important;
}

.topic-matrix-card:hover .topic-card-arrow,
.resource-link-card:hover .card-arrow,
.taqlid-card:hover .card-arrow,
.recent-ulama-card:hover .recent-ulama-arrow,
.recent-ulama-card:hover .recent-ulama-card-arrow,
.qa-card:hover .card-arrow,
.madressa-card:hover .card-arrow,
.gateway-card-link:hover .gateway-arrow-indicator,
.ulama-action-btn:hover .fa-chevron-right {
    opacity: 1 !important;
    transform: translateX(3px) !important;
    color: var(--emerald-dark) !important;
}

/* 5. Universal Action Chips, Category Jump Pills & Meta Info Icons */
.book-action-chip i,
.category-jump-pill i,
.seminar-meta-item i,
.meta-source-bar i,
.seminar-meta-grid i {
    color: var(--emerald-teal) !important;
    transition: all var(--transition-fast) !important;
}

.book-action-chip:hover i,
.category-jump-pill:hover i,
.category-jump-pill.active i {
    color: var(--gold-primary) !important;
}

/* --------------------------------------------------------------------------
   21. MOBILE & TABLET MULTI-CARD POPOVER TAP-TO-TOGGLE ENHANCEMENT
   Ensures popovers toggle open/close cleanly on click/tap of card or arrow
   without requiring click outside. Desktop hover & focus remain untouched.
   -------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
    /* When card is NOT active, force popover closed even if tapped/focused */
    .multi-topic-card:not(.is-active) .multi-topic-popover,
    .ulama-multi-card:not(.is-active) .ulama-multi-popover,
    .ulama-action-btn.ulama-multi-action:not(.is-active) .ulama-multi-popover,
    .resource-multi-card:not(.is-active) .multi-topic-popover,
    .resource-multi-card:not(.is-active) .hadith-multi-popover {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(4px) !important;
    }

    /* Reset arrow indicators when card is not active */
    .multi-topic-card:not(.is-active) .multi-topic-indicator,
    .ulama-multi-card:not(.is-active) .multi-ulama-indicator,
    .ulama-action-btn.ulama-multi-action:not(.is-active) .multi-ulama-indicator,
    .resource-multi-card:not(.is-active) .multi-topic-indicator,
    .resource-multi-card:not(.is-active) .multi-card-indicator {
        transform: rotate(0deg) !important;
        background: rgba(10, 95, 81, 0.06) !important;
        color: var(--emerald-teal) !important;
    }

    /* Reset card visual styles when not active */
    .multi-topic-card:not(.is-active),
    .ulama-multi-card:not(.is-active),
    .ulama-action-btn.ulama-multi-action:not(.is-active),
    .resource-multi-card:not(.is-active) {
        border-color: rgba(10, 95, 81, 0.15) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        background: #ffffff !important;
        z-index: 10 !important;
        transform: none !important;
    }

    .multi-topic-card:not(.is-active)::before,
    .ulama-multi-card:not(.is-active)::before,
    .ulama-action-btn.ulama-multi-action:not(.is-active)::before,
    .resource-multi-card:not(.is-active)::before {
        opacity: 0.8 !important;
    }

    .multi-topic-card:not(.is-active) .card-icon-wrap,
    .multi-topic-card:not(.is-active) .topic-card-icon,
    .ulama-multi-card:not(.is-active) .ulama-card-icon,
    .ulama-action-btn.ulama-multi-action:not(.is-active) .ulama-btn-icon,
    .resource-multi-card:not(.is-active) .card-icon-wrap {
        transform: none !important;
        background: var(--emerald-soft) !important;
        color: var(--emerald-teal) !important;
    }

    .multi-topic-card:not(.is-active) .multi-resource-tag,
    .ulama-multi-card:not(.is-active) .multi-resource-tag,
    .ulama-action-btn.ulama-multi-action:not(.is-active) .multi-resource-tag,
    .resource-multi-card:not(.is-active) .multi-resource-tag {
        background: var(--emerald-soft) !important;
        color: var(--emerald-dark) !important;
        border-color: rgba(10, 95, 81, 0.18) !important;
    }

    .multi-topic-card:not(.is-active) .card-title,
    .multi-topic-card:not(.is-active) .topic-card-title,
    .ulama-multi-card:not(.is-active) .recent-ulama-title,
    .resource-multi-card:not(.is-active) .card-title {
        color: var(--text-primary) !important;
    }

    /* When card IS active on mobile & tablet, show popover and rotate arrow */
    .multi-topic-card.is-active .multi-topic-popover,
    .ulama-multi-card.is-active .ulama-multi-popover,
    .ulama-action-btn.ulama-multi-action.is-active .ulama-multi-popover,
    .resource-multi-card.is-active .multi-topic-popover,
    .resource-multi-card.is-active .hadith-multi-popover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .multi-topic-card.is-active .multi-topic-indicator,
    .ulama-multi-card.is-active .multi-ulama-indicator,
    .ulama-action-btn.ulama-multi-action.is-active .multi-ulama-indicator,
    .resource-multi-card.is-active .multi-topic-indicator,
    .resource-multi-card.is-active .multi-card-indicator {
        background: var(--emerald-dark) !important;
        color: var(--gold-primary) !important;
        transform: rotate(180deg) !important;
    }

    .multi-topic-card.is-active,
    .ulama-multi-card.is-active,
    .ulama-action-btn.ulama-multi-action.is-active,
    .resource-multi-card.is-active {
        border-color: var(--gold-primary) !important;
        box-shadow: 0 10px 28px rgba(212, 175, 55, 0.22) !important;
        background: #fdfdfc !important;
        z-index: 999 !important;
        transform: translateY(-3px) !important;
    }

    .multi-topic-card.is-active::before,
    .ulama-multi-card.is-active::before,
    .ulama-action-btn.ulama-multi-action.is-active::before,
    .resource-multi-card.is-active::before {
        opacity: 1 !important;
    }

    .multi-topic-card.is-active .card-icon-wrap,
    .multi-topic-card.is-active .topic-card-icon,
    .ulama-multi-card.is-active .ulama-card-icon,
    .ulama-action-btn.ulama-multi-action.is-active .ulama-btn-icon,
    .resource-multi-card.is-active .card-icon-wrap {
        transform: scale(1.08) rotate(3deg) !important;
        background: var(--emerald-dark) !important;
        color: var(--gold-primary) !important;
    }

    .multi-topic-card.is-active .multi-resource-tag,
    .ulama-multi-card.is-active .multi-resource-tag,
    .ulama-action-btn.ulama-multi-action.is-active .multi-resource-tag,
    .resource-multi-card.is-active .multi-resource-tag {
        background: var(--emerald-dark) !important;
        color: #ffffff !important;
        border-color: var(--gold-primary) !important;
    }

    .multi-topic-card.is-active .card-title,
    .multi-topic-card.is-active .topic-card-title,
    .ulama-multi-card.is-active .recent-ulama-title,
    .resource-multi-card.is-active .card-title {
        color: var(--emerald-dark) !important;
    }
}