/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #031122; /* Deep Navy Dark */
    --bg-secondary: #061c33;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-primary: #C5A021; /* Gold Metallic */
    --accent-secondary: #00AEEF; /* Vivid Cyan */
    --accent-tertiary: #E11B22; /* Vibrant Red */
    --accent-gradient: linear-gradient(135deg, #C5A021 0%, #dfbf4e 100%);
    --accent-gradient-alt: linear-gradient(135deg, #00AEEF 0%, #004890 100%);
    --glow-primary: rgba(197, 160, 33, 0.3);
    --glow-secondary: rgba(0, 174, 239, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(197, 160, 33, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(197, 160, 33, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --nav-height: 80px;
}

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

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

body {
    font-family: var(--font-ar);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== UTILITY CLASSES ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    transition: all var(--transition-normal);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 15px var(--glow-primary); }
    50% { box-shadow: 0 4px 30px var(--glow-primary), 0 0 60px rgba(102, 126, 234, 0.2); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px var(--glow-primary);
}

.logo-pi {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-en);
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-gradient);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Premium Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    z-index: 1000;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.lang-flag-svg {
    display: flex;
    align-items: center;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-flag-svg svg {
    display: block;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 190px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) rotateX(-15deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotateX(0);
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }
    .lang-switcher {
        margin-right: 4px;
    }
    .lang-current {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    .lang-dropdown {
        width: 160px;
        right: -5px;
        top: calc(100% + 10px);
    }
    .btn-nav {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lang-flag {
    font-size: 1.1rem;
}

/* Hide Google Translate native UI artifacts */
.skiptranslate, 
.goog-te-banner-frame,
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-te-menu-value span:nth-child(2),
.goog-te-menu-value img {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(80px);
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #f093fb;
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: #4facfe;
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #43e97b;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(67, 233, 123, 0); }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-line {
    display: block;
}

.title-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.score-number {
    font-family: var(--font-en);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.score-sparkle {
    font-size: 2rem;
    color: #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(20deg); opacity: 0.7; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-primary);
    margin-inline-start: -8px;
}

.avatar:first-child {
    margin-inline-start: 0;
}

.avatar-more {
    background: var(--bg-glass) !important;
    border-color: var(--border-color) !important;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-text strong {
    color: var(--text-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.3s both;
}

.visual-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-card {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-dots span:nth-child(1) { background: #ff5f56; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #27c93f; }

.card-label {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-body {
    padding: 24px 20px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-ring {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 16.33;
    transition: stroke-dashoffset 2s ease;
    filter: drop-shadow(0 0 6px var(--glow-primary));
}

.ring-score {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: grid;
    grid-template-columns: 55px 1fr 35px;
    align-items: center;
    gap: 10px;
}

.item-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 2s ease;
    box-shadow: 0 0 8px var(--glow-primary);
}

.item-value {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: left;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 12px 16px;
    animation: floatCard 6s ease-in-out infinite;
}

.card-achievement {
    top: -10px;
    right: -30px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 0s;
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-info {
    display: flex;
    flex-direction: column;
}

.achievement-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.achievement-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-progress {
    bottom: 0;
    left: -40px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    animation-delay: -3s;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.chart-bar {
    width: 8px;
    border-radius: 3px 3px 0 0;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.chart-bar.active {
    background: var(--accent-gradient);
    box-shadow: 0 0 8px var(--glow-primary);
}

.progress-label {
    font-size: 0.7rem;
    color: #43e97b;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 0.8s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 100px 0;
    position: relative;
    background: var(--bg-secondary);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

/* ===== COURSES GRID ===== */
.courses {
    padding: 100px 0;
    position: relative;
}

.courses-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.courses-header {
    text-align: center;
    margin-bottom: 60px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.course-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.course-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.course-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-old {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 4px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-icon-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: 20px;
}

.stat-glow {
    position: absolute;
    inset: -10px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(15px);
    transition: opacity var(--transition-normal);
}

.stat-card:hover .stat-glow {
    opacity: 0.3;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    position: relative;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline;
    vertical-align: top;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    position: relative;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--icon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-normal);
}

.feature-link:hover {
    gap: 12px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.testimonials {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-card {
    flex: 0 0 calc(25% - 18px); /* Strictly enforce width */
    max-width: calc(25% - 18px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.author-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-en), var(--font-ar);
}

.score-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(67, 233, 123, 0.15);
    color: #43e97b;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.score-badge.perfect {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    animation: perfectPulse 2s ease-in-out infinite;
}

@keyframes perfectPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(255, 215, 0, 0); }
}

/* Testimonials Controls */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.testimonial-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonials-dots .dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(120px);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.cta-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.cta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 87, 108, 0.15);
    color: #f5576c;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-feature svg {
    color: #43e97b;
    flex-shrink: 0;
}

.cta-actions {
    margin-bottom: 16px;
}

.cta-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary);
    padding-inline-start: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: calc(33.333% - 16px);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    /* Mobile Nav */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn-nav {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 30px) 0 40px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .score-number {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-visual {
        max-width: 340px;
    }

    .card-achievement {
        top: -5px;
        right: -10px;
        transform: scale(0.85);
    }

    .card-progress {
        bottom: -5px;
        left: -10px;
        transform: scale(0.85);
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Stats */
    .stats {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Features */
    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    /* Testimonials */
    .testimonials {
        padding: 40px 0;
    }

    .testimonials-header {
        margin-bottom: 24px;
    }

    .testimonials-track {
        gap: 16px;
    }


    .testimonial-card {
        min-width: calc(100% - 32px);
        padding: 16px 16px 20px;
    }


    .testimonial-stars {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .testimonial-text {
        min-height: auto;
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .testimonial-author {
        padding-top: 12px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .author-name {
        font-size: 0.8rem;
    }

    .author-score {
        font-size: 0.7rem;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta-content {
        padding: 40px 24px;
    }

    .cta-features {
        grid-template-columns: 1fr;
        text-align: start;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .score-display {
        flex-direction: column;
        text-align: center;
    }

    .score-ring {
        margin: 0 auto;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* ===== COURSES MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* ===== COURSE DETAILS PAGE ===== */
.course-hero {
    padding: calc(var(--nav-height) + 60px) 0 60px;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.course-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.course-badge-large {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.course-title-main {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.course-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.course-content-grid {
    padding: 80px 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.course-main-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Accordion */
.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: background var(--transition-normal);
}

.accordion-header:hover {
    background: var(--bg-card-hover);
}

.accordion-header .icon {
    transition: transform var(--transition-normal);
    color: var(--accent-primary);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid var(--border-color);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
}

.accordion-content {
    padding: 24px;
    background: var(--bg-primary);
}

.lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
}

.lesson-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.lesson-right {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 30px);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-glow);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
    cursor: pointer;
}

.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.video-wrapper:hover img {
    opacity: 0.5;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--glow-primary);
    z-index: 2;
    transition: transform var(--transition-normal);
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    color: #fff;
    margin-left: 6px; /* offset for visual center */
}

.sidebar-price {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.sidebar-price-old {
    font-family: var(--font-en);
    text-align: center;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 24px;
}

.sidebar-features {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sidebar-features li svg {
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .course-content-grid {
        grid-template-columns: 1fr;
    }
    .course-sidebar {
        position: relative;
        top: 0;
    }
}

/* ===== TEST CARD MODULE GRID ===== */
.test-modules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.module-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 10px;
}

.module-group-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.module-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-module {
    padding: 8px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-module:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-module.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== TAILWIND UTILITIES FOR SCAPED CONTENT ===== */
.text-lg { font-size: 1.25rem !important; line-height: 1.5 !important; }
.text-base { font-size: 1rem !important; }
.text-sm { font-size: 0.875rem !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-4 { padding: 1rem !important; }

/* ========================================================= */
/*               GLOBAL MOBILE RESPONSIVENESS                */
/* ========================================================= */

@media (max-width: 992px) {
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    /* Stats & Specific Grids */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 30px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Typography Scaling */
    .section-title { font-size: 2rem !important; }
    .hero-title { font-size: 2.2rem !important; }
    .score-number { font-size: 3.5rem !important; }
    
    /* Navbar Mobile Menu */
    .mobile-toggle {
        display: flex !important;
        cursor: pointer;
    }
    
    .nav-actions .btn-nav {
        display: none !important; /* Hide Start button on small mobile nav */
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        text-align: center;
        padding: 12px;
    }
    
    /* Grids to Single Column */
    .stats-grid,
    .features-grid,
    .courses-grid,
    .tests-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Cards and Padding Adjustments */
    .hero {
        padding: calc(var(--nav-height) + 20px) 0 40px;
    }
    
    section {
        padding: 60px 0 !important; /* Overriding huge 100px paddings */
    }
    
    .visual-card.main-card {
        transform: scale(0.9);
    }
    
    .floating-card {
        display: none !important; /* Hide floating decorative cards on small screens to avoid clutter */
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-col {
        align-items: center; /* Center align footer items */
    }
}

/* ===== Google Translate — hide native UI but keep .goog-te-combo alive ===== */
/* Hide the top banner frame that GT injects */
.goog-te-banner-frame {
    display: none !important;
}

/* GT pushes body down — prevent that */
body {
    top: 0 !important;
}

/* Hide tooltip popups */
#goog-gt-tt {
    display: none !important;
}

.goog-tooltip {
    display: none !important;
}

/* Remove text highlighting effect */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}
