/* ===================================
   TAJWEED ACADEMY - PREMIUM STYLES
   =================================== */

/* =============================================
   GOLDEN LANTERN CURSOR FOLLOWER
   ============================================= */

/* Hide default cursor on non-touch desktop */
@media (hover: hover) and (pointer: fine) {
    body.cursor-ready {
        cursor: none;
    }

    /* Keep a visible cursor on interactive elements for accessibility */
    body.cursor-ready a,
    body.cursor-ready button,
    body.cursor-ready input,
    body.cursor-ready textarea,
    body.cursor-ready select,
    body.cursor-ready [role="button"] {
        cursor: none;
    }
}

/* The lantern glow element — fixed, pointer-events off */
.lantern-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    /* GPU-composite-only layer */
    transform: translate(-50%, -50%) translate(0px, 0px);
}

/* Outer diffuse aura */
.lantern-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(212, 175, 55, 0.07) 45%,
        transparent 72%
    );
    filter: blur(8px);
    transition: width  0.45s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s ease;
    opacity: 1;
}

/* Inner warm light point */
.lantern-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 240, 180, 0.95) 0%,
        rgba(212, 175, 55, 0.75) 55%,
        transparent 100%
    );
    filter: blur(1.5px);
    transition: width  0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
}

/* ---- Hover state: buttons / CTAs ---- */
.lantern-cursor.is-hovering-cta .lantern-aura {
    width: 130px;
    height: 130px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.26) 0%,
        rgba(212, 175, 55, 0.10) 45%,
        transparent 70%
    );
}

.lantern-cursor.is-hovering-cta .lantern-core {
    width: 10px;
    height: 10px;
    background: radial-gradient(
        circle,
        rgba(255, 248, 210, 1) 0%,
        rgba(212, 175, 55, 0.9) 55%,
        transparent 100%
    );
    filter: blur(1px);
}

/* ---- Hover state: cards ---- */
.lantern-cursor.is-hovering-card .lantern-aura {
    width: 110px;
    height: 110px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.20) 0%,
        rgba(212, 175, 55, 0.07) 50%,
        transparent 72%
    );
}

/* ---- Hover state: nav links ---- */
.lantern-cursor.is-hovering-nav .lantern-aura {
    width: 95px;
    height: 95px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.22) 0%,
        rgba(212, 175, 55, 0.08) 48%,
        transparent 70%
    );
}

/* ---- Hidden state (on leave / inactive) ---- */
.lantern-cursor.is-hidden .lantern-aura,
.lantern-cursor.is-hidden .lantern-core {
    opacity: 0;
}

/* ---- Reduced motion: disable entirely ---- */
@media (prefers-reduced-motion: reduce) {
    .lantern-cursor { display: none !important; }
    body.cursor-ready { cursor: auto !important; }
    body.cursor-ready * { cursor: auto !important; }
}

/* CSS Variables */
:root {
    /* Colors */
    --emerald: #0d9488;
    --emerald-light: #14b8a6;
    --emerald-dark: #0f766e;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --beige: #f5f1ea;
    --beige-dark: #e8e1d3;
    --gold: #d4af37;
    --gold-light: #f0d889;
    --white: #ffffff;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;
    --font-arabic: 'Amiri', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 64px rgba(0,0,0,0.16);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--beige);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
  
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.125rem;
    color: var(--black-light);
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
}

.btn-secondary:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--emerald);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 0.25rem;
}

.logo-arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
}

.navbar.scrolled .logo-text,
.navbar.scrolled .logo-arabic {
    color: var(--black);
}

/* Accent logo (Home & Courses pages) — teal in both states */
.logo-accent .logo-text,
.logo-accent .logo-arabic,
.navbar.scrolled .logo-accent .logo-text,
.navbar.scrolled .logo-accent .logo-arabic {
    color: var(--emerald);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--black);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn-nav {
    padding: 0.75rem 1.5rem;
    background: var(--emerald);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle span {
    background: var(--black);
}

/* Keep hamburger visible when the mobile menu panel (white) is open */
.menu-toggle.active span {
    background: var(--black);
}

/* Hamburger menu active state - transform to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =============================================
   HERO SECTION — PREMIUM LAYERED EXPERIENCE
   ============================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Fallback color while layers paint */
    background-color: #071c1a;
}

/* ------ Layer 1: Deep emerald gradient base ------ */
.hero-bg-base {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%,   #0a3d38 0%, transparent 65%),
        radial-gradient(ellipse 100% 60% at 80% 100%,  #052e2b 0%, transparent 55%),
        linear-gradient(170deg, #061a18 0%, #0a3530 35%, #0d4a42 65%, #082e28 100%);
    z-index: 1;
}

/* ------ Layer 2: Mihrab / Arch silhouette ------ */
.hero-arch-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.hero-arch-svg {
    width: min(680px, 92vw);
    height: auto;
    opacity: 1;
    transform: translateY(12%);
    will-change: transform;
    filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.08));
}

