* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors - Modern Blue/Purple Theme */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #8b5cf6;
    --accent-color: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #22d3ee;
    
    /* Odoo Brand Colors (for internship pages) */
    --odoo-purple: #714B67;
    --odoo-purple-dark: #5a3c52;
    --odoo-teal: #00A09A;
    --odoo-teal-dark: #008080;
    --gold: #FFD700;
    --gold-dark: #FFA500;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Modern Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    --gradient-odoo: linear-gradient(135deg, var(--odoo-purple) 0%, var(--odoo-purple-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
    --shadow-colored-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.4);
    
    /* 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: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Desktop: Arabic nav DOM matches English (home → … → language); RTL row places first item on the right. */
@media (min-width: 1025px) {
    html[dir="rtl"] .nav {
        flex-direction: row;
    }
}

html[dir="rtl"] .header .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .contact-wrapper {
    direction: rtl;
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .mission-vision-grid {
    direction: rtl;
}

html[dir="rtl"] .services-grid {
    direction: rtl;
}

html[dir="rtl"] .courses-grid {
    direction: rtl;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

html[dir="rtl"] .footer-contact {
    text-align: right;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea,
html[dir="rtl"] .form-group select {
    text-align: right;
}

html[dir="rtl"] .modal-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .close-modal {
    left: 10px;
    right: auto;
}

html[dir="rtl"] .stats-grid {
    direction: rtl;
}

.lang-switcher {
    background: var(--gradient-primary);
    color: var(--text-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-colored);
    position: relative;
    /* overflow: hidden clips RTL / gradient labels on narrow headers; shine uses z-index instead */
    overflow: visible;
    white-space: nowrap;
}

.lang-switcher::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 var(--transition-slow);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.lang-switcher:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-colored-lg);
}

.lang-switcher:hover::before {
    left: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f8fafc;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3,
.bg-gradient-4 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: float 20s infinite alternate;
}

.bg-gradient-1 {
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.bg-gradient-2 {
    background: var(--secondary-color);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.bg-gradient-3 {
    background: var(--accent-color);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.bg-gradient-4 {
    background: var(--gradient-4);
    bottom: 20%;
    left: 10%;
    animation-delay: -15s;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 15%) scale(0.9);
    }

    100% {
        transform: translate(5%, -5%) scale(1.05);
    }
}

/* Header - Enhanced Modern Design with Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all var(--transition-base);
}

.header:hover {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    max-width: 1400px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 1vw, 1rem);
    min-width: 0;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    flex-shrink: 0;
}

.nav a.lang-switcher {
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
    flex-shrink: 0;
    margin-inline-start: 0.15rem;
}

.nav a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    filter: brightness(1.3) contrast(1.1);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(37, 99, 235, 0.2) 50%, rgba(124, 58, 237, 0.2) 100%);
    z-index: 1;
    backdrop-filter: blur(0.5px);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(2px);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 10;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-message {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 0 0 0 rgba(37, 99, 235, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5), 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Us Section */
.about-section {
    padding: 100px 20px 32px;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-1);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.about-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.about-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.about-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.about-link:hover::before {
    left: 100%;
}

/* Mission & Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.mission-card,
.vision-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.mission-card:hover::before,
.vision-card:hover::before {
    opacity: 0.05;
}

.mission-title,
.vision-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.mission-card .divider,
.vision-card .divider {
    margin: 1rem auto;
}

.mission-text,
.vision-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
}

/* Company Info */
.company-info {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.company-info h4 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.company-info h5 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.company-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Company Profile Download Section */
.profile-download-section {
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.profile-download-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.profile-download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.3);
}

.profile-download-card:hover::before {
    transform: scaleX(1);
}

.profile-download-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-base);
}

.profile-download-icon svg {
    width: 40px;
    height: 40px;
}

.profile-download-card:hover .profile-download-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.profile-download-content {
    flex: 1;
}

.profile-download-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.profile-download-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.file-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-md);
}

.file-info svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.profile-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.profile-download-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.profile-download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.profile-download-btn:hover::before {
    left: 100%;
}

.profile-download-btn:hover svg {
    transform: translateY(2px);
}

.profile-download-btn:active {
    transform: translateY(0) scale(1);
}

