@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* Color Palette */
    --clr-primary: #0D4A3B; /* Deep Emerald Green */
    --clr-accent: #C8962E; /* Warm Gold */
    --clr-bg-main: #FAF6EF; /* Ivory / Off-white */
    --clr-bg-alt: #E8DCC8; /* Soft Sand */
    --clr-text: #1A1A1A; /* Dark Charcoal */
    --clr-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-arabic: 'Amiri', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 2rem;
    direction: rtl;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(200, 150, 46, 0.3);
}

.btn-primary:hover {
    background-color: #b38628;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 150, 46, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-slow);
    background: rgba(13, 74, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 150, 46, 0.15);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--clr-accent);
    color: var(--clr-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}
.nav-cta::after {
    display: none;
}
.nav-cta:hover {
    background-color: #b38628;
    color: var(--clr-white) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-white);
    transition: 0.3s;
}

/* ============================================
   HERO SECTION — Premium animated edition
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding: 110px 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #0E5743 0%, #0A3D30 35%, #062E25 70%, #041C16 100%);
    color: var(--clr-white);
    overflow: hidden;
    isolation: isolate;
}

/* === Mesh gradient blobs === */
.hero-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.32; will-change: transform; }
.mesh-blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #C8962E 0%, transparent 60%); top: -200px; left: -150px; animation: blobDrift1 22s ease-in-out infinite; }
.mesh-blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #F5D86E 0%, transparent 60%); top: 30%; right: -120px; animation: blobDrift2 28s ease-in-out infinite; }
.mesh-blob-3 { width: 700px; height: 700px; background: radial-gradient(circle, #1A8C6D 0%, transparent 60%); bottom: -250px; left: 25%; animation: blobDrift3 32s ease-in-out infinite; }
@keyframes blobDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, 60px) scale(1.1); } 66% { transform: translate(-40px, 100px) scale(0.95); } }
@keyframes blobDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-100px, -80px) scale(1.15); } }
@keyframes blobDrift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-80px, -50px) scale(1.08); } 66% { transform: translate(60px, 40px) scale(0.92); } }

/* === Twinkling stars === */
.hero-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hstar { position: absolute; width: 4px; height: 4px; background: #F5D86E; border-radius: 50%; box-shadow: 0 0 10px #F5D86E, 0 0 20px rgba(245, 216, 110, 0.5); animation: starTwinkle 3s ease-in-out infinite; }
.hstar::before, .hstar::after { content: ''; position: absolute; background: #F5D86E; }
.hstar::before { inset: 50% -8px 50% -8px; height: 1px; transform: translateY(-50%); box-shadow: 0 0 4px #F5D86E; }
.hstar::after { inset: -8px 50% -8px 50%; width: 1px; transform: translateX(-50%); box-shadow: 0 0 4px #F5D86E; }
.hstar-1 { top: 12%; left: 8%; animation-delay: 0s; }
.hstar-2 { top: 18%; right: 12%; animation-delay: 0.6s; }
.hstar-3 { top: 32%; left: 14%; animation-delay: 1.2s; }
.hstar-4 { top: 26%; right: 18%; animation-delay: 1.8s; }
.hstar-5 { top: 60%; left: 6%; animation-delay: 0.3s; }
.hstar-6 { top: 70%; right: 10%; animation-delay: 0.9s; }
.hstar-7 { top: 45%; left: 22%; animation-delay: 1.5s; }
.hstar-8 { top: 55%; right: 20%; animation-delay: 2.1s; }
@keyframes starTwinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.3); } }

/* === Canvas particles === */
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0.55; pointer-events: none; }

/* === Floating Quran SVG === */
.hero-quran-modern {
    position: absolute;
    width: min(620px, 80vw);
    height: min(620px, 80vw);
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.18;
    z-index: 2;
    pointer-events: none;
    animation: quranFloat 8s ease-in-out infinite;
}
@keyframes quranFloat { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(-53%); } }
.quran-aura-circle { transform-origin: center; animation: auraPulse 4s ease-in-out infinite alternate; }
@keyframes auraPulse { from { opacity: 0.3; transform: scale(0.85); } to { opacity: 0.9; transform: scale(1.15); } }
.quran-rays-group { transform-origin: 250px 250px; animation: raysSpin 60s linear infinite; }
@keyframes raysSpin { to { transform: rotate(360deg); } }
.quran-strokes path, .quran-strokes line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawStrokes 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.8s, strokesPulse 4s ease-in-out infinite alternate 4.5s;
}
@keyframes drawStrokes { to { stroke-dashoffset: 0; } }
@keyframes strokesPulse { from { filter: drop-shadow(0 0 5px rgba(200, 150, 46, 0.3)); } to { filter: drop-shadow(0 0 25px rgba(200, 150, 46, 0.9)); } }
.quran-istar { transform-origin: 0 0; animation: istarSpin 25s linear infinite; }
@keyframes istarSpin { to { transform: translate(250px, 90px) rotate(360deg); } }

/* === Mosque silhouette === */
.hero-mosque { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; max-height: 200px; z-index: 1; pointer-events: none; opacity: 0.85; }

/* === Hero content === */
.hero-content { position: relative; z-index: 5; text-align: center; max-width: 920px; padding: 0 1.5rem; margin-top: 0; }

/* === ANIMATED BISMILLAH === */
.bismillah-block { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: nowrap; }
.bism-ornament { width: 80px; height: 24px; flex-shrink: 0; opacity: 0; }
.bism-orn-left { animation: ornFadeLeft 1s ease-out 1.4s forwards; }
.bism-orn-right { animation: ornFadeRight 1s ease-out 1.4s forwards; }
@keyframes ornFadeLeft { from { opacity: 0; transform: translateX(20px); } to { opacity: 0.9; transform: translateX(0); } }
@keyframes ornFadeRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 0.9; transform: translateX(0); } }

.animated-bismillah {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 0;
    direction: rtl;
    text-shadow: 0 0 20px rgba(245, 216, 110, 0.5);
    animation: bismillahShimmer 4s ease-in-out infinite alternate 2s;
}
.bism-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: bismWordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: 0 0.15em;
    background: linear-gradient(135deg, #F5D86E 0%, #C8962E 50%, #F5D86E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.bism-word:nth-child(1) { animation-delay: 0.3s; }
.bism-word:nth-child(2) { animation-delay: 0.6s; }
.bism-word:nth-child(3) { animation-delay: 0.9s; }
.bism-word:nth-child(4) { animation-delay: 1.2s; }
@keyframes bismWordReveal { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bismillahShimmer { 0%, 100% { filter: drop-shadow(0 0 12px rgba(245, 216, 110, 0.4)); } 50% { filter: drop-shadow(0 0 28px rgba(245, 216, 110, 0.8)); } }

.bism-translation {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(245, 216, 110, 0.75);
    letter-spacing: 0.04em;
    margin: 0 0 2rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.6s forwards;
}

/* === Headline === */
.hero-headline {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-white);
    margin: 0 0 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}
.hl-word { display: inline-block; opacity: 0; transform: translateY(30px); animation: hlWordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; margin-right: 0.25em; }
.hl-break { display: block; height: 0.2em; }
.hl-word:nth-child(1) { animation-delay: 1.8s; }
.hl-word:nth-child(2) { animation-delay: 1.95s; }
.hl-word:nth-child(3) { animation-delay: 2.1s; }
.hl-word:nth-child(5) { animation-delay: 2.3s; }
.hl-word:nth-child(6) { animation-delay: 2.45s; }
.hl-word:nth-child(7) { animation-delay: 2.6s; }
.hl-word:nth-child(8) { animation-delay: 2.75s; }
@keyframes hlWordReveal { to { opacity: 1; transform: translateY(0); } }
.hl-gold, .hl-italic {
    background: linear-gradient(135deg, #F5D86E 0%, #C8962E 50%, #F5D86E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hlWordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, goldFlow 4s ease-in-out infinite 3.5s;
}
.hl-italic { font-style: italic; }
@keyframes goldFlow { 0%, 100% { background-position: 0% center; } 50% { background-position: 200% center; } }

/* === Sub-heading === */
.hero-subheading {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(245, 216, 110, 0.95);
    margin: 0 auto 1.5rem;
    max-width: 800px;
    letter-spacing: 0.01em;
}
.hero-subheading strong { color: #F5D86E; font-weight: 600; }

/* === SEO lead text === */
.hero-seo-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 780px;
    margin: 0 auto 1.5rem;
}
.hero-seo-text strong { color: rgba(245, 216, 110, 0.9); font-weight: 500; }

/* === Keyword cloud === */
.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.7rem;
    font-size: 0.82rem;
    color: rgba(245, 216, 110, 0.75);
    margin: 0 auto 2.2rem;
    max-width: 720px;
    letter-spacing: 0.02em;
}
.hero-keywords .kw-dot { color: rgba(245, 216, 110, 0.35); }

/* === Generic fade-up === */
.hero-anim-text { opacity: 0; animation: fadeUp 1s ease-out forwards; }
.bism-translation { animation-delay: 1.6s; }
.hero-subheading { animation-delay: 2.9s; }
.hero-seo-text { animation-delay: 3.1s; }
.hero-keywords { animation-delay: 3.3s; }
.hero-ctas { animation-delay: 3.5s; }
.hero-live-pill { animation-delay: 3.7s; }
.hero-badges { animation-delay: 3.9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === CTAs === */
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-glow {
    background: linear-gradient(135deg, #C8962E 0%, #F5D86E 50%, #C8962E 100%) !important;
    background-size: 200% auto !important;
    color: #062E25 !important;
    border: none !important;
    box-shadow: 0 10px 35px rgba(200, 150, 46, 0.4), 0 0 0 1px rgba(245, 216, 110, 0.5) inset;
    animation: btnPulse 2.5s ease-in-out infinite;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-glow:hover {
    background-position: 100% center !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(200, 150, 46, 0.6), 0 0 0 1px rgba(245, 216, 110, 0.8) inset;
}
.btn-glow .btn-arrow { transition: transform 0.3s ease; }
.btn-glow:hover .btn-arrow { transform: translateX(5px); }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 10px 35px rgba(200, 150, 46, 0.4), 0 0 0 1px rgba(245, 216, 110, 0.5) inset; }
    50% { box-shadow: 0 10px 35px rgba(200, 150, 46, 0.6), 0 0 0 1px rgba(245, 216, 110, 0.8) inset, 0 0 0 8px rgba(200, 150, 46, 0.1); }
}

/* === Live counter pill === */
.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 216, 110, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 1.2rem;
}
.hero-live-pill strong { color: #F5D86E; font-weight: 600; }
.live-dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: liveDot 2s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); } 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }

/* === Trust badges === */
.hero-badges { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.hero-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 216, 110, 0.22);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-badges span:hover { background: rgba(245, 216, 110, 0.1); border-color: rgba(245, 216, 110, 0.55); transform: translateY(-2px); }
.hero-badges span i { color: #F5D86E; margin-right: 5px; }

/* === Scroll Indicator === */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-text { display: block; margin-bottom: 0.4rem; }
.scroll-indicator i { display: block; color: #F5D86E; font-size: 1.1rem; }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* === Hero responsive === */
@media (max-width: 768px) {
    .hero { padding: 100px 0 70px; }
    .hero-quran-modern { opacity: 0.1; right: -120px; }
    .bismillah-block { gap: 0.5rem; }
    .bism-ornament { width: 50px; }
    .hero-headline { font-size: clamp(2rem, 8vw, 3.4rem); }
    .hero-subheading { font-size: 1rem; }
    .hero-mosque { max-height: 100px; }
    .hstar { transform: scale(0.7); }
}
@media (max-width: 480px) {
    .bism-ornament { display: none; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-badges span { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
    .scroll-indicator { display: none; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    .hero *, .hero *::before, .hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .bism-word, .hl-word, .hero-anim-text {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Stats Section */
.stats {
    background-color: var(--clr-bg-alt);
    padding: 4rem 0;
    border-top: 4px solid var(--clr-accent);
    border-bottom: 4px solid var(--clr-accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title .arabic-subtitle {
    font-family: var(--font-arabic);
    color: var(--clr-accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--clr-primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent);
}

/* Features (Why Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--clr-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent);
    box-shadow: 0 15px 40px rgba(200, 150, 46, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Courses */
.courses-section {
    background-color: var(--clr-bg-alt);
}

.course-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

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

.course-card {
    background: var(--clr-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--clr-accent);
    color: var(--clr-white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.course-meta i {
    color: var(--clr-accent);
    margin-right: 5px;
}

/* How It Works Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(200, 150, 46, 0.3);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--clr-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--clr-white);
    transform: translateY(-50%) rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--clr-primary);
    border: 4px solid var(--clr-accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    font-weight: bold;
    z-index: 1;
}

/* Teachers Carousel */
.teachers-section {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 5rem 0;
}

.teachers-section .section-title h2 {
    color: var(--clr-white);
}

.teachers-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-accent) rgba(255,255,255,0.1);
}

.teachers-wrapper::-webkit-scrollbar {
    height: 8px;
}

.teachers-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.teachers-wrapper::-webkit-scrollbar-thumb {
    background: var(--clr-accent);
    border-radius: 10px;
}

.teacher-card {
    min-width: 300px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
}

.teacher-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.teacher-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--clr-accent);
    overflow: hidden;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    color: var(--clr-white);
    margin-bottom: 0.5rem;
}

.teacher-specialty {
    color: var(--clr-accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--clr-bg-main);
}

.testimonial-card {
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    margin: 0 1rem;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(200, 150, 46, 0.2);
    position: absolute;
    top: 20px;
    left: 20px;
}

.stars {
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.student-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Banner */
.cta-banner {
    background: var(--clr-primary);
    padding: 6rem 0;
    position: relative;
    color: var(--clr-white);
}

.cta-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
}

.cta-form-container::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--clr-accent);
    border-radius: 12px;
    pointer-events: none;
}

.cta-form-container h2 {
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
}

/* Footer */
.footer {
    background-color: #111;
    color: var(--clr-white);
    padding: 5rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0l10 10H0z' fill='%23C8962E'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--clr-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-primary);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-out;
    }
    .nav-links.active { clip-path: circle(150% at 100% 0); }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .features-grid, .courses-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 30px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; padding-left: 80px; }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 30px; }
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before { left: -10px; transform: translateY(-50%) rotate(45deg); }
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
    position: fixed;
    bottom: 5rem;
    right: 1.8rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }

/* ─── Back to Top ─── */
.back-top {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    width: 44px;
    height: 44px;
    background: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-4px); }

/* ─── Dark Mode Toggle Button ─── */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--clr-primary);
    color: var(--clr-accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px 0 0 8px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: -3px 0 12px rgba(0,0,0,0.15);
    transition: background 0.3s;
}
.theme-toggle:hover { background: var(--clr-accent); color: var(--clr-white); }

/* ─── Dark Mode Overrides ─── */
body.dark-mode {
    --clr-bg-main: #0f1a16;
    --clr-bg-alt: #162119;
    --clr-text: #e8e0d0;
    --clr-white: #1e2e28;
}

body.dark-mode .feature-card,
body.dark-mode .course-card,
body.dark-mode .testimonial-card,
body.dark-mode .cta-form-container,
body.dark-mode .timeline-content {
    background: #1a2d25;
    color: #e8e0d0;
}

body.dark-mode .cta-form-container h2,
body.dark-mode .feature-card h3,
body.dark-mode .course-content h3 { color: var(--clr-accent); }

body.dark-mode .form-control {
    background: #0f1a16;
    border-color: #2a4035;
    color: #e8e0d0;
}

