@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&family=Gulzar&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/jameel-noori-nastaleeq');

/* ==========================================================================
   AUTHENTIC JAMEEL NOORI NASTALEEQ FONT DECLARATIONS
   ========================================================================== */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Jameel Noori Nastaleeq'),
         local('Jameel Noori Nastaleeq Regular'),
         local('JameelNooriNastaleeq'),
         local('JNooriNastaleeq'),
         url('/assets/fonts/JameelNooriNastaleeqRegular.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/149204/JameelNooriNastaleeqRegular.woff') format('woff');
}

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Jameel Noori Nastaleeq Bold'),
         local('Jameel Noori Nastaleeq'),
         local('JameelNooriNastaleeq'),
         url('/assets/fonts/JameelNooriNastaleeqRegular.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/149204/JameelNooriNastaleeqRegular.woff') format('woff');
}

/* ==========================================================================
   AUTHENTIC ZARNEGAR (B ZAR / XB ZAR) FONT DECLARATIONS FOR PERSIAN
   ========================================================================== */
@font-face {
    font-family: 'Zarnegar';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Zarnegar'),
         local('B Zar'),
         local('XB Zar'),
         local('BZar'),
         url('/assets/fonts/XB-Zar.ttf') format('truetype'),
         url('/assets/fonts/BZar.woff') format('woff');
}

@font-face {
    font-family: 'Zarnegar';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Zarnegar Bold'),
         local('B Zar Bold'),
         local('XB Zar Bold'),
         local('BZarBold'),
         url('/assets/fonts/XB-Zar.ttf') format('truetype'),
         url('/assets/fonts/BZar.woff') format('woff');
}

@font-face {
    font-family: 'B Zar';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('B Zar'),
         local('Zarnegar'),
         local('XB Zar'),
         url('/assets/fonts/XB-Zar.ttf') format('truetype'),
         url('/assets/fonts/BZar.woff') format('woff');
}

@font-face {
    font-family: 'B Zar';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('B Zar Bold'),
         local('Zarnegar Bold'),
         local('XB Zar Bold'),
         url('/assets/fonts/XB-Zar.ttf') format('truetype'),
         url('/assets/fonts/BZar.woff') format('woff');
}