/* Soft shimmer on arch strokes */
.arch-outer,
.arch-inner {
    animation: archShimmer 8s ease-in-out infinite alternate;
}
.arch-inner { animation-delay: 1.5s; }

@keyframes archShimmer {
    0%   { stroke-opacity: 0.12; }
    100% { stroke-opacity: 0.28; }
}

/* ------ Layer 3: Radial golden glow ------ */
.hero-glow-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 50% 55%,
            rgba(212, 175, 55, 0.14) 0%,
            rgba(212, 175, 55, 0.06) 40%,
            transparent 70%);
    z-index: 3;
    animation: glowPulse 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.06); }
}

/* ------ Layer 4: Particles canvas ------ */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* ------ Layer 5: Light rays ------ */
.hero-rays {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.ray {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 1px;
    height: 120%;
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(212, 175, 55, 0.04) 50%,
        transparent 100%);
    transform-origin: top center;
    animation: rayDrift 12s ease-in-out infinite;
}

.ray-1 { transform: rotate(-18deg); animation-duration: 14s; animation-delay: 0s; }
.ray-2 { transform: rotate(-8deg);  animation-duration: 18s; animation-delay: 2s; }
.ray-3 { transform: rotate(0deg);   animation-duration: 16s; animation-delay: 1s; }
.ray-4 { transform: rotate(8deg);   animation-duration: 20s; animation-delay: 3s; }
.ray-5 { transform: rotate(18deg);  animation-duration: 15s; animation-delay: 1.5s; }

@keyframes rayDrift {
    0%   { opacity: 0.4; transform: rotate(var(--r, 0deg)) scaleX(1); }
    50%  { opacity: 0.9; transform: rotate(calc(var(--r, 0deg) + 2deg)) scaleX(1.4); }
    100% { opacity: 0.4; transform: rotate(var(--r, 0deg)) scaleX(1); }
}

/* Store rotation in custom prop per ray for the animation */
.ray-1 { --r: -18deg; }
.ray-2 { --r: -8deg; }
.ray-3 { --r: 0deg; }
.ray-4 { --r: 8deg; }
.ray-5 { --r: 18deg; }

/* ------ Layer 6: Mouse spotlight ------ */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: radial-gradient(
        circle 380px at 50% 45%,
        rgba(212, 175, 55, 0.07) 0%,
        transparent 70%
    );
    transition: background 0.12s linear;
}

/* ------ Content layer ------ */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 860px;
    text-align: center;
    margin: 0 auto;
    padding: 7rem 0 2.5rem;
}

/* Reveal animation base state */
.hero-reveal {
    opacity: 0;
    transform: translateY(28px);
    /* JS will animate these in */
}

/* ------ Arabic heading ------ */
.arabic-heading {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bismillah {
    font-family: var(--font-arabic);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: rgba(255, 255, 255, 0.92);
    display: block;
    letter-spacing: 3px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.bismillah-divider {
    display: block;
    line-height: 1;
}

/* ------ Hero title ------ */
.hero-title {
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.12;
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
}

.title-line,
.title-highlight {
    display: block;
}

.title-line {
    font-weight: 400;
    letter-spacing: -0.01em;
}

.title-highlight {
    font-weight: 600;
    background: linear-gradient(
        110deg,
        var(--gold-light) 0%,
        var(--gold) 40%,
        #c9a227 70%,
        var(--gold-light) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 5s linear infinite;
}

@keyframes goldShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ------ Subtitle ------ */
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    font-weight: 300;
}

/* ------ CTA Buttons ------ */
.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 2.75rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1),
                background 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect shared layer */
.btn-hero-primary::before,
.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.55s ease;
}

.btn-hero-primary:hover::before,
.btn-hero-secondary:hover::before {
    left: 160%;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b8941e 100%);
    color: #0a1f1c;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35),
                0 0 0 0 rgba(212, 175, 55, 0);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(212, 175, 55, 0.5),
                0 0 0 4px rgba(212, 175, 55, 0.12);
}

.btn-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-hero-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.75);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.2);
}

/* ------ Trust Indicators / Stats ------ */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 2.5rem;
    flex: 1;
    min-width: 130px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.4rem;
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* ------ Scroll indicator ------ */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: rgba(212, 175, 55, 0.7);
    border-radius: 2px;
    animation: scrollDrop 2.4s ease-in-out infinite;
}

@keyframes scrollDrop {
    0%   { top: 0;   opacity: 1; }
    80%  { top: 36px; opacity: 0.2; }
    81%  { top: 0;   opacity: 0; }
    100% { top: 0;   opacity: 1; }
}