body.dark-mode .stats { background: #162119; }
body.dark-mode .courses-section { background: #0f1a16; }
body.dark-mode .footer { background: #060e0a; }


/* ============================================
   POLISHED SECTIONS — v2 Improvements
   ============================================ */

/* Section title — add subtitle support */
.section-title p {
    margin-top: 0.75rem;
    color: var(--clr-text-muted, #666);
    font-size: 1rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* === TESTIMONIALS — proper styling === */
.testimonials-section {
    background: linear-gradient(180deg, var(--clr-bg-alt, #F4EDDF) 0%, #FAF6EE 100%);
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 74, 59, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; } }

.testimonial-card {
    background: #fff;
    padding: 2.5rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px -15px rgba(13, 74, 59, 0.15);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(200, 150, 46, 0.15);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -15px rgba(13, 74, 59, 0.25);
    border-color: rgba(200, 150, 46, 0.4);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 25px;
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 5rem;
    color: var(--clr-accent, #C8962E);
    line-height: 1;
    opacity: 0.5;
}
.testimonial-stars {
    display: flex;
    gap: 3px;
    color: var(--clr-accent, #C8962E);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.testimonial-quote {
    font-family: 'Fraunces', 'Georgia', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clr-accent, #C8962E);
}
.testimonial-author h4 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.05rem;
    color: var(--clr-primary, #0D4A3B);
    margin: 0 0 2px;
    font-weight: 500;
}
.testimonial-author small {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* === COURSES SECTION — polish === */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -15px rgba(13, 74, 59, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -15px rgba(13, 74, 59, 0.25);
    border-color: rgba(200, 150, 46, 0.4);
}
.course-image {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}
.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.course-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--clr-accent, #C8962E);
    color: var(--clr-primary, #0D4A3B);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(200, 150, 46, 0.4);
}
.course-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-content h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    color: var(--clr-primary, #0D4A3B);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    font-weight: 500;
}
.course-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.85rem;
    color: #888;
}
.course-meta i { color: var(--clr-accent, #C8962E); margin-right: 4px; }
.course-price {
    color: var(--clr-primary, #0D4A3B);
    font-weight: 700;
    font-size: 1rem;
}

/* === TEACHERS SECTION — polish === */
.teachers-section {
    background: var(--clr-bg, #FAF6EE) !important;
    color: var(--clr-text, #2a2a2a) !important;
}
.teachers-section .section-title h2 {
    color: var(--clr-primary, #0D4A3B) !important;
}
.teachers-section .arabic-subtitle {
    color: var(--clr-accent, #C8962E) !important;
}
.teachers-section .section-title p {
    color: #555 !important;
}
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .teachers-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; } }

.teacher-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px -15px rgba(13, 74, 59, 0.15);
    text-align: center;
    padding-bottom: 1.5rem;
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(13, 74, 59, 0.25);
}
.teacher-image {
    aspect-ratio: 1/1.15;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.25rem;
    position: relative;
}
.teacher-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(13, 74, 59, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.teacher-card:hover .teacher-image::after { opacity: 1; }
.teacher-card h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    color: var(--clr-primary, #0D4A3B);
    font-size: 1.2rem;
    margin: 0 0 0.25rem;
    font-weight: 500;
}
.teacher-card p {
    font-size: 0.78rem;
    color: var(--clr-accent, #C8962E);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

/* === CTA BANNER — polish === */
.cta-banner {
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C8962E' stroke-width='0.5' opacity='0.2'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Cpolygon points='100,30 117,70 160,70 127,95 140,135 100,113 60,135 73,95 40,70 83,70'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-position: center;
    opacity: 0.5;
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    color: #FAF6EE;
}
.cta-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #F5D86E;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(245, 216, 110, 0.4);
    border-radius: 999px;
}
.cta-content h2 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #FAF6EE;
    margin-bottom: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
}
.cta-content p {
    font-size: 1.05rem;
    color: rgba(250, 246, 238, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* === BLOG SECTION === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px -15px rgba(13, 74, 59, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(13, 74, 59, 0.25);
}
.blog-image {
    display: block;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-image { transform: scale(1.05); }
.blog-content { padding: 1.75rem; }
.blog-content small {
    font-size: 0.75rem;
    color: var(--clr-accent, #C8962E);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.blog-content h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.3rem;
    color: var(--clr-primary, #0D4A3B);
    margin: 0.5rem 0 0.75rem;
    font-weight: 500;
    line-height: 1.3;
}
.blog-content h3 a:hover { color: var(--clr-accent, #C8962E); }
.blog-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary, #0D4A3B);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}
.read-more:hover { gap: 0.75rem; color: var(--clr-accent, #C8962E); }

/* ============================================
   FOOTER — Premium dark gradient
   ============================================ */
.footer.site-footer {
    background: linear-gradient(180deg, #062E25 0%, #041C16 60%, #000000 100%) !important;
    color: rgba(250, 246, 238, 0.78);
    padding: 5rem 0 0;
    position: relative;
}
.footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C8962E 25%, #F5D86E 50%, #C8962E 75%, transparent);
    background-image: none;
}
.footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
}
@media (max-width: 1024px) { .footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer.site-footer .logo {
    color: #FAF6EE !important;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.footer.site-footer .logo .logo-accent {
    color: var(--clr-accent, #C8962E);
}
.footer.site-footer p {
    color: rgba(250, 246, 238, 0.65);
    line-height: 1.7;
    font-size: 0.95rem;
}
.footer.site-footer h4 {
    color: #FAF6EE !important;
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.footer.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #F5D86E, transparent);
    border-radius: 2px;
}
.footer.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.footer.site-footer .footer-links li {
    margin-bottom: 0.7rem;
    color: rgba(250, 246, 238, 0.65);
    font-size: 0.9rem;
}
.footer.site-footer .footer-links a {
    color: rgba(250, 246, 238, 0.65) !important;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer.site-footer .footer-links a:hover {
    color: var(--clr-accent, #C8962E) !important;
    transform: translateX(3px);
}

/* Social icons (footer) */
.footer.site-footer .social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer.site-footer .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(245, 216, 110, 0.08);
    border: 1px solid rgba(245, 216, 110, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 216, 110, 0.85) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer.site-footer .social-icons a:hover {
    background: var(--clr-accent, #C8962E);
    border-color: var(--clr-accent, #C8962E);
    color: #062E25 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 150, 46, 0.4);
}

/* Newsletter form (footer) */
.footer.site-footer form {
    display: flex !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.footer.site-footer form input {
    flex: 1;
    padding: 0.85rem 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(245, 216, 110, 0.25) !important;
    color: #FAF6EE !important;
    border-radius: 0 !important;
    outline: none;
    font-size: 0.9rem;
}
.footer.site-footer form input::placeholder {
    color: rgba(250, 246, 238, 0.5);
}
.footer.site-footer form input:focus {
    border-color: var(--clr-accent, #C8962E) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.footer.site-footer form button {
    background: linear-gradient(135deg, #C8962E, #F5D86E) !important;
    color: #062E25 !important;
    border: none !important;
    padding: 0 1.2rem !important;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.footer.site-footer form button:hover {
    background: linear-gradient(135deg, #F5D86E, #C8962E) !important;
    transform: scale(1.03);
}

/* Footer bottom strip */
.footer.site-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.5) !important;
    border-top: 1px solid rgba(245, 216, 110, 0.12);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}
.footer.site-footer .footer-bottom p {
    margin: 0;
    color: rgba(250, 246, 238, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* === Page hero (used on inner pages) === */
.page-hero {
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    color: #FAF6EE;
    padding: 9rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23C8962E' stroke-width='0.5' opacity='0.15'%3E%3Cpolygon points='50,10 60,40 90,40 65,58 75,90 50,72 25,90 35,58 10,40 40,40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #FAF6EE;
    font-weight: 300;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem;
    color: rgba(250, 246, 238, 0.85);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   v3 — COMPACT REVIEWS (Google style)
   Recitations · Pro Header · Full Responsive
   ============================================ */

/* Reviews summary header (4.9 stars · 1,200+ reviews) */
.reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(200, 150, 46, 0.08);
    border: 1px solid rgba(200, 150, 46, 0.25);
    border-radius: 999px;
    font-size: 0.95rem;
    color: #555;
}
.reviews-summary strong { color: #0D4A3B; font-weight: 700; }
.reviews-stars {
    display: inline-flex;
    gap: 2px;
    color: #C8962E;
    font-size: 1rem;
}

/* === COMPACT GOOGLE-STYLE REVIEW CARDS === */
.testimonials-section {
    background: #FAF6EE;
    padding: 5rem 0 !important;
}
.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 3rem !important;
}
@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .testimonials-grid { grid-template-columns: 1fr !important; } }

.review-card {
    background: #fff;
    padding: 1.25rem 1.4rem 1.4rem !important;
    border-radius: 10px;
    border: 1px solid #ECE6D5;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(13, 74, 59, 0.12);
    border-color: rgba(200, 150, 46, 0.3);
}
.review-card::before { content: none !important; } /* remove old big quote */

.review-header {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D4A3B, #062E25);
    color: #F5D86E;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}
.review-meta {
    flex: 1;
    min-width: 0;
}
.review-meta h4 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #0D4A3B !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-loc {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 0.02em;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-stars {
    display: flex;
    gap: 1px;
    color: #C8962E;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.review-text {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: #444 !important;
    margin: 0 !important;
    font-style: normal !important;
    font-family: 'Manrope', sans-serif !important;
}

/* ============================================
   RECITATIONS SECTION — Audio player cards
============================================ */
.recitations-section {
    background: linear-gradient(180deg, #FAF6EE 0%, #F4EDDF 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.recitations-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.recitations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .recitations-grid { grid-template-columns: 1fr; }
}
.recitation-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 140px 1fr;
    box-shadow: 0 8px 30px -10px rgba(13, 74, 59, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 150, 46, 0.15);
}
.recitation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -10px rgba(13, 74, 59, 0.25);
    border-color: rgba(200, 150, 46, 0.5);
}
@media (max-width: 480px) {
    .recitation-card { grid-template-columns: 100px 1fr; }
}
.recitation-cover {
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 140px;
}
.recitation-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(13, 74, 59, 0.6), rgba(6, 46, 37, 0.8));
    color: #F5D86E;
    font-size: 2.2rem;
}
.recitation-info {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}
.recitation-info h3 {
    font-family: 'Fraunces', 'Georgia', serif !important;
    font-size: 1.15rem !important;
    color: #0D4A3B !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}
.rec-surah {
    font-family: 'Amiri', serif;
    font-size: 1rem;
    color: #C8962E;
    margin-top: 2px;
}
.rec-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: #888;
    margin: 0.4rem 0;
}
.rec-meta i { color: #C8962E; margin-right: 3px; }
.rec-player audio {
    width: 100%;
    height: 36px;
    margin-top: 0.4rem;
}
audio::-webkit-media-controls-panel {
    background: #FAF6EE;
}

.recitation-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed rgba(200, 150, 46, 0.3);
}
.recitation-empty .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0D4A3B, #062E25);
    color: #F5D86E;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.recitation-empty h3 {
    font-family: 'Fraunces', serif;
    color: #0D4A3B;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.recitation-empty p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}
.recitation-empty strong {
    color: #C8962E;
}

/* ============================================
   PROFESSIONAL HEADER / NAVBAR — v3
============================================ */
.navbar {
    background: rgba(13, 74, 59, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(245, 216, 110, 0.12) !important;
    padding: 1.1rem 0 !important;
    transition: all 0.4s ease !important;
}
.navbar.scrolled {
    background: rgba(13, 74, 59, 0.97) !important;
    padding: 0.7rem 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25) !important;
    border-bottom-color: rgba(245, 216, 110, 0.2) !important;
}
.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
}
.navbar .logo {
    color: #FAF6EE !important;
    font-family: 'Fraunces', serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    display: flex !important;
    align-items: center;
    gap: 0.55rem !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}
.navbar .logo:hover { opacity: 0.85; }
.navbar .logo i.logo-accent {
    color: #F5D86E !important;
    font-size: 1.5rem !important;
}
.navbar .logo .logo-accent {
    color: #F5D86E !important;
}

/* Nav links — clean professional look */
.navbar .nav-links {
    display: flex !important;
    gap: 1.8rem !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.navbar .nav-links li { margin: 0; }
.navbar .nav-links a {
    color: rgba(250, 246, 238, 0.88) !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
    position: relative;
    padding: 0.4rem 0 !important;
    letter-spacing: 0.02em;
    transition: color 0.3s ease !important;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active,
.navbar .nav-links .current-menu-item > a {
    color: #F5D86E !important;
}
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8962E, #F5D86E);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after,
.navbar .nav-links .current-menu-item > a::after {
    width: 100%;
}

/* CTA button in nav */
.navbar .nav-links .nav-cta,
.navbar .nav-links li:last-child a {
    background: linear-gradient(135deg, #C8962E 0%, #F5D86E 100%) !important;
    color: #062E25 !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(200, 150, 46, 0.35) !important;
    transition: all 0.3s ease !important;
}
.navbar .nav-links .nav-cta:hover,
.navbar .nav-links li:last-child a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 46, 0.5) !important;
    color: #062E25 !important;
}
.navbar .nav-links .nav-cta::after,
.navbar .nav-links li:last-child a::after { display: none !important; }

/* Hamburger — animated 3-line */
.hamburger {
    display: none !important;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(245, 216, 110, 0.1) !important;
    border: 1px solid rgba(245, 216, 110, 0.3) !important;
    border-radius: 8px !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
}
.hamburger:hover {
    background: rgba(245, 216, 110, 0.2) !important;
    border-color: rgba(245, 216, 110, 0.5) !important;
}
.hamburger span {
    display: block;
    width: 20px !important;
    height: 2px !important;
    background: #F5D86E !important;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1) !important;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE MENU DRAWER
============================================ */
@media (max-width: 980px) {
    .hamburger { display: flex !important; }
    .navbar .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 380px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #0D4A3B 0%, #062E25 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 6rem 2rem 2rem !important;
        gap: 0.5rem !important;
        transition: right 0.45s cubic-bezier(0.65, 0, 0.35, 1) !important;
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
        z-index: 999;
        overflow-y: auto;
    }
    .navbar .nav-links.active { right: 0 !important; }
    .navbar .nav-links a {
        font-family: 'Fraunces', serif !important;
        font-size: 1.4rem !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(245, 216, 110, 0.1);
        text-align: left !important;
    }
    .navbar .nav-links a::after { display: none !important; }
    .navbar .nav-links li:last-child a {
        margin-top: 1.5rem;
        text-align: center !important;
        font-family: 'Manrope', sans-serif !important;
        font-size: 1rem !important;
        padding: 0.85rem 1.5rem !important;
    }
    /* Backdrop overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 998;
    }
}

/* ============================================
   FULL RESPONSIVE — All sections
============================================ */

/* === Hero responsive === */
@media (max-width: 980px) {
    .hero { padding: 100px 0 70px; }
    .hero-headline { font-size: clamp(1.9rem, 6vw, 3rem) !important; }
    .hero-subheading { font-size: clamp(1rem, 2vw, 1.15rem) !important; }
    .hero-quran-modern { opacity: 0.1; right: -150px; width: 500px !important; height: 500px !important; }
    .bismillah-block { gap: 0.5rem !important; }
    .bism-ornament { width: 50px !important; }
    .animated-bismillah { font-size: clamp(1.6rem, 5vw, 2.6rem) !important; }
    .hero-mosque { max-height: 100px; }
}
@media (max-width: 600px) {
    .hero { padding: 90px 0 60px; min-height: auto; }
    .bism-ornament { display: none !important; }
    .hero-content { padding: 0 1.25rem; }
    .hero-headline { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
    .hero-subheading { font-size: 0.95rem !important; line-height: 1.4 !important; }
    .hero-seo-text { font-size: 0.88rem !important; }
    .hero-keywords { font-size: 0.72rem !important; gap: 0.3rem 0.5rem !important; }
    .hero-ctas { flex-direction: column !important; gap: 0.6rem !important; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-badges { gap: 0.4rem !important; }
    .hero-badges span {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.7rem !important;
    }
    .hero-live-pill { font-size: 0.78rem !important; padding: 0.4rem 0.9rem !important; }
    .scroll-indicator { display: none; }
    .hstar { transform: scale(0.6); }
}

/* === Stats responsive === */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stats h3 { font-size: 2rem !important; }
}

/* === Why Us / Features === */
@media (max-width: 980px) {
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .feature-card { padding: 1.5rem !important; }
}

/* === Section padding mobile === */
@media (max-width: 768px) {
    .section-padding { padding: 3.5rem 0 !important; }
    .section-title h2 { font-size: 2rem !important; }
    .section-title p { font-size: 0.9rem !important; }
}

/* === Container responsive === */
@media (max-width: 768px) {
    .container { padding: 0 1rem !important; }
}

/* === Footer responsive === */
@media (max-width: 768px) {
    .footer.site-footer { padding: 3.5rem 0 0 !important; }
    .footer.site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-bottom: 2rem !important;
        text-align: left;
    }
    .footer.site-footer h4 { font-size: 1.05rem !important; }
}

/* === Whatsapp float === */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
    }
    .theme-toggle, .back-top {
        bottom: 1rem !important;
    }
    .theme-toggle { right: 4.5rem !important; }
}

/* === CTA Banner responsive === */
@media (max-width: 600px) {
    .cta-banner { padding: 3rem 0 !important; }
    .cta-content h2 { font-size: 1.8rem !important; }
    .cta-content p { font-size: 0.95rem !important; }
}

/* === Page hero responsive === */
@media (max-width: 768px) {
    .page-hero { padding: 7rem 0 3.5rem !important; }
    .page-hero h1 { font-size: 2rem !important; }
    .page-hero p { font-size: 0.95rem !important; }
}

/* === Body lock when mobile menu open === */
body.menu-open {
    overflow: hidden;
}

/* === Course / Teacher / Blog cards mobile === */
@media (max-width: 600px) {
    .course-card .course-content,
    .blog-card .blog-content { padding: 1.25rem !important; }
    .course-content h3, .blog-content h3 { font-size: 1.15rem !important; }
}

/* === Recitations on mobile === */
@media (max-width: 480px) {
    .recitation-card { grid-template-columns: 1fr !important; }
    .recitation-cover { aspect-ratio: 16/8; min-height: 100px; }
}


/* ============================================
   v4 — MOBILE FOOTER FIX + Better Responsive
   ============================================ */

/* Footer mobile - ensure proper spacing and prevent overlap */
@media (max-width: 768px) {
    .footer.site-footer {
        padding: 3rem 0 0 !important;
    }
    .footer.site-footer .container {
        padding: 0 1.25rem !important;
    }
    .footer.site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.2rem !important;
        margin-bottom: 1.5rem !important;
        text-align: left !important;
    }
    .footer.site-footer .logo {
        font-size: 1.3rem !important;
    }
    .footer.site-footer p {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }
    .footer.site-footer h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .footer.site-footer .footer-links li {
        font-size: 0.92rem !important;
        margin-bottom: 0.55rem !important;
    }
    .footer.site-footer form {
        flex-wrap: nowrap !important;
    }
    .footer.site-footer form input {
        font-size: 16px !important;  /* prevent iOS zoom */
    }
    /* Add bottom padding so floating buttons don't overlap */
    .footer.site-footer .footer-bottom {
        padding: 1rem 0 !important;
        font-size: 0.78rem !important;
    }
    /* Footer bottom needs space for floating buttons */
    body { padding-bottom: 0; }
}

/* Floating action buttons — better mobile positioning */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
    .theme-toggle {
        bottom: 1rem !important;
        right: 4.5rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }
    .back-top {
        bottom: 4.5rem !important;
        right: 1rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 0.9rem !important;
    }
}
@media (max-width: 480px) {
    .whatsapp-float {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.3rem !important;
    }
    .theme-toggle, .back-top {
        width: 38px !important;
        height: 38px !important;
    }
    .theme-toggle {
        right: 4rem !important;
    }
    .back-top {
        bottom: 4rem !important;
    }
}

/* ============================================
   PERFORMANCE — image lazy loading hints
   ============================================ */
img { max-width: 100%; height: auto; }

/* Smooth scroll for the whole page */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Better focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--clr-accent, #C8962E);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   v5 — PREMIUM FEATURES
   PDF Library · Video Lectures · Floating Duas
   Hijri Countdown · Live Classes Ticker
   ============================================ */

/* === Section title eyebrow for premium feel === */
.section-title em {
    font-style: italic;
    color: var(--clr-accent, #C8962E);
    font-weight: 400;
}

/* === Library / Lecture filters === */
.library-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 3rem;
    padding-bottom: 1rem;
    overflow-x: auto;
}
.lib-filter {
    background: transparent;
    border: 1px solid rgba(200, 150, 46, 0.3);
    color: #555;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}
.lib-filter:hover {
    background: rgba(200, 150, 46, 0.08);
    border-color: rgba(200, 150, 46, 0.5);
    color: var(--clr-primary, #0D4A3B);
}
.lib-filter.active {
    background: linear-gradient(135deg, #0D4A3B, #062E25);
    color: #F5D86E;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 74, 59, 0.25);
}

/* ============================================
   PDF LIBRARY GRID
   ============================================ */
.library-section {
    background: linear-gradient(180deg, #FAF6EE 0%, #F4EDDF 100%);
    min-height: 50vh;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: all 0.3s ease;
}
@media (max-width: 1024px) { .library-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .library-grid { grid-template-columns: 1fr; } }

.pdf-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px -12px rgba(13, 74, 59, 0.12);
    border: 1px solid rgba(200, 150, 46, 0.12);
    opacity: 1;
    display: flex;
    flex-direction: column;
}
.pdf-card:hover {
    transform: translateY(-8px) rotateZ(-0.5deg);
    box-shadow: 0 22px 50px -15px rgba(13, 74, 59, 0.3);
    border-color: rgba(200, 150, 46, 0.4);
}
.pdf-cover {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.pdf-cover-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(13, 74, 59, 0.5), rgba(6, 46, 37, 0.7));
    color: #F5D86E;
    font-size: 4rem;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}
.pdf-card:hover .pdf-cover-overlay { opacity: 0.6; }
.pdf-cat-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(245, 216, 110, 0.95);
    color: #0D4A3B;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(8px);
}
.pdf-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pdf-info h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.2rem;
    color: var(--clr-primary, #0D4A3B);
    margin: 0 0 0.5rem;
    font-weight: 500;
    line-height: 1.3;
}
.pdf-author {
    font-size: 0.8rem;
    color: var(--clr-accent, #C8962E);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.pdf-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}
.pdf-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #888;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0e8d8;
    margin-bottom: 1rem;
}
.pdf-meta i { color: var(--clr-accent, #C8962E); margin-right: 4px; }
.pdf-actions {
    display: flex;
    gap: 0.5rem;
}
.pdf-btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.pdf-btn-view {
    background: transparent;
    color: var(--clr-primary, #0D4A3B);
    border-color: rgba(200, 150, 46, 0.4);
}
.pdf-btn-view:hover {
    background: rgba(200, 150, 46, 0.1);
    border-color: rgba(200, 150, 46, 0.7);
}
.pdf-btn-download {
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    box-shadow: 0 4px 12px rgba(200, 150, 46, 0.3);
}
.pdf-btn-download:hover {
    background: linear-gradient(135deg, #F5D86E, #C8962E);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 150, 46, 0.45);
}

/* ============================================
   VIDEO LECTURES GRID
   ============================================ */
.lectures-section {
    background: var(--clr-bg, #FAF6EE);
    min-height: 50vh;
}
.lectures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    transition: all 0.3s ease;
}
@media (max-width: 1024px) { .lectures-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .lectures-grid { grid-template-columns: 1fr; } }

.lecture-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.15);
}
.lecture-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.3);
}
.lecture-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a, #000);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.lecture-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.lecture-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(245, 216, 110, 0.95);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0D4A3B;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(245, 216, 110, 0.7);
}
.lecture-card:hover .lecture-play {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 12px rgba(245, 216, 110, 0);
}
.lecture-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    font-feature-settings: 'tnum';
}
.lecture-cat-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(245, 216, 110, 0.95);
    color: #0D4A3B;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lecture-info { padding: 1.25rem 1.5rem 1.5rem; }
.lecture-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--clr-primary, #0D4A3B);
    margin: 0 0 0.5rem;
    font-weight: 500;
    line-height: 1.35;
}
.lecture-speaker {
    font-size: 0.78rem;
    color: var(--clr-accent, #C8962E);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.lecture-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   FLOATING DUA CARDS
   ============================================ */
.dua-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    color: #FAF6EE;
    position: relative;
    overflow: hidden;
}
.dua-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%23F5D86E' stroke-width='0.4' opacity='0.15'%3E%3Cpolygon points='100,15 115,55 158,55 124,80 138,122 100,98 62,122 76,80 42,55 85,55'/%3E%3Ccircle cx='100' cy='100' r='75'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 280px 280px;
    opacity: 0.5;
}
.dua-track {
    position: relative;
    display: flex;
    gap: 2rem;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.dua-card {
    flex: 1 0 calc(33% - 1.35rem);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 216, 110, 0.25);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    transition: all 0.4s ease;
}
.dua-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 216, 110, 0.5);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.4);
}
.dua-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: #F5D86E;
    line-height: 2;
    margin-bottom: 1rem;
    direction: rtl;
    text-shadow: 0 0 20px rgba(245, 216, 110, 0.3);
}
.dua-translation {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(250, 246, 238, 0.85);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.dua-source {
    font-size: 0.78rem;
    color: rgba(245, 216, 110, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .dua-track { flex-direction: column; }
    .dua-card { min-width: auto; }
}

/* ============================================
   HIJRI / RAMADAN COUNTDOWN
   ============================================ */
.hijri-widget {
    background: linear-gradient(135deg, rgba(13, 74, 59, 0.95), rgba(6, 46, 37, 0.95));
    color: #FAF6EE;
    padding: 1.75rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 216, 110, 0.2);
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px -12px rgba(13, 74, 59, 0.3);
    max-width: 600px;
    margin: 3rem auto;
}
.hijri-eyebrow {
    font-size: 0.72rem;
    color: #F5D86E;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.hijri-date {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.hijri-gregorian {
    font-size: 0.85rem;
    color: rgba(250, 246, 238, 0.65);
    margin-bottom: 1.25rem;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}
.cd-item {
    background: rgba(245, 216, 110, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
    border: 1px solid rgba(245, 216, 110, 0.15);
}
.cd-num {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: #F5D86E;
    font-weight: 600;
    line-height: 1;
}
.cd-label {
    font-size: 0.65rem;
    color: rgba(250, 246, 238, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* ============================================
   LIVE CLASSES TICKER
   ============================================ */
.classes-ticker {
    background: linear-gradient(90deg, #0D4A3B 0%, #062E25 100%);
    color: #FAF6EE;
    padding: 0.85rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(245, 216, 110, 0.15);
    border-bottom: 1px solid rgba(245, 216, 110, 0.15);
    position: relative;
}
.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ticker-label::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: -16px;
    width: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 16px solid #F5D86E;
}
.ticker-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3344;
    animation: tickerPulse 1.5s ease-in-out infinite;
}
@keyframes tickerPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1; transform: scale(1.15); }
}
.ticker-track {
    display: flex;
    gap: 3rem;
    padding-left: 160px;
    animation: tickerScroll 35s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item {
    color: rgba(250, 246, 238, 0.85);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.ticker-item i { color: #F5D86E; }
.ticker-item strong { color: #FAF6EE; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .ticker-label {
        padding: 0.85rem 0.85rem;
        font-size: 0.65rem;
    }
    .ticker-label::after { right: -12px; border-left-width: 12px; }
    .ticker-track { padding-left: 120px; }
}

/* ============================================
   MOUSE-FOLLOW GLOW ON HERO
   ============================================ */
.hero-glow-cursor {
    position: absolute;
    width: 500px;
    height: 500px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.18) 0%, rgba(245, 216, 110, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: transform, opacity;
}
@media (hover: none) {
    .hero-glow-cursor { display: none; }
}


/* ============================================================
   ╔══════════════════════════════════════════════════════════╗
   ║   v6 — CINEMATIC HERO (FIXED)                            ║
   ║   Strong selectors to override base .hero styles          ║
   ╚══════════════════════════════════════════════════════════╝
============================================================ */

:root {
    --hv6-emerald: #0E3B2E;
    --hv6-emerald-deep: #052218;
    --hv6-navy: #07111F;
    --hv6-navy-deep: #081420;
    --hv6-gold: #D4AF37;
    --hv6-gold-light: #F5D86E;
    --hv6-cream: #F8F5EF;
}

/* === Override base .hero when v6 class present === */
section.hero.hero-v6 {
    position: relative !important;
    min-height: 100vh !important;
    padding: 110px 0 80px !important;
    background: transparent !important;
    overflow: hidden !important;
    isolation: isolate !important;
    display: block !important;            /* not flex - grid handles layout */
    align-items: initial !important;
    justify-content: initial !important;
    color: var(--hv6-cream) !important;
}

/* ----- LAYERED BACKGROUND ----- */
.hero-v6 .hero-bg-layer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden;
}

/* Base navy → emerald gradient */
.hero-v6 .hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(14, 59, 46, 0.95) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(7, 17, 31, 0.95) 0%, transparent 60%),
        linear-gradient(135deg, #07111F 0%, #0E3B2E 50%, #052218 100%);
}

/* === Aurora bands (slow flowing color washes) === */
.hero-v6 .hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.55;
    filter: blur(60px);
}
.hero-v6 .aurora-band {
    position: absolute;
    width: 140%;
    height: 200px;
    left: -20%;
    border-radius: 50%;
    transform-origin: center;
}
.hero-v6 .aurora-1 {
    top: 10%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    animation: auroraFlow 14s ease-in-out infinite;
}
.hero-v6 .aurora-2 {
    top: 40%;
    background: linear-gradient(90deg, transparent, rgba(26, 140, 109, 0.35), rgba(212, 175, 55, 0.2), transparent);
    animation: auroraFlow 18s ease-in-out infinite reverse;
    animation-delay: -3s;
}
.hero-v6 .aurora-3 {
    top: 70%;
    background: linear-gradient(90deg, transparent, rgba(245, 216, 110, 0.3), transparent);
    animation: auroraFlow 22s ease-in-out infinite;
    animation-delay: -7s;
}
@keyframes auroraFlow {
    0%, 100% { transform: translateX(-10%) translateY(0) rotate(-3deg); opacity: 0.5; }
    33%      { transform: translateX(10%) translateY(-30px) rotate(2deg); opacity: 0.7; }
    66%      { transform: translateX(-5%) translateY(20px) rotate(-1deg); opacity: 0.6; }
}

/* === Moonlight disc === */
.hero-v6 .hero-moon {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 200px;
    height: 200px;
    pointer-events: none;
}
.hero-v6 .moon-disc {
    position: absolute;
    inset: 35%;
    background: radial-gradient(circle at 35% 35%, #FFF9E8 0%, #F5D86E 40%, #D4AF37 80%);
    border-radius: 50%;
    box-shadow:
        0 0 80px rgba(245, 216, 110, 0.5),
        inset -8px -8px 30px rgba(180, 140, 40, 0.3);
    animation: moonGlow 6s ease-in-out infinite;
}
.hero-v6 .moon-halo {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.18) 0%, transparent 60%);
    border-radius: 50%;
    animation: moonGlow 6s ease-in-out infinite;
}
@keyframes moonGlow {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}
@media (max-width: 768px) {
    .hero-v6 .hero-moon { width: 120px; height: 120px; top: 80px; right: 5%; }
}

/* === Mesh orbs === */
.hero-v6 .hero-mesh {
    position: absolute !important;
    inset: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1 !important;
    pointer-events: none;
}
.hero-v6 .mesh-orb {
    position: absolute;
    border-radius: 50%;
    animation: orbDrift 18s ease-in-out infinite;
}
.hero-v6 .mesh-orb-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.hero-v6 .mesh-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14, 59, 46, 0.6) 0%, transparent 70%);
    bottom: -150px; right: -150px;
    animation-delay: -6s;
}
.hero-v6 .mesh-orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.2) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* === Geometric pattern === */
.hero-v6 .hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.4' opacity='0.18'%3E%3Cpolygon points='80,10 96,42 130,42 102,62 114,96 80,76 46,96 58,62 30,42 64,42'/%3E%3Ccircle cx='80' cy='80' r='60'/%3E%3Ccircle cx='80' cy='80' r='40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 220px 220px;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero-v6 #heroParticles {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    opacity: 0.6 !important;
    z-index: 2 !important;
}

/* === Star overrides (keep them visible above bg) === */
.hero-v6 .hero-stars { z-index: 3; position: absolute; inset: 0; pointer-events: none; }

/* ===== HERO GRID LAYOUT (THE CRITICAL FIX) ===== */
.hero-v6 .hero-grid {
    position: relative !important;
    z-index: 10 !important;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid !important;
    grid-template-columns: 1.1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
}
@media (max-width: 1024px) {
    .hero-v6 .hero-grid { grid-template-columns: 1fr !important; gap: 3rem !important; padding: 0 1.5rem !important; }
    .hero-v6 .hero-right { order: 2; max-width: 480px; margin: 0 auto; }
    .hero-v6 .hero-left { order: 1; }
}
@media (max-width: 600px) {
    .hero-v6 .hero-grid { padding: 0 1.25rem !important; gap: 2rem !important; }
    section.hero.hero-v6 { padding: 90px 0 60px !important; }
}

/* ===== LEFT COLUMN ===== */
.hero-v6 .hero-left {
    color: var(--hv6-cream) !important;
    text-align: left;
}

/* Animation prep */
.hero-v6 [data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-v6 [data-delay="0"]    { animation-delay: 0.05s; }
.hero-v6 [data-delay="100"]  { animation-delay: 0.20s; }
.hero-v6 [data-delay="200"]  { animation-delay: 0.40s; }
.hero-v6 [data-delay="300"]  { animation-delay: 0.65s; }
.hero-v6 [data-delay="400"]  { animation-delay: 0.85s; }
.hero-v6 [data-delay="500"]  { animation-delay: 1.05s; }
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Bismillah glass pill */
.hero-v6 .hero-bismillah-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.4rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: 'Amiri', serif !important;
    font-size: 1.05rem !important;
    color: var(--hv6-gold-light) !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 8px 30px -10px rgba(0,0,0,0.5);
}
.hero-v6 .hero-bismillah-pill span[lang="ar"] {
    color: var(--hv6-gold-light) !important;
}
.hero-v6 .hero-bismillah-pill .bism-pill-glow {
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
    filter: blur(10px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Eyebrow */
.hero-v6 .hero-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem !important;
    color: rgba(248, 245, 239, 0.7) !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    font-family: 'Manrope', sans-serif !important;
}
.hero-v6 .hero-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--hv6-gold);
    box-shadow: 0 0 12px var(--hv6-gold);
    animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1; transform: scale(1.15); }
}

/* MASSIVE Headline */
.hero-v6 .hero-h1 {
    font-family: 'Fraunces', 'Georgia', serif !important;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 1.75rem !important;
    font-weight: 300 !important;
    color: var(--hv6-cream) !important;
    text-align: left !important;
}
.hero-v6 .hero-h1 .h-line {
    display: block !important;
    color: var(--hv6-cream) !important;
}
.hero-v6 .hero-h1 .h-gold {
    background: linear-gradient(135deg, #F5D86E 0%, #D4AF37 50%, #B8941A 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #D4AF37 !important; /* fallback for browsers without bg-clip support */
    font-weight: 400 !important;
}
.hero-v6 .hero-h1 .h-italic {
    font-style: italic !important;
    font-weight: 300 !important;
    background: linear-gradient(135deg, #F5D86E 0%, #D4AF37 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #D4AF37 !important;
}

/* Subtext */
.hero-v6 .hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.18rem) !important;
    line-height: 1.65 !important;
    color: rgba(248, 245, 239, 0.78) !important;
    max-width: 540px !important;
    margin: 0 0 2.5rem !important;
    font-weight: 400 !important;
    font-family: 'Manrope', sans-serif !important;
}

/* CTAs */
.hero-v6 .hero-cta-row {
    display: flex !important;
    gap: 1rem !important;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.75rem !important;
}

.hero-v6 .cta-primary {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.4rem 1.05rem 1.85rem !important;
    background: linear-gradient(135deg, var(--hv6-gold-light) 0%, var(--hv6-gold) 100%) !important;
    color: var(--hv6-emerald-deep) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.98rem !important;
    text-decoration: none !important;
    box-shadow:
        0 12px 30px -8px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    isolation: isolate;
    border: none;
    font-family: 'Manrope', sans-serif !important;
}
.hero-v6 .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px -8px rgba(212, 175, 55, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--hv6-emerald-deep) !important;
}
.hero-v6 .cta-primary .cta-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(14, 59, 46, 0.95);
    color: var(--hv6-gold-light);
    display: inline-grid;
    place-items: center;
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-v6 .cta-primary:hover .cta-arrow {
    transform: translateX(4px) rotate(-12deg);
}

.hero-v6 .cta-secondary {
    display: inline-flex !important;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.75rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--hv6-cream) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif !important;
}
.hero-v6 .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
    color: var(--hv6-gold-light) !important;
    transform: translateY(-2px);
}

/* Animated wave bars in secondary CTA */
.hero-v6 .cta-icon-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 16px;
}
.hero-v6 .cta-icon-wave span {
    display: block;
    width: 2.5px;
    background: var(--hv6-gold-light);
    border-radius: 2px;
    animation: waveAnim 1.4s ease-in-out infinite;
}
.hero-v6 .cta-icon-wave span:nth-child(1) { height: 5px;  animation-delay: 0s; }
.hero-v6 .cta-icon-wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.hero-v6 .cta-icon-wave span:nth-child(3) { height: 8px;  animation-delay: 0.3s; }
.hero-v6 .cta-icon-wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
@keyframes waveAnim {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50%      { transform: scaleY(1.2); opacity: 1; }
}

/* Trust strip */
.hero-v6 .hero-trust {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.hero-v6 .trust-item {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
}
.hero-v6 .trust-item strong {
    font-family: 'Fraunces', serif !important;
    font-size: 1.4rem !important;
    color: var(--hv6-gold-light) !important;
    font-weight: 500 !important;
    line-height: 1;
}
.hero-v6 .trust-item span {
    font-size: 0.72rem !important;
    color: rgba(248, 245, 239, 0.55) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-top: 4px;
    font-family: 'Manrope', sans-serif !important;
}
.hero-v6 .trust-stars {
    display: inline-flex !important;
    gap: 2px;
    color: var(--hv6-gold) !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px;
}
.hero-v6 .trust-divider {
    width: 1px;
    height: 32px;
    background: rgba(212, 175, 55, 0.2);
}
@media (max-width: 480px) {
    .hero-v6 .hero-trust { gap: 1rem; }
    .hero-v6 .trust-divider { display: none; }
    .hero-v6 .trust-item strong { font-size: 1.15rem !important; }
}

/* ============================================
   RIGHT COLUMN — Premium Visual
============================================ */
.hero-v6 .hero-right {
    position: relative !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}
@media (max-width: 1024px) {
    .hero-v6 .hero-right { min-height: 480px !important; }
}
@media (max-width: 600px) {
    .hero-v6 .hero-right { min-height: 380px !important; }
}

.hero-v6 .visual-stage {
    position: relative !important;
    width: 100% !important;
    max-width: 560px !important;
    aspect-ratio: 1 !important;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Rotating rings */
.hero-v6 .ring {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
}
.hero-v6 .ring svg { width: 100%; height: 100%; display: block; }
.hero-v6 .ring-outer { animation: spinRing 60s linear infinite; }
.hero-v6 .ring-mid   { animation: spinRing 45s linear infinite reverse; }
@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* Floating shapes (parallax layers) */
.hero-v6 .float-shape {
    position: absolute;
    pointer-events: none;
    animation: floatShape 7s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    will-change: transform;
}
.hero-v6 .float-1 { width: 60px; height: 60px; top: 8%; right: 12%; animation-delay: 0s; }
.hero-v6 .float-2 { width: 50px; height: 50px; bottom: 18%; left: 8%; animation-delay: -2s; }
.hero-v6 .float-3 { width: 70px; height: 70px; top: 35%; left: 0; animation-delay: -4s; }
.hero-v6 .float-4 { width: 40px; height: 40px; bottom: 8%; right: 8%; animation-delay: -1s; }
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25%      { transform: translate(8px, -12px) rotate(8deg); }
    50%      { transform: translate(-6px, 6px) rotate(-5deg); }
    75%      { transform: translate(10px, 4px) rotate(3deg); }
}
.hero-v6 .float-shape svg { width: 100%; height: 100%; display: block; }

/* Central Quran stack */
.hero-v6 .quran-stack {
    position: absolute !important;
    inset: 12% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: quranFloat 6s ease-in-out infinite;
    will-change: transform;
}
@keyframes quranFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-v6 .quran-svg {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    display: block;
}

/* Quran halo glow */
.hero-v6 .quran-halo {
    position: absolute !important;
    width: 90% !important; height: 90% !important;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(30px);
    animation: haloPulse 5s ease-in-out infinite;
}
@keyframes haloPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50%      { opacity: 1; transform: scale(1.1); }
}

/* Floating pages */
.hero-v6 .floating-page {
    animation: pageFloat 8s ease-in-out infinite;
    transform-origin: center;
}
.hero-v6 .floating-page-2 {
    animation: pageFloat 9s ease-in-out infinite reverse;
    animation-delay: -3s;
}
@keyframes pageFloat {
    0%, 100% { transform: translate(0, -30px) rotate(-2deg); }
    50%      { transform: translate(8px, -42px) rotate(3deg); }
}

/* Quran rays + star animation */
.hero-v6 .quran-rays {
    animation: rayPulse 4s ease-in-out infinite;
    transform-origin: 250px 240px;
}
@keyframes rayPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.7; }
}
.hero-v6 .quran-star {
    animation: starSpin 30s linear infinite;
    transform-origin: 250px 60px;
}
@keyframes starSpin {
    to { transform: translate(250px, 60px) rotate(360deg); }
}

/* Waveform bar overlay */
.hero-v6 .waveform-bar {
    position: absolute !important;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 17, 31, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 0.75rem 1.1rem;
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    z-index: 5;
}
.hero-v6 .wf-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--hv6-cream) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
}
.hero-v6 .wf-label i {
    width: 24px; height: 24px;
    background: var(--hv6-gold) !important;
    border-radius: 50%;
    color: var(--hv6-emerald-deep) !important;
    display: grid !important;
    place-items: center;
    font-size: 0.6rem !important;
    padding-left: 2px;
}
.hero-v6 .wf-bars {
    display: flex !important;
    align-items: center;
    gap: 2px;
    height: 22px;
    flex: 1;
}
.hero-v6 .wf-bar {
    flex: 1;
    height: 100%;
    background: linear-gradient(to top, var(--hv6-gold), var(--hv6-gold-light));
    border-radius: 1px;
    animation: wfBarAnim 1.2s ease-in-out infinite;
    transform-origin: bottom;
}
.hero-v6 .wf-bar:nth-child(odd)  { animation-delay: -0.4s; }
.hero-v6 .wf-bar:nth-child(3n)   { animation-delay: -0.7s; }
.hero-v6 .wf-bar:nth-child(5n)   { animation-delay: -1s; }
@keyframes wfBarAnim {
    0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* Rotating verse plate */
.hero-v6 .verse-plate {
    position: absolute !important;
    top: 8% !important;
    right: -8% !important;
    width: 240px !important;
    background: rgba(248, 245, 239, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem !important;
    box-shadow:
        0 20px 50px -15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: versePlateFloat 7s ease-in-out infinite;
    text-align: center !important;
    z-index: 4;
}
@keyframes versePlateFloat {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50%      { transform: translateY(-10px) rotate(-1deg); }
}
@media (max-width: 768px) {
    .hero-v6 .verse-plate { right: 0 !important; width: 200px !important; padding: 1rem !important; top: 0 !important; }
}
.hero-v6 .verse-rotator {
    position: relative;
    min-height: 110px;
}
.hero-v6 .verse-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-v6 .verse-slide.active { opacity: 1; }
.hero-v6 .verse-arabic {
    font-family: 'Amiri', serif !important;
    font-size: 1.4rem !important;
    color: var(--hv6-emerald) !important;
    direction: rtl;
    line-height: 1.6;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}
.hero-v6 .verse-tr {
    font-family: 'Fraunces', serif !important;
    font-style: italic !important;
    font-size: 0.78rem !important;
    color: #555 !important;
    line-height: 1.4;
    margin-bottom: 0.4rem !important;
}
.hero-v6 .verse-src {
    font-size: 0.65rem !important;
    color: var(--hv6-gold) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* ===== Bottom mosque silhouette ===== */
.hero-v6 .hero-mosque-v6 {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 140px !important;
    z-index: 2;
    pointer-events: none;
}

/* ===== Scroll cue ===== */
.hero-v6 .scroll-cue {
    position: absolute !important;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none !important;
    color: rgba(248, 245, 239, 0.5) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-family: 'Manrope', sans-serif !important;
}
.hero-v6 .scroll-cue:hover { color: var(--hv6-gold-light) !important; }
.hero-v6 .scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    position: relative;
}
.hero-v6 .scroll-mouse-dot {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--hv6-gold);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50%      { transform: translate(-50%, 12px); opacity: 0.3; }
}

/* Hide old hero elements when v6 is active */
.hero.hero-v6 .hero-content,
.hero.hero-v6 .hero-quran-modern,
.hero.hero-v6 .hero-mosque,
.hero.hero-v6 .scroll-indicator,
.hero.hero-v6 #heroCanvas {
    display: none !important;
}

/* === Mobile fine-tunes === */
@media (max-width: 600px) {
    .hero-v6 .hero-h1 { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
    .hero-v6 .hero-sub { font-size: 0.95rem !important; margin-bottom: 1.75rem !important; }
    .hero-v6 .hero-cta-row { gap: 0.6rem !important; flex-direction: column !important; align-items: stretch !important; }
    .hero-v6 .cta-primary, .hero-v6 .cta-secondary { justify-content: center !important; }
    .hero-v6 .hero-bismillah-pill { font-size: 0.95rem !important; padding: 0.4rem 1rem !important; }
    .hero-v6 .verse-plate { display: none !important; }
    .hero-v6 .waveform-bar { min-width: 240px !important; padding: 0.6rem 0.9rem !important; }
    .hero-v6 .wf-label span { display: none; }
    .hero-v6 .float-shape { transform: scale(0.7); }
    .hero-v6 .hero-mosque-v6 { height: 80px !important; }
}

/* ============================================================
   ╔══════════════════════════════════════════════════════════╗
   ║   v7 — PREMIUM COURSES EXPERIENCE                        ║
   ║   Archive · Single · Syllabus · Cards                    ║
   ╚══════════════════════════════════════════════════════════╝
============================================================ */

:root {
    --c7-emerald: #0E3B2E;
    --c7-emerald-deep: #052218;
    --c7-navy: #081420;
    --c7-gold: #D4AF37;
    --c7-gold-light: #F5D86E;
    --c7-cream: #F8F5EF;
}

/* ============================================
   ARCHIVE HERO
============================================ */
.archive-courses-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--c7-emerald-deep);
    color: var(--c7-cream);
    overflow: hidden;
    isolation: isolate;
}
.ach-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(14, 59, 46, 0.95) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(8, 20, 32, 0.9) 0%, transparent 60%),
        linear-gradient(135deg, #081420 0%, #0E3B2E 60%, #052218 100%);
}
.ach-glow {
    position: absolute; border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.ach-glow-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.32) 0%, transparent 70%);
    top: -100px; left: 10%;
    animation: achGlow1 14s ease-in-out infinite;
}
.ach-glow-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(14, 59, 46, 0.6) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation: achGlow2 16s ease-in-out infinite;
}
@keyframes achGlow1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,30px); } }
@keyframes achGlow2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,-30px); } }
.ach-pattern {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.4' opacity='0.15'%3E%3Cpolygon points='70,10 86,42 120,42 92,62 104,96 70,76 36,96 48,62 20,42 54,42'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.5;
}
.ach-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.ach-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c7-gold-light);
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    background: rgba(212, 175, 55, 0.06);
    backdrop-filter: blur(10px);
}
.archive-courses-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    font-weight: 300;
    color: var(--c7-cream);
}
.archive-courses-hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #F5D86E, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--c7-gold);
}
.archive-courses-hero p {
    font-size: 1.05rem;
    color: rgba(248, 245, 239, 0.7);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Search toolbar */
.ach-toolbar {
    display: flex;
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.ach-search {
    flex: 1;
    min-width: 240px;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.ach-search:focus-within {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}
.ach-search i {
    position: absolute;
    left: 1.25rem; top: 50%;
    transform: translateY(-50%);
    color: var(--c7-gold);
}
.ach-search input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    color: var(--c7-cream);
    font-size: 0.95rem;
    font-family: inherit;
}
.ach-search input::placeholder { color: rgba(248, 245, 239, 0.4); }

.ach-select-wrap {
    position: relative;
}
.ach-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 1.1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--c7-gold);
    pointer-events: none;
}
.ach-select-wrap select {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--c7-cream);
    padding: 0.85rem 2.8rem 0.85rem 1.25rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(20px);
    min-width: 170px;
}
.ach-select-wrap select option { color: #222; background: #fff; }

/* Category pills */
.ach-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 3rem auto 2.5rem;
    padding-bottom: 0.5rem;
}
.cat-pill {
    background: transparent;
    border: 1px solid rgba(14, 59, 46, 0.2);
    color: var(--c7-emerald);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.cat-pill:hover {
    background: rgba(14, 59, 46, 0.06);
    border-color: rgba(14, 59, 46, 0.4);
}
.cat-pill.active {
    background: linear-gradient(135deg, var(--c7-emerald), var(--c7-emerald-deep));
    color: var(--c7-gold-light);
    border-color: transparent;
    box-shadow: 0 6px 18px -4px rgba(14, 59, 46, 0.4);
}

/* ============================================
   PREMIUM COURSE CARDS GRID
============================================ */
.archive-courses-section {
    padding: 0 0 5rem;
    background: var(--c7-cream);
    min-height: 50vh;
}

.premium-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1024px) { .premium-courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .premium-courses-grid { grid-template-columns: 1fr; } }

