/* =========================================
   FLUENT — Premium Design System
   ========================================= */

/* ---------- Design Tokens ---------- */
:root {
    --navy-900: #060e1a;
    --navy-800: #0A1628;
    --navy-700: #0F2447;
    --navy-600: #142e56;
    --navy-500: #1a3a6e;
    --navy-400: #1e4d8a;
    --navy-300: #2a6ab5;
    --glass-bg: rgba(15, 36, 71, 0.65);
    --glass-border: rgba(255, 215, 0, 0.12);
    --glass-border-hover: rgba(255, 215, 0, 0.3);
    --gold-primary: #F5A623;
    --gold-light: #FFD700;
    --gold-dark: #D4900A;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #F5A623 50%, #D4900A 100%);
    --gold-glow: 0 0 30px rgba(245, 166, 35, 0.25);
    --text-white: #F0F4FF;
    --text-light: #CCD6F6;
    --text-muted: #8892B0;
    --text-dim: #5a6480;
    --success: #2ed573;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', 'IBM Plex Sans Arabic', sans-serif;
    --container-max: 1280px;
}

/* Light Mode Variables */
[data-theme="light"] {
    --navy-900: #ffffff;
    --navy-800: #f8f9fb;
    --navy-700: #eef1f6;
    --navy-600: #e3e8f0;
    --navy-500: #d1d9e6;
    --navy-400: #b8c5d9;
    --navy-300: #8b9dc3;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(212, 144, 10, 0.2);
    --glass-border-hover: rgba(212, 144, 10, 0.4);
    --gold-primary: #D4900A;
    --gold-light: #F5A623;
    --gold-dark: #B37800;
    --gold-gradient: linear-gradient(135deg, #F5A623 0%, #D4900A 50%, #B37800 100%);
    --gold-glow: 0 0 30px rgba(212, 144, 10, 0.2);
    --text-white: #0f1419;
    --text-light: #1a2332;
    --text-muted: #4a5568;
    --text-dim: #6b7280;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Light mode background adjustments */
[data-theme="light"] body {
    background: linear-gradient(135deg,
            #e8edf5 0%,
            #dfe6f1 25%,
            #d6dfe9 50%,
            #cdd8e4 75%,
            #c4d1df 100%);
}

[data-theme="light"] .bg-gradient {
    background: linear-gradient(180deg,
            rgba(232, 237, 245, 0.95) 0%,
            rgba(223, 230, 241, 0.9) 50%,
            rgba(214, 223, 233, 0.95) 100%);
}

[data-theme="light"] .ambient-orb {
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .stars {
    opacity: 0.15;
}

/* Light mode navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Light mode buttons */
[data-theme="light"] .btn-primary {
    background: var(--gold-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(212, 144, 10, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(212, 144, 10, 0.35);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-outline {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--gold-primary);
    color: #ffffff;
}

[data-theme="light"] .btn-ghost {
    color: var(--text-light);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(212, 144, 10, 0.1);
    color: var(--gold-primary);
}

/* Light mode cards */
[data-theme="light"] .feature-card,
[data-theme="light"] .level-card,
[data-theme="light"] .course-card,
[data-theme="light"] .course-card-home,
[data-theme="light"] .blog-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .level-card:hover,
[data-theme="light"] .course-card:hover,
[data-theme="light"] .course-card-home:hover,
[data-theme="light"] .blog-card:hover {
    border-color: rgba(212, 144, 10, 0.35);
    box-shadow: 0 12px 32px rgba(212, 144, 10, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Light mode gradient text */
[data-theme="light"] .gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode footer */
[data-theme="light"] .footer {
    background: rgba(238, 241, 246, 0.9);
    border-top: 1px solid rgba(212, 144, 10, 0.15);
}

/* Light mode hero badge */
[data-theme="light"] .hero-badge {
    background: rgba(212, 144, 10, 0.1);
    border: 1px solid rgba(212, 144, 10, 0.2);
    color: var(--text-light);
}

/* Light mode language cards */
[data-theme="light"] .language-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .language-card:hover {
    border-color: rgba(212, 144, 10, 0.35);
    box-shadow: 0 12px 32px rgba(212, 144, 10, 0.15);
}

/* Light mode pricing cards */
[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .pricing-card.featured {
    border-color: rgba(212, 144, 10, 0.35);
    box-shadow: 0 16px 40px rgba(212, 144, 10, 0.2);
}

/* Light mode testimonial cards */
[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

/* Light mode instructor cards */
[data-theme="light"] .instructor-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

/* Light mode form inputs */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 144, 10, 0.2);
    color: var(--text-white);
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 144, 10, 0.1);
}

/* Light mode login/signup buttons */
[data-theme="light"] .btn-login {
    color: var(--text-light);
}

[data-theme="light"] .btn-login:hover {
    color: var(--gold-primary);
}

[data-theme="light"] .btn-signup {
    background: var(--gold-gradient);
    color: #ffffff;
}

/* Light mode nav links */
[data-theme="light"] .nav-link {
    color: var(--text-light);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--gold-primary);
}

/* Light mode stats */
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

/* Light mode modals */
[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 144, 10, 0.2);
}

/* Light mode course details page */
[data-theme="light"] .cd-price-card,
[data-theme="light"] .cd-includes-card,
[data-theme="light"] .cd-specs-card,
[data-theme="light"] .cd-instructor-card,
[data-theme="light"] .cd-join-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .cd-tab {
    color: var(--text-muted);
}

[data-theme="light"] .cd-tab.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

[data-theme="light"] .cd-progress-fill {
    background: var(--gold-gradient);
}

/* Light mode blog section improvements */
[data-theme="light"] .blog-date-badge {
    background: rgba(212, 144, 10, 0.9);
    border: 1px solid rgba(212, 144, 10, 0.3);
    color: #ffffff;
    font-weight: 600;
}

[data-theme="light"] .blog-section {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .blog-card .blog-img-wrap {
    background: var(--navy-600);
}

[data-theme="light"] .section-tag {
    background: rgba(212, 144, 10, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 144, 10, 0.2);
}

[data-theme="light"] .section-title {
    color: var(--text-white);
}

[data-theme="light"] .section-desc {
    color: var(--text-muted);
}

/* Light mode hero section */
[data-theme="light"] .hero {
    background: transparent;
}

[data-theme="light"] .hero-title {
    color: var(--text-white);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-light);
}

[data-theme="light"] .hero-desc {
    color: var(--text-muted);
}

/* Light mode stat numbers */
[data-theme="light"] .stat-number {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .stat-label {
    color: var(--text-light);
}

[data-theme="light"] .stat-desc {
    color: var(--text-muted);
}

/* Light mode CTA section */
[data-theme="light"] .cta-section {
    background: transparent;
}

[data-theme="light"] .cta-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 248, 0.9) 100%);
    border: 1px solid rgba(212, 144, 10, 0.2);
    box-shadow: 0 20px 40px rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .cta-content::before {
    background: radial-gradient(circle, rgba(212, 144, 10, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .cta-title {
    color: var(--text-white);
}

[data-theme="light"] .cta-desc {
    color: var(--text-muted);
}


/* Light mode modal improvements */
[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .modal-title {
    color: var(--text-white);
}

[data-theme="light"] .modal-close {
    color: var(--text-muted);
}

[data-theme="light"] .modal-close:hover {
    color: var(--gold-primary);
}

[data-theme="light"] .form-label {
    color: var(--text-light);
}

[data-theme="light"] .form-link {
    color: var(--gold-primary);
}

[data-theme="light"] .form-link:hover {
    color: var(--gold-dark);
}

[data-theme="light"] .divider-text {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .social-login-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 144, 10, 0.2);
    color: var(--text-light);
}

[data-theme="light"] .social-login-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 1);
}

/* Light mode contact section */
[data-theme="light"] .contact-info-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 144, 10, 0.15);
}

[data-theme="light"] .contact-info-card:hover {
    border-color: rgba(212, 144, 10, 0.35);
}

/* Light mode footer links */
[data-theme="light"] .footer-link {
    color: var(--text-muted);
}

[data-theme="light"] .footer-link:hover {
    color: var(--gold-primary);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(212, 144, 10, 0.15);
    color: var(--text-muted);
}

/* Light mode latest courses section */
[data-theme="light"] .latest-courses {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .course-badge-home {
    background: rgba(212, 144, 10, 0.9);
    color: #ffffff;
}

[data-theme="light"] .course-notify-home {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 144, 10, 0.2);
    color: var(--text-muted);
}

[data-theme="light"] .course-notify-home:hover {
    background: rgba(212, 144, 10, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

[data-theme="light"] .instructor-dot-home {
    opacity: 0.8;
}

[data-theme="light"] .course-level-home {
    color: var(--text-white);
}

[data-theme="light"] .course-diploma-home {
    color: var(--text-muted);
}

[data-theme="light"] .meta-item-home {
    color: var(--text-muted);
}

[data-theme="light"] .course-price-home {
    color: var(--gold-primary);
}

/* Light mode feature icons - override SVG backgrounds */
[data-theme="light"] .feature-icon svg rect[fill*="url"] {
    fill: var(--gold-primary) !important;
}

[data-theme="light"] .feature-icon svg rect[fill="#1a3a6e"],
[data-theme="light"] .feature-icon svg rect[fill="#0F2447"],
[data-theme="light"] .feature-icon svg rect[fill="#142e56"] {
    fill: var(--gold-light) !important;
}

/* Alternative: use filter to lighten dark SVG backgrounds */
[data-theme="light"] .feature-icon svg {
    filter: brightness(1.2) saturate(0.9);
}

/* Light mode feature card text */
[data-theme="light"] .feature-title {
    color: var(--text-white);
}

[data-theme="light"] .feature-desc {
    color: var(--text-muted);
}

/* Light mode language cards text */
[data-theme="light"] .language-title {
    color: var(--text-white);
}

[data-theme="light"] .language-desc {
    color: var(--text-muted);
}

/* Light mode pricing card text */
[data-theme="light"] .pricing-title {
    color: var(--text-white);
}

[data-theme="light"] .pricing-price {
    color: var(--gold-primary);
}

[data-theme="light"] .pricing-feature {
    color: var(--text-muted);
}

/* Light mode testimonial text */
[data-theme="light"] .testimonial-text {
    color: var(--text-muted);
}

[data-theme="light"] .testimonial-author {
    color: var(--text-light);
}

[data-theme="light"] .testimonial-role {
    color: var(--text-dim);
}







/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--navy-800);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* =========================================
   BACKGROUND EFFECTS
   ========================================= */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--navy-600) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 77, 138, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 30s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* Stars */
.stars-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
}

.layer-1 {
    box-shadow:
        200px 300px #fff, 500px 100px #fff, 800px 400px #fff,
        100px 700px #fff, 1200px 200px #fff, 1500px 600px #fff,
        400px 900px #fff, 1000px 500px #fff, 1800px 300px #fff,
        300px 1200px #fff, 700px 800px #fff, 1600px 100px #fff;
    animation: twinkle 4s infinite ease-in-out;
}

.layer-2 {
    width: 1px;
    height: 1px;
    box-shadow:
        300px 400px rgba(255, 255, 255, 0.7), 600px 200px rgba(255, 255, 255, 0.7),
        900px 500px rgba(255, 255, 255, 0.7), 200px 800px rgba(255, 255, 255, 0.7),
        1300px 300px rgba(255, 255, 255, 0.7), 1600px 700px rgba(255, 255, 255, 0.7),
        500px 1000px rgba(255, 255, 255, 0.7), 1100px 600px rgba(255, 255, 255, 0.7),
        1900px 400px rgba(255, 255, 255, 0.7), 100px 1100px rgba(255, 255, 255, 0.7);
    animation: twinkle 6s infinite ease-in-out -1s;
}

.layer-3 {
    width: 1px;
    height: 1px;
    box-shadow:
        150px 250px rgba(255, 255, 255, 0.4), 450px 150px rgba(255, 255, 255, 0.4),
        750px 350px rgba(255, 255, 255, 0.4), 50px 650px rgba(255, 255, 255, 0.4),
        1150px 150px rgba(255, 255, 255, 0.4), 1450px 550px rgba(255, 255, 255, 0.4),
        350px 850px rgba(255, 255, 255, 0.4), 950px 450px rgba(255, 255, 255, 0.4);
    animation: twinkle 8s infinite ease-in-out -2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.3));
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-login {
    padding: 0.5rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-login:hover {
    color: var(--gold-light);
}

.btn-signup {
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gold-gradient);
    color: var(--navy-800);
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

.btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: var(--gold-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--navy-800);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--glass-border-hover);
    width: 100%;
    justify-content: center;
}