:root {
    /* Pure Minimalist Neutrals */
    --bg-canvas: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-muted: #F1F5F9;

    --text-main: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    --border-soft: #E2E8F0;
    --border-light: #F1F5F9;

    --accent-dark: #0F172A;
    --accent-hover: #1E293B;
    --accent-light: #F1F5F9;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 14px 34px -4px rgba(0, 0, 0, 0.09);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Semantic Compatibility Mappings */
    --emerald-950: #0F172A;
    --emerald-900: #0F172A;
    --emerald-800: #1E293B;
    --emerald-700: #334155;
    --gold-600: #475569;
    --gold-500: #CBD5E1;
    --gold-400: #64748B;
    --gold-100: #F8FAFC;
    --ivory-bg: #FFFFFF;
    --ivory-card: #FFFFFF;
    --ivory-muted: #F8FAFC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}



/* ==========================================================================
   AUTHENTIC TYPOGRAPHY SYSTEMS: URDU (NASTALEEQ) & PERSIAN (VAZIRMATN)
   ========================================================================== */
:root {
    --font-nastaleeq: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
    --font-persian: 'Zarnegar', 'B Zar', 'XB Zar', 'BZar', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Shabnam', 'B Nazanin', Tahoma, sans-serif;
}

/* 1. Universal Jameel Noori Nastaleeq for Urdu */
html[lang="ur"],
body.lang-ur,
.lang-ur {
    font-family: var(--font-nastaleeq) !important;
    line-height: 2.3;
}

html[lang="ur"] *,
body.lang-ur *,
.lang-ur * {
    font-family: var(--font-nastaleeq) !important;
}

/* Headings in Urdu Mode - High-Clearance Nastaleeq Typography (Prevents Word Overlaps) */
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4, html[lang="ur"] h5, html[lang="ur"] h6,
body.lang-ur h1, body.lang-ur h2, body.lang-ur h3, body.lang-ur h4, body.lang-ur h5, body.lang-ur h6,
.lang-ur h1, .lang-ur h2, .lang-ur h3, .lang-ur h4, .lang-ur h5, .lang-ur h6 {
    font-family: var(--font-nastaleeq) !important;
    font-weight: 700;
    letter-spacing: 0 !important;
    word-spacing: 2px !important;
    overflow: visible !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

html[lang="ur"] h1, body.lang-ur h1, .lang-ur h1 {
    line-height: 2.85 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
}

html[lang="ur"] h2, body.lang-ur h2, .lang-ur h2 {
    line-height: 2.8 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
}

html[lang="ur"] h3, body.lang-ur h3, .lang-ur h3 {
    line-height: 2.65 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
}

html[lang="ur"] h4, html[lang="ur"] h5, html[lang="ur"] h6,
body.lang-ur h4, body.lang-ur h5, body.lang-ur h6,
.lang-ur h4, .lang-ur h5, .lang-ur h6 {
    line-height: 2.5 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Mobile & Small Screens: Ensure Nastaleeq Headings Never Stack or Collide */
@media (max-width: 768px) {
    html[lang="ur"] h1, body.lang-ur h1, .lang-ur h1 {
        font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
        line-height: 2.9 !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    html[lang="ur"] h2, body.lang-ur h2, .lang-ur h2 {
        font-size: clamp(1.2rem, 4vw, 1.45rem) !important;
        line-height: 2.85 !important;
        padding-top: 12px !important;
        padding-bottom: 14px !important;
    }
    html[lang="ur"] h3, body.lang-ur h3, .lang-ur h3 {
        font-size: clamp(1.05rem, 3.5vw, 1.25rem) !important;
        line-height: 2.7 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Navigation, Brand, Buttons & UI Controls in Urdu */
html[lang="ur"] .brand-logo, body.lang-ur .brand-logo,
html[lang="ur"] .nav-links a, body.lang-ur .nav-links a,
html[lang="ur"] .btn, body.lang-ur .btn,
html[lang="ur"] .section-kicker, body.lang-ur .section-kicker,
html[lang="ur"] .card-badge, body.lang-ur .card-badge,
html[lang="ur"] .seo-score-pill, body.lang-ur .seo-score-pill,
html[lang="ur"] .hero-title, body.lang-ur .hero-title,
html[lang="ur"] .hero-subtitle, body.lang-ur .hero-subtitle,
html[lang="ur"] .card-body h3, body.lang-ur .card-body h3,
html[lang="ur"] .footer-grid h3, body.lang-ur .footer-grid h3,
html[lang="ur"] .footer-grid h4, body.lang-ur .footer-grid h4,
html[lang="ur"] input, body.lang-ur input,
html[lang="ur"] textarea, body.lang-ur textarea,
html[lang="ur"] button, body.lang-ur button {
    font-family: var(--font-nastaleeq) !important;
    letter-spacing: normal;
}

/* Paragraphs & Text in Urdu */
html[lang="ur"] p, body.lang-ur p,
html[lang="ur"] li, body.lang-ur li,
html[lang="ur"] figcaption, body.lang-ur figcaption,
html[lang="ur"] blockquote, body.lang-ur blockquote {
    font-family: var(--font-nastaleeq) !important;
    line-height: 2.3 !important;
}

/* 2. Elegant Persian Typography (Zarnegar / Vazirmatn) */
html[lang="fa"],
body.lang-fa,
.lang-fa {
    font-family: var(--font-persian) !important;
    line-height: 1.95;
    text-align: right !important;
    text-justify: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-feature-settings: "liga" 1, "calt" 1, "rlig" 1;
}

html[lang="fa"] *,
body.lang-fa *,
.lang-fa * {
    font-family: var(--font-persian) !important;
    letter-spacing: normal !important;
    text-justify: none !important;
}

/* Headings in Persian Mode */
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4, html[lang="fa"] h5, html[lang="fa"] h6,
body.lang-fa h1, body.lang-fa h2, body.lang-fa h3, body.lang-fa h4, body.lang-fa h5, body.lang-fa h6,
.lang-fa h1, .lang-fa h2, .lang-fa h3, .lang-fa h4, .lang-fa h5, .lang-fa h6 {
    font-family: var(--font-persian) !important;
    line-height: 1.6 !important;
    font-weight: 700;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: right !important;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Navigation, Brand, Buttons & UI Controls in Persian */
html[lang="fa"] .brand-logo, body.lang-fa .brand-logo,
html[lang="fa"] .nav-links a, body.lang-fa .nav-links a,
html[lang="fa"] .btn, body.lang-fa .btn,
html[lang="fa"] .section-kicker, body.lang-fa .section-kicker,
html[lang="fa"] .card-badge, body.lang-fa .card-badge,
html[lang="fa"] .seo-score-pill, body.lang-fa .seo-score-pill,
html[lang="fa"] .hero-title, body.lang-fa .hero-title,
html[lang="fa"] .hero-subtitle, body.lang-fa .hero-subtitle,
html[lang="fa"] .card-body h3, body.lang-fa .card-body h3,
html[lang="fa"] .footer-grid h3, body.lang-fa .footer-grid h3,
html[lang="fa"] .footer-grid h4, body.lang-fa .footer-grid h4,
html[lang="fa"] input, body.lang-fa input,
html[lang="fa"] textarea, body.lang-fa textarea,
html[lang="fa"] button, body.lang-fa button {
    font-family: var(--font-persian) !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Paragraphs & Text in Persian */
html[lang="fa"] p, body.lang-fa p,
html[lang="fa"] li, body.lang-fa li,
html[lang="fa"] figcaption, body.lang-fa figcaption,
html[lang="fa"] blockquote, body.lang-fa blockquote,
html[lang="fa"] div, body.lang-fa div {
    font-family: var(--font-persian) !important;
    line-height: 1.95 !important;
    text-align: right !important;
    text-justify: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html[dir="rtl"] .brand-logo, body[dir="rtl"] .brand-logo,
html[dir="rtl"] .nav-links a, body[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn, body[dir="rtl"] .btn,
html[dir="rtl"] .section-kicker, body[dir="rtl"] .section-kicker,
html[dir="rtl"] .card-badge, body[dir="rtl"] .card-badge,
html[dir="rtl"] .seo-score-pill, body[dir="rtl"] .seo-score-pill,
html[dir="rtl"] .hero-title, body[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle, body[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .card-body h3, body[dir="rtl"] .card-body h3,
html[dir="rtl"] .footer-grid h3, body[dir="rtl"] .footer-grid h3,
html[dir="rtl"] .footer-grid h4, body[dir="rtl"] .footer-grid h4,
html[dir="rtl"] input, body[dir="rtl"] input,
html[dir="rtl"] textarea, body[dir="rtl"] textarea,
html[dir="rtl"] button, body[dir="rtl"] button {
    font-family: var(--font-nastaleeq) !important;
    letter-spacing: normal;
}

html[dir="rtl"] p, body[dir="rtl"] p,
html[dir="rtl"] li, body[dir="rtl"] li,
html[dir="rtl"] figcaption, body[dir="rtl"] figcaption,
html[dir="rtl"] blockquote, body[dir="rtl"] blockquote {
    font-family: var(--font-nastaleeq);
    line-height: 2.3;
}


.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.55rem;
    line-height: 2.1;
    color: var(--text-main);
    direction: rtl;
    text-align: center;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Noto Sans Devanagari', 'Noto Nastaliq Urdu', serif;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    letter-spacing: -0.01em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #2563EB;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Hero Slideshow (Sober Cinematic Overlay) */
.top-hero-slideshow {
    position: relative;
    width: 100%;
    height: 420px;
    background: #0F172A;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.78) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-slide-content {
    max-width: 780px;
    color: #FFFFFF;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.hero-slide-content h1 {
    color: #FFFFFF;
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-slide-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.96rem, 1.6vw, 1.1rem);
    margin: 0 auto 24px;
    max-width: 640px;
    font-weight: 400;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.5);
    color: #FFFFFF;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.hero-nav-btn:hover {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #FFFFFF;
}

.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.active {
    background: #FFFFFF;
    transform: scale(1.3);
}

/* Minimalist Clean Navigation */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-crest {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-soft);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-main);
    background: var(--bg-muted);
}

.nav-links a.active {
    color: var(--text-main);
    background: var(--bg-muted);
    font-weight: 600;
}

/* ==========================================================================
   PERMANENT FIXED LANGUAGE SWITCHER - ZERO JUMP ACROSS LTR AND RTL
   ========================================================================== */
.lang-switcher-fixed-wrap {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 1200;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 3px 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    direction: ltr !important; /* Button order is strictly locked: English | اردو | فارسی */
    unicode-bidi: isolate;
}

.lang-switcher a {
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.4 !important;
}

.lang-switcher a:hover {
    color: var(--text-main);
    background: var(--bg-muted);
}

.lang-switcher a.active {
    background: #0B3B24;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(11, 59, 36, 0.28);
}

.nav-inner {
    padding-right: 180px !important;
}

html[dir="rtl"] .nav-inner {
    padding-right: 180px !important;
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .lang-switcher-fixed-wrap {
        top: 10px;
        right: 10px;
    }
    .lang-switcher a {
        padding: 4px 8px;
        font-size: 0.74rem;
    }
    .nav-inner {
        padding-right: 140px !important;
    }
    html[dir="rtl"] .nav-inner {
        padding-right: 140px !important;
    }
}

/* Minimalist Clean Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 7px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-emerald {
    background: #0F172A;
    color: #FFFFFF !important;
    border-color: #0F172A;
}

.btn-emerald:hover {
    background: #1E293B;
    border-color: #1E293B;
    color: #FFFFFF !important;
}

.btn-gold {
    background: var(--bg-muted);
    color: var(--text-main) !important;
    border-color: var(--border-soft);
}

.btn-gold:hover {
    background: var(--border-soft);
    color: #000000 !important;
}

.btn-outline {
    background: #FFFFFF;
    border-color: var(--border-soft);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-muted);
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Search Strip */
.search-strip {
    background: var(--bg-alt);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-soft);
}

.search-form-bar {
    display: flex;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto;
}

.search-form-bar input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    font-size: 0.94rem;
    background: #FFFFFF;
    color: var(--text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form-bar input:focus {
    outline: none;
    border-color: #94A3B8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

/* Sections */
.section-block {
    padding: 54px 0;
    background: #FFFFFF;
}

.section-block.alt-bg {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1.65rem;
    margin: 0;
    color: var(--text-main);
}

.section-kicker {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Minimalist Cards */
.ilmi-card {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ilmi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.book-card-clickable {
    cursor: pointer;
}

.book-card-clickable:hover {
    border-color: #C59B27;
}

.card-thumb {
    position: relative;
    height: 210px;
    background: var(--bg-muted);
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ilmi-card:hover .card-thumb img {
    transform: scale(1.02);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.35;
    color: var(--text-main);
}

.card-body h3 a {
    color: var(--text-main);
}

.card-body h3 a:hover {
    color: #2563EB;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Clean Modal Video Player */
.ig-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ig-modal-backdrop.open { display: flex; }

.ig-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 1080px;
    height: min(84vh, 660px);
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .ig-modal-dialog { grid-template-columns: 1fr; height: 92vh; overflow-y: auto; }
}

.ig-video-stage {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
}

.ig-video-stage iframe { width: 100%; height: 100%; border: 0; }

.ig-info-panel {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    height: 100%;
}

.ig-info-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
}

.ig-author-box { display: flex; align-items: center; gap: 10px; }

.ig-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border-soft);
}

.ig-info-scroll {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ig-info-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ig-like-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.ig-like-btn:hover {
    border-color: #CBD5E1;
}

.ig-like-btn.liked {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.ig-modal-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2010;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ig-modal-toggle:hover {
    background: var(--bg-muted);
}

.ig-modal-prev { left: 20px; }
.ig-modal-next { right: 20px; }

.ig-modal-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2015;
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ig-modal-close:hover {
    background: #0F172A;
}

/* Reader Toolbar & Flipbook */
.reader-toolbar {
    background: #FFFFFF;
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.reader-stage {
    position: relative;
    background: var(--bg-alt);
    min-height: 640px;
    border: 1px solid var(--border-soft);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reader-floating-nav {
    position: sticky;
    top: 46vh;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 25;
}

.reader-float-btn {
    pointer-events: auto;
    width: 48px;
    height: 58px;
    border-radius: 12px;
    border: 2px solid #C59B27;
    background: rgba(11, 59, 36, 0.9);
    color: #FFFFFF;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, background 0.15s ease;
    margin: 0 -10px;
}

.reader-float-btn:hover {
    background: #0B3B24;
    transform: scale(1.06);
}

.reader-float-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.reader-bottom-nav {
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 720px) {
    .reader-float-btn {
        width: 40px;
        height: 48px;
        font-size: 1.45rem;
        margin: 0 -16px;
    }
}

.flipbook-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #E2E8F0;
    padding: 8px;
    border-radius: 8px;
}

@media (max-width: 820px) {
    .flipbook-spread { grid-template-columns: 1fr; }
}

.pdf-canvas-wrap {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    overflow: auto;
}

.sacred-callout {
    background: var(--bg-alt);
    border-left: 3px solid var(--text-main);
    padding: 18px 22px;
    border-radius: 6px;
    margin: 24px 0;
}

.sacred-callout cite {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-style: normal;
}

/* Minimalist Clean Footer */
.site-footer {
    background: var(--bg-alt);
    color: var(--text-body);
    border-top: 1px solid var(--border-soft);
    padding: 52px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h3, .footer-grid h4 {
    color: var(--text-main);
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2.1;
}

.footer-grid ul li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.footer-grid ul li a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.discreet-admin-link {
    color: var(--text-subtle);
    font-size: 0.82rem;
    transition: color 0.15s ease;
}

.discreet-admin-link:hover {
    color: var(--text-main);
}

/* Minimalist Clean Admin */
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
}

.admin-sidebar {
    background: #0F172A;
    color: #FFFFFF;
    padding: 24px 16px;
    border-right: 1px solid #1E293B;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.admin-nav li { margin-bottom: 4px; }

.admin-nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: #94A3B8;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #1E293B;
    color: #FFFFFF;
}

.admin-main {
    padding: 32px;
    background: var(--bg-alt);
}

.admin-panel-card {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 720px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--text-main);
    background: #FFFFFF;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: #94A3B8;
}

.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-clean th, .table-clean td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.table-clean th {
    background: var(--bg-alt);
    color: var(--text-main);
    font-weight: 600;
}

.seo-score-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
}