.pcourse-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -15px rgba(14, 59, 46, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.12);
    isolation: isolate;
}
.pcourse-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 30px 60px -20px rgba(14, 59, 46, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.5);
}
.pcourse-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.5) 50%, rgba(212, 175, 55, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}
.pcourse-card:hover .pcourse-glow {
    opacity: 1;
}

.pcourse-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    display: block;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcourse-card:hover .pcourse-thumb {
    transform: scale(1.04);
}
.pcourse-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 20, 32, 0.65) 100%);
    transition: opacity 0.4s ease;
}
.pcourse-level {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
}
.pcourse-category-tag {
    position: absolute;
    top: 1rem; right: 1rem;
    background: linear-gradient(135deg, var(--c7-gold), var(--c7-gold-light));
    color: var(--c7-emerald-deep);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.pcourse-body {
    padding: 1.5rem 1.6rem 1.6rem;
}
.pcourse-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--c7-emerald);
    margin: 0 0 0.6rem;
    line-height: 1.3;
    font-weight: 500;
}
.pcourse-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.pcourse-body h3 a:hover { color: var(--c7-gold); }

.pcourse-instructor {
    font-size: 0.8rem;
    color: var(--c7-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pcourse-desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.pcourse-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    font-size: 0.78rem;
    color: #777;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(14, 59, 46, 0.08);
    border-bottom: 1px solid rgba(14, 59, 46, 0.08);
    margin-bottom: 1rem;
}
.pcourse-stats i {
    color: var(--c7-gold);
    margin-right: 0.4rem;
}
.pcourse-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.pcourse-price {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--c7-emerald);
    font-weight: 600;
}
.pcourse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--c7-emerald), var(--c7-emerald-deep));
    color: var(--c7-gold-light) !important;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px -6px rgba(14, 59, 46, 0.4);
}
.pcourse-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px -6px rgba(14, 59, 46, 0.55);
    color: var(--c7-gold-light) !important;
}
.pcourse-btn i {
    transition: transform 0.3s ease;
}
.pcourse-btn:hover i { transform: translateX(2px); }