.btn-outline:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(245, 166, 35, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle-line {
    color: var(--text-light);
    font-weight: 700;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.8rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* =========================================
   PROMO SECTION (Learn English)
   ========================================= */
.promo-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.promo-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.promo-image-container {
    position: relative;
    border-radius: 30px 4px 30px 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.promo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-image-container:hover .promo-img {
    transform: scale(1.03);
}

.promo-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    /* Overlap left */
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: bounceIn 0.8s ease-out 0.5s both;
    max-width: 240px;
}

[dir="rtl"] .promo-badge {
    left: auto;
    right: -20px;
    /* Overlap right in RTL */
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4A90E2 0%, #007AFF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-weight: 700;
    color: var(--navy-900);
    font-size: 0.95rem;
}

.badge-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pattern-dots {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--gold-primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.pattern-circle {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: var(--navy-100);
    border-radius: 50%;
    z-index: 0;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.promo-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.promo-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .promo-image-wrap {
        order: -1;
        /* Image first on mobile */
        max-width: 500px;
        margin: 0 auto;
    }

    .promo-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
        justify-content: center;
    }

    [dir="rtl"] .promo-badge {
        right: 50%;
        transform: translateX(50%);
    }

    .promo-actions {
        justify-content: center;
    }
}

/* Hero Stats Divider */
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* =========================================
   LANGUAGES
   ========================================= */
.languages {
    padding: 6rem 0;
}

.language-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    min-width: 130px;
}

.language-card:hover,
.language-card.active {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.15);
}

