@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;
}