.empty-courses, .ach-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
}
.ach-empty-state i {
    font-size: 2.5rem;
    color: rgba(14, 59, 46, 0.3);
    margin-bottom: 1rem;
}
.empty-courses .empty-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--c7-emerald), var(--c7-emerald-deep));
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--c7-gold-light);
    font-size: 1.5rem;
}

/* ============================================
   SINGLE COURSE PAGE
============================================ */
.course-hero {
    position: relative;
    padding: 7rem 0 5rem;
    color: var(--c7-cream);
    overflow: hidden;
    isolation: isolate;
}
.course-hero-bg {
    position: absolute; inset: 0; z-index: -1;
    overflow: hidden;
}
.ch-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(14, 59, 46, 0.95) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(8, 20, 32, 0.9) 0%, transparent 55%),
        linear-gradient(135deg, #081420 0%, #0E3B2E 55%, #052218 100%);
}
.ch-pattern {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.4' opacity='0.15'%3E%3Cpolygon points='60,10 73,38 100,38 78,55 88,82 60,68 32,82 42,55 20,38 47,38'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.4;
}
.ch-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.ch-glow-1 {
    width: 420px; height: 420px;
    top: -100px; left: 20%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    animation: achGlow1 16s ease-in-out infinite;
}
.ch-glow-2 {
    width: 500px; height: 500px;
    bottom: -150px; right: -100px;
    background: radial-gradient(circle, rgba(14, 59, 46, 0.5) 0%, transparent 70%);
    animation: achGlow2 18s ease-in-out infinite;
}

