/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

/* --- VARIABLES --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --primary: #c9a84c;
    --primary-hover: #e8c96d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(201, 168, 76, 0.15);
    --gold-gradient: linear-gradient(135deg, #c9a84c, #f0d87c, #c9a84c);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* --- GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 128px; }
section[id], .contact-section[id] { scroll-margin-top: 128px; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-en);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 40px 40px, 40px 40px, auto;
    background-attachment: fixed;
    transition: all 0.3s ease;
}

/* Arabic Font Support */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .announcement-bar { flex-direction: row-reverse; }
html[dir="rtl"] .modal-box { text-align: right; }
html[dir="rtl"] .close-btn { left: 1.5rem; right: auto; }
html[dir="rtl"] .form-group { text-align: right; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }

h1, h2, h3, h4 { color: var(--text-primary); font-weight: 700; }
a { text-decoration: none; color: inherit; }

/* --- SCROLL PROGRESS --- */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--gold-gradient); width: 0%; z-index: 9999;
    box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

/* --- TYPOGRAPHY & UTILITIES --- */
.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }
.label {
    display: inline-block; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; color: var(--primary);
    font-weight: 600; margin-bottom: 0.5rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block; background: var(--gold-gradient);
    color: #000; font-weight: 700; font-size: 1rem;
    padding: 1rem 2rem; border-radius: 50px;
    transition: all 0.4s var(--ease); border: none; cursor: pointer;
    box-shadow: 0 0 15px rgba(201,168,76,0.2);
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(201,168,76,0.4); color: #000; }
.btn-outline {
    background: var(--bg-color); border: 1px solid var(--primary);
    color: var(--primary); box-shadow: none;
}
.btn-outline:hover { background: rgba(201, 168, 76, 0.1); color: var(--primary); }

/* --- ANIMATIONS --- */
[data-animate] {
    opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="scale-in"] { transform: scale(0.95); }
[data-animate].is-visible { opacity: 1; transform: translate(0) scale(1); }

/* --- 1. ANNOUNCEMENT BAR & LANG SWITCHER --- */
.top-bar-container {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--primary); color: #000; height: 40px;
    position: sticky; top: 0; z-index: 100; font-weight: 600; font-size: 0.9rem;
}
.announcement-bar { flex: 1; overflow: hidden; display: flex; align-items: center; height: 100%; }
.marquee { display: flex; white-space: nowrap; animation: marquee 20s linear infinite; }
.marquee span { padding: 0 2rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- NAVBAR (Updated Smart & Glassmorphism) --- */
.site-navbar {
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
    z-index: 99;
    border-radius: 20px;
    
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(201, 168, 76, 0.05);
    
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, top 0.3s ease;
}

.site-navbar.nav-hidden {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; background: var(--gold-gradient);
    color: #000; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; box-shadow: 0 0 18px rgba(201,168,76,0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--text-secondary); font-size: 0.72rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; }
.nav-links a { position: relative; transition: color 0.25s ease; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px;
    background: var(--primary); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.language-dropdown { position: relative; }
.language-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-width: 108px; padding: 0.72rem 1rem; border-radius: 999px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04); color: var(--text-primary); font-family: inherit;
    font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.25s ease;
}
.language-toggle:hover, .language-dropdown.open .language-toggle {
    border-color: var(--primary); color: var(--primary); background: rgba(201,168,76,0.08);
}
.language-arrow { font-size: 0.75rem; transition: transform 0.25s ease; }
.language-dropdown.open .language-arrow { transform: rotate(180deg); }
.language-menu {
    position: absolute; top: calc(100% + 0.7rem); right: 0; min-width: 150px;
    padding: 0.45rem; border-radius: 14px; border: 1px solid var(--border-color);
    background: rgba(17,17,17,0.98); box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all 0.22s ease;
}
html[dir="rtl"] .language-menu { right: auto; left: 0; }
.language-dropdown.open .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-option {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0.9rem; border: none; border-radius: 10px; background: transparent;
    color: var(--text-secondary); font-family: inherit; font-size: 0.92rem;
    font-weight: 700; cursor: pointer; text-align: left;
}
html[dir="rtl"] .language-option { text-align: right; }
.language-option:hover, .language-option.active { background: rgba(201,168,76,0.1); color: var(--primary); }
.language-option.active::after { content: "✓"; color: var(--primary); font-weight: 900; }
.nav-login { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
.mobile-menu-btn {
    display: none; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--border-color); background: rgba(255,255,255,0.04);
    color: var(--text-primary); font-size: 1.2rem; cursor: pointer; font-family: inherit;
}

/* --- 2. HERO SECTION & INTRO VIDEO (SPLIT LAYOUT) --- */
.hero {
    position: relative; padding: 160px 0 80px; 
    background: radial-gradient(circle at center, rgba(26, 20, 0, 0.9) 0%, transparent 70%);
    overflow: hidden;
}
.particles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.particle {
    position: absolute; background: var(--primary); border-radius: 50%; opacity: 0.2;
    animation: float 15s infinite linear;
}
@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; } 90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text { text-align: left; }
html[dir="rtl"] .hero-text { text-align: right; }