.scroll-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* ---- Reduced motion overrides ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal             { opacity: 1 !important; transform: none !important; }
    .title-highlight         { animation: none; }
    .hero-glow-layer         { animation: none; }
    .arch-outer, .arch-inner { animation: none; }
    .ray                     { animation: none; }
    .scroll-dot              { animation: none; }
    .hero-spotlight          { display: none; }
    .hero-particles          { display: none; }
}

/* ---- Hero responsive adjustments ---- */
@media (max-width: 992px) {
    .hero-content {
        padding: 7rem 0 4rem;
    }

    .hero-stats {
        gap: 0;
    }

    .stat-item {
        padding: 0 1.5rem;
        min-width: 110px;
    }

    .hero-arch-svg {
        width: min(560px, 95vw);
        opacity: 0.85;
    }

    /* Rays lighter on tablet */
    .ray { opacity: 0.65; }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 6.5rem 0 3.5rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-top: 2rem;
    }

    .stat-divider { display: none; }

    .stat-item {
        padding: 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Simplify effects on mobile */
    .hero-arch-svg {
        width: min(400px, 95vw);
        opacity: 0.7;
    }

    .hero-rays { display: none; }
    .hero-glow-layer { animation: none; opacity: 0.8; }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-arch-svg { opacity: 0.55; }
}

/* Re-use section-padding etc. */

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--black-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Featured Courses */
.featured-courses {
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--beige);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.course-card.featured {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.course-card.featured h3,
.course-card.featured p,
.course-card.featured .course-link {
    color: var(--white);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--emerald);
    box-shadow: var(--shadow-lg);
}

.course-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.course-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--emerald);
    font-size: 2rem;
}

.course-card.featured .course-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.course-card h3 {
    margin-bottom: 1rem;
}

.course-card p {
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.course-features i {
    color: var(--emerald);
    font-size: 0.875rem;
}

.course-card.featured .course-features i {
    color: var(--gold);
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.course-link:hover {
    gap: 1rem;
}

/* Learning Process */
.learning-process {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(13, 148, 136, 0.02) 100%);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 90px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, var(--emerald) 0%, transparent 100%);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald);
    min-width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.step-content p {
    font-size: 1rem;
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--beige);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--black);
}

.testimonial-author h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--emerald);
}

/* Teachers Highlight */
.teachers-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.teacher-image {
    margin-bottom: 1.5rem;
}

.teacher-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.teacher-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
}

.teacher-title {
    color: var(--emerald);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.teacher-exp {
    font-size: 0.9rem;
    color: var(--black-light);
}

/* Blog Preview */
.blog-preview {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, rgba(13, 148, 136, 0.01) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    color: var(--emerald);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 1rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--emerald);
}

.faq-question i {
    transition: var(--transition);
    color: var(--emerald);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255,255,255,.03) 50px, rgba(255,255,255,.03) 100px);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-arabic {
    font-size: 1.75rem;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-desc {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color:white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--emerald);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}


.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--emerald);
    padding-left: 5px;
}
.footer-col p{
    color:white;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-body);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--emerald);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--emerald-light);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--black);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .cta-btn-nav {
        display: none;
    }
    
    .hero-content {
        padding: 6rem 0 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .features-grid,
    .courses-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-step:not(:last-child)::after {
        left: 40px;
        top: 100px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* =============================================
   GLOBAL RESPONSIVE & SPACING CLEANUP LAYER
   (applies site-wide; loaded on every page)
   ============================================= */

/* Never allow horizontal scroll / media overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
}

/* Long words / links shouldn't blow out narrow screens */
p, a, h1, h2, h3, h4, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Tables become horizontally scrollable instead of overflowing */
@media (max-width: 768px) {
    .schedule-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Tablet & below: tame oversized top/bottom paddings for a neater rhythm */
@media (max-width: 768px) {
    .section-padding,
    .contact-section,
    .cta-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .page-header,
    .course-detail-header,
    .blog-header,
    .blog-detail-header {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
}

/* Footer: centered, tidy stacking on phones */
@media (max-width: 768px) {
    .footer-content {
        gap: 2rem;
        text-align: center;
    }

    .footer-logo,
    .social-links {
        align-items: center;
        justify-content: center;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .newsletter-form {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* salah.html uses .footer-grid instead of .footer-content — give it the same layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-grid .footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-grid .footer-col a:hover {
    color: var(--emerald);
}

@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
        gap: 2rem;
    }
}

/* Small phones: tighten container, hero stats and headings */
@media (max-width: 480px) {
    .container {
        padding: 0 1.1rem;
    }

    .hero-stats {
        gap: 1rem 0.5rem;
    }

    .stat-item {
        min-width: 0;
    }

    .hero-cta {
        gap: 0.85rem;
    }

    .btn,
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