.course-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
@media (max-width: 1024px) {
    .course-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.course-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c7-gold-light);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.course-hero-text h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    font-weight: 300;
    color: var(--c7-cream);
}
.course-hero-lead {
    font-size: 1.05rem;
    color: rgba(248, 245, 239, 0.75);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 540px;
}
.course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.ch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(248, 245, 239, 0.85);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    backdrop-filter: blur(20px);
}
.ch-pill i { color: var(--c7-gold); }

/* Glass enrollment card on right */
.course-hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
    color: #222;
}
.ch-card-thumb {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--c7-emerald);
    position: relative;
}
.ch-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
}
.ch-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c7-emerald);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    padding-left: 4px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: chPulse 2.5s ease-in-out infinite;
    z-index: 2;
}
@keyframes chPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50%      { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}
.ch-card-body {
    padding: 1.75rem;
}
.ch-price {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: var(--c7-emerald);
    font-weight: 500;
    margin-bottom: 1rem;
}
.ch-enroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--c7-gold-light) 0%, var(--c7-gold) 100%);
    color: var(--c7-emerald-deep) !important;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px -6px rgba(212, 175, 55, 0.4);
}
.ch-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(212, 175, 55, 0.6);
    color: var(--c7-emerald-deep) !important;
}
.ch-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(14, 59, 46, 0.08);
    padding-top: 1rem;
}
.ch-card-list li {
    padding: 0.6rem 0;
    font-size: 0.88rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px dashed rgba(14, 59, 46, 0.06);
}
.ch-card-list li:last-child { border-bottom: none; }
.ch-card-list i {
    color: var(--c7-gold);
    width: 18px;
    text-align: center;
}
.ch-card-list strong { color: var(--c7-emerald); }

/* Course body grid */
.course-body {
    background: var(--c7-cream);
    padding: 5rem 0 6rem;
}
.course-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .course-body-grid { grid-template-columns: 1fr; }
}

.course-block {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 40px -20px rgba(14, 59, 46, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.1);
}
@media (max-width: 600px) {
    .course-block { padding: 1.75rem 1.5rem; }
}
.course-block-title {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    color: var(--c7-emerald);
    margin: 0 0 1.25rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.85rem;
}
.course-block-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--c7-gold), var(--c7-gold-light));
    border-radius: 3px;
}
.course-prose {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
}
.course-prose h2, .course-prose h3 {
    color: var(--c7-emerald);
    font-family: 'Fraunces', serif;
}
.course-prose p { margin-bottom: 1.25rem; }
.course-prose ul, .course-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.course-prose li { margin-bottom: 0.5rem; }

/* Bottom CTA */
.course-cta-bottom {
    background: linear-gradient(135deg, var(--c7-emerald) 0%, var(--c7-emerald-deep) 100%) !important;
    color: var(--c7-cream);
    border: none;
    position: relative;
    overflow: hidden;
}
.course-cta-bottom::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.4' opacity='0.18'%3E%3Cpolygon points='50,10 60,35 85,35 65,52 73,80 50,65 27,80 35,52 15,35 40,35'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px 150px;
    opacity: 0.4;
}
.cb-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cb-inner h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: var(--c7-gold-light);
    margin: 0 0 0.4rem;
    font-weight: 400;
}
.cb-inner p {
    color: rgba(248, 245, 239, 0.75);
    margin: 0;
}
.cb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--c7-gold-light), var(--c7-gold));
    color: var(--c7-emerald-deep) !important;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px -6px rgba(212, 175, 55, 0.5);
}
.cb-btn:hover {
    transform: translateY(-2px);
    color: var(--c7-emerald-deep) !important;
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .course-sidebar { position: static; }
}
.cs-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px -15px rgba(14, 59, 46, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.cs-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--c7-emerald);
    margin: 0 0 1rem;
}
.cs-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cs-card ul li {
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px dashed rgba(14, 59, 46, 0.07);
}
.cs-card ul li:last-child { border-bottom: none; }
.cs-card ul i {
    color: var(--c7-gold);
    width: 18px;
}

.cs-card-stat {
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #FAF6EE 100%);
}
.cs-stat-icon {
    width: 48px; height: 48px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--c7-emerald), var(--c7-emerald-deep));
    color: var(--c7-gold-light);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}
.cs-stat-num {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    color: var(--c7-emerald);
    font-weight: 500;
    line-height: 1;
}
.cs-stat-label {
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* ============================================
   SYLLABUS ACCORDION
============================================ */
.syllabus-wrap { }

.syl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.syl-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c7-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}
.syl-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    color: var(--c7-emerald);
    margin: 0;
    font-weight: 500;
}
.syl-summary {
    font-size: 0.88rem;
    color: #666;
}
.syl-summary strong { color: var(--c7-emerald); }

