/* VClasses Landing Page - Professional CSS */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --main-color: #FF6600;
    --secondary-color: #E80009;
    /* Derived palette from base colors */
    --main-50: hsl(from var(--main-color) h 100% 97%);
    --main-100: hsl(from var(--main-color) h 95% 92%);
    --main-200: hsl(from var(--main-color) h 90% 85%);
    --main-300: hsl(from var(--main-color) h 85% 75%);
    --main-400: hsl(from var(--main-color) h 80% 65%);
    --main-500: var(--main-color);
    --main-600: hsl(from var(--main-color) h 90% 45%);
    --main-700: hsl(from var(--main-color) h 95% 35%);
    --main-alpha-20: color-mix(in srgb, var(--main-color) 20%, transparent);
    --main-alpha-30: color-mix(in srgb, var(--main-color) 30%, transparent);
    --main-alpha-60: color-mix(in srgb, var(--main-color) 60%, transparent);

    --secondary-50: hsl(from var(--secondary-color) h 100% 97%);
    --secondary-100: hsl(from var(--secondary-color) h 95% 92%);
    --secondary-300: hsl(from var(--secondary-color) h 85% 70%);
    --secondary-500: var(--secondary-color);
    --secondary-700: hsl(from var(--secondary-color) h 90% 40%);
    --secondary-alpha-20: color-mix(in srgb, var(--secondary-color) 20%, transparent);
    --secondary-alpha-35: color-mix(in srgb, var(--secondary-color) 35%, transparent);

    /* Accent derived from main for lighter chips */
    --accent-color: hsl(from var(--main-color) h 85% 62%);
    /* Added accent aliases used by courses section */
    --accent-primary: var(--main-color);
    --accent-secondary: var(--secondary-color);
    /* Light background chip derived from main color */
    --accent-light: color-mix(in srgb, var(--main-color) 12%, #ffffff 88%);

    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Dark Theme Colors */
    --dark-bg-primary: #111111;
    --dark-bg-secondary: #1E293B;
    --dark-bg-tertiary: #334155;
    --dark-text-primary: #F8FAFC;
    --dark-text-secondary: #94A3B8;
    --dark-text-tertiary: #64748B;
    --dark-border-color: #334155;
    --dark-shadow-color: rgba(0, 0, 0, 0.3);

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
    --shadow-2xl: 0 25px 50px -12px var(--shadow-color);
    --glow-primary: 0 0 20px color-mix(in srgb, var(--main-color) 30%, transparent);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* Dark Theme Variables */
.dark-theme {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-tertiary: var(--dark-text-tertiary);
    --border-color: var(--dark-border-color);
    --shadow-color: var(--dark-shadow-color);
    /* Keep the same accent colors in dark */
    --accent-primary: var(--main-color);
    --accent-secondary: var(--secondary-color);
    --accent-light: rgba(255, 107, 53, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-fixed);
    width: 95%;
    max-width: 1200px;
    animation: navbarSlideDown 0.8s ease-out;
    visibility: visible;
    opacity: 1;
}

.navbar-container {
    background: rgb(0 0 0 / 65%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: var(--space-lg);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
    transition: all var(--transition-normal);
}

.navbar-container:hover {
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    width: 100%;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    order: 1;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-logo .theme-toggle {
    margin-left: var(--space-sm);
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    order: 2;
    flex-shrink: 0;
}

/* Navbar icon colors via theme variables */
.navbar-icons .icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Default icon color */
#notificationsBtn svg,
#cartBtn svg,
#language-toggle svg {
    color: var(--main-color);
}

#notificationsBtn,
#cartBtn,
#language-toggle,
#mobileNotificationsBtn,
#mobileCartBtn {
    pointer-events: auto;
    cursor: pointer;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    order: 3;
    flex-shrink: 0;
}

/* ===== LANGUAGE DROPDOWN ===== */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown .language-arrow {
    margin-left: 6px;
    font-size: 12px;
    opacity: .8;
    transition: transform 0.3s ease;
}

.language-dropdown.open .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0;
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    pointer-events: none;
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    pointer-events: auto;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option .flag {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.language-option .lang-text {
    font-weight: 500;
}

.language-option.active {
    background-color: #fef3c7;
    color: var(--main-color);
    font-weight: 500;
}

/* Mobile Language Options */
.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    pointer-events: auto;
}

.mobile-language-option:last-child {
    border-bottom: none;
}

.mobile-language-option:hover {
    background-color: #f9fafb;
}

.mobile-language-option .flag {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mobile-language-option .menu-item-text {
    font-weight: 500;
}

.mobile-language-option.active {
    background-color: #fef3c7;
    color: var(--main-color);
    font-weight: 500;
}

/* Dark Mode Support */
[data-theme="dark"] .language-dropdown-menu {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .language-option {
    color: #d1d5db;
    border-bottom-color: #374151;
}

[data-theme="dark"] .language-option:hover {
    background-color: #374151;
}

[data-theme="dark"] .language-option.active {
    background-color: #451a03;
    color: var(--main-color);
}

[data-theme="dark"] .lang-text {
    color: #d1d5db;
}

[data-theme="dark"] .mobile-language-option {
    color: #d1d5db;
    border-bottom-color: #374151;
}

[data-theme="dark"] .mobile-language-option:hover {
    background-color: #374151;
}

[data-theme="dark"] .mobile-language-option.active {
    background-color: #451a03;
    color: var(--main-color);
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Ensure buttons and icons are visible on desktop */
@media (min-width: 769px) {
    .navbar-buttons {
        display: flex !important;
    }

    .navbar-icons {
        display: flex !important;
    }
}

/* ===== LOGO STYLES ===== */
.logo-fox {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.logo-fox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.logo-fox:hover {
    transform: scale(1.05);
}

.logo-fox:hover img {
    transform: scale(1.1);
}

.logo-book {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 14px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-fox-head {
    width: 28px;
    height: 28px;
    background: var(--main-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.fox-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 6px;
}

.fox-eye-left {
    left: 6px;
}

.fox-eye-right {
    right: 6px;
}

.fox-nose {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.logo-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-left: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.swiper {
    margin-bottom: 15px;
}


.btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* Ensure button icons are visible */
.btn [data-lucide] {
    display: block !important;
    width: 16px;
    height: 16px;
}

/* Navbar button icons */
.navbar-buttons .btn i {
    width: 18px !important;
    height: 18px !important;
    margin-right: var(--space-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-buttons .btn [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    margin-right: var(--space-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Lucide icons specific */
.navbar-buttons .lucide {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback for icons if Lucide doesn't load */
.navbar-buttons .btn i[data-lucide="book-open"]::before {
    content: "📖";
    font-size: 16px;
}

.navbar-buttons .btn i[data-lucide="play"]::before {
    content: "▶";
    font-size: 16px;
}

/* RTL Support for navbar button icons */
[dir="rtl"] .navbar-buttons .btn i {
    margin-right: 0;
    margin-left: var(--space-sm);
}

[dir="rtl"] .navbar-buttons .btn [data-lucide] {
    margin-right: 0;
    margin-left: var(--space-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: color-mix(in srgb, var(--main-color) 10%, transparent);
    color: #ffffff;
    border: 1px solid var(--main-500);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--main-color) 20%, white 10%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--main-alpha-30);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-500);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* ===== ICON BUTTONS ===== */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--main-alpha-20);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.icon-btn:hover::before {
    width: 100%;
    height: 100%;
}

.icon-btn i {
    width: 24px;
    height: 24px;
    z-index: 1;
    position: relative;
    display: block;
}

/* Ensure Lucide icons are visible */
[data-lucide] {
    display: block !important;
    width: 24px;
    height: 24px;
}

/* Badges */
.notification-badge,
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    z-index: 2000;
    pointer-events: none;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    flex-shrink: 0;
}

.theme-switch {
    display: none;
}

.theme-toggle-container {
    cursor: pointer;
    transition: all var(--transition-normal);
    display: block;
    position: relative;
}

.theme-toggle-container:hover {
    transform: scale(1.05);
}

.theme-toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, var(--main-300) 0%, var(--secondary-300) 100%);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.theme-toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-full);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, white 0%, #F8FAFC 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.theme-toggle-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 2;
}

.theme-toggle-icon-sun {
    color: #F59E0B;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon-moon {
    color: #6366F1;
    opacity: 0;
    transform: scale(0.8) rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode styles */
.theme-switch:checked+.theme-toggle-container .theme-toggle-track {
    background: linear-gradient(135deg, var(--secondary-700) 0%, var(--main-700) 100%);
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-track::before {
    opacity: 1;
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-thumb {
    transform: translateX(30px);
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-icon-sun {
    opacity: 0;
    transform: scale(0.8) rotate(-180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:not(:checked)+.theme-toggle-container .theme-toggle-icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:not(:checked)+.theme-toggle-container .theme-toggle-icon-moon {
    opacity: 0;
    transform: scale(0.8) rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE NAVIGATION MENU ===== */
.nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    z-index: var(--z-modal);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    overflow-y: auto;
    pointer-events: none;
}

.nav-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile Menu Content */
.mobile-menu-content {
    width: 100%;
    max-width: 420px;
    padding: 56px var(--space-xl) var(--space-xl) var(--space-xl);
    position: relative;
    background: color-mix(in srgb, white 85%, transparent);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 80px);
    overflow: hidden;
    pointer-events: auto;
}

/* Decorative gradient border glow */
.mobile-menu-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--secondary-color) 70%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.35;
}

/* Mobile Close Button */
.mobile-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.mobile-close-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    color: var(--main-color);
    transform: scale(1.1);
}

.mobile-close-btn i {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Items */
.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    pointer-events: auto;
}

/* Mobile Menu Item */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    text-align: left;
    transform: translateY(6px);
    opacity: 0;
    pointer-events: auto;
}

.nav-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu.active .mobile-menu-item:nth-child(1) {
    transition: 300ms ease 40ms;
}

.nav-menu.active .mobile-menu-item:nth-child(2) {
    transition: 300ms ease 90ms;
}

.nav-menu.active .mobile-menu-item:nth-child(3) {
    transition: 300ms ease 140ms;
}

.nav-menu.active .mobile-menu-item:nth-child(4) {
    transition: 300ms ease 190ms;
}

.nav-menu.active .mobile-menu-item:nth-child(5) {
    transition: 300ms ease 240ms;
}

.nav-menu.active .mobile-menu-item:nth-child(6) {
    transition: 300ms ease 290ms;
}

.nav-menu.active .mobile-menu-item:nth-child(7) {
    transition: 300ms ease 340ms;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: color-mix(in srgb, var(--main-color) 40%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.18);
}

.mobile-menu-item:hover .menu-item-text {
    color: var(--text-primary);
}

.mobile-menu-item.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.mobile-menu-item.primary .menu-item-text {
    color: white;
}

.mobile-menu-item.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* Menu Item Icon */
.menu-item-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.12);
    border-radius: 50%;
    color: var(--main-color);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.15);
}

.mobile-menu-item.primary .menu-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-item-icon i {
    width: 20px;
    height: 20px;
    display: block !important;
}

/* Item Badge */
.item-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Menu Item Text */
.menu-item-text {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    color: black;
    transition: var(--transition);
}

/* Dark theme adjustments for mobile nav */
[data-theme="dark"] .nav-menu {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mobile-menu-content {
    background: rgba(32, 32, 32, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    outline-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mobile-menu-content::after {
    opacity: 0.25;
}

[data-theme="dark"] .mobile-menu-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .mobile-menu-item:hover .menu-item-text {
    color: var(--text-primary);
}

[data-theme="dark"] .menu-item-icon {
    background: rgba(255, 102, 0, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.25);
}

[data-theme="dark"] .mobile-menu-item.primary .menu-item-icon {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .menu-item-text {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu-item.primary .menu-item-text {
    color: white;
}

/* Small screens refinements */
@media (max-width: 768px) {
    .mobile-menu-content {
        max-width: 90vw;
        padding: 56px var(--space-lg) var(--space-lg) var(--space-lg);
        border-radius: 20px;
    }

    .mobile-menu-item {
        padding: var(--space-sm) var(--space-md);
    }

    .menu-item-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: var(--space-md);
    }

    .mobile-menu-content {
        max-width: 100%;
        padding: 56px var(--space-md) var(--space-md) var(--space-md);
        border-radius: 18px;
    }

    .menu-item-text {
        font-size: 0.95rem;
    }
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .mobile-menu-item {
    text-align: right;
}

[dir="rtl"] .menu-item-icon {
    order: 2;
}

[dir="rtl"] .menu-item-text {
    order: 1;
    text-align: right;
}

/* Theme Icons */
.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-icon-moon {
    opacity: 0;
}

.dark-theme .theme-icon-sun {
    opacity: 0;
}

.dark-theme .theme-icon-moon {
    opacity: 1;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
    transform: scale(1.1);
}

.mobile-menu-close i {
    width: 20px;
    height: 20px;
}

/* Mobile Icons Section */
.mobile-icons-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
    max-width: 300px;
}

/* Mobile Buttons Section */
.mobile-buttons-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
    max-width: 300px;
}

/* Mobile Icon Button */
.mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mobile-icon-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.mobile-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Button */
.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 50px;
}

.mobile-btn i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.mobile-btn-outline {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-btn-outline:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--text-primary);
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.mobile-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .mobile-btn {
    text-align: center;
}

[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: var(--space-lg);
}

.nav-menu a {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.nav-menu a i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Ensure mobile menu icons are visible */
.nav-menu a [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--main-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .nav-menu a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PANELS ===== */
.notifications-panel,
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

/* ===== AUTH PAGES (Login / Signup) ===== */
.auth-page {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 520px;
}

.auth-card .modal-header {
    padding: 1.5rem 2rem 1rem;
}

.auth-card .auth-form {
    padding: 1.5rem 2rem;
    display: block;
}

.auth-card .modal-footer {
    padding: 1rem 2rem 2rem;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1.25rem;
    }

    .auth-card {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        border-radius: var(--border-radius);
    }
}

[data-theme="dark"] .auth-card {
    background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Auth form alerts */
.form-alert {
    margin: 0 2rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.form-alert.error {
    display: block;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.form-alert.success {
    display: block;
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

/* ===== Auth controls styling ===== */
.auth-card .modal-title {
    font-weight: 800;
}

.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-card .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-card .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

[dir="rtl"] .auth-card .input-wrapper i {
    left: auto;
    right: 1rem;
}

.auth-card .input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

[dir="rtl"] .auth-card .input-wrapper input {
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.auth-card .input-wrapper input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.auth-card .password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

[dir="rtl"] .auth-card .password-toggle {
    right: auto;
    left: 0.5rem;
}

.auth-card .password-toggle:hover {
    color: var(--main-color);
    background: var(--bg-tertiary);
}

.auth-card .submit-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-card .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.05);
}

.auth-card .modal-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.auth-card .modal-footer .social-btn {
    text-decoration: none;
}

.auth-card [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

/* ===== AUTH MODAL (overlay, container, tabs) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: min(980px, 94%);
    max-width: 980px;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-primary));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    transform: translateY(10px) scale(0.98);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.4rem
}

.modal-close {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition)
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--main-color);
}

.modal-close i {
    width: 18px;
    height: 18px;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.auth-form {
    display: none;
    padding: 1.25rem 1.5rem;
}

.auth-form.active {
    display: block;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-footer p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.modal-footer .social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-btn {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.social-btn i {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .modal-container {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-secondary));
    border-color: rgba(255, 255, 255, 0.08)
}

/* Larger form paddings and grid */
.auth-card .modal-tabs {
    padding: 0 2rem
}

.auth-card .auth-form {
    padding: 1.5rem 2rem
}

.auth-card .form-group {
    margin-bottom: 1.25rem
}

.auth-card .submit-btn {
    height: 52px;
    font-size: 1rem
}

@media (max-width: 768px) {
    .modal-container {
        width: 96%;
        max-width: 96%
    }

    .auth-card .auth-form {
        padding: 1.25rem 1.25rem
    }
}

[data-theme="dark"] .modal-close {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.06);
}

.modal-container [data-lucide] {
    display: block !important;
}

/* ===== Form controls inside modal (shared with auth-card) ===== */
.modal-container .form-group {
    margin-bottom: 1rem;
}

.modal-container .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-container .input-wrapper svg {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

[dir="rtl"] .modal-container .input-wrapper svg {
    left: auto;
    right: 1rem;
}

.modal-container .input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

[dir="rtl"] .modal-container .input-wrapper input {
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.modal-container .input-wrapper input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.modal-container .password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Password toggle icon sizing */
.modal-container .password-toggle svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .modal-container .password-toggle {
    right: auto;
    left: 0.5rem;
}

.modal-container .password-toggle:hover {
    color: var(--main-color);
    background: var(--bg-tertiary);
}

.modal-container .submit-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.05);
}

.demo-login-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.demo-login-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ===== USER DROPDOWN STYLING ===== */
.navbar-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-profile:hover .user-name {
    color: white;
}

.user-profile svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.user-profile:hover svg {
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0;
    overflow: hidden;
    /* Add pseudo-element to bridge the gap */
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* open state (Bootstrap-like) */
.navbar-user.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar-user:hover .user-dropdown,
.navbar-user:focus-within .user-dropdown,
.navbar-user .user-dropdown:hover,
.navbar-user .user-dropdown:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--main-color);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-item span {
    flex: 1;
}

/* ===== Navbar-specific dropdown look (glass, dark) ===== */
.navbar .user-profile {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    height: 40px;
}

.navbar .user-profile:hover,
.navbar-user.open .user-profile {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar .user-name,
.navbar .user-profile svg {
    color: #ffffff;
}

.navbar .user-dropdown {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd54f;
}

.navbar .dropdown-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
}

/* ===== Mobile user dropdown inside nav-menu ===== */
.mobile-user {
    width: 100%;
}

.mobile-user-toggle {
    width: 100%;
    justify-content: space-between;
}

.mobile-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-user-menu {
    display: none;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 50vh;
    overflow-y: auto;
    /* Add pseudo-element to bridge the gap */
}

.mobile-user-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.mobile-user.open #mobileUserMenu,
.mobile-user.open .mobile-user-menu {
    display: block;
}

/* Add hover states for mobile user dropdown */
.mobile-user:hover .mobile-user-menu,
.mobile-user:focus-within .mobile-user-menu,
.mobile-user .mobile-user-menu:hover,
.mobile-user .mobile-user-menu:focus-within {
    display: block;
}

.mobile-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: 0;
    color: var(--text-primary);
    border-radius: 10px;
}

.mobile-subitem:hover {
    background: var(--bg-secondary);
}

.mobile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

[data-theme="dark"] .mobile-user-menu {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.logout-btn {
    color: var(--secondary-color) !important;
}

.logout-btn:hover {
    background: var(--secondary-color) !important;
    color: white !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .user-profile {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .user-dropdown {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notifications-panel.active,
.cart-panel.active {
    right: 0;
    pointer-events: auto;
}

.notifications-header,
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.notifications-header h3,
.cart-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-panel {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.close-panel:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
}

.close-panel i {
    width: 16px;
    height: 16px;
}

.notifications-list,
.cart-items {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
}

.notification-item,
.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: color-mix(in srgb, var(--main-color) 4%, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.notification-item:hover,
.cart-item:hover {
    background: color-mix(in srgb, var(--main-color) 8%, rgba(255, 255, 255, 0.1));
    border-color: var(--main-alpha-30);
}

.notification-item.unread {
    border-left: 3px solid var(--main-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 102, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    flex-shrink: 0;
}

.notification-icon i {
    width: 20px;
    height: 20px;
    display: block;
}

/* Ensure panel icons are visible */
.notification-icon [data-lucide],
.cart-item-image [data-lucide],
.mark-all-read [data-lucide],
.checkout-btn [data-lucide],
.close-panel [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.notification-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.cart-item-image i {
    width: 24px;
    height: 24px;
}

.cart-item-image.js-course {
    background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
    color: #000;
}

.cart-item-image.react-course {
    background: linear-gradient(135deg, #61dafb 0%, #21d4fd 100%);
    color: #000;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cart-item-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

.cart-item-price {
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto;
}

.remove-item:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.remove-item i {
    width: 16px;
    height: 16px;
}

.notifications-footer,
.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mark-all-read {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    pointer-events: auto;
}

.mark-all-read i {
    width: 16px;
    height: 16px;
}

.mark-all-read:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.cart-total span:first-child {
    color: white;
    font-weight: 500;
}

.total-price {
    color: var(--main-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    pointer-events: auto;
}

.checkout-btn i {
    width: 16px;
    height: 16px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.background-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.background-container img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    filter: blur(2px) brightness(0.4);
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

/* removed .hero-overlay element in markup; overlay handled via ::after */

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/builder/templates/home_10/assets/images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.1);
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    animation: heroContentFadeIn 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xl);
    line-height: 1.2;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    font-weight: 800 !important;
    display: inline !important;
    position: relative;
    /* solid fallback */
    color: #ff6a00;
    /* gradient text override */
    background: linear-gradient(90deg, #ff6a00, #ff2d55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6600, #E80009);
    border-radius: 2px;
    opacity: 0.8;
}

/* Dark theme hero highlight */
[data-theme="dark"] .hero-highlight {
    background: linear-gradient(90deg, #ff8a3d, #ff4d6d);
}

[data-theme="dark"] .hero-highlight::after {
    background: linear-gradient(90deg, #FF6600, #E80009);
    opacity: 1;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   Top Courses Section
   ===================== */
.courses-section {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

/* Decorative background for Top Courses */
.courses-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 1) 100%),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    transform: scale(1.02);
}

[data-theme="dark"] .courses-section::before {
    background-image:
        linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.7) 60%, rgba(15, 15, 15, 1) 100%),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1920&auto=format&fit=crop');
    opacity: 0.25;
}

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

.courses-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Header */
.courses-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 20px);
}

.courses-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

/* Brush Animation for Courses Title */
/* Unified brush title styles for all sections */
.brush-wrap {
    position: relative;
    display: inline-block;
    padding: 0.75rem 1rem;
}

.brush-wrap:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    clip-path: url(#with-us-clip);
    filter: drop-shadow(0 8px 18px rgba(234, 6, 9, 0.35));
    border-radius: 6px;
}

.brush-wrap.brush-wrap--indefinite:before {
    clip-path: url(#with-us-clip-indefinite);
}

.brush-label {
    display: inline-block;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    padding: 10px 18px;
    position: relative;
    z-index: 1;
}

.courses-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Swiper Container */
.courses-swiper-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    /* More space for navigation buttons */
}

.courses-swiper {
    width: 100%;
    overflow: hidden;
    /* prevent horizontal page scroll */
    position: relative;
    padding: 40px 0;
}

.courses-wrapper,
.courses-swiper .swiper-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 0;
    align-items: stretch;
}

/* Course Cards */
.course-card,
.courses-swiper .swiper-slide {
    flex: 0 0 auto;
    padding: 0 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.course-card-inner {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    height: auto;
    /* avoid stretching beyond content */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 500px;
}

.course-card:hover .course-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: clamp(200px, 50vw, 360px);
    overflow: hidden;
    border-radius: 20px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

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

.course-content {
    padding: var(--space-lg);
    flex: 1 1 auto;
}

.course-content .course-title-link {
    text-decoration: none !important;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

[dir="rtl"] .course-title {
    text-align: end;
}

.course-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.course-tag:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.course-tag svg {
    width: 14px;
    height: 14px;
    display: block !important;
}

/* Course Info */
.course-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-info-item svg {
    width: 16px;
    height: 16px;
    display: block !important;
    color: var(--accent-primary);
}

/* Course Button */
.course-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    margin-top: auto;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.course-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-2px);
}

/* Navigation Buttons */
.courses-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    left: 0;
    right: 0;
}

.courses-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.courses-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), #ff6b35);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.courses-nav-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.courses-nav-btn:hover::before {
    opacity: 1;
}

.courses-nav-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.courses-nav-btn:hover svg {
    color: white;
}

.courses-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.courses-nav-btn.is-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.courses-nav-btn svg {
    width: 20px;
    height: 20px;
    display: block !important;
}

/* Pagination */
.courses-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.courses-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d5db;
    opacity: 1;
    transition: width .25s ease, background .25s ease, transform .25s ease;
}

.courses-bullet.active {
    width: 44px;
    background: var(--accent-primary);
}

[data-theme="dark"] .courses-bullet {
    background: #374151;
}

[data-theme="dark"] .courses-bullet.active {
    background: #ff6b35;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .courses-swiper-container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .courses-swiper-container {
        padding: 0 40px;
    }

    .course-card {
        flex: 0 0 50%;
        padding: 0 12px;
    }

    .courses-navigation {
        display: flex;
    }
}

@media (max-width: 768px) {
    .courses-swiper-container {
        padding: 0 var(--space-md);
    }

    .course-card,
    .courses-swiper .swiper-slide {
        flex: 0 0 100%;
        padding: 0 8px;
        width: 100%;
    }

    /* Ensure centered slides work properly on mobile */
    .courses-swiper .swiper-wrapper {
        align-items: center;
    }

    .course-content {
        padding: var(--space-md);
    }

    .course-content .course-title-link {
        text-decoration: none !important;
    }

    .course-title {
        font-size: 1.2rem;
    }

    .course-description {
        font-size: 0.9rem;
    }

    .courses-swiper {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .courses-section {
        padding: clamp(40px, 6vw, 80px) 0;
    }

    .courses-header {
        margin-bottom: var(--space-xl);
    }

    .course-content {
        padding: var(--space-sm);
    }

    .course-tags {
        gap: 4px;
    }

    .course-tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .course-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .courses-wrapper {
    direction: rtl;
}

[dir="rtl"] .course-tags {
    flex-direction: row-reverse;
}

[dir="rtl"] .course-info-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .courses-navigation {
    flex-direction: row-reverse;
}

/* Light Theme */
[data-theme="light"] .courses-section {
    background: #ffffff;
}

[data-theme="light"] .course-card-inner {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .course-card:hover .course-card-inner {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .course-title {
    color: #1f2937;
}

[data-theme="light"] .course-description {
    color: #6b7280;
}

[data-theme="light"] .course-tag {
    background: #fef3f2;
    color: var(--accent-primary);
    border: 1px solid #fed7d3;
}

[data-theme="light"] .course-info-item {
    color: #6b7280;
}

[data-theme="light"] .course-info-item svg {
    color: var(--accent-primary);
}

[data-theme="light"] .courses-nav-btn {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .courses-bullet {
    background: #d1d5db;
}

[data-theme="light"] .courses-bullet.active {
    background: var(--accent-primary);
}

/* Dark Theme */
[data-theme="dark"] .courses-section {
    background: #0f0f0f;
}

[data-theme="dark"] .course-card-inner {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .course-card:hover .course-card-inner {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .course-title {
    color: #ffffff;
}

[data-theme="dark"] .course-description {
    color: #d1d5db;
}

[data-theme="dark"] .course-tag {
    background: var(--secondary-color);
    color: #ffffff;
    border: 1px solid var(--main-color);
}

[data-theme="dark"] .course-info-item {
    color: #d1d5db;
}

[data-theme="dark"] .course-info-item svg {
    color: var(--secondary-color);
}

[data-theme="dark"] .courses-nav-btn {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .courses-bullet {
    background: #374151;
}

[data-theme="dark"] .courses-bullet.active {
    background: var(--main-color);
}

/* =====================
   Benefits Section
   ===================== */
.benefits-section {
    position: relative;
    padding: clamp(48px, 7vw, 96px) 0;
    overflow: hidden;
}

.benefits-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.benefits-heading {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

/* benefits header uses the unified brush styles above */

.benefits-subtitle {
    margin: 18px auto 0;
    max-width: 980px;
    color: var(--muted-foreground, rgba(88, 87, 87, 0.85));
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.6;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.2vw, 24px);
    margin-top: clamp(24px, 4vw, 40px);
}

.benefit-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(22px, 2.2vw, 28px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.benefit-card .benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .benefit-card .benefit-icon img {
    width: 48px;
    height: 48px;
} */

.benefit-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #fff;
    margin: 8px 0 10px;
}

.benefit-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
}

.benefit-card-shape {
    position: absolute;
    top: -20px;
    inset-inline-end: -15px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

/* Color themes per card */
.card-purple {
    background: linear-gradient(135deg, #7B2FFF 0%, #5C27E6 50%, #3C1DBA 100%);
}

.card-purple .benefit-icon {
    background: linear-gradient(135deg, #E44BD2, #7B2FFF);
}

.card-green {
    background: linear-gradient(135deg, #00C6A2 0%, #00A77E 50%, #008B66 100%);
}

.card-green .benefit-icon {
    background: linear-gradient(135deg, #35E3C2, #00C6A2);
}

.card-orange {
    background: linear-gradient(135deg, #FF6A2A 0%, #FF4B1F 50%, #E63900 100%);
}

.card-orange .benefit-icon {
    background: linear-gradient(135deg, #FF8B4A, #FF4B1F);
}

/* Decorative shapes */
.benefits-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 22px;
    filter: blur(0.2px);
}

.benefits-shape-1 {
    width: 110px;
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.18), rgba(255, 128, 0, 0.10));
    bottom: 32px;
    inset-inline-start: 22px;
    transform-origin: 50% 50%;
    animation: benefits-spin-a 22s linear infinite;
}

.benefits-shape-2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 104, 0, 0.28), rgba(110, 52, 0, 0.10));
    top: 18px;
    inset-inline-end: 24px;
    border-radius: 50%;
    transform-origin: 50% 50%;
    animation: benefits-spin-b 28s linear infinite;
}

.benefits-shape-3 {
    width: 92px;
    height: 92px;
    background: rgba(255, 255, 255, 0.08);
    top: 36%;
    inset-inline-start: 6%;
    border-radius: 18px;
}

/* Light theme adjustments */
[data-theme="light"] .benefits-section {
    background: #ffffff;
}

[data-theme="light"] .benefit-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .benefit-title {
    color: #1a1a1a;
}

[data-theme="light"] .benefit-text {
    color: #444;
}

[data-theme="light"] .benefits-subtitle {
    color: #404040;
}

/* Dark theme */
[data-theme="dark"] .benefits-section {
    background: #111111;
}

[data-theme="dark"] .benefits-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL support */
[dir="rtl"] .benefits-subtitle {
    text-align: center;
}

[dir="rtl"] .benefit-card-shape {
    inset-inline-start: 18px;
    inset-inline-end: auto;
}

/* Shapes animations */
@keyframes benefits-spin-a {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes benefits-spin-b {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}


/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform-origin: left;
    transform: scaleX(0);
    z-index: var(--z-fixed);
    transition: transform var(--transition-fast);
}

/* ===== ANIMATIONS ===== */
@keyframes navbarSlideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBackgroundMove {

    0%,
    100% {
        transform: scale(1.1) translateX(0);
    }

    50% {
        transform: scale(1.15) translateX(-10px);
    }
}

/* ===== RTL/LTR SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* RTL Navbar Layout */
[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-logo {
    order: 3;
}

[dir="rtl"] .logo-fox {
    margin-left: var(--space-sm);
    margin-right: 0;
}

/* Desktop Logo RTL/LTR */
@media (min-width: 1201px) {
    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

[dir="rtl"] .navbar-icons {
    order: 2;
}

[dir="rtl"] .navbar-controls {
    order: 1;
}

/* LTR Navbar Layout */
[dir="ltr"] .navbar-logo {
    order: 1;
    flex-direction: row;
}

[dir="ltr"] .logo-fox {
    margin-right: var(--space-sm);
    margin-left: 0;
}

/* Desktop Logo RTL/LTR */
@media (min-width: 1201px) {
    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

[dir="ltr"] .navbar-icons {
    order: 2;
}

[dir="ltr"] .navbar-controls {
    order: 3;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Desktop */
@media (min-width: 1201px) {
    .logo-fox {
        width: 40px;
        height: 40px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

/* Large Desktop */
@media (max-width: 1200px) {
    .navbar {
        width: 98%;
    }

    .logo-fox {
        width: 38px;
        height: 38px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .navbar-container {
        padding: var(--space-sm) var(--space-lg);
    }

    .navbar-content {
        gap: var(--space-md);
    }

    .hero-content {
        padding: 0 var(--space-lg);
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }

    .hero-description {
        font-size: clamp(1rem, 2vw, 1.15rem);
    }

    .hero-buttons {
        gap: var(--space-md);
    }

    .btn-large {
        max-width: 300px;
    }

    .logo-fox {
        width: 36px;
        height: 36px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .navbar-buttons {
        gap: var(--space-sm);
    }

    .btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        order: 1;
        width: 24px;
        height: 24px;
    }

    /* Hide desktop icons */
    .navbar-icons {
        display: none !important;
    }

    /* Hide desktop buttons on mobile only */
    .navbar-buttons {
        display: none !important;
    }

    /* Hide user dropdown on mobile */
    .navbar-user {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        top: var(--space-sm);
        width: 95%;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-container {
        padding: var(--space-sm) var(--space-md);
        border-radius: 50px;
        margin-top: 20px;
    }

    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-sm);
        min-height: 50px;
    }

    /* Mobile Menu Toggle - Left */


    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    /* Logo - Center */
    .navbar-logo {
        order: 2;
        flex: 1;
        justify-content: start;
        gap: var(--space-sm);
    }

    .logo-fox {
        width: 32px;
        height: 32px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-xs);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-xs);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    /* Mobile Right Section */
    .navbar-controls {
        order: 3;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-content {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: var(--space-lg);
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: var(--space-xl);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }

    /* Mobile Menu Responsive */
    .mobile-menu-content {
        max-width: 320px;
        padding: 50px var(--space-lg) var(--space-lg) var(--space-lg);
    }

    .mobile-menu-item {
        padding: var(--space-sm);
    }

    .menu-item-icon {
        width: 35px;
        height: 35px;
    }

    .menu-item-icon i {
        width: 18px;
        height: 18px;
    }

    .menu-item-text {
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar {
        width: 98%;
    }

    .navbar-container {
        padding: var(--space-xs) var(--space-sm);
        border-radius: 40px;
    }

    .navbar-content {
        gap: var(--space-xs);
        min-height: 45px;
    }

    .logo-fox {
        width: 28px;
        height: 28px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-xs);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-xs);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .navbar-controls::before {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
    }

    .theme-toggle-container {
        width: 35px;
    }

    .theme-toggle-thumb {
        width: 14px;
        height: 14px;
        top: 8px;
        left: 8px;
    }

    .mobile-menu-toggle {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle span {
        width: 16px;
        height: 1.5px;
    }

    /* Mobile Menu Extra Small */
    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: var(--space-md);
        line-height: 1.3;
    }

    .hero-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        margin-bottom: var(--space-lg);
        line-height: 1.5;
    }

    .hero-buttons {
        gap: var(--space-sm);
    }

    .btn-large {
        max-width: 260px;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }

    .mobile-menu-content {
        max-width: 300px;
        padding: 50px var(--space-md) var(--space-md) var(--space-md);
    }

    .mobile-menu-item {
        padding: var(--space-xs);
    }

    .menu-item-icon {
        width: 32px;
        height: 32px;
    }

    .menu-item-icon i {
        width: 16px;
        height: 16px;
    }

    .menu-item-text {
        font-size: 0.85rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RTL PANELS SUPPORT ===== */
[dir="rtl"] .notifications-panel,
[dir="rtl"] .cart-panel {
    right: auto;
    left: -400px;
}

[dir="rtl"] .notifications-panel.active,
[dir="rtl"] .cart-panel.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .notification-item.unread {
    border-left: none;
    border-right: 3px solid var(--main-color);
}

/* =====================
   Teachers Section
   ===================== */
.teachers-section {
    position: relative;
    padding: clamp(64px, 8vw, 120px) 0;
    /* Dark teal background with subtle warm glow */
    background:
        radial-gradient(600px 300px at 85% 110%, rgba(255, 0, 90, 0.18) 0%, rgba(255, 0, 90, 0) 70%),
        radial-gradient(500px 260px at 15% 110%, rgba(255, 81, 0, 0.22) 0%, rgba(255, 81, 0, 0) 70%),
        linear-gradient(180deg, #0e2b36 0%, #0a1f29 100%);
}

/* Particles background layer */
.teachers-section .particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.particles-count {
    position: absolute;
    top: 48px;
    left: 8px;
    z-index: 2;
    background: rgba(0, 0, 34, .6);
    color: #13E8E9;
    font-size: .8em;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 700
}

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

/* Decorative shapes behind teachers cards */
.teachers-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-square-top-right {
    width: 88px;
    height: 88px;
    right: clamp(40px, 8vw, 120px);
    top: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff6a00 0%, #ea0609 100%);
    box-shadow: 0 18px 48px rgba(234, 6, 9, 0.28);
}

.shape-circle-bottom-left {
    width: 90px;
    height: 90px;
    left: clamp(20px, 6vw, 80px);
    bottom: 90px;
    border-radius: 999px;
    background: radial-gradient(closest-side, #ff2361 0%, #ff236100 70%);
    /* box-shadow: 0 18px 48px rgba(255, 35, 97, 0.35); */
}

.shape-square-outline-bottom-right {
    width: 86px;
    height: 86px;
    right: clamp(30px, 6vw, 100px);
    bottom: 80px;
    border-radius: 12px;
    border: 4px solid rgba(255, 35, 97, 0.6);
    box-shadow: 0 10px 30px rgba(255, 35, 97, 0.25);
}

.teachers-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.teachers-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 52px);
}

/* teachers header inherits .brush-wrap/.brush-label */

.teachers-subtitle {
    margin: 12px auto 0;
    max-width: 980px;
    color: rgba(255, 255, 255, .85);
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
}

.teachers-swiper-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 18px;
    padding: 0 80px;
}

.teachers-swiper {
    width: 100%;
    overflow: hidden;
    /* prevent horizontal page scroll */
    position: relative;
    padding: 40px 0;
}

.teachers-wrapper,
.teachers-swiper .swiper-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 0;
    align-items: stretch;
}

.teacher-card,
.teachers-swiper .swiper-slide {
    flex: 0 0 auto;
    padding: 0 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.teacher-card-inner {
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 60%, var(--secondary-color) 100%);
    border-radius: 32px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 500px;
}

.teacher-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.teacher-media img {
    width: 100%;
    height: clamp(240px, 28vw, 320px);
    object-fit: cover;
    display: block;
}

.teacher-media .media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 24, 0) 0%, rgba(10, 20, 24, .45) 55%, rgba(10, 20, 24, .85) 100%);
}

.teacher-body {
    padding: 18px 6px 4px;
}

.teacher-body a,
.teacher-meta a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    color: #fff;
}

.teacher-name {
    transition: all 0.3s ease;
}

.teacher-name:hover,
.teacher-meta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: #eeeeee;
}



.teacher-name {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.teacher-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    opacity: .95;
}

.teacher-lang {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
}

.teacher-lang svg {
    color: #fff;
}

/* Pagination */
.teachers-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 32px;
}

.teachers-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .25s ease, background .25s ease;
}

.teachers-bullet.active {
    width: 48px;
    background: var(--main-color);
}

/* CTA */
.teachers-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Dark mode adjustments */
[data-theme="dark"] .teachers-subtitle {
    color: rgba(255, 255, 255, .85);
}

/* RTL fixes */
[dir="rtl"] .teachers-wrapper {
    direction: rtl;
}

/* Responsive */
@media (max-width: 1200px) {
    .teachers-swiper-container {
        padding: 0 48px;
    }
}

@media (max-width: 1024px) {
    .teacher-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {

    .teacher-card,
    .teachers-swiper .swiper-slide {
        max-width: 300px;
        padding: 0 12px;
        width: 100%;
    }

    .teachers-swiper-container {
        padding: 0 24px;
    }

    /* Ensure centered slides work properly on mobile */
    .teachers-swiper .swiper-wrapper {
        align-items: center;
    }

    .teacher-card-inner {
        padding: 16px;
        border-radius: 24px;
    }

    .teacher-media {
        height: 140px;
        border-radius: 18px;
    }

    .teacher-name {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .teacher-lang {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .teacher-card {
        max-width: 260px;
        padding: 0 6px;
    }

    .teachers-swiper-container {
        padding: 0 16px;
    }

    .teacher-card-inner {
        padding: 12px;
        border-radius: 20px;
    }

    .teacher-media {
        height: 120px;
        border-radius: 16px;
    }

    .teacher-name {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .teacher-lang {
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .teacher-card {
        max-width: 240px;
        padding: 0 4px;
    }

    .teachers-swiper-container {
        padding: 0 12px;
    }

    .teacher-card-inner {
        padding: 10px;
        border-radius: 16px;
    }

    .teacher-media {
        height: 100px;
        border-radius: 12px;
    }

    .teacher-name {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .teacher-lang {
        font-size: 11px !important;
    }
}

/* Teachers bullets indicator */
.teachers-pagination {
    position: relative;
}

.teachers-indicator {
    position: absolute;
    height: 8px;
    background: var(--main-color);
    border-radius: 999px;
    top: 50%;
    transform: translateX(0) translateY(-50%);
    transition: transform .35s cubic-bezier(.25, .46, .45, .94), width .35s cubic-bezier(.25, .46, .45, .94);
    pointer-events: none;
}

/* Ensure swiper wrappers layout consistently across LTR/RTL */
.courses-wrapper,
.teachers-wrapper {
    direction: ltr;
}

[dir="rtl"] .courses-wrapper,
[dir="rtl"] .teachers-wrapper {
    direction: rtl;
}

/* Hero highlight fix */
.hero-title .hero-highlight {
    position: relative;
    font-weight: 800;
    z-index: 1;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.hero-title .hero-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    bottom: -6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    filter: drop-shadow(0 2px 6px rgba(234, 6, 9, 0.25));
    z-index: -1;
}

/* =====================
   Subjects Section
   ===================== */
.subjects-section {
    position: relative;
    padding: clamp(56px, 8vw, 110px) 0;
    background: transparent;
}

/* Decorative SVGs for Subjects Section */
.subjects-deco {
    position: absolute;
    z-index: 0;
    opacity: .12
}

.subjects-deco.deco-atom {
    top: 10%;
    left: 3%;
    width: 120px;
    height: 120px;
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 2
}

.subjects-deco.deco-flask {
    bottom: 12%;
    right: 5%;
    width: 140px;
    height: 140px;
    fill: none;
    stroke: var(--main-color);
    stroke-width: 2
}

.subjects-deco.deco-math {
    top: 30%;
    right: 15%;
    width: 110px;
    height: 110px;
    fill: none;
    stroke: #00c6a2;
    stroke-width: 2
}

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

/* =====================
   Promo Orange Section
   ===================== */
.promo-orange {
    background: var(--main-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.promo-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(60px, 8vw, 120px) var(--space-xl);
    position: relative;
}

.promo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 500px;
    flex-direction: row;
}



.promo-frame {
    margin: 0;
    transform: rotate(-3deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .15));
    position: relative;
    transform: rotate(-3deg) !important;
    transition: all 0.3s ease;
}

.promo-frame:hover {
    transform: rotate(0deg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.promo-frame-inner {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    border: 3px dashed #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.promo-frame-inner:hover {
    border: 3px solid #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.promo-frame-cutout {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ff6a00;
    border-radius: 50%;
    z-index: 2;
}

.promo-image {
    width: 100%;
    height: clamp(300px, 40vw, 370px);
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #fff;
    padding: 20px;
    transition: all 0.3s ease;
}

.promo-image:hover {
    transform: scale(1.05);
}

.promo-quote {
    position: absolute;
    top: -28px;
    left: -28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    z-index: 4;
}

.promo-quote img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Using a background image now; no inner SVG needed */

.promo-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-play-btn:hover {
    background: rgba(0, 0, 0, .8);
    transform: scale(1.1);
}

.promo-play-line {
    width: 60px;
    height: 2px;
    background: white;
    position: relative;
}

.promo-play-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6a00;
    border-radius: 50%;
}

.promo-content {
    color: #fff;
    padding-left: 20px;
}

[dir="rtl"] .promo-content {
    padding-left: 0;
    padding-right: 20px;
}

.promo-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.promo-subtitle {
    margin: 0 0 30px 0;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.3;
}

.promo-subtitle .highlight {
    color: #ffd54f;
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
    font-weight: 600;
}

.promo-subtitle .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 8px;
    background: linear-gradient(90deg, #ffd54f, #ffb300);
    border-radius: 4px;
    transform: skewY(-1deg);
}

.promo-platform-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.promo-platform-line {
    width: 40px;
    height: 2px;
    background: white;
    margin: 25px 0 15px 0;
    opacity: 0.8;
}

.promo-platform {
    font-size: clamp(18px, 2vw, 22px);
    opacity: 0.9;
    font-weight: 500;
    color: #fff;
}

.promo-btn {
    display: inline-block;
    background: #fff;
    color: var(--secondary-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.promo-btn:hover {
    background: #ffd54f;
    color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.promo-deco {
    position: absolute;
}

.star-top {
    top: 15%;
    right: 15%;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #ffd54f 0 60%, transparent 65% 100%);
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .2));
}

.star-bottom {
    bottom: 20%;
    left: 10%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd54f 0 60%, transparent 65% 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.sparkle-1 {
    top: 25%;
    left: 8%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.7;
}

.sparkle-2 {
    top: 60%;
    right: 25%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.6;
}

.sparkle-3 {
    bottom: 35%;
    right: 8%;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.doodle-lines {
    bottom: 8%;
    right: 5%;
    width: 120px;
    height: 16px;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .4) 0px,
            rgba(255, 255, 255, .4) 8px,
            transparent 8px,
            transparent 16px);
    opacity: 0.6;
}

.promo-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd54f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    border: 3px solid #fff;
}

.badge-icon {
    font-size: 24px;
}

/* Animations */
.promo-frame,
.promo-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    flex : 50%;
}

.promo-visible .promo-frame,
.promo-visible .promo-content {
    opacity: 1;
    transform: translateY(0);
}

.promo-content {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .promo-frame {
        order: -1;
        transform: rotate(-2deg);
        max-width: 400px;
        margin: 0 auto;
    }

    .promo-content {
        padding-left: 0;
        padding-right: 0;
    }

    [dir="rtl"] .promo-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .promo-orange {
        min-height: auto;
        padding: 60px 0;
    }

    .promo-container {
        padding: 40px var(--space-lg);
    }

    .promo-frame {
        max-width: 320px;
    }

    .promo-play-overlay {
        gap: 15px;
    }

    .promo-play-btn {
        width: 60px;
        height: 60px;
    }

    .promo-play-line {
        width: 40px;
    }
}

/* Dark theme */
[data-theme="dark"] .promo-orange {
    background: var(--main-color);
}

[data-theme="dark"] .promo-subtitle .highlight {
    color: #111;
}

[data-theme="dark"] .promo-frame-inner {
    background: #f8f8f8;
}

[data-theme="dark"] .promo-frame-cutout {
    background: #e55a00;
}

.subjects-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.subjects-header {
    text-align: center;
    margin-bottom: clamp(24px, 5vw, 40px);
}

/* subjects header inherits .brush-wrap/.brush-label */

.subjects-subtitle {
    margin: 12px auto 0;
    max-width: 980px;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
}

/* Subjects Swiper */
.subjectsSwiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 20px;
}

.subjectsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.subject-card {
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: stretch;
}

.subject-card-inner {
    background: var(--bg-primary);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.subject-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.subject-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.subject-title a {
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    margin: 0 0 6px;
}

.subject-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.subject-meta svg {
    opacity: .9;
}

.swiper-wrapper {
    margin-top: 40px;
}

/* Pagination */
.subjectsSwiper .swiper-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 0;
    bottom: auto;
}

.subjectsSwiper .swiper-pagination .subjects-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 999px;
    transition: width .25s ease, background .25s ease;
    cursor: pointer;
}

.subjectsSwiper .swiper-pagination .subjects-bullet.active {
    width: 48px;
    background: var(--main-color);
}

/* Dark */
[data-theme="dark"] .subject-card-inner {
    background: #1C1C1C !important;
    border-color: #2a2a2a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .subject-title a {
    color: #fff;
}

[data-theme="dark"] .subject-meta {
    color: #d1d5db;
}

/* RTL */
[dir="rtl"] .subjects-wrapper {
    direction: ltr;
}

/* Responsive */
@media (max-width: 1024px) {
    .subject-card {
        flex: 0 0 50%;
    }

    .subjects-swiper-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .subject-card {
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .subjects-swiper-container {
        padding: 0 var(--space-md);
    }
}

/* Subjects card lifted icon */
.subject-card-inner {
    position: relative;
}

.subject-icon {
    position: absolute;
    top: -44px;
    /* lift more to appear outside the card */
    left: 70px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 18px 36px rgba(234, 6, 9, 0.22);
    /* create cut-out ring */
    z-index: 3;
    /* ensure it stays above the card */
}

[dir="rtl"] .subject-icon {
    left: 50%;
    transform: translateX(-50%);
}

.subject-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.subject-body {
    padding-top: 56px;
}

.subject-body a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.subject-body a .subject-meta {
    transition: all 0.3s ease;
}

.subject-body a:hover .subject-title a {
    color: var(--main-color);
}

/* ==== Benefits theme overrides (match reference) ==== */
[data-theme="light"] .benefit-card.card-purple {
    background: linear-gradient(135deg, #7B2FFF 0%, #5C27E6 50%, #3C1DBA 100%);
}

[data-theme="light"] .benefit-card.card-green {
    background: linear-gradient(135deg, #00C6A2 0%, #00A77E 50%, #008B66 100%);
}

[data-theme="light"] .benefit-card.card-orange {
    background: linear-gradient(135deg, #FF6A2A 0%, #FF4B1F 50%, #E63900 100%);
}

[data-theme="light"] .benefit-title {
    color: #ffffff;
}

[data-theme="light"] .benefit-text {
    color: rgba(255, 255, 255, .90);
}

[data-theme="dark"] .benefit-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .benefit-title {
    color: #ff6a2a;
}

[data-theme="dark"] .benefit-text {
    color: rgba(255, 255, 255, .85);
}

/* =====================
   Footer Styles
   ===================== */
.site-footer {
    --footer-bg: #0e2430;
    --footer-text: #e6f0f5;
    --footer-muted: rgba(230, 240, 245, .7);
    --footer-line: rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(11, 29, 39, 1) 0%, rgba(10, 26, 35, 1) 100%);
    padding: clamp(48px, 8vw, 72px) 16px 28px;
    color: var(--footer-text);
    text-align: center;
}

[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #0e2430 0%, #0a1a23 100%);
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #08141b 0%, #071219 100%);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo {
    width: clamp(80px, 12vw, 120px);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .3));
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 8px 0 28px;
    flex-wrap: wrap;
}

[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

.footer-social .social-btn {
    position: relative;
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(145deg, #404D5A 0%, #313C47 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 6px 16px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    overflow: hidden;
}

.footer-social .social-btn::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.footer-social .social-btn:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .34);
}

.footer-social i {
    width: 28px;
    height: 28px;
}

.footer-social .facebook:hover {
    background: linear-gradient(145deg, #0061FF 0%, #0047E1 50%, #0037B8 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(0, 93, 255, .45);
}

.footer-social .telegram:hover {
    background: linear-gradient(145deg, #36C2FF 0%, #1FA9EE 50%, #1489D6 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(20, 137, 214, .45);
}

.footer-social .instagram:hover {
    background: linear-gradient(145deg, #FF8A00 0%, #FF3A5A 45%, #C13584 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(193, 53, 132, .45);
}

.footer-social .youtube:hover {
    background: linear-gradient(145deg, #FF5A5F 0%, #FF2D2D 50%, #E00000 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(224, 0, 0, .45);
}

.footer-social .tiktok:hover {
    background: linear-gradient(145deg, #FF0050 0%, #FF0050 50%, #000000 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(255, 0, 80, .45);
}

.footer-social .x-twitter:hover {
    background: linear-gradient(145deg, #1DA1F2 0%, #14171A 50%, #000000 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(20, 23, 26, .45);
}

.footer-tagline {
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 28px);
    line-height: 1.5;
    color: var(--footer-text);
    margin: 0 auto 28px;
    max-width: 1100px;
}

[dir="rtl"] .footer-tagline {
    direction: rtl;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: var(--footer-line);
    width: 100%;
    margin: 16px 0 20px;
    position: relative;
}

.footer-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

.copyright {
    color: var(--footer-muted);
    font-size: clamp(14px, 1.8vw, 18px);
}

.copyright .brand {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 800;
    margin: 0 6px;
}

.copyright .year {
    opacity: .9;
    margin-inline-start: 6px;
}

@media (max-width: 768px) {
    .footer-social .social-btn {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .footer-divider {
        width: 100%;
        margin: 16px 0 20px;
    }
}

/* ===== Back To Top Button ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease, background .25s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(0) scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme="dark"] .back-to-top {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* =====================
   Contact Section
   ===================== */
.contact-section {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0;
    background:
        radial-gradient(ellipse at top, #1e3a5f 0%, #0a1628 50%, #000000 100%),
        linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    overflow: hidden;
}

[data-theme="dark"] .contact-section {
    background:
        radial-gradient(ellipse at top, #1e3a8a 0%, #0f172a 50%, #020617 100%),
        linear-gradient(135deg, #0a0e1a 0%, #0f1419 100%);
}


/* Starfield - twinkling stars */
.contact-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%, 40% 60%, 130% 270%, 70% 100%, 20% 80%, 90% 30%, 40% 90%, 60% 20%;
    animation: twinkle 3s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Shooting stars / Falling stars */
.contact-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 100px 4px at center left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(ellipse 80px 3px at center left, rgba(135, 206, 250, 0) 0%, rgba(135, 206, 250, 1) 20%, rgba(135, 206, 250, 0.3) 50%, transparent 100%),
        radial-gradient(ellipse 120px 4px at center left, rgba(147, 197, 253, 0) 0%, rgba(147, 197, 253, 1) 20%, rgba(147, 197, 253, 0.3) 50%, transparent 100%);
    background-size: 100px 4px, 80px 3px, 120px 4px;
    background-position:
        10% -100px,
        35% -80px,
        60% -120px;
    background-repeat: no-repeat;
    transform: rotate(-45deg);
    transform-origin: center;
    animation: shootingStar1 10s linear infinite, shootingStar2 12s linear 3s infinite, shootingStar3 11s linear 6s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}
@keyframes shootingStar1 {
    0% {
        background-position: 10% -100px, -9999px -9999px, -9999px -9999px;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    15% {
        background-position: calc(10% + 350px) calc(0% + 150px), -9999px -9999px, -9999px -9999px;
        opacity: 0;
    }
    100% {
        background-position: calc(10% + 350px) calc(0% + 150px), -9999px -9999px, -9999px -9999px;
        opacity: 0;
    }
}
@keyframes shootingStar2 {
    0% {
        background-position: -9999px -9999px, 35% -80px, -9999px -9999px;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    18% {
        background-position: -9999px -9999px, calc(35% + 300px) calc(0% + 140px), -9999px -9999px;
        opacity: 0;
    }
    100% {
        background-position: -9999px -9999px, calc(35% + 300px) calc(0% + 140px), -9999px -9999px;
        opacity: 0;
    }
}@keyframes shootingStar3 {
    0% {
        background-position: -9999px -9999px, -9999px -9999px, 60% -120px;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    20% {
        background-position: -9999px -9999px, -9999px -9999px, calc(60% + 320px) calc(0% + 180px);
        opacity: 0;
    }
    100% {
        background-position: -9999px -9999px, -9999px -9999px, calc(60% + 320px) calc(0% + 180px);
        opacity: 0;
    }
}
/* Decorative Background Icons */
.contact-deco {
    position: absolute;
    fill: none;
    stroke: var(--main-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .contact-deco {
    stroke: rgba(102, 126, 234, 0.4);
    opacity: 0.15;
}

.contact-deco.deco-envelope {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 3%;
    animation: floatSlow 8s ease-in-out infinite;
}

.contact-deco.deco-phone {
    width: 100px;
    height: 100px;
    top: 12%;
    right: 5%;
    animation: floatMedium 7s ease-in-out infinite 0.5s;
}

.contact-deco.deco-message {
    width: 130px;
    height: 130px;
    bottom: 12%;
    left: 6%;
    animation: floatFast 6s ease-in-out infinite 1s;
}

.contact-deco.deco-location {
    width: 110px;
    height: 110px;
    bottom: 18%;
    right: 4%;
    animation: floatSlow 7.5s ease-in-out infinite 1.5s;
}

/* Additional decorative shapes */
/* Duplicate pseudo-elements removed - space effects defined above */

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-25px) translateX(15px) rotate(5deg);
    }
    66% {
        transform: translateY(-15px) translateX(-10px) rotate(-3deg);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(-15px) rotate(-5deg);
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(3deg);
    }
    75% {
        transform: translateY(-25px) translateX(-15px) rotate(-4deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.contact-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 100%;
    min-height: 500px;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px;
    pointer-events: none;
}

.contact-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.stat-item i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--bg-primary);
    padding: clamp(30px, 5vw, 50px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-header {
    margin-bottom: 30px;
}

.contact-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin: 15px 0 10px;
    line-height: 1.2;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

.btn-submit i {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-image-wrapper {
        min-height: 400px;
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .contact-image-wrapper {
        min-height: 300px;
    }

    .contact-stats {
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .stat-item {
        font-size: 0.9rem;
    }
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
    position: relative;
    padding: clamp(56px, 7vw, 110px) 0;
}

.faq-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.faq-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.faq-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.faq-question .faq-chevron {
    transition: transform .25s ease;
}

.faq-item[aria-expanded="true"],
.faq-item.open {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.faq-answer {
    display: none;
    padding: 0 22px 18px;
    color: var(--text-secondary);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-answer p {
    color: #515151;
}

[data-theme="dark"] .faq-item.open .faq-answer p {
    color: #e1e1e1;
}

.faq-item.open .faq-question .faq-chevron {
    transform: rotate(180deg);
}

[data-theme="dark"] .faq-item {
    background: #171717;
    border-color: #2a2a2a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .faq-subtitle {
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
    }
}

/* =====================
   Classrooms Section
   ===================== */
.classrooms-section {
    position: relative;
    padding: clamp(56px, 7vw, 110px) 0;
}

/* =====================
   Student Reviews Section (Single Image Swiper)
   ===================== */
.student-reviews-section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    overflow: hidden;
}

[data-theme="dark"] .student-reviews-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Student Reviews Swiper */
.studentReviewsSwiper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.studentReviewsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Review Card */
.review-card {
    background: linear-gradient(135deg, #4169ff 0%, #667eea 100%);
    border-radius: 32px;
    padding: clamp(40px, 5vw, 60px) clamp(30px, 4vw, 50px);
    box-shadow:
        0 20px 60px rgba(65, 105, 255, 0.15),
        0 8px 16px rgba(65, 105, 255, 0.1);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(65, 105, 255, 0.2),
        0 10px 20px rgba(65, 105, 255, 0.15);
}

/* Review Stars */
.review-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.review-stars i {
    width: 20px;
    height: 20px;
    color: #FFD700;
    fill: #FFD700;
    stroke: #FFD700;
}

.review-stars [data-lucide] {
    width: 20px;
    height: 20px;
    stroke: #FFD700;
    fill: #FFD700;
}

/* Review Text */
.review-text {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.8;
    color: #ffffff;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

[dir="rtl"] .review-text {
    text-align: center;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.student-name-date {
    text-align: left;
}

[dir="rtl"] .student-name-date {
    text-align: right;
}

.student-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.review-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Navigation Arrows */
.reviews-nav-prev,
.reviews-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviews-nav-prev {
    left: 20px;
}

.reviews-nav-next {
    right: 20px;
}

.reviews-nav-prev:hover,
.reviews-nav-next:hover {
    background: var(--main-color);
    box-shadow: 0 6px 20px rgba(65, 105, 255, 0.3);
}

.reviews-nav-prev:hover i,
.reviews-nav-next:hover i {
    color: #ffffff;
    stroke: #ffffff;
}

.reviews-nav-prev i,
.reviews-nav-next i {
    width: 24px;
    height: 24px;
    color: var(--main-color);
    stroke: var(--main-color);
}

.reviews-nav-prev [data-lucide],
.reviews-nav-next [data-lucide] {
    width: 24px;
    height: 24px;
    stroke: var(--main-color);
}

.reviews-nav-prev:hover [data-lucide],
.reviews-nav-next:hover [data-lucide] {
    stroke: #ffffff;
}

[data-theme="dark"] .reviews-nav-prev,
[data-theme="dark"] .reviews-nav-next {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .reviews-nav-prev:hover,
[data-theme="dark"] .reviews-nav-next:hover {
    background: var(--main-color);
}

/* Pagination Dots */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(65, 105, 255, 0.3);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
    width: 32px;
    border-radius: 6px;
}

[data-theme="dark"] .reviews-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .reviews-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* =====================
   Student Reviews Images Section (Screenshots)
   ===================== */
.student-reviews-images-section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    overflow: hidden;
}

[data-theme="dark"] .student-reviews-images-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.reviews-images-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.reviews-images-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-images-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Student Reviews Images Swiper */
.studentReviewsImagesSwiper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.studentReviewsImagesSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Review Image Card */
.review-image-card {
    background: linear-gradient(135deg, #4169ff 0%, #667eea 100%);
    border-radius: 32px;
    padding: clamp(40px, 5vw, 60px) clamp(30px, 4vw, 50px);
    box-shadow:
        0 20px 60px rgba(65, 105, 255, 0.15),
        0 8px 16px rgba(65, 105, 255, 0.1);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-image-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(65, 105, 255, 0.2),
        0 10px 20px rgba(65, 105, 255, 0.15);
}

/* Review Image Wrapper */
.review-image-wrapper {
    width: 100%;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.review-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.review-image-card:hover .review-screenshot {
    transform: scale(1.02);
}

/* Navigation Arrows for Images */
.reviews-images-nav-prev,
.reviews-images-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviews-images-nav-prev {
    left: 20px;
}

.reviews-images-nav-next {
    right: 20px;
}

.reviews-images-nav-prev:hover,
.reviews-images-nav-next:hover {
    background: var(--main-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(65, 105, 255, 0.3);
}

.reviews-images-nav-prev [data-lucide],
.reviews-images-nav-next [data-lucide] {
    width: 24px;
    height: 24px;
    stroke: var(--main-color);
}

.reviews-images-nav-prev:hover [data-lucide],
.reviews-images-nav-next:hover [data-lucide] {
    stroke: #ffffff;
}

[data-theme="dark"] .reviews-images-nav-prev,
[data-theme="dark"] .reviews-images-nav-next {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .reviews-images-nav-prev:hover,
[data-theme="dark"] .reviews-images-nav-next:hover {
    background: var(--main-color);
}

/* Pagination Dots for Images */
.reviews-images-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.reviews-images-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(65, 105, 255, 0.3);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reviews-images-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
    width: 32px;
    border-radius: 6px;
}

[data-theme="dark"] .reviews-images-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .reviews-images-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* Responsive Design for Images Section */
@media (max-width: 1024px) {
    .reviews-images-nav-prev {
        left: 10px;
    }

    .reviews-images-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .student-reviews-images-section {
        padding: 60px 0;
    }

    .reviews-images-header {
        margin-bottom: 40px;
    }

    .studentReviewsImagesSwiper {
        padding: 20px 10px 60px;
    }

    .review-image-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .review-image-wrapper {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .reviews-images-nav-prev,
    .reviews-images-nav-next {
        width: 40px;
        height: 40px;
    }

    .reviews-images-nav-prev [data-lucide],
    .reviews-images-nav-next [data-lucide] {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-images-nav-prev {
        left: 5px;
    }

    .reviews-images-nav-next {
        right: 5px;
    }

    .review-image-card {
        padding: 24px 16px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-nav-prev {
        left: 10px;
    }

    .reviews-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .student-reviews-section {
        padding: 60px 0;
    }

    .reviews-header {
        margin-bottom: 40px;
    }

    .studentReviewsSwiper {
        padding: 20px 10px 60px;
    }

    .review-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .review-text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .student-avatar {
        width: 48px;
        height: 48px;
    }

    .student-name {
        font-size: 16px;
    }

    .review-date {
        font-size: 13px;
    }

    .reviews-nav-prev,
    .reviews-nav-next {
        width: 40px;
        height: 40px;
    }

    .reviews-nav-prev i,
    .reviews-nav-next i,
    .reviews-nav-prev [data-lucide],
    .reviews-nav-next [data-lucide] {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .review-text {
        font-size: 15px;
    }

    .review-stars {
        gap: 6px;
    }

    .review-stars i,
    .review-stars [data-lucide] {
        width: 18px;
        height: 18px;
    }

    .student-info {
        gap: 12px;
    }

    .reviews-nav-prev {
        left: 5px;
    }

    .reviews-nav-next {
        right: 5px;
    }
}

/* =====================
   Download App Section
   ===================== */
.download-section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    overflow: hidden;
    min-height: 600px;
}

/* Background layers for 3D effect */
.download-bg-main {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.download-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 464px;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;

}

.download-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Light Theme */
.download-section[data-theme="light"] .download-bg-main {
    background: #ffffff;
}

.download-section[data-theme="light"] .download-bg-overlay {
    background: linear-gradient(135deg, #FF8A65 0%, #FFB27A 100%);
}

.download-section[data-theme="light"] .download-bg-pattern {
    background-image:
        radial-gradient(circle at 20% 20%, var(--main-200) 0 2px, transparent 2px),
        radial-gradient(circle at 80% 30%, var(--main-200) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, var(--main-200) 0 1.5px, transparent 1.5px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
}

/* Dark Theme */
.download-section[data-theme="dark"] .download-bg-main {
    background: #1a2332;
}

.download-section[data-theme="dark"] .download-bg-overlay {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
}

.download-section[data-theme="dark"] .download-bg-pattern {
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px),
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
        radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.12) 0 1.5px, transparent 1.5px);
    background-size: 60px 60px, 40px 40px, 50px 50px;
}

/* Theme Toggle */
.download-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: #FF6B35;
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0;
}

.download-section[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
}

.download-section[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
}

/* Container */
.download-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 3;
}

/* Full-bleed bg for the inner, centered container */
.download-container::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* full screen width */
    height: 464px;
    /* the band height from the design */
    top: 0;
    /* start at container top */
    background: linear-gradient(135deg, #FFE5D9 0%, #FFF5EB 100%);
    z-index: -1;
    /* sit behind the content */
    pointer-events: none;
}

/* switch bg with theme */
.download-section[data-theme="dark"] .download-container::before {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 100%);
}

@media (max-width: 1024px) {
    .download-container::before {
        display: none;
    }
}

.download-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 100px);
    height: 464px;
}

.download-grid .download-copy {
    order: 1;
    flex: 1.1 1 0;
}

.download-grid .download-visual {
    order: 2;
    flex: 1 1 0;

}

[dir="rtl"] .download-grid .download-copy {
    order: 2;
}

[dir="rtl"] .download-grid .download-visual {
    order: 1;
}

/* Text Content */
.download-copy {
    position: relative;
    z-index: 4;
}

.download-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.download-section[data-theme="light"] .download-title {
    color: #2C3E50;
}

.download-section[data-theme="dark"] .download-title {
    color: #FFFFFF;
}

.title-text {
    display: inline;
}

.title-accent {
    color: var(--main-color);
    display: inline;
}

.download-icon {
    color: var(--main-color);
    flex-shrink: 0;
}

.download-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 60ch;
}

.download-section[data-theme="light"] .download-subtitle {
    color: #5A6C7D;
}

.download-section[data-theme="dark"] .download-subtitle {
    color: #E2E8F0;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Large screens: force 3 buttons per row, 4th wraps to next row */
@media (min-width: 992px) {
    .download-buttons {
        justify-content: center;
    }

    .download-buttons .dl-btn {
        /* 4 items per row accounting for three gaps (16px each) */
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: 0;
    }

    /* Ensure logos scale down to fit */
    .download-buttons .dl-btn img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

.dl-btn {
    display: flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.dl-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dl-btn:hover::before {
    left: 100%;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
}

.btn-text {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.btn-platform {
    font-size: 16px;
    font-weight: 700;
}

/* Visual Section with 3D Effect */
.download-visual {
    position: relative;
    z-index: 2;
}

.phone-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.phone-hand {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.phone-hand:hover {
    transform: translateZ(0) scale(1.02);
}

/* Floating Decorative Elements */
.floating-download-icon {
    position: absolute;
    top: 15%;
    right: -15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, var(--main-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    animation: float 3s ease-in-out infinite;
    z-index: 4;
}

.deco-star {
    position: absolute;
    color: var(--main-color);
    animation: float 4s ease-in-out infinite;
}

.star-1 {
    top: 60%;
    left: -10%;
    animation-delay: -1s;
}

.star-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: -2s;
}

.deco-rect {
    position: absolute;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    animation: float 5s ease-in-out infinite;
}

.rect-1 {
    width: 30px;
    height: 40px;
    bottom: 30%;
    left: -5%;
    animation-delay: -1.5s;
}

.rect-2 {
    width: 25px;
    height: 35px;
    top: 40%;
    right: -8%;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .download-grid {
        flex-direction: column;
        gap: 40px;
        height: auto;
        margin: 0;
    }

    .download-container::before {
        height: 300px;
    }

    .download-visual {
        order: -1;
    }

    .download-bg-overlay {
        width: 100%;
        height: 300px;
        top: auto;
        bottom: 0;
    pointer-events: none;

    }

    .phone-container {
        max-width: 400px;
    }

    [dir="rtl"] .download-visual {
        order: -1;
    }

    [dir="rtl"] .download-grid .download-copy {
        order: 1;
    }
}

@media (max-width: 768px) {
    .download-section {
        padding: clamp(60px, 8vw, 100px) 0;
    }

    .download-container {
        padding: 30px var(--space-lg) 0;
    }

    .download-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dl-btn {
        min-width: 140px;
    }

    .floating-download-icon {
        width: 60px;
        height: 60px;
        right: -10%;
    }
}

@media (max-width: 480px) {
    .download-container::before {
        height: 240px;
    }

    .download-container {
        margin: 0 5px;
    }

    .download-grid {
        margin: 0 5px;
        gap: 30px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .dl-btn {
        width: 100%;
        max-width: 200px;
    }

    .download-title {
        font-size: clamp(28px, 6vw, 48px);
        text-align: center;
    }

    .download-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        text-align: center;
    }

    .phone-container {
        max-width: 300px;
    }

    .floating-download-icon {
        width: 50px;
        height: 50px;
    }
}

.classrooms-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
}

.classrooms-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.classrooms-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-top: 10px;
}

.classrooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    position: relative;
}

.classroom-card {
    position: relative;
    border-radius: 26px;
    padding: 28px;
    background: var(--bg-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.classroom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.classroom-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, #9b4dff, #7b2fff);
}

.classroom-title {
    font-weight: 800;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    color: var(--text-primary);
    margin: 10px 0 12px;
}

.classroom-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(.95rem, 1.9vw, 1.05rem);
    margin-bottom: 18px;
}

.classroom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.classroom-glow {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

/* Color variants */
.classroom-purple {
    background: #2a1042;
}

.classroom-purple .classroom-icon {
    background: linear-gradient(135deg, #9b4dff, #7b2fff);
}

.classroom-purple .classroom-btn {
    background: linear-gradient(135deg, #9b4dff, #7b2fff);
}

.classroom-green {
    background: #113b2f;
}

.classroom-green .classroom-icon {
    background: linear-gradient(135deg, #25d695, #0fb56e);
}

.classroom-green .classroom-btn {
    background: linear-gradient(135deg, #25d695, #0fb56e);
}

.classroom-blue {
    background: #102a4a;
}

.classroom-blue .classroom-icon {
    background: linear-gradient(135deg, #3a8bff, #1f6bff);
}

.classroom-blue .classroom-btn {
    background: linear-gradient(135deg, #3a8bff, #1f6bff);
}

/* Light theme cards */
[data-theme="light"] .classroom-purple {
    background: #efe7fb;
}

[data-theme="light"] .classroom-green {
    background: #e4f8ef;
}

[data-theme="light"] .classroom-blue {
    background: #e6f0ff;
}

[data-theme="light"] .classroom-title {
    color: #0f172a;
}

[data-theme="light"] .classroom-text {
    color: #334155;
}

/* RTL */
[dir="rtl"] .classrooms-subtitle {
    text-align: center;
}

/* Shapes */
.classrooms-shape {
    position: absolute;
    pointer-events: none;
    filter: blur(2px);
    opacity: .9;
}

.shape-a {
    left: 120px;
    bottom: -100px;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 128, 0, .25), rgba(255, 128, 0, .08));
    animation: orbit-a 18s linear infinite;
}

.shape-b {
    right: 8%;
    top: 60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
    animation: orbit-b 26s linear infinite reverse;
}

.shape-c {
    left: 35%;
    top: 68%;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
    animation: orbit-c 22s linear infinite;
}

@keyframes orbit-a {
    0% {
        transform: rotate(0) translateX(0);
    }

    100% {
        transform: rotate(360deg) translateX(0);
    }
}

@keyframes orbit-b {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit-c {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .classrooms-grid {
        grid-template-columns: 1fr;
    }
}

html,
body {
    overflow-x: hidden;
}

/* ===== OUR PROJECTS SECTION ===== */
.our-projects-section {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

[data-theme="dark"] .our-projects-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.projects-deco {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    fill: currentColor;
    color: var(--color-primary);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.projects-deco.deco-code {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.projects-deco.deco-rocket {
    top: 60%;
    right: 8%;
    animation-delay: 2s;
}

.projects-deco.deco-layers {
    bottom: 15%;
    left: 10%;
    animation-delay: 4s;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Project Card Styles */
.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-card {
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;

}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-link:hover {
    background: var(--color-secondary);
}

.project-link i,
.project-link [data-lucide] {
    width: 24px;
    height: 24px;
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-tag {
    background: var(--bg-primary);
}

.project-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Projects Swiper Customization */
.projectsSwiper {
    padding: 40px 60px;
    margin: 0 -20px;
}

.projectsSwiper .swiper-slide {
    height: auto;
}



.projects-prev i,
.projects-next i,
.projects-prev [data-lucide],
.projects-next [data-lucide] {
    width: 24px;
    height: 24px;
}

.projects-pagination {
    position: relative;
    bottom: 0;
    margin-top: 30px;
}

.projects-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.projects-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .our-projects-section {
        padding: 80px 15px;
    }

    .projects-header {
        margin-bottom: 40px;
    }

    .projects-subtitle {
        font-size: 1rem;
    }

    .projectsSwiper {
        padding: 20px 40px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.9rem;
    }
    .projects-prev i,
    .projects-next i,
    .projects-prev [data-lucide],
    .projects-next [data-lucide] {
        width: 20px;
        height: 20px;
    }
}

/* ===== MEET OUR TRAINER SECTION ===== */
.meet-trainer-section {
    padding: clamp(80px, 10vw, 120px) 0;
    background: linear-gradient(135deg, #fef9f5 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .meet-trainer-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.trainer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.trainer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

/* RTL Support */
[dir="rtl"] .trainer-content {
    direction: rtl;
}

/* Text Content */
.trainer-text {
    max-width: 600px;
}

[dir="rtl"] .trainer-text {
    margin-right: auto;
    margin-left: 0;
}

.trainer-intro {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.7;
    color: #666;
    margin: 20px 0 30px;
    font-weight: 400;
}

[data-theme="dark"] .trainer-intro {
    color: #b0b0b0;
}

.trainer-name {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Rating */
.trainer-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i,
.rating-stars [data-lucide] {
    width: 20px;
    height: 20px;
    color: #e0e0e0;
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 2;
}

/* Gold filled stars */
.rating-stars i.gold-100,
.rating-stars [data-lucide].gold-100 {
    color: #FFD700;
    fill: #FFD700;
    stroke: none;
}

.rating-stars i.gold-75,
.rating-stars [data-lucide].gold-75 {
    color: #FFD700;
    fill: url(#gold-75-gradient);
    stroke: #FFD700;
    stroke-width: 1;
}

.rating-stars i.gold-50,
.rating-stars [data-lucide].gold-50 {
    color: #FFD700;
    fill: url(#gold-50-gradient);
    stroke: #FFD700;
    stroke-width: 1;
}

.rating-stars i.gold-25,
.rating-stars [data-lucide].gold-25 {
    color: #FFD700;
    fill: url(#gold-25-gradient);
    stroke: #FFD700;
    stroke-width: 1;
}

.rating-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

/* Bio */
.trainer-bio {
    margin-bottom: 35px;
}

.trainer-bio p {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

[data-theme="dark"] .trainer-bio p {
    color: #aaa;
}

/* CTA Button */
.trainer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.trainer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.trainer-cta-btn i {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

[dir="rtl"] .trainer-cta-btn {
    flex-direction: row-reverse;
}

/* Trainer Image */
.trainer-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Orange Circle Background */
.orange-circle {
    position: absolute;
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Quote Icon */
.quote-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .quote-icon {
    left: auto;
    right: -20px;
}

.quote-icon svg {
    width: 40px;
    height: 40px;
    color: #ff6b35;
}

[data-theme="dark"] .quote-icon {
    background: #1e2530;
}

/* Trainer Photo */
.trainer-photo {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    aspect-ratio: 1/1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Trainer Badge */
.trainer-badge {
    position: absolute;
    bottom: 30px;
    right: -10px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .trainer-badge {
    right: auto;
    left: -10px;
}

[data-theme="dark"] .trainer-badge {
    background: #1e2530;
}

.trainer-badge i {
    width: 20px;
    height: 20px;
    color: #ff6b35;
    stroke: #ff6b35;
}

.trainer-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trainer-content {
        gap: 60px;
    }

    .trainer-name {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .meet-trainer-section {
        padding: 60px 0;
    }

    .trainer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .trainer-text {
        max-width: 100%;
        text-align: center;
    }

    [dir="rtl"] .trainer-text {
        margin: 0;
    }

    .trainer-rating {
        justify-content: center;
    }

    .trainer-bio {
        text-align: right;
    }

    [dir="rtl"] .trainer-bio {
        text-align: right;
    }

    .trainer-cta-btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .quote-icon {
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }

    [dir="rtl"] .quote-icon {
        left: auto;
        right: -10px;
    }

    .quote-icon svg {
        width: 30px;
        height: 30px;
    }

    .trainer-badge {
        bottom: 20px;
        right: 10px;
        padding: 10px 16px;
    }

    [dir="rtl"] .trainer-badge {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .trainer-name {
        font-size: 24px;
    }

    .trainer-intro {
        font-size: 15px;
    }

    .trainer-bio p {
        font-size: 14px;
    }

    .image-wrapper {
        max-width: 300px;
    }

    .quote-icon {
        width: 50px;
        height: 50px;
    }

    .quote-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* ===== STUDENTS FEEDBACK SECTION ===== */
.students-feedback-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fef3f2 0%, #fff5f0 100%);
    position: relative;
    overflow: hidden;
}

/* Dark mode background */
[data-theme="dark"] .students-feedback-section,
body.dark .students-feedback-section {
    background: linear-gradient(135deg, #1a1f2e 0%, #151920 100%);
}

/* Decorative SVG icons floating in background */
.feedback-deco {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    fill: var(--main-200);
    stroke: var(--main-200);
    animation: float 6s ease-in-out infinite;
}

.feedback-deco.deco-play {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 8%;
    animation-delay: 0s;
}

.feedback-deco.deco-heart {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
}

.feedback-deco.deco-star {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

.feedback-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.feedback-header {
    text-align: center;
    margin-bottom: 70px;
}

.feedback-header .brush-wrap {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    font-size: 40px;
    font-weight: bold;
    color: #fc6b57;
    text-align: center;
}

.feedback-header .brush-wrap::before {
        content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    clip-path: url(#with-us-clip);
    filter: drop-shadow(0 8px 18px rgba(234, 6, 9, 0.35));
    border-radius: 6px;
}

[data-theme="dark"] .feedback-header .brush-wrap::before,
body.dark .feedback-header .brush-wrap::before {
        content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    clip-path: url(#with-us-clip);
    filter: drop-shadow(0 8px 18px rgba(234, 6, 9, 0.35));
    border-radius: 6px;
}

.feedback-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
}

.feedbackSwiper {
    padding: 30px 60px 70px;
}

/* Feedback Card - Reel Style */
.feedback-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

[data-theme="dark"] .feedback-card,
body.dark .feedback-card {
    background: #1f2937;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 24px;
}

.feedback-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25);
}

[data-theme="dark"] .feedback-card:hover,
body.dark .feedback-card:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.feedback-card:hover::before {
    opacity: 0.03;
}

/* Video Wrapper - Optimized for Reels (9:16) */
.feedback-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133%; /* Adjusted aspect ratio for better display */
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    overflow: hidden;
    border-radius: 24px;
}

.feedback-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    z-index: 1;
}

/* Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.feedback-card:hover .video-play-overlay {
    opacity: 1;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-icon svg {
    color: var(--primary-color);
    margin-left: 4px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Feedback Info Section - Bottom Overlay */
.feedback-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
    border-radius: 0 0 24px 24px;
}

[data-theme="dark"] .feedback-info,
body.dark .feedback-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.feedback-badge {
    position: absolute;
    top: -40px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 4;
}

/* Student Avatar - Overlay Style */
.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 3px solid #fc6b57;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.student-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.student-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Star Rating - Overlay Style */
.student-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.student-rating svg {
    fill: #fc6b57;
    stroke: none;
    width: 13px;
    height: 13px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Navigation Buttons - Theme Consistent */
.feedback-next,
.feedback-prev,
.projects-next,
.projects-prev {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,  var(--main-color) 0%, var(--main-200) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--main-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .feedback-next,
[data-theme="dark"] .feedback-prev,
body.dark .feedback-next,
body.dark .feedback-prev,
body.dark .projects-next,
body.dark .projects-prev {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-200) 100%);
    box-shadow: 0 4px 12px var(--main-200);
}

.feedback-next::after,
.feedback-prev::after,
.projects-next::after,
.projects-prev::after {
    content: none;
}

.feedback-next.swiper-button-disabled,
.feedback-prev.swiper-button-disabled,
.projects-next.swiper-button-disabled,
.projects-prev.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-next svg,
.feedback-prev svg,
.projects-next svg,
.projects-prev svg {
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2.5;
    width: 24px;
    height: 24px;
}

.feedback-next:hover,
.feedback-prev:hover,
.projects-next:hover,
.projects-prev:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-200) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--main-200);
}

[data-theme="dark"] .feedback-next:hover,
[data-theme="dark"] .feedback-prev:hover,
body.dark .feedback-next:hover,
body.dark .feedback-prev:hover,
body.dark .projects-next:hover,
body.dark .projects-prev:hover {
    box-shadow: 0 6px 20px var(--main-100);
}

/* Pagination Dots */
.feedback-pagination {
    bottom: 25px !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.feedback-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    margin: 0 !important;
}

.feedback-pagination .swiper-pagination-bullet-active {
    background: var(--main-color);
    opacity: 1;
    width: 36px;
    box-shadow: 0 2px 8px var(--main-200);
}

/* Responsive Design */
@media (max-width: 768px) {
    .students-feedback-section {
        padding: 70px 0;
    }

    .feedback-header {
        margin-bottom: 50px;
    }

    .feedback-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .feedbackSwiper {
        padding: 20px 15px 60px;
    }

    .feedback-card {
        border-radius: 20px;
    }

    .feedback-video-wrapper {
        border-radius: 16px 16px 0 0;
    }

    .feedback-info {
        padding: 14px 16px;
        gap: 10px;
    }

    .feedback-badge {
        top: -35px;
        left: 16px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .student-avatar {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .student-name {
        font-size: 0.9rem;
    }

    .student-rating svg {
        width: 12px;
        height: 12px;
    }

    .feedback-next,
    .feedback-prev {
        width: 40px;
        height: 40px;
    }

    .feedback-next svg,
    .feedback-prev svg {
        width: 20px;
        height: 20px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }

    .play-icon svg {
        width: 36px;
        height: 36px;
    }

    .feedback-deco {
        opacity: 0.04;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .students-feedback-section {
        padding: 80px 0;
    }

    .feedbackSwiper {
        padding: 25px 40px 65px;
    }
}

/* RTL Support */
[dir="rtl"] .student-course svg {
    transform: scaleX(-1);
}

[dir="rtl"] .play-icon svg {
    margin-left: 0;
    margin-right: 4px;
}

/* ===== VIDEO MODAL POPUP ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 60px 20px;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99998;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: calc(100vh - 120px);
    z-index: 99999;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
}

.video-modal-close:hover {
    background: rgba(252, 107, 87, 0.9);
    border-color: #fc6b57;
    transform: rotate(90deg);
}

.video-modal-close svg {
    color: #ffffff;
    stroke: #ffffff;
}

.video-modal-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: calc(100vh - 120px);
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
    object-fit: contain;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .video-modal {
        padding: 40px 15px;
    }

    .video-modal-content {
        width: 90%;
        max-width: 340px;
        max-height: calc(100vh - 80px);
    }

    .video-modal-wrapper {
        max-height: calc(100vh - 100px);
    }

    .video-modal-close {
        top: -45px;
        width: 36px;
        height: 36px;
    }

    .video-modal-close svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .video-modal-content {
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    .video-modal-content {
        max-width: 600px;
    }
}

[data-theme="dark"] .play-icon {
    background: rgba(255, 255, 255, 0.1);
}
.swiper-pagination
{
    position: relative !important;
    padding-top: 50px;
}