/* RTL Support for Profile Download */
html[dir="rtl"] .profile-download-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .profile-download-info {
    flex-direction: row-reverse;
}

/* Partners marquee (home) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.partners-marquee-section {
    padding: 0.75rem 0 1rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Home: less space between Partners strip and Services */
#partners.partners-marquee-section + #services.services {
    padding-top: 2.75rem;
}

.partners-marquee-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.95rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.partners-marquee-viewport {
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0;
    animation: partners-marquee-scroll 72s linear infinite;
}

.partners-marquee-viewport:hover .partners-marquee-track,
.partners-marquee-viewport:focus-within .partners-marquee-track {
    animation-play-state: paused;
}

.partners-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2.5rem;
    padding: 0.85rem 2.75rem 0.85rem 0;
}

.partners-marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 200px;
    height: 64px;
    text-decoration: none;
    color: inherit;
}

.partners-marquee-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.partners-marquee-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.92;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.partners-marquee-item:hover .partners-marquee-logo,
.partners-marquee-item:focus-visible .partners-marquee-logo {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .partners-marquee-item {
        width: 168px;
        height: 54px;
    }

    .partners-marquee-group {
        gap: 1.85rem;
    }
}

@media (max-width: 600px) {
    .partners-marquee-item {
        width: 142px;
        height: 48px;
    }

    .partners-marquee-group {
        gap: 1.35rem;
    }
}