.syl-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.syl-item {
    background: var(--c7-cream);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.syl-item.is-open {
    background: #fff;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px -10px rgba(14, 59, 46, 0.2);
}

.syl-item-head {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.5rem;
    font-family: inherit;
    text-align: left;
    color: var(--c7-emerald);
    transition: color 0.3s ease;
}
.syl-item-head:hover { color: var(--c7-gold); }

.syl-num {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c7-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    line-height: 1;
}
.syl-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c7-emerald);
}
.syl-count {
    font-size: 0.78rem;
    color: #777;
    background: rgba(14, 59, 46, 0.06);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.syl-caret {
    color: var(--c7-gold);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
}
.syl-item.is-open .syl-caret { transform: rotate(180deg); }

.syl-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.syl-item.is-open .syl-body { max-height: 2000px; }

.syl-lessons-list {
    list-style: none;
    padding: 0 1.5rem 1.25rem;
    margin: 0;
}
.syl-lesson {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px dashed rgba(14, 59, 46, 0.08);
    font-size: 0.92rem;
    color: #555;
}
.syl-lesson:first-child { border-top: 1px solid rgba(212, 175, 55, 0.2); padding-top: 1rem; }
.syl-lesson-dot {
    width: 30px; height: 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--dot-color, var(--c7-gold));
    font-size: 0.78rem;
    flex-shrink: 0;
}
.syl-lesson-label { color: #333; font-weight: 500; }
.syl-lesson-type {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.syl-lesson-dur {
    font-size: 0.78rem;
    color: var(--c7-emerald);
    background: rgba(14, 59, 46, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .syl-item-head { grid-template-columns: auto 1fr auto; padding: 1rem 1.1rem; }
    .syl-count { display: none; }
    .syl-num { width: 40px; height: 40px; font-size: 1.2rem; }
    .syl-title { font-size: 1rem; }
    .syl-lessons-list { padding: 0 1.1rem 1rem; }
    .syl-lesson { grid-template-columns: auto 1fr auto; }
    .syl-lesson-type { display: none; }
}

/* ============================================================
   v8 — Polish pass for courses experience
============================================================ */

/* Floating Islamic geometric ornament in card top-right corner */
.pcourse-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.8' opacity='0.5'%3E%3Cpolygon points='16,2 19,12 29,12 21,18 24,28 16,22 8,28 11,18 3,12 13,12'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: rotate(0deg) scale(0.7);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 3;
}
.pcourse-card:hover::after {
    opacity: 1;
    transform: rotate(180deg) scale(1);
}

/* Subtle pulse on student count to draw attention */
.pcourse-stats span:has(.fa-user-group),
.pcourse-stats span:nth-last-child(1) i.fa-user-group {
    animation: studentsPulse 3s ease-in-out infinite;
}
@keyframes studentsPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

/* Better mobile padding on archive hero */
@media (max-width: 600px) {
    .archive-courses-hero { padding: 7rem 0 4rem; }
    .archive-courses-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .archive-courses-hero p { font-size: 0.95rem; }
    .ach-toolbar { flex-direction: column; }
    .ach-search, .ach-select-wrap select { width: 100%; }
    .ach-cat-pills { padding: 0 0.5rem; }
    .cat-pill { font-size: 0.8rem; padding: 0.45rem 1rem; }
}

/* Smooth fade-in for archive cards on load */
.premium-courses-grid .pcourse-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.premium-courses-grid .pcourse-card:nth-child(1) { animation-delay: 0.05s; }
.premium-courses-grid .pcourse-card:nth-child(2) { animation-delay: 0.15s; }
.premium-courses-grid .pcourse-card:nth-child(3) { animation-delay: 0.25s; }
.premium-courses-grid .pcourse-card:nth-child(4) { animation-delay: 0.35s; }
.premium-courses-grid .pcourse-card:nth-child(5) { animation-delay: 0.45s; }
.premium-courses-grid .pcourse-card:nth-child(6) { animation-delay: 0.55s; }
.premium-courses-grid .pcourse-card:nth-child(n+7) { animation-delay: 0.65s; }
@keyframes cardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Make sure syllabus lesson icons have proper backgrounds with their type colors */
.syl-lesson-dot {
    background: color-mix(in srgb, var(--dot-color, #D4AF37) 12%, transparent);
}

/* Single course hero card — slight tilt on hover */
.course-hero-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-hero-card:hover {
    transform: translateY(-4px);
}

/* Make sure CSS variables also exist in :root for older selectors */
:root {
    --clr-text-muted: #666;
    --clr-bg-alt: #F4EDDF;
}

/* ============================================================
   ╔══════════════════════════════════════════════════════════╗
   ║   v9 — COMPLETE MOBILE RESPONSIVENESS                    ║
   ║   Hamburger menu · All breakpoints · Touch-friendly      ║
   ╚══════════════════════════════════════════════════════════╝
============================================================ */

/* === GLOBAL FIX: prevent horizontal scroll === */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
* { max-width: 100vw; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }

/* === HAMBURGER BUTTON — visible on mobile === */
.hamburger {
    display: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 1001;
    position: relative;
}
.hamburger:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #F5D86E;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE BREAKPOINT — show hamburger, transform nav === */
@media (max-width: 980px) {
    .hamburger { display: flex !important; }

    /* Mobile menu drawer */
    .navbar .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 88% !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: linear-gradient(180deg, #0E3B2E 0%, #052218 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 6rem 2rem 3rem !important;
        gap: 0 !important;
        transition: right 0.45s cubic-bezier(0.65, 0, 0.35, 1) !important;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar .nav-links.active { right: 0 !important; }

    /* Mobile menu links */
    .navbar .nav-links li {
        list-style: none;
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .navbar .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .navbar .nav-links.active li:nth-child(1) { transition-delay: 0.15s; }
    .navbar .nav-links.active li:nth-child(2) { transition-delay: 0.20s; }
    .navbar .nav-links.active li:nth-child(3) { transition-delay: 0.25s; }
    .navbar .nav-links.active li:nth-child(4) { transition-delay: 0.30s; }
    .navbar .nav-links.active li:nth-child(5) { transition-delay: 0.35s; }
    .navbar .nav-links.active li:nth-child(6) { transition-delay: 0.40s; }
    .navbar .nav-links.active li:nth-child(7) { transition-delay: 0.45s; }
    .navbar .nav-links.active li:nth-child(8) { transition-delay: 0.50s; }

    .navbar .nav-links a {
        font-family: 'Fraunces', serif !important;
        font-size: 1.3rem !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(245, 216, 110, 0.12) !important;
        color: rgba(248, 245, 239, 0.9) !important;
        display: block !important;
        text-align: left !important;
        transition: color 0.3s ease, padding-left 0.3s ease !important;
    }
    .navbar .nav-links a::after { display: none !important; }
    .navbar .nav-links a:hover,
    .navbar .nav-links a:focus {
        color: #F5D86E !important;
        padding-left: 0.6rem !important;
    }

    /* Mobile CTA — keep gold pill style */
    .navbar .nav-links li:last-child a,
    .navbar .nav-links .nav-cta {
        margin-top: 1.5rem;
        background: linear-gradient(135deg, #D4AF37 0%, #F5D86E 100%) !important;
        color: #062E25 !important;
        font-family: 'Manrope', sans-serif !important;
        font-size: 1rem !important;
        padding: 0.9rem 1.5rem !important;
        text-align: center !important;
        border-radius: 999px !important;
        border-bottom: none !important;
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }

    /* Backdrop overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        animation: backdropFadeIn 0.3s ease forwards;
    }
    @keyframes backdropFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hide the desktop CTA "Free Trial" pill styles on mobile menu items not last */
    .navbar .nav-links li:not(:last-child) a.nav-cta {
        background: transparent !important;
        color: rgba(248, 245, 239, 0.9) !important;
        box-shadow: none !important;
    }
}

/* === DESKTOP — Ensure hamburger is hidden === */
@media (min-width: 981px) {
    .hamburger { display: none !important; }
}

/* === ALL DEVICES — Better touch targets === */
@media (hover: none) and (pointer: coarse) {
    /* Bigger tap targets on touch devices */
    a, button, .btn, input[type="submit"] {
        min-height: 44px;
    }
}

/* ============================================================
   COMPREHENSIVE BREAKPOINTS
============================================================ */

/* === LARGE TABLETS (1024px and down) === */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }

    .premium-courses-grid,
    .lectures-grid,
    .library-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

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

    .footer.site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    .course-body-grid { grid-template-columns: 1fr; }
    .course-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .course-sidebar .cs-card { flex: 1; min-width: 240px; }

    .course-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* === TABLETS (768px and down) === */
@media (max-width: 768px) {
    /* Base sizing */
    html { font-size: 15px; }
    .container { padding: 0 1.25rem !important; }
    .section-padding { padding: 3.5rem 0 !important; }

    /* Section titles */
    .section-title h2 { font-size: clamp(1.7rem, 5vw, 2.2rem) !important; }
    .section-title p { font-size: 0.95rem !important; }

    /* All grids → 1 column where appropriate */
    .premium-courses-grid,
    .lectures-grid,
    .library-grid,
    .blog-grid,
    .testimonials-grid,
    .recitations-grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; }

    .features-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .feature-card { padding: 1.5rem !important; }

    .teachers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }

    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
    .stats h3 { font-size: 1.8rem !important; }

    /* Footer */
    .footer.site-footer { padding: 3rem 0 0 !important; }
    .footer.site-footer .container { padding: 0 1.25rem !important; }
    .footer.site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }
    .footer.site-footer h4 { font-size: 1rem !important; margin-bottom: 1rem !important; }
    .footer.site-footer .footer-bottom { padding: 1rem 0 !important; font-size: 0.78rem !important; }

    /* Page hero */
    .page-hero { padding: 6rem 0 3rem !important; }
    .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
    .page-hero p { font-size: 0.95rem !important; }

    /* Floating action buttons - reposition */
    .whatsapp-float {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
    .theme-toggle {
        bottom: 1rem !important;
        right: 4.5rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }
    .back-top {
        bottom: 4.5rem !important;
        right: 1rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 0.9rem !important;
    }

    /* CTA banner */
    .cta-banner { padding: 3rem 0 !important; }
    .cta-content h2 { font-size: 1.7rem !important; }

    /* Course archive hero */
    .archive-courses-hero { padding: 6rem 0 3.5rem !important; }
    .archive-courses-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; }
    .ach-toolbar { flex-direction: column; }
    .ach-search, .ach-select-wrap select { width: 100% !important; }

    /* Single course hero */
    .course-hero { padding: 5.5rem 0 3.5rem !important; }
    .course-hero-text h1 { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; }

    /* Course block padding */
    .course-block { padding: 1.75rem 1.5rem !important; }
    .cb-inner { flex-direction: column; text-align: center; }

    /* Course sidebar full width */
    .course-sidebar { flex-direction: column !important; }
}

/* === PHONES (640px and down) === */
@media (max-width: 640px) {
    .container { padding: 0 1rem !important; }

    /* Hero v6 specific tweaks */
    section.hero.hero-v6 { padding: 90px 0 60px !important; }
    .hero-v6 .hero-grid { gap: 2rem !important; padding: 0 1rem !important; }
    .hero-v6 .hero-h1 { font-size: clamp(1.9rem, 8vw, 2.8rem) !important; }
    .hero-v6 .hero-sub { font-size: 0.95rem !important; margin-bottom: 1.75rem !important; }
    .hero-v6 .hero-cta-row { flex-direction: column !important; gap: 0.7rem !important; }
    .hero-v6 .cta-primary,
    .hero-v6 .cta-secondary {
        width: 100%;
        justify-content: center !important;
        padding: 0.9rem 1.5rem !important;
    }
    .hero-v6 .hero-bismillah-pill {
        font-size: 0.92rem !important;
        padding: 0.4rem 1rem !important;
    }
    .hero-v6 .hero-trust {
        gap: 0.8rem !important;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1.5rem !important;
    }
    .hero-v6 .trust-divider { display: none; }
    .hero-v6 .trust-item strong { font-size: 1.1rem !important; }
    .hero-v6 .verse-plate { display: none !important; }
    .hero-v6 .waveform-bar {
        min-width: 200px !important;
        padding: 0.5rem 0.8rem !important;
    }
    .hero-v6 .wf-label span { display: none; }
    .hero-v6 .float-shape { transform: scale(0.6); }
    .hero-v6 .hero-mosque-v6 { height: 70px !important; }
    .hero-v6 .hero-right { min-height: 320px !important; }
    .hero-v6 .scroll-cue { display: none; }
    .hero-v6 .visual-stage { max-width: 380px !important; }
    .hero-v6 .hero-moon { width: 100px !important; height: 100px !important; top: 70px; }

    /* Hero floating shapes - hide some on small phones */
    .hero-v6 .float-3, .hero-v6 .float-4 { display: none; }

    /* Cards on phones */
    .pcourse-body { padding: 1.25rem !important; }
    .pcourse-body h3 { font-size: 1.2rem !important; }
    .pcourse-stats { gap: 0.6rem 1rem; font-size: 0.75rem; }

    /* Teachers stack */
    .teachers-grid { grid-template-columns: 1fr !important; max-width: 320px !important; margin: 0 auto !important; }

    /* Floating buttons on phones */
    .whatsapp-float {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
    }
    .theme-toggle, .back-top {
        width: 40px !important;
        height: 40px !important;
    }
    .theme-toggle { right: 4.3rem !important; }
}

/* === SMALL PHONES (480px and down) === */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 0.85rem !important; }

    .navbar .container { padding: 0 1rem !important; }
    .navbar .logo { font-size: 1.1rem !important; }
    .navbar .logo i.logo-accent { font-size: 1.2rem !important; }

    /* Hide some decorative hero elements */
    .hero-v6 .float-shape { display: none; }
    .hero-v6 .hero-mosque-v6 { height: 50px !important; }
    .hero-v6 .ring-outer, .hero-v6 .ring-mid { display: none; }
    .hero-v6 .hero-moon { display: none; }

    /* Visual stage smaller */
    .hero-v6 .hero-right { min-height: 260px !important; }
    .hero-v6 .visual-stage { max-width: 300px !important; }

    /* Section titles smaller */
    .section-title h2 { font-size: 1.6rem !important; }

    /* Course hero card more compact */
    .ch-card-body { padding: 1.25rem !important; }
    .ch-price { font-size: 1.6rem !important; }

    /* Reviews more compact */
    .review-card { padding: 1.1rem !important; }
    .review-text { font-size: 0.88rem !important; }
}

/* === EXTRA SMALL (380px and below — old iPhones) === */
@media (max-width: 380px) {
    html { font-size: 13.5px; }
    .container { padding: 0 0.75rem !important; }
    .section-title h2 { font-size: 1.4rem !important; }
    .hero-v6 .hero-h1 { font-size: 1.75rem !important; line-height: 1.15 !important; }
}

/* === LANDSCAPE PHONES — Adjust hero === */
@media (max-height: 500px) and (orientation: landscape) {
    section.hero.hero-v6 {
        min-height: auto !important;
        padding: 80px 0 60px !important;
    }
    .hero-v6 .hero-h1 { font-size: 2rem !important; }
}

/* === LARGE DESKTOPS — Cap max width === */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    .hero-v6 .hero-grid { max-width: 1400px; }
}