.language-card.active {
    box-shadow: 0 0 0 2px var(--gold-primary), 0 8px 30px rgba(245, 166, 35, 0.2);
}

.lang-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.lang-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
}

.lang-courses {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: rgba(15, 36, 71, 0.8);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.3rem;
}

.feature-icon svg {
    width: 56px;
    height: 56px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.7rem;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   COURSE LEVELS
   ========================================= */
.levels {
    padding: 6rem 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.level-card {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.level-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.level-card.featured {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.06);
    box-shadow: 0 0 0 1px var(--gold-primary), var(--shadow-card);
}

.level-popular {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--gold-gradient);
    color: var(--navy-800);
    padding: 0.25rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
}

.level-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(245, 166, 35, 0.12);
    color: var(--gold-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* =========================================
   PROMO ZIGZAG EXTRAS
   ========================================= */
.promo-zigzag {
    padding-bottom: 6rem;
    padding-top: 1rem;
    /* Reduced top padding */
    position: relative;
    overflow: hidden;
}

.promo-zigzag .promo-grid {
    align-items: center;
}

/* Navy Button (Adaptive) */
.btn-navy {
    background: var(--gold-gradient);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .btn-navy {
    background: #0F2447;
    border: 1px solid #0F2447;
}

.btn-navy:hover {
    background: var(--gold-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 36, 71, 0.2);
}

[data-theme="light"] .btn-navy:hover {
    background: #1a3a6e;
    box-shadow: 0 4px 12px rgba(15, 36, 71, 0.2);
}

/* Gold Button (from feedback) */
.btn-gold {
    background: #F5A623;
    /* Bright Gold */
    color: #0F2447;
    /* Navy Text */
    border: 1px solid #F5A623;
    padding: 0.8rem 2rem;
    /* Wider */
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

/* Badge Positioning */
.badge-right {
    left: auto;
    right: -20px;
}

[dir="rtl"] .badge-right {
    right: auto;
    left: -20px;
}

/* Promo Image Radius Update */
.promo-image-container {
    position: relative;
    border-radius: 50px 0 50px 0;
    /* Updated to match screenshot (Leaf/Diagonal) */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Decorative Positioning */
.dots-left {
    left: -30px;
    bottom: -30px;
    right: auto;
}

.dots-right {
    right: -30px;
    bottom: -30px;
    left: auto;
}

.circle-top {
    top: -40px;
    right: -40px;
    /* Default LTR */
}

.circle-bottom {
    bottom: -40px;
    left: -40px;
}

[dir="rtl"] .circle-top {
    right: auto;
    left: -40px;
}

[dir="rtl"] .circle-bottom {
    left: auto;
    right: -40px;
}

/* Globe Icon specific */
.icon-globe {
    background: linear-gradient(135deg, #2ED573 0%, #10B981 100%);
}

.level-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* =========================================
   REWARDS PROMO
   ========================================= */
.rewards-section {
    padding-bottom: 6rem;
}

.rewards-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 4rem 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    overflow: visible;
    /* Allow confetti/badge to float out if needed, but usually hidden for card */
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .rewards-card {
    background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.rewards-content {
    flex: 1;
    z-index: 2;
}

.rewards-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

[data-theme="light"] .rewards-title {
    color: #0F2447;
}

.rewards-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.rewards-image-wrap {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.rewards-img {
    width: 100%;
    height: auto;
    display: block;
    /* transform: scale(1.1); If needed */
}

.rewards-badge {
    position: absolute;
    bottom: 20px;
    right: -30px;
    /* Float on right side */
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: bounceIn 0.8s ease-out 0.5s both;
    min-width: 220px;
}

[dir="rtl"] .rewards-badge {
    right: auto;
    left: -30px;
}

.icon-coin {
    background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .rewards-card {
        flex-direction: column-reverse;
        text-align: center;
        padding: 3rem 2rem;
        gap: 3rem;
    }

    .rewards-image-wrap {
        width: 100%;
        max-width: 350px;
    }

    .rewards-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -15px;
        left: auto;
    }

    [dir="rtl"] .rewards-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .rewards-actions {
        justify-content: center;
    }
}

/* Gold Outline Button */
.btn-gold-outline {
    border: 2px solid #F5A623;
    color: #F5A623;
    background: transparent;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-gold-outline:hover {
    background: #F5A623;
    color: #0F2447;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}



.level-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.7rem;
}

.level-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.level-features {
    text-align: left;
    margin-bottom: 1.2rem;
}

.level-features li {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.2rem;
}

.level-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 0.7rem;
}

.level-duration {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
    padding-top: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    padding: 6rem 0;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-card {
    flex: 1;
    max-width: 320px;
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.7rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card.featured {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.05);
}

.testimonial-stars {
    color: var(--gold-light);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
    padding: 6rem 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-white);
}

.save-badge {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--navy-600);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.toggle-switch:hover {
    border-color: var(--gold-primary);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch.active .toggle-knob {
    left: calc(100% - 22px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.06);
    box-shadow: 0 0 0 1px var(--gold-primary), var(--shadow-card);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gold-gradient);
    color: var(--navy-800);
    text-align: center;
    padding: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.popular .pricing-header {
    margin-top: 1rem;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-amount {
    padding: 1.5rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
}

.period {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.plan-features {
    flex: 1;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-features li.included {
    color: var(--text-light);
}

.plan-features li.excluded {
    color: var(--text-dim);
}

.plan-features li svg {
    flex-shrink: 0;
}

/* =========================================
   INSTRUCTORS
   ========================================= */
.instructors {
    padding: 6rem 0;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instructor-card {
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.instructor-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    border: 2px solid var(--glass-border);
}

.instructor-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.instructor-specialty {
    display: block;
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.instructor-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.instructor-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    padding: 6rem 0;
}

.cta-content {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08) 0%, rgba(15, 36, 71, 0.8) 100%);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   LATEST COURSES SECTION
   ========================================= */
.latest-courses {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.courses-grid-home {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 10px 20px 40px 20px;
    /* Increased bottom padding for shadow and visual space */
    margin: 0 -20px 1.5rem -20px;
    /* Pull out to edges, creating full bleed effect */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    /* For snap alignment */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
    /* Indicate draggable */
    user-select: none;
    /* Prevent text selection while dragging */
}

/* Ensure padding on last item */
.courses-grid-home::after {
    content: '';
    padding-right: 20px;
}

.courses-grid-home.active {
    cursor: grabbing;
    scroll-snap-type: none;
    /* Disable snap while dragging */
    scroll-behavior: auto;
    /* Disable smooth scroll while dragging */
}

/* Hide scrollbar for Chrome/Safari */
.courses-grid-home::-webkit-scrollbar {
    display: none;
}

/* Dots Navigation */
.courses-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: -1rem;
    /* Pull up closer to grid */
    position: relative;
    z-index: 10;
}

.course-dot {
    width: 16px;
    /* Larger dots */
    height: 16px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.course-dot:hover {
    opacity: 1;
    border-color: var(--gold-primary);
    transform: scale(1.1);
}

.course-dot.active {
    background: var(--gold-primary);
    /* Default gold active */
    border-color: var(--gold-primary);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Light Mode Overrides */
[data-theme="light"] .course-dot {
    border-color: #94A3B8;
}

[data-theme="light"] .course-dot.active {
    background: #0F2447;
    /* Solid Navy */
    border-color: #0F2447;
    box-shadow: 0 4px 10px rgba(15, 36, 71, 0.2);
}

.course-card-home {
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
    flex: 0 0 auto;

    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card-home:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 20px 60px rgba(245, 166, 35, 0.15);
}

.course-img-wrap-home {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--navy-700);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img-home {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.course-card-home:hover .course-img-home {
    transform: scale(1.05);
}

.course-badge-home {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="rtl"] .course-badge-home {
    left: auto;
    right: 12px;
}

.badge-completed {
    background: rgba(139, 0, 0, 0.9);
    color: #fff;
}

.course-notify-home {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

[dir="rtl"] .course-notify-home {
    left: auto;
    right: 12px;
}

.course-notify-home:hover {
    background: rgba(245, 166, 35, 0.9);
    transform: scale(1.1);
}

.course-body-home {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-instructor-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.instructor-dot-home {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.course-level-home {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-diploma-home {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-diploma-home strong {
    color: var(--gold-primary);
    font-weight: 600;
}

.course-meta-home {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-item-home {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.meta-item-home svg {
    flex-shrink: 0;
    color: var(--gold-primary);
}

.course-footer-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-price-home {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 20px 60px rgba(245, 166, 35, 0.15);
}

.blog-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy-700);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-date-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    background: rgba(15, 36, 71, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-white);
}

[dir="rtl"] .blog-date-badge {
    right: auto;
    left: 12px;
}

.blog-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-author,
.blog-comments {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.blog-author svg,
.blog-comments svg {
    flex-shrink: 0;
    color: var(--gold-primary);
}

.section-cta {
    text-align: center;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    position: relative;
    z-index: 1;
    padding: 5rem 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(6, 14, 26, 0.5);
    text-align: start;
}



.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(245, 166, 35, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.3rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    /* border-top: 1px solid var(--glass-border); */
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-credits {
    margin-top: 0.4rem;
    color: var(--text-muted);
}

/* =========================================
   MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--navy-700);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: var(--transition);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    height: 48px;
    margin: 0 auto 1rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group input:focus {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.04);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--gold-primary);
}

.forgot-link {
    color: var(--gold-primary);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--gold-light);
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--gold-primary);
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--gold-light);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-card {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(24px);
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 1000;
    }

    .nav-links.active .nav-link {
        font-size: 1.3rem;
        padding: 0.8rem 2rem;
    }

    .nav-actions.active {
        display: flex;
        position: fixed;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .language-grid {
        gap: 0.6rem;
    }

    .language-card {
        min-width: 100px;
        padding: 1rem 1.2rem;
    }

    .lang-flag {
        font-size: 1.8rem;
    }

    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .instructors-grid {
        grid-template-columns: 1fr;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-content {
        padding: 3rem 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 2rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .language-card {
        min-width: 85px;
        padding: 0.8rem;
    }

    .lang-name {
        font-size: 0.8rem;
    }

    .lang-courses {
        display: none;
    }
}

/* =========================================
   LANGUAGE TOGGLE BUTTON
   ========================================= */
/* Theme Toggle Button */
.btn-theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-theme-toggle:hover {
    background: rgba(245, 166, 35, 0.12);
    border-color: var(--gold-primary);
    transform: rotate(20deg);
}

.theme-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
}

.sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .btn-theme-toggle {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-theme-toggle:hover {
    background: rgba(245, 166, 35, 0.15);
}

.btn-lang-toggle {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lang-toggle:hover {
    background: rgba(245, 166, 35, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

/* =========================================
   RTL SUPPORT
   ========================================= */
[dir="rtl"] {
    font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .level-title,
[dir="rtl"] .feature-title,
[dir="rtl"] .step-title,
[dir="rtl"] .plan-name,
[dir="rtl"] .instructor-name,
[dir="rtl"] .cta-title,
[dir="rtl"] .modal-title,
[dir="rtl"] .step-number,
[dir="rtl"] .stat-number,
[dir="rtl"] .stat-suffix,
[dir="rtl"] .price,
[dir="rtl"] .currency {
    font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="rtl"] .level-features li {
    padding-left: 0;
    padding-right: 1.2rem;
}

[dir="rtl"] .level-features li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .level-popular {
    right: auto;
    left: -30px;
    transform: rotate(-45deg);
}

[dir="rtl"] .plan-features li {
    flex-direction: row;
}

[dir="rtl"] .testimonial-text {
    font-style: normal;
}