@keyframes partners-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee-track {
        animation: none;
        width: auto;
        max-width: 960px;
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.75rem;
        column-gap: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .partners-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .partners-marquee-group {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: 0.75rem 1.25rem;
    }

    .partners-marquee-viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title.partners-marquee-heading {
    margin-bottom: 0.35rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Countdown Section */
.countdown-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.countdown-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.countdown-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
}

.countdown-item:hover::before {
    transform: scaleX(1);
}

.countdown-number {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    transition: all var(--transition-base);
}

.countdown-item:hover .countdown-number {
    transform: scale(1.1);
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Academy Section */
.academy {
    padding: 100px 20px;
    background: white;
}

.academy-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.academy-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.academy-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.course-card>p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.course-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-topics li {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.course-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.course-modules {
    margin-top: 1.5rem;
}

.course-modules h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.course-modules h4:first-child {
    margin-top: 0;
}

.course-modules .course-topics {
    margin-bottom: 1rem;
}

.course-modules .course-topics li {
    font-size: 0.95rem;
}

.academy-register-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.academy-register-btn {
    padding: 1.2rem 3rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.academy-register-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.academy-register-btn:active {
    transform: translateY(-1px);
}

/* Registration Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.modal-course-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.registration-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.registration-form .form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.registration-form .form-group input,
.registration-form .form-group textarea,
.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    background: var(--bg-light);
    color: var(--text-dark);
}

.registration-form .form-group input:focus,
.registration-form .form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.registration-form .form-group input[readonly] {
    background: #f1f5f9;
    cursor: not-allowed;
}

.registration-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.registration-form .form-group select {
    padding: 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
    cursor: pointer;
}

.registration-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.registration-form .submit-btn,
.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-colored);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.registration-form .submit-btn::before,
.submit-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 var(--transition-slow);
}

.registration-form .submit-btn:hover,
.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-colored-lg);
}

.registration-form .submit-btn:hover::before,
.submit-btn:hover::before {
    left: 100%;
}

.registration-form .submit-btn:active,
.submit-btn:active {
    transform: translateY(-1px) scale(1);
}

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

#formMessage.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#formMessage.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--bg-light);
}


.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.contact-item:hover {
    transform: translateX(10px) translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-phone {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-address {
    color: var(--text-dark);
    line-height: 1.8;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: white;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-link {
    text-align: center;
    padding: 1rem;
    background: white;
}

.map-direct-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.map-direct-link:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 20px 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 1;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
    margin: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {

    /* Mobile + tablet menu (same breakpoint as .container) — avoids crowded RTL horizontal nav */
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1001;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex !important;
        opacity: 0;
        pointer-events: none;
        box-sizing: border-box;
    }

    /* Arabic mobile: same column order as English (nav DOM is home → … → language). */
    html[dir="rtl"] .nav {
        flex-direction: column !important;
        transform: translateX(100%);
    }

    .nav.active {
        transform: translateX(0) !important;
        opacity: 1;
        pointer-events: auto;
    }

    html[dir="rtl"] .nav.active {
        transform: translateX(0) !important;
        opacity: 1;
        pointer-events: auto;
    }

    .nav a {
        padding: 1rem;
        border-bottom: 1px solid var(--bg-light);
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left;
        min-width: 0;
        position: relative;
        z-index: 1;
        display: block !important;
        flex: none !important;
        box-sizing: border-box;
        white-space: normal;
    }

    html[dir="rtl"] .nav a {
        direction: rtl;
        text-align: right;
    }

    .nav a.lang-switcher {
        display: flex !important;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    html[dir="rtl"] .nav a.lang-switcher {
        text-align: center;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 120px 20px 60px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* About Section */
    .about-section {
        padding: 60px 20px 28px;
    }

    .about-main-title {
        font-size: 2rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .about-link {
        width: 100%;
        text-align: center;
    }

    /* Profile Download Section */
    .profile-download-section {
        margin-top: 2rem;
    }

    .profile-download-card {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .profile-download-icon {
        width: 70px;
        height: 70px;
    }

    .profile-download-icon svg {
        width: 35px;
        height: 35px;
    }

    .profile-download-content h3 {
        font-size: 1.5rem;
    }

    .profile-download-content p {
        font-size: 0.95rem;
    }

    .profile-download-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    /* Services Section */
    .services {
        padding: 60px 20px;
    }

    #partners.partners-marquee-section + #services.services {
        padding-top: 2.25rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 1.75rem;
    }

    .services-grid,
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Academy */
    .academy-logo {
        max-width: 250px;
    }

    .course-card {
        padding: 1.5rem;
    }

    /* Contact Section */
    .contact {
        padding: 60px 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    html[dir="rtl"] .contact-item {
        text-align: center;
    }

    /* Modal */
    .modal-content {
        margin: 10% auto;
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 100%;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    html[dir="rtl"] .footer-section {
        text-align: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    /* Header */
    .header {
        padding: 0.75rem 0;
    }

    .logo img {
        height: 40px;
    }

    /* Profile Download Section - Small Mobile */
    .profile-download-card {
        padding: 1.5rem;
    }

    .profile-download-icon {
        width: 60px;
        height: 60px;
    }

    .profile-download-icon svg {
        width: 30px;
        height: 30px;
    }

    .profile-download-content h3 {
        font-size: 1.25rem;
    }

    .profile-download-content p {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 100px 15px 40px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .about-section {
        padding: 40px 15px 22px;
    }

    .services,
    .contact {
        padding: 40px 15px;
    }

    #partners.partners-marquee-section + #services.services {
        padding-top: 1.5rem;
    }

    .section-title {
        font-size: 1.55rem;
        margin-bottom: 1.5rem;
    }

    .about-main-title {
        font-size: 1.75rem;
    }

    /* Cards */
    .service-card,
    .course-card {
        padding: 1.25rem;
    }

    .service-card h3,
    .course-card h3 {
        font-size: 1.1rem;
    }

    .service-card p,
    .course-card p {
        font-size: 0.9rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form-container,
    .contact-info {
        padding: 1.25rem;
    }

    .contact-form h3,
    .contact-info h3 {
        font-size: 1.25rem;
    }

    /* Modal */
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem 1rem;
        width: 98%;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.875rem;
    }

    /* Footer */
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    html[dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Academy */
    .academy-logo {
        max-width: 200px;
    }

    .academy-register-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Slideshow */
    .slideshow-wrapper {
        height: 300px;
    }

    .slide-content {
        padding: 1.5rem 1rem;
    }

    .slide-content h3 {
        font-size: 1.25rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slideshow-controls {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }

    .slideshow-controls.prev {
        left: 10px;
    }

    html[dir="rtl"] .slideshow-controls.prev {
        left: auto;
        right: 10px;
    }

    .slideshow-controls.next {
        right: 10px;
    }

    html[dir="rtl"] .slideshow-controls.next {
        right: auto;
        left: 10px;
    }
}