/* === PRINT === */
@media print {
    .navbar, .hamburger, .whatsapp-float, .theme-toggle, .back-top,
    .scroll-cue, .hero-v6 .hero-bg-layer, .hero-mosque-v6,
    .cta-banner, .cta-content { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
}

/* ============================================================
   SPEED / PERFORMANCE OPTIMIZATIONS
============================================================ */

/* Use GPU for transforms */
.pcourse-card, .lecture-card, .pdf-card, .teacher-card,
.review-card, .feature-card, .blog-card, .hero-v6 .quran-stack,
.float-shape, .mesh-orb, .ring, .moon-disc {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduce paint area for animations */
.hero-v6 .hero-bg-layer { contain: layout style paint; }

/* Lazy image placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0e8d8 0%, #faf6ee 50%, #f0e8d8 100%);
    background-size: 200% 100%;
    animation: imgShimmer 1.5s ease-in-out infinite;
}
img[loading="lazy"][src] { animation: none; background: none; }
@keyframes imgShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-v6 .mesh-orb,
    .hero-v6 .aurora-band,
    .hero-v6 .quran-stack,
    .hero-v6 .float-shape,
    .hero-v6 .ring,
    .hero-v6 .moon-disc,
    .hero-v6 .quran-halo,
    .hero-v6 .floating-page,
    .hero-v6 .floating-page-2,
    .hero-v6 .quran-rays,
    .hero-v6 .quran-star {
        animation: none !important;
    }
}



/* ============================================================
   ============================================================
   NEW FEATURES (v2.1) — Payments, FAQ, Enrollment Form, Modal
   ============================================================
   ============================================================ */

/* Shared design tokens for new sections */
:root {
    --pay-radius: 18px;
    --pay-shadow: 0 14px 36px rgba(13, 74, 59, 0.10);
    --pay-shadow-hover: 0 22px 60px rgba(13, 74, 59, 0.18);
    --form-radius: 14px;
    --form-border: rgba(13, 74, 59, 0.12);
}

/* ============================================================
   PAYMENT METHODS SECTION
============================================================ */
.payments-section {
    position: relative;
    background: linear-gradient(180deg, #faf6ee 0%, #f4ead7 100%);
    overflow: hidden;
}

.payments-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.payments-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}
.payments-bg-glow-1 {
    background: radial-gradient(circle, var(--clr-primary, #0D4A3B), transparent 70%);
    top: -200px; left: -150px;
}
.payments-bg-glow-2 {
    background: radial-gradient(circle, var(--clr-accent, #C8962E), transparent 70%);
    bottom: -200px; right: -150px;
}
.payments-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13,74,59,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
}

.payments-section .container { position: relative; z-index: 1; }

.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.pay-card {
    position: relative;
    background: #fff;
    border-radius: var(--pay-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--pay-shadow);
    border: 1px solid rgba(13, 74, 59, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pay-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--pay-color, #0D4A3B);
    border-radius: var(--pay-radius) var(--pay-radius) 0 0;
    opacity: 0.85;
}

.pay-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pay-shadow-hover);
    border-color: var(--pay-color, #0D4A3B);
}

.pay-card-glow {
    position: absolute;
    top: -40%; right: -40%;
    width: 180px; height: 180px;
    background: var(--pay-color, #0D4A3B);
    opacity: 0;
    border-radius: 50%;
    filter: blur(60px);
    transition: opacity 0.5s;
    pointer-events: none;
}
.pay-card:hover .pay-card-glow { opacity: 0.15; }

.pay-card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pay-color, #0D4A3B) 12%, white), color-mix(in srgb, var(--pay-color, #0D4A3B) 4%, white));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--pay-color, #0D4A3B);
    margin-bottom: 1.25rem;
    transition: transform 0.4s;
}
.pay-card:hover .pay-card-icon {
    transform: rotate(-6deg) scale(1.08);
}

.pay-card-name {
    font-size: 1.25rem;
    color: #0D4A3B;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.pay-card-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.pay-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    padding: 0.9rem 0;
    border-top: 1px dashed rgba(13, 74, 59, 0.15);
    margin-bottom: 1rem;
}
.pay-card-features span {
    font-size: 0.78rem;
    color: var(--pay-color, #0D4A3B);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}
.pay-card-features i { font-size: 0.7rem; }

.pay-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pay-color, #0D4A3B);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: gap 0.3s;
    font-family: inherit;
    align-self: flex-start;
}
.pay-card-link:hover { gap: 0.85rem; }

.payments-footer { margin-top: 3rem; }
.payments-footer-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid rgba(13, 74, 59, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 24px rgba(13, 74, 59, 0.06);
    max-width: 700px;
    margin: 0 auto;
}
.payments-footer-card > i:first-child {
    font-size: 2rem;
    color: var(--clr-primary, #0D4A3B);
    flex-shrink: 0;
}
.payments-footer-card > div { display: flex; flex-direction: column; gap: 0.25rem; }
.payments-footer-card strong { color: #0D4A3B; font-size: 1.05rem; }
.payments-footer-card span { color: #666; font-size: 0.92rem; }

/* Compact strip in footer */
.payments-strip {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.payments-strip-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.payments-strip-icons { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.payments-strip-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--pay-color, #fff);
    transition: transform 0.3s, background 0.3s;
}
.payments-strip-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   FAQ SECTION
============================================================ */
.faq-section {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #faf6ee 100%);
    overflow: hidden;
}

.faq-section--compact { padding: 4rem 0; }

.faq-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.faq-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--clr-accent, #C8962E), transparent 70%);
    filter: blur(120px);
    opacity: 0.12;
    border-radius: 50%;
}
.faq-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(13,74,59,0.025) 35px, rgba(13,74,59,0.025) 36px);
}

.faq-section .container { position: relative; z-index: 1; }

.faq-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(13, 74, 59, 0.08);
    border-radius: var(--pay-radius);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(13, 74, 59, 0.04);
}
.faq-item:hover {
    box-shadow: 0 10px 30px rgba(13, 74, 59, 0.08);
    border-color: rgba(13, 74, 59, 0.18);
}
.faq-item.is-open {
    box-shadow: 0 16px 40px rgba(13, 74, 59, 0.10);
    border-color: rgba(200, 150, 46, 0.35);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.4rem 1.6rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: inherit;
    color: #0D4A3B;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(13, 74, 59, 0.02); }

.faq-q-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.4s;
}
.faq-item.is-open .faq-q-icon {
    transform: rotate(360deg);
}

.faq-q-text {
    flex-grow: 1;
}

.faq-q-caret {
    color: #0D4A3B;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-item.is-open .faq-q-caret {
    transform: rotate(180deg);
    color: #C8962E;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer {
    max-height: 1000px;
}

.faq-answer-inner {
    padding: 0.25rem 1.6rem 1.6rem 4.6rem;
    color: #555;
    line-height: 1.75;
    font-size: 0.98rem;
}
.faq-answer-inner p { margin: 0 0 0.85em; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* FAQ Side CTA Card */
.faq-cta-card {
    position: sticky;
    top: 6rem;
    background: linear-gradient(155deg, #0D4A3B 0%, #1a6b54 100%);
    color: #fff;
    border-radius: var(--pay-radius);
    padding: 2rem 1.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 74, 59, 0.25);
}
.faq-cta-glow {
    position: absolute;
    top: -50%; right: -30%;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.4), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.faq-cta-card > * { position: relative; z-index: 1; }

.faq-cta-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.faq-cta-card h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}
.faq-cta-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.4rem;
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(200, 150, 46, 0.35);
}
.faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(200, 150, 46, 0.5);
}

.faq-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.faq-cta-whatsapp:hover { background: rgba(37, 211, 102, 0.2); border-color: #25D366; }

@media (max-width: 900px) {
    .faq-wrap { grid-template-columns: 1fr; }
    .faq-cta-card { position: static; }
    .faq-answer-inner { padding-left: 1.6rem; }
}

/* ============================================================
   ENROLLMENT FORM — Shared (inline + modal)
============================================================ */
.dfhso-form-card {
    background: #fff;
    border-radius: var(--form-radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(13, 74, 59, 0.12);
    border: 1px solid var(--form-border);
}
.dfhso-form-card--modal {
    box-shadow: none;
    border: none;
    padding: 0;
}

.dfhso-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.dfhso-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    background: rgba(200, 150, 46, 0.12);
    color: #C8962E;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
}

.dfhso-form-title {
    color: #0D4A3B;
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.dfhso-form-sub {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.dfhso-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1rem;
}

.dfhso-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.dfhso-form-field--full { grid-column: 1 / -1; }

.dfhso-form-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #0D4A3B;
    font-weight: 600;
    font-size: 0.88rem;
}
.dfhso-form-field label i { color: #C8962E; font-size: 0.85rem; }
.dfhso-form-field label small { font-weight: 400; color: #888; font-size: 0.82rem; }
.dfhso-form-field label .req { color: #d65151; font-weight: 700; }

.dfhso-form-field input,
.dfhso-form-field select,
.dfhso-form-field textarea {
    width: 100%;
    padding: 0.78rem 0.95rem;
    background: #faf6ee;
    border: 1.5px solid rgba(13, 74, 59, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #222;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.dfhso-form-field input::placeholder,
.dfhso-form-field textarea::placeholder { color: #aaa; }

.dfhso-form-field input:focus,
.dfhso-form-field select:focus,
.dfhso-form-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #C8962E;
    box-shadow: 0 0 0 4px rgba(200, 150, 46, 0.12);
}

.dfhso-form-field input.is-error,
.dfhso-form-field select.is-error {
    border-color: #d65151;
    background: #fff5f5;
}

.dfhso-form-hint {
    color: #999;
    font-size: 0.78rem;
    font-style: italic;
}

.dfhso-form-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.05rem 1.5rem;
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
    box-shadow: 0 10px 25px rgba(13, 74, 59, 0.25);
    position: relative;
}
.dfhso-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(13, 74, 59, 0.35);
}
.dfhso-form-submit:active { transform: translateY(0); }
.dfhso-form-submit:disabled { opacity: 0.7; cursor: wait; }

.dfhso-form-submit-text,
.dfhso-form-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.dfhso-form-message {
    margin-top: 1rem;
    padding: 0;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
    transition: all 0.3s;
}
.dfhso-form-message.is-success {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #d4f0e0, #e8f8ed);
    color: #0D4A3B;
    border: 1.5px solid #25D366;
    font-weight: 600;
}
.dfhso-form-message.is-error {
    padding: 0.9rem 1.2rem;
    background: #fff0f0;
    color: #a32424;
    border: 1.5px solid #d65151;
    font-weight: 500;
}

.dfhso-form-disclaimer {
    margin-top: 1.1rem;
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.dfhso-form-disclaimer i { color: #0D4A3B; }
.dfhso-form-disclaimer strong { color: #0D4A3B; }

@media (max-width: 600px) {
    .dfhso-form-grid { grid-template-columns: 1fr; }
    .dfhso-form-card { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   ENROLLMENT MODAL
============================================================ */
.dfhso-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.dfhso-modal-overlay.is-open {
    display: flex;
    opacity: 1;
}

.dfhso-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 25, 20, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dfhso-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 22px;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dfhso-modal-overlay.is-open .dfhso-modal-dialog {
    transform: translateY(0) scale(1);
}

.dfhso-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.25s, transform 0.25s;
}
.dfhso-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.dfhso-modal-banner {
    position: relative;
    background: linear-gradient(135deg, #0D4A3B 0%, #1a6b54 60%, #0D4A3B 100%);
    color: #fff;
    padding: 2.25rem 2rem 1.85rem;
    overflow: hidden;
}
.dfhso-modal-banner-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(245, 216, 110, 0.3), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 150, 46, 0.3), transparent 50%);
    pointer-events: none;
}
.dfhso-modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.dfhso-modal-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dfhso-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    background: rgba(245, 216, 110, 0.18);
    color: #F5D86E;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.9rem;
}

.dfhso-modal-banner h2 {
    color: #fff;
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.dfhso-modal-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

.dfhso-modal-body {
    padding: 1.5rem 2rem 2rem;
}

body.dfhso-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .dfhso-modal-banner { padding: 2rem 1.5rem 1.5rem; }
    .dfhso-modal-banner h2 { font-size: 1.4rem; }
    .dfhso-modal-body { padding: 1.25rem 1.25rem 1.5rem; }
}

/* ============================================================
   INLINE ENROLLMENT SECTION
============================================================ */
.enroll-inline-section {
    position: relative;
    background: linear-gradient(150deg, #0D4A3B 0%, #1a6b54 70%, #0a3a2e 100%);
    color: #fff;
    overflow: hidden;
}

.enroll-inline-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.enroll-inline-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.enroll-inline-glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.35), transparent 70%);
    top: -100px; left: -100px;
}
.enroll-inline-glow-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26, 107, 84, 0.5), transparent 70%);
    bottom: -200px; right: -150px;
}
.enroll-inline-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.enroll-inline-section .container { position: relative; z-index: 1; }

.enroll-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.enroll-inline-left { color: rgba(255, 255, 255, 0.95); }

.enroll-inline-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 216, 110, 0.15);
    border: 1px solid rgba(245, 216, 110, 0.3);
    color: #F5D86E;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.enroll-inline-left h2 {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.enroll-inline-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.enroll-inline-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.enroll-inline-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.96rem;
    line-height: 1.5;
}
.enroll-inline-features i {
    color: #F5D86E;
    font-size: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.enroll-inline-trust {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}
.enroll-inline-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.enroll-inline-trust-item strong {
    font-family: var(--font-heading, 'Playfair Display', serif);
    color: #F5D86E;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}
.enroll-inline-trust-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.enroll-inline-right .dfhso-form-card {
    background: #fff;
    border: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    padding: 2rem;
}

@media (max-width: 980px) {
    .enroll-inline-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .enroll-inline-trust { justify-content: space-between; }
}

/* ============================================================
   DARK MODE ADJUSTMENTS
============================================================ */
body.dark-mode .pay-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e9e3d3;
}
body.dark-mode .pay-card-name { color: #fff; }
body.dark-mode .pay-card-desc { color: rgba(255, 255, 255, 0.65); }
body.dark-mode .payments-footer-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .payments-footer-card strong { color: #F5D86E; }
body.dark-mode .payments-footer-card span { color: rgba(255, 255, 255, 0.7); }

body.dark-mode .faq-section { background: linear-gradient(180deg, #0a1f1a 0%, #0d2922 100%); }
body.dark-mode .faq-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .faq-question { color: #fff; }
body.dark-mode .faq-question:hover { background: rgba(255, 255, 255, 0.03); }
body.dark-mode .faq-q-caret { color: rgba(255, 255, 255, 0.7); }
body.dark-mode .faq-answer-inner { color: rgba(255, 255, 255, 0.7); }

body.dark-mode .dfhso-form-card {
    background: #1a2e28;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .dfhso-form-title { color: #fff; }
body.dark-mode .dfhso-form-sub { color: rgba(255, 255, 255, 0.7); }
body.dark-mode .dfhso-form-field label { color: #F5D86E; }
body.dark-mode .dfhso-form-field input,
body.dark-mode .dfhso-form-field select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.dark-mode .dfhso-form-field input::placeholder { color: rgba(255, 255, 255, 0.4); }
body.dark-mode .dfhso-modal-dialog { background: #142a23; }



/* ============================================================
   ============================================================
   ABOUT US PAGE (v2.2)
   ============================================================
   ============================================================ */

/* ============================================================
   ABOUT HERO — Asymmetric magazine layout
============================================================ */
.ab-hero {
    position: relative;
    padding: 7rem 0 6rem;
    background: linear-gradient(180deg, #faf6ee 0%, #f4ead7 100%);
    overflow: hidden;
}

.ab-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ab-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.ab-hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(13, 74, 59, 0.18), transparent 70%);
    top: -150px; left: -100px;
}
.ab-hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.15), transparent 70%);
    bottom: -100px; right: -100px;
}
.ab-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(13, 74, 59, 0.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}
.ab-hero-arabic-svg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
    opacity: 0.7;
}

.ab-hero .container { position: relative; z-index: 2; }

.ab-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.ab-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.15rem;
    background: rgba(13, 74, 59, 0.08);
    border: 1px solid rgba(13, 74, 59, 0.15);
    color: #0D4A3B;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.ab-hero-eyebrow-dot {
    width: 8px; height: 8px;
    background: #C8962E;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.ab-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0D4A3B;
    font-weight: 700;
}
.ab-hero h1 em {
    color: #C8962E;
    font-style: italic;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.ab-hero-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 2rem;
    max-width: 540px;
}

.ab-hero-quote {
    position: relative;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #C8962E;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    max-width: 540px;
}
.ab-hero-arabic {
    font-family: var(--font-arabic, 'Amiri', serif);
    font-size: 1.65rem;
    color: #0D4A3B;
    line-height: 1.4;
    direction: rtl;
    text-align: right;
    margin-bottom: 0.4rem;
}
.ab-hero-arabic-tr {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.ab-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.3s, color 0.3s;
}
.ab-btn-primary {
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #fff;
    box-shadow: 0 12px 28px rgba(13, 74, 59, 0.25);
}
.ab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(13, 74, 59, 0.4);
}
.ab-btn-ghost {
    background: transparent;
    color: #0D4A3B;
    border: 1.5px solid rgba(13, 74, 59, 0.2);
}
.ab-btn-ghost:hover {
    background: #0D4A3B;
    color: #fff;
    border-color: #0D4A3B;
}
.ab-btn-gold {
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    box-shadow: 0 12px 28px rgba(200, 150, 46, 0.35);
}
.ab-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(200, 150, 46, 0.5);
}
.ab-btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.ab-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero visual side */
.ab-hero-visual {
    position: relative;
    height: 540px;
    perspective: 1200px;
}

.ab-hero-card {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(13, 74, 59, 0.25);
}

.ab-hero-card-main {
    inset: 20px 20px 60px 60px;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ab-hero-card-main:hover { transform: rotate(0deg) scale(1.02); }
.ab-hero-card-main img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.ab-hero-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 216, 110, 0.4);
    font-size: 8rem;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(245, 216, 110, 0.2), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 150, 46, 0.15), transparent 50%);
}
.ab-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 74, 59, 0.7), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.ab-hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0D4A3B;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ab-hero-card-badge i { color: #C8962E; }

.ab-hero-floater {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(13, 74, 59, 0.18);
    backdrop-filter: blur(12px);
    z-index: 3;
    animation: floater 6s ease-in-out infinite;
}
.ab-hero-floater strong {
    display: block;
    font-family: var(--font-heading, 'Playfair Display', serif);
    color: #0D4A3B;
    font-size: 1.1rem;
    line-height: 1.1;
}
.ab-hero-floater span {
    color: #666;
    font-size: 0.78rem;
}
.ab-hero-floater-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #F5D86E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.ab-hero-floater-icon-gold {
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
}
.ab-hero-floater-1 {
    top: 30px;
    left: -10px;
    animation-delay: 0s;
}
.ab-hero-floater-2 {
    bottom: 30px;
    right: -10px;
    animation-delay: 3s;
}
@keyframes floater {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
    .ab-hero { padding: 5rem 0 4rem; }
    .ab-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ab-hero-visual { height: 400px; max-width: 480px; margin: 0 auto; }
    .ab-hero-floater-1 { top: 0; left: 0; }
    .ab-hero-floater-2 { bottom: 0; right: 0; }
}

/* ============================================================
   FOUNDER'S NOTE — Magazine split
============================================================ */
.ab-founder {
    padding: 7rem 0;
    background: #fff;
}

.ab-founder-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
    align-items: center;
}

.ab-founder-image-col {
    position: relative;
}

.ab-founder-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(13, 74, 59, 0.2);
}
.ab-founder-image-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.ab-founder-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: rgba(245, 216, 110, 0.5);
    font-size: 4rem;
    gap: 1rem;
}
.ab-founder-placeholder small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.6;
}
.ab-founder-image-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    border: 3px solid #C8962E;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.ab-founder-arabic-block {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #faf6ee, #f4ead7);
    border-radius: 12px;
    border-left: 4px solid #C8962E;
    text-align: right;
}
.ab-founder-arabic-block span {
    display: block;
    font-family: var(--font-arabic, 'Amiri', serif);
    color: #0D4A3B;
    font-size: 1.5rem;
    line-height: 1.4;
    direction: rtl;
    margin-bottom: 0.3rem;
}
.ab-founder-arabic-block small {
    color: #666;
    font-size: 0.82rem;
    font-style: italic;
    display: block;
    text-align: left;
}

.ab-founder-text-col { position: relative; }

.ab-section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(200, 150, 46, 0.12);
    color: #C8962E;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}
.ab-section-eyebrow-light {
    background: rgba(245, 216, 110, 0.18);
    color: #F5D86E;
    border: 1px solid rgba(245, 216, 110, 0.25);
}

.ab-founder-quote-mark {
    color: rgba(200, 150, 46, 0.35);
    margin-bottom: 0.8rem;
}
.ab-founder-quote-mark svg {
    width: 60px;
    height: 60px;
}

.ab-founder-quote {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.55rem;
    line-height: 1.55;
    color: #0D4A3B;
    font-style: italic;
    margin: 0 0 2.5rem;
    padding: 0;
    border: none;
    font-weight: 500;
}

.ab-founder-sign {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(13, 74, 59, 0.1);
}
.ab-founder-signature {
    max-width: 140px;
    height: auto;
    opacity: 0.85;
}
.ab-founder-name {
    display: block;
    color: #0D4A3B;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.ab-founder-role {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .ab-founder { padding: 4rem 0; }
    .ab-founder-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .ab-founder-image-frame { max-width: 380px; margin: 0 auto; }
    .ab-founder-quote { font-size: 1.25rem; }
}

/* ============================================================
   MISSION & VISION — twin cards
============================================================ */
.ab-mv {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, #fff 0%, #faf6ee 100%);
}