.hero h1 { font-size: 2.1rem; line-height: 1.3; margin-bottom: 1rem; }
.hero p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.social-proof { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin-top: 1.5rem; }
html[dir="rtl"] .social-proof { justify-content: flex-start; }

.avatars { display: flex; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid #000;
    margin-left: -12px; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: bold; color: #000;
}
html[dir="rtl"] .avatar { margin-left: 0; margin-right: -12px; }
html[dir="rtl"] .avatar:first-child { margin-right: 0; }
.avatar:first-child { margin-left: 0; }
.avatar-1 { background: #f6d365; } .avatar-2 { background: #84fab0; }
.avatar-3 { background: #a1c4fd; } .avatar-4 { background: #ffecd2; } .avatar-5 { background: #cfd9df; }
.social-proof-text { text-align: left; font-size: 0.85rem; line-height: 1.4; }
html[dir="rtl"] .social-proof-text { text-align: right; }
.stars { color: var(--primary); font-size: 1rem; }

/* --- VIDEO CONTAINER --- */
.hero-video { width: 100%; }
.protected-video-container {
    position: relative; overflow: hidden; border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.28);
    background: linear-gradient(135deg, rgba(201,168,76,0.16), rgba(255,255,255,0.035)), #111;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35), 0 0 42px rgba(201,168,76,0.08);
}
.protected-video-container::before { content: ""; display: block; aspect-ratio: 16 / 9; }
.protected-video-container video, .intro-video-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.protected-video-container video { object-fit: cover; background: #050505; }

.static-watermark {
    position: absolute;
    top: 90%;
    left: 15px; 
    color: rgba(255, 255, 255, 0.25); 
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none; 
    user-select: none;
    z-index: 10;
}

.intro-video-fallback {
    display: none; align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
    background: radial-gradient(circle at 35% 30%, rgba(201,168,76,0.2), transparent 32%), linear-gradient(135deg, #151515, #070707);
}
.protected-video-container.video-missing .intro-video-fallback { display: flex; }
.protected-video-container.video-missing video { opacity: 0; }
.intro-video-fallback-content { margin: 0 auto; }
.intro-video-play {
    width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; margin-bottom: 1rem; color: #000; background: var(--gold-gradient);
    font-size: 1.5rem; box-shadow: 0 0 32px rgba(201,168,76,0.25);
}
.intro-video-fallback h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.intro-video-fallback p { color: var(--text-secondary); font-size: 0.85rem; }

/* --- 3. WHAT YOU GET (FEATURES) --- */
.features-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 10; }
.features-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }

/* تم تعديل هذا الجزء ليكون دائماً 4 عناصر بجانب بعضها على الشاشات الكبيرة */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; position: relative; z-index: 10;
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 2rem 1.5rem; transition: all 0.3s ease; text-align: center;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.icon-wrapper {
    width: 50px; height: 50px; border-radius: 50%; background: rgba(201, 168, 76, 0.1);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    margin: 0 auto 1rem auto; color: var(--primary);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- 3.5 INSTRUCTOR SECTION --- */
.instructor-grid {
    display: flex; align-items: center; gap: 4rem; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: 16px; padding: 3rem;
    position: relative; z-index: 10;
}
.instructor-image-wrapper {
    flex-shrink: 0; width: 250px; height: 250px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(201,168,76,0.2);
}
.instructor-image { width: 100%; height: 100%; object-fit: cover; }
.instructor-content { flex: 1; }
html[dir="rtl"] .instructor-grid { text-align: right; }

/* --- 4. COURSES & PRICING SECTION --- */
.courses-grid { display: grid; gap: 2rem; margin-top: 2rem; position: relative; z-index: 10; }
.courses-grid.single-course { grid-template-columns: 1fr; max-width: 500px; margin: 2rem auto 0; }
.course-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem 2rem; transition: transform 0.3s ease; position: relative; }
.course-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.course-badge {
    position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(201,168,76,0.1); color: var(--primary);
    padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
}
html[dir="rtl"] .course-badge { right: auto; left: 1.5rem; }
.course-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; padding-right: 60px; }
html[dir="rtl"] .course-card h3 { padding-right: 0; padding-left: 60px; }
.course-price { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin: 1rem 0; font-family: 'Inter', sans-serif;}
.course-price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.course-features { list-style: none; margin: 1.5rem 0 2rem 0; }
.course-features li { margin-bottom: 0.8rem; font-size: 0.95rem; color: #ddd; display: flex; align-items: center; gap: 0.5rem; }
.course-features li::before { content: '✓'; color: var(--primary); font-weight: bold; }

/* --- FINAL CTA SECTION --- */
.final-cta { text-align: center; padding: 80px 0; background: radial-gradient(circle at center, rgba(201,168,76,0.05) 0%, transparent 60%); position: relative; z-index: 10; }

/* --- 5. CHECKOUT MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--card-bg); border: 1px solid var(--primary); border-radius: 16px;
    width: 100%; max-width: 450px; padding: 2.5rem; position: relative;
    transform: translateY(20px); transition: all 0.3s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.close-btn { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.modal-title { font-size: 1.5rem; margin-bottom: 0.5rem; text-align: center; }
.modal-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; color: #ddd; }
.form-control { width: 100%; padding: 0.8rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 8px; color: #fff; font-family: inherit; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; }
.pay-method { text-align: center; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; }
.pay-method.active, .pay-method:hover { border-color: var(--primary); color: var(--primary); background: rgba(201,168,76,0.05); }
.checkout-btn { width: 100%; text-align: center; display: block; margin-top: 1rem; }

/* --- CONTACT SECTION --- */
.contact-section {
    position: relative; z-index: 10; padding: 90px 0;
    background: radial-gradient(circle at 15% 20%, rgba(201,168,76,0.08) 0%, transparent 32%), radial-gradient(circle at 85% 80%, rgba(201,168,76,0.05) 0%, transparent 35%);
    border-top: 1px solid var(--border-color);
}
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: stretch; }
.contact-card, .contact-form-card { background: rgba(17,17,17,0.88); border: 1px solid var(--border-color); border-radius: 18px; padding: 2.2rem; box-shadow: 0 18px 45px rgba(0,0,0,0.2); backdrop-filter: blur(10px); }
.contact-card h2, .contact-form-card h3 { margin-bottom: 0.8rem; }
.contact-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.contact-methods { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-method { display: flex; align-items: center; gap: 0.9rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 14px; background: rgba(255,255,255,0.035); transition: all 0.25s ease; }
.contact-method:hover { transform: translateY(-2px); border-color: var(--primary); background: rgba(201,168,76,0.06); }
html[dir="rtl"] .contact-method { flex-direction: row-reverse; text-align: right; }
.contact-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(201,168,76,0.12); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-method small { display: block; color: var(--text-secondary); font-size: 0.78rem; margin-bottom: 0.15rem; }
.contact-method a { color: var(--text-primary); font-weight: 700; direction: ltr; unicode-bidi: plaintext; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group.full-width { grid-column: 1 / -1; }
textarea.form-control { min-height: 145px; resize: vertical; }
.contact-note { margin-top: 1rem; color: var(--text-secondary); font-size: 0.85rem; text-align: center; }
html[dir="rtl"] .contact-note { text-align: center; }
html[dir="rtl"] .contact-form-subtitle { text-align: right !important; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border-color); padding: 2rem 0; text-align: center; font-size: 0.9rem; position: relative; z-index: 10; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    html { scroll-padding-top: 116px; }
    section[id], .contact-section[id] { scroll-margin-top: 116px; }
    
    /* تم تعديل هذا الجزء ليعرض عنصرين في كل صف (2-2) عند فتح الموقع من الجوال */
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem; 
    }
    
    .courses-grid { grid-template-columns: 1fr; }
    
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-text { text-align: center; }
    html[dir="rtl"] .hero-text { text-align: center; }
    .social-proof { justify-content: center; }
    html[dir="rtl"] .social-proof { justify-content: center; }
    .hero h1 { font-size: 1.8rem; }

    .instructor-grid { flex-direction: column; text-align: center; padding: 2rem; gap: 2rem; }
    html[dir="rtl"] .instructor-grid { text-align: center; }
    .instructor-image-wrapper { width: 180px; height: 180px; }
    .courses-grid.single-course { max-width: 100%; }

    .section-padding { padding: 60px 0; }
    .nav-inner { height: 64px; }
    .brand-text small { display: none; }
    .nav-links {
        position: absolute; top: calc(100% + 15px); left: 0; right: 0; display: flex; flex-direction: column;
        align-items: stretch; gap: 0; padding: 0.75rem; background: rgba(17,17,17,0.96); border: 1px solid var(--border-color);
        border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); opacity: 0; transform: translateY(-10px) scale(0.98);
        pointer-events: none; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
    }
    .nav-links.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible; }
    .nav-links a { padding: 0.9rem 1rem; border-radius: 10px; }
    .nav-links a:hover { background: rgba(201,168,76,0.08); }
    .nav-links a::after { display: none; }
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .language-toggle { min-width: 92px; padding: 0.65rem 0.8rem; }
    .language-menu { right: 0; }
    .nav-login { padding: 0.7rem 1rem; }
    .contact-section { padding: 60px 0; }
    .contact-grid, .contact-form-grid { grid-template-columns: 1fr; }
    .contact-card, .contact-form-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .brand-text { display: none; }
    .nav-actions { gap: 0.45rem; }
    .language-toggle { min-width: 78px; padding: 0.62rem 0.7rem; font-size: 0.82rem; }
    .nav-login { padding: 0.62rem 0.8rem; font-size: 0.82rem; }
}
/* --- MOBILE HERO FIX --- */
@media (max-width: 768px) {
    .hero {
        padding: 135px 0 55px;
    }

    .hero-grid {
        gap: 1.4rem;
    }

    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.35;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 1.4rem;
    }

    .hero-video {
        max-width: 100%;
        margin: 0 auto;
    }

    .protected-video-container {
        border-radius: 10px;
    }

    .protected-video-container video {
        object-fit: contain;
        background: #050505;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 125px 0 45px;
    }

    .hero h1 {
        font-size: 1.38rem;
        line-height: 1.35;
    }

    .hero p {
        font-size: 0.88rem;
    }

    .protected-video-container::before {
        aspect-ratio: 16 / 10;
    }
}
/* --- MOBILE BUTTON SIZE FIX --- */
@media (max-width: 768px) {
    .nav-login {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .hero .btn,
    .btn[href="#pricing"],
    a.btn[href="#courses"],
    a.btn[href="#pricing"] {
        padding: 0.72rem 1.15rem;
        font-size: 0.88rem;
        border-radius: 999px;
    }
}

@media (max-width: 480px) {
    .nav-login {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }

    .hero .btn,
    .btn[href="#pricing"],
    a.btn[href="#courses"],
    a.btn[href="#pricing"] {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }
}