.ab-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ab-mv-card {
    position: relative;
    padding: 3rem 2.25rem;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.ab-mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(13, 74, 59, 0.18);
}

.ab-mv-card-mission {
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #fff;
}
.ab-mv-card-vision {
    background: linear-gradient(135deg, #FAF6EE, #f4ead7);
    color: #0D4A3B;
    border: 1px solid rgba(200, 150, 46, 0.2);
}

.ab-mv-card-pattern {
    position: absolute;
    top: -50%; right: -30%;
    width: 300px; height: 300px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.25;
}
.ab-mv-card-mission .ab-mv-card-pattern {
    background: radial-gradient(circle, rgba(245, 216, 110, 0.6), transparent 70%);
}
.ab-mv-card-vision .ab-mv-card-pattern {
    background: radial-gradient(circle, rgba(200, 150, 46, 0.45), transparent 70%);
}

.ab-mv-icon {
    width: 64px; height: 64px;
    background: rgba(245, 216, 110, 0.25);
    color: #F5D86E;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.ab-mv-icon-gold {
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
}

.ab-mv-card h2 {
    color: inherit;
    font-size: 1.85rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.ab-mv-card-mission h2 { color: #fff; }
.ab-mv-card-vision h2 { color: #0D4A3B; }

.ab-mv-card p {
    color: inherit;
    font-size: 1.02rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    margin: 0;
}
.ab-mv-card-mission p { color: rgba(255, 255, 255, 0.85); }
.ab-mv-card-vision p  { color: #444; }

@media (max-width: 800px) {
    .ab-mv-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CORE VALUES
============================================================ */
.ab-values {
    background: #faf6ee;
}

.ab-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.ab-value-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(13, 74, 59, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.ab-value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: var(--val-color, #0D4A3B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.ab-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(13, 74, 59, 0.12);
    border-color: var(--val-color, #0D4A3B);
}
.ab-value-card:hover::before { transform: scaleX(1); }

.ab-value-icon {
    width: 60px; height: 60px;
    background: color-mix(in srgb, var(--val-color, #0D4A3B) 12%, white);
    color: var(--val-color, #0D4A3B);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s;
}
.ab-value-card:hover .ab-value-icon {
    transform: rotate(-8deg) scale(1.1);
}

.ab-value-card h3 {
    color: #0D4A3B;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}
.ab-value-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   STATS / ACHIEVEMENTS
============================================================ */
.ab-stats {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0D4A3B 0%, #1a6b54 100%);
    color: #fff;
    overflow: hidden;
}

.ab-stats-bg { position: absolute; inset: 0; pointer-events: none; }
.ab-stats-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(245, 216, 110, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}
.ab-stats-glow {
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.18), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.ab-stats .container { position: relative; z-index: 2; }

.ab-stats-header {
    text-align: center;
    margin-bottom: 3rem;
}
.ab-stats-header h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.8rem;
}
.ab-stats-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.ab-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.ab-stat {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 216, 110, 0.15);
    border-radius: 18px;
    transition: transform 0.4s, background 0.4s;
}
.ab-stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
}

.ab-stat-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.ab-stat-num {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #F5D86E;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.ab-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ============================================================
   WHY CHOOSE US — Feature grid
============================================================ */
.ab-features {
    background: #fff;
}

.ab-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.ab-feature {
    position: relative;
    padding: 2.25rem 1.75rem 2rem;
    background: linear-gradient(180deg, #fff, #faf6ee);
    border-radius: 18px;
    border: 1px solid rgba(13, 74, 59, 0.06);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
    overflow: hidden;
}
.ab-feature::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s;
}
.ab-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(13, 74, 59, 0.12);
    border-color: #C8962E;
}
.ab-feature:hover::before { transform: scale(2); }

.ab-feature-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(13, 74, 59, 0.08);
    line-height: 1;
    z-index: 1;
}

.ab-feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #F5D86E;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.ab-feature h3 {
    color: #0D4A3B;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}
.ab-feature p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ============================================================
   JOURNEY TIMELINE
============================================================ */
.ab-timeline {
    padding: 6rem 0;
    background: linear-gradient(180deg, #faf6ee 0%, #fff 100%);
}

.ab-timeline-list {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 1rem 0;
}

.ab-timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(13, 74, 59, 0.2) 10%, rgba(13, 74, 59, 0.2) 90%, transparent);
    z-index: 0;
}

.ab-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin-bottom: 2.5rem;
    z-index: 1;
}
.ab-timeline-item:last-child { margin-bottom: 0; }

.ab-timeline-dot {
    grid-column: 2;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0D4A3B, #1a6b54);
    color: #F5D86E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(13, 74, 59, 0.3);
    border: 4px solid #fff;
    flex-shrink: 0;
    margin: 0 auto;
}
.ab-timeline-dot span {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1rem;
}

.ab-timeline-card {
    padding: 1.75rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(13, 74, 59, 0.08);
    border: 1px solid rgba(13, 74, 59, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ab-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(13, 74, 59, 0.14);
}
.ab-timeline-card h3 {
    color: #0D4A3B;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.ab-timeline-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.ab-tl-left .ab-timeline-card { grid-column: 1; text-align: right; }
.ab-tl-right .ab-timeline-card { grid-column: 3; text-align: left; }

@media (max-width: 700px) {
    .ab-timeline-list { max-width: 100%; }
    .ab-timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    .ab-timeline-line {
        left: 30px;
        transform: none;
    }
    .ab-timeline-dot {
        grid-column: 1;
        width: 60px; height: 60px;
        margin: 0;
    }
    .ab-timeline-dot span { font-size: 0.85rem; }
    .ab-tl-left .ab-timeline-card,
    .ab-tl-right .ab-timeline-card {
        grid-column: 2;
        text-align: left;
    }
}

/* ============================================================
   PAGE CONTENT (from WP editor)
============================================================ */
.ab-page-content { background: #fff; }
.ab-page-content-inner {
    max-width: 760px;
    margin: 0 auto;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.85;
}
.ab-page-content-inner h2 { color: #0D4A3B; margin: 2rem 0 1rem; }
.ab-page-content-inner h3 { color: #0D4A3B; margin: 1.5rem 0 0.8rem; }
.ab-page-content-inner p { margin: 0 0 1.2em; }

/* ============================================================
   FINAL CTA
============================================================ */
.ab-cta {
    position: relative;
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
}

.ab-cta-bg { position: absolute; inset: 0; pointer-events: none; }
.ab-cta-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 150, 46, 0.1), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13, 74, 59, 0.08), transparent 50%);
}
.ab-cta-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(13, 74, 59, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
}

.ab-cta .container { position: relative; z-index: 2; }

.ab-cta-card {
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0D4A3B 0%, #1a6b54 100%);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 40px 100px rgba(13, 74, 59, 0.3);
    position: relative;
    overflow: hidden;
}
.ab-cta-card::before {
    content: '';
    position: absolute;
    top: -30%; left: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(245, 216, 110, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ab-cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.2), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ab-cta-card > * { position: relative; z-index: 1; }

.ab-cta-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #C8962E, #F5D86E);
    color: #0D4A3B;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ab-cta-card h2 {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}
.ab-cta-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

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

/* Dark mode tweaks */
body.dark-mode .ab-hero { background: linear-gradient(180deg, #0a1f1a 0%, #0d2922 100%); }
body.dark-mode .ab-hero h1 { color: #fff; }
body.dark-mode .ab-hero h1 em { color: #F5D86E; }
body.dark-mode .ab-hero-lead { color: rgba(255, 255, 255, 0.75); }
body.dark-mode .ab-hero-quote { background: rgba(255, 255, 255, 0.05); }
body.dark-mode .ab-hero-arabic { color: #F5D86E; }
body.dark-mode .ab-hero-arabic-tr { color: rgba(255, 255, 255, 0.6); }
body.dark-mode .ab-founder { background: #0d2922; }
body.dark-mode .ab-founder-quote { color: #fff; }
body.dark-mode .ab-founder-name { color: #F5D86E; }
body.dark-mode .ab-founder-role { color: rgba(255, 255, 255, 0.6); }
body.dark-mode .ab-mv { background: linear-gradient(180deg, #0d2922 0%, #0a1f1a 100%); }
body.dark-mode .ab-values { background: #0a1f1a; }
body.dark-mode .ab-value-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .ab-value-card h3 { color: #fff; }
body.dark-mode .ab-value-card p { color: rgba(255, 255, 255, 0.65); }
body.dark-mode .ab-features { background: #0a1f1a; }
body.dark-mode .ab-feature { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .ab-feature h3 { color: #fff; }
body.dark-mode .ab-feature p { color: rgba(255, 255, 255, 0.65); }
body.dark-mode .ab-timeline { background: #0d2922; }
body.dark-mode .ab-timeline-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .ab-timeline-card h3 { color: #fff; }
body.dark-mode .ab-timeline-card p { color: rgba(255, 255, 255, 0.65); }
body.dark-mode .ab-cta { background: #0d2922; }


/* ============================================================
   v2.3 — TEACHER CARDS (upgraded) + TEACHER PROFILE PAGE
   (Additive only — existing styles untouched)
============================================================ */

/* ---- Upgraded teacher card ---- */
.teacher-card--v2 { display: flex; flex-direction: column; padding-bottom: 0; }
.teacher-card--v2 .teacher-image {
    display: block;
    margin-bottom: 0;
}
.teacher-card--v2 .teacher-image::after {
    background: linear-gradient(180deg, transparent 45%, rgba(13, 74, 59, 0.82) 100%);
}
.teacher-card-rating {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    background: rgba(13, 74, 59, 0.88);
    color: #F5D86E;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.teacher-card-view {
    position: absolute;
    left: 50%; bottom: 18px;
    transform: translate(-50%, 12px);
    z-index: 2;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.35s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.teacher-card--v2:hover .teacher-card-view { opacity: 1; transform: translate(-50%, 0); }
.teacher-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}
.teacher-card-body h3 { margin: 0; }
.teacher-card-body h3 a { color: inherit; }
.teacher-card-body h3 a:hover { color: var(--clr-accent, #C8962E); }
.teacher-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.teacher-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--clr-primary, #0D4A3B);
    background: rgba(13, 74, 59, 0.07);
    border: 1px solid rgba(13, 74, 59, 0.14);
    padding: 5px 11px;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0;
}
.teacher-badge i { color: var(--clr-accent, #C8962E); font-size: 0.72rem; }
.teacher-card-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.teacher-card-chips span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8a6a1f;
    background: rgba(200, 150, 46, 0.12);
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* ---- Profile hero ---- */
.tprofile-hero h1 { margin-bottom: 0.5rem; }
.tprofile-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    font-size: 0.85rem;
    color: rgba(250, 246, 238, 0.75);
}
.tprofile-breadcrumb a { color: rgba(250, 246, 238, 0.75); }
.tprofile-breadcrumb a:hover { color: #F5D86E; }
.tprofile-breadcrumb i { font-size: 0.7rem; color: rgba(250, 246, 238, 0.45); }
.tprofile-breadcrumb span { color: #F5D86E; }
.tprofile-hero-role {
    color: #F5D86E !important;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.88rem !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tprofile-hero-tagline {
    max-width: 640px;
    margin: 0.8rem auto 0 !important;
    color: rgba(250, 246, 238, 0.85) !important;
    font-size: 1.05rem !important;
}

/* ---- Profile layout ---- */
.tprofile-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) { .tprofile-layout { grid-template-columns: 1fr; } }

.tprofile-side { position: sticky; top: 100px; }
@media (max-width: 900px) { .tprofile-side { position: static; max-width: 420px; margin: 0 auto; width: 100%; } }

.tprofile-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(13, 74, 59, 0.25);
    margin-top: -90px;
    position: relative;
    z-index: 3;
}
@media (max-width: 900px) { .tprofile-card { margin-top: -70px; } }
.tprofile-photo {
    aspect-ratio: 1 / 1.05;
    background-size: cover;
    background-position: center top;
    position: relative;
}
.tprofile-rating {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(13, 74, 59, 0.9);
    color: #F5D86E;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 13px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}
.tprofile-card-body { padding: 1.6rem 1.5rem 1.8rem; text-align: center; }
.tprofile-card-body h3 {
    font-size: 1.45rem;
    margin: 0 0 0.2rem;
}
.tprofile-card-role {
    color: var(--clr-accent, #C8962E);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}
.tprofile-facts {
    text-align: left;
    margin: 0 0 1.3rem;
    border-top: 1px solid #efe9da;
}
.tprofile-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.8rem 0;
    border-bottom: 1px solid #efe9da;
    font-size: 0.92rem;
    color: #444;
}
.tprofile-facts li i {
    color: var(--clr-accent, #C8962E);
    margin-top: 3px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.tprofile-facts li strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-primary, #0D4A3B);
    margin-bottom: 2px;
}
.tprofile-socials {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}
.tprofile-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 74, 59, 0.08);
    color: var(--clr-primary, #0D4A3B);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.tprofile-socials a:hover {
    background: var(--clr-primary, #0D4A3B);
    color: #F5D86E;
    transform: translateY(-3px);
}
.tprofile-socials a.is-wa:hover { background: #25D366; color: #fff; }
.tprofile-cta-btn { width: 100%; justify-content: center; }

/* ---- Profile main content ---- */
.tprofile-block { margin-bottom: 2.6rem; }
.tprofile-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--clr-primary, #0D4A3B);
    margin-bottom: 1.1rem;
}
.tprofile-block-title i {
    color: var(--clr-accent, #C8962E);
    font-size: 1.15rem;
}
.tprofile-content {
    font-size: 1.04rem;
    line-height: 1.85;
    color: #3a3a3a;
}
.tprofile-content p { margin-bottom: 1rem; }
.tprofile-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tprofile-chip {
    background: #fff;
    border: 1px solid rgba(200, 150, 46, 0.4);
    color: var(--clr-primary, #0D4A3B);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 12px -6px rgba(13, 74, 59, 0.15);
}
.tprofile-achievements li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.65rem 0;
    font-size: 1rem;
    color: #3a3a3a;
    line-height: 1.6;
}
.tprofile-achievements li i {
    color: var(--clr-accent, #C8962E);
    margin-top: 4px;
    flex-shrink: 0;
}
.tprofile-cta {
    background: linear-gradient(135deg, #0D4A3B 0%, #062E25 100%);
    border-radius: 16px;
    padding: 2.2rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.tprofile-cta h3 { color: #FAF6EE; font-size: 1.35rem; margin: 0 0 0.4rem; }
.tprofile-cta p { color: rgba(250, 246, 238, 0.8); margin: 0; max-width: 480px; font-size: 0.95rem; }
.tprofile-cta .btn { flex-shrink: 0; }
.tprofile-others { margin-top: 4.5rem; }
@media (max-width: 900px) {
    .tprofile-others .teachers-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .tprofile-others .teachers-grid { grid-template-columns: 1fr !important; max-width: 320px; margin-left: auto; margin-right: auto; }
    .tprofile-cta { padding: 1.8rem 1.5rem; }
}

/* ============================================================
   v2.4 — PAYMENT CARD ACCOUNT NUMBER (with copy button)
============================================================ */
.pay-card-account {
    margin: 1rem 0 0.4rem;
    padding: 0.9rem 1rem;
    background: rgba(13, 74, 59, 0.05);
    border: 1px dashed rgba(13, 74, 59, 0.25);
    border-radius: 10px;
    text-align: left;
}
.pay-account-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-primary, #0D4A3B);
    margin-bottom: 6px;
}
.pay-account-label i { color: var(--clr-accent, #C8962E); margin-right: 4px; }
.pay-account-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pay-account-number {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid rgba(13, 74, 59, 0.15);
    border-radius: 6px;
    padding: 7px 10px;
    word-break: break-all;
    line-height: 1.4;
}
.pay-account-copy {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--clr-primary, #0D4A3B);
    color: #F5D86E;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.pay-account-copy:hover { background: var(--clr-accent, #C8962E); color: #fff; transform: translateY(-2px); }
.pay-account-copy.is-copied { background: #22c55e; color: #fff; }
