@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body {
  font-family: 'Cairo', sans-serif;
}

/* Base Styles & Variables */
:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color:rgb(170, 0, 142);
    --secondary-light: #ff9fe2;
    --accent-color: #44a4db;
    --accent-light: #34d399;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 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);
    
    /* Borders */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;

    /* Heights */
    --top-bar-height: 2.5rem;
    --navbar-height: 5rem;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-bg);
    background-color: var(--light-bg);
    background-image: 
        radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 1);
}

.btn-course {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-course:hover {
    box-shadow: var(--shadow-md);
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.info-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    margin-left: 0.5rem;
}

/* Updated Navbar Styles */
.navbar {
    background-color: transparent;
    box-shadow: none;
    padding: 0.8rem 0;
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 1rem;
    color: rgb(116 116 227);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-button {
    display: flex;
    align-items: center;
}

.nav-button .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgb(79 70 229);
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-button .btn-primary:hover {
    background: rgb(203, 199, 255);
    box-shadow: var(--shadow-md);
    color: black;
}

.nav-toggle {
    display: none;
}

/* Media Queries */
@media (max-width: 1200px) {
    .top-bar-info {
        gap: 1rem;
    }

    .info-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .top-bar-info .info-item:nth-child(3) {
        display: none;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .top-bar-social {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
        top: var(--top-bar-height);
    }
    
    .navbar.scrolled {
        top: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--top-bar-height) + var(--navbar-height));
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-md);
        transition: transform 0.3s ease;
        z-index: 999;
        transform: translateY(-100%);
    }
    
    .scrolled .nav-menu {
        top: var(--navbar-height);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
    }
    
    .nav-button {
        display: none;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .logo-text h2 {
        font-size: 1.5rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .top-bar-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-social {
        gap: 0.5rem;
    }
    
    .nav-menu {
        padding: 1rem 0;
    }
    
    .nav-menu li {
        padding: 0.5rem 0;
    }
}






/* Modern Language Toggle Styles */
.language-toggle {
    position: relative;
    margin-left: 1rem;
    z-index: 100;
  }
  
  .lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(209, 213, 219, 0.4);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .lang-button:hover, .lang-button:focus {
    background-color: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
  }
  
  .lang-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
  }
  
  .lang-button i {
    font-size: 1rem;
    color: var(--primary-color);
  }
  
  .lang-button span {
    position: relative;
    margin-right: 0.5rem;
  }
  
  .lang-button::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.25rem;
    border-style: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    border-color: var(--text-light);
  }
  
  .lang-button[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-3px);
  }
  
  .lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
    border: 1px solid rgba(209, 213, 219, 0.3);
  }
  
  .lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .lang-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    margin-right: 0.5rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .lang-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    position: relative;
  }
  
  .lang-link:hover {
    background-color: rgba(243, 244, 246, 0.8);
  }
  
  .lang-link.active {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.08);
  }
  
  .lang-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
  }
  
  /* RTL Adjustments for Arabic */
  html[dir="rtl"] .language-toggle {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
  }
  
  html[dir="rtl"] .lang-button::after {
    margin-left: 0;
    margin-right: 0.25rem;
  }
  
  html[dir="rtl"] .flag-icon {
    margin-right: 0;
    margin-left: 0.5rem;
  }
  
  html[dir="rtl"] .lang-link.active::before {
    left: auto;
    right: 0;
  }
  
  /* Dropdown animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    .language-toggle {
      position: relative;
      display: block;
      margin: 0.75rem 1rem;
    }
    
    .lang-button {
      width: 100%;
      justify-content: center;
      padding: 0.625rem;
      background-color: rgba(79, 70, 229, 0.08);
    }
    
    .lang-menu {
      position: absolute;
      width: 100%;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .lang-link {
      justify-content: flex-start;
      padding: 0.875rem 1rem;
    }
    
    /* When mobile menu is active */
    .nav-menu.active .language-toggle {
      display: block;
      margin-top: 1rem;
      border-top: 1px solid rgba(209, 213, 219, 0.3);
      padding-top: 1rem;
    }
  }




.bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: var(--border-radius-full);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 2rem) 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://img.freepik.com/free-vector/gradient-blur-pink-blue-abstract-background_53876-117324.jpg?semt=ais_hybrid&w=740');
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    margin-top: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-full);
    margin-bottom: 1.5rem;
}

.hero-badge span {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}
.gradient-text {
    position: relative;
    background: linear-gradient(120deg, rgb(99, 102, 241) 10%, rgb(162, 89, 247) 40%, rgb(113 83 223) 70%, rgb(68, 164, 219) 100%) text;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(99,102,241,0.08);
    filter: blur(0.1px);
}



.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #05001c;
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(4px);
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}


.breaker {
    background: linear-gradient(to right, #6a11cb, #9c56c4);
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 6px;
}

.breaker-title {
    font-size: 2rem;
    color: white;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

.breaker-title strong {
    font-weight: 800;
    display: block;
    margin-top: 0.5rem;
    font-size: 2.2rem;
}


.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    color: var(--dark-bg);
    transition: all 0.3s ease;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-1 {
    top: 20%;
    left: -10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: -10%;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite 4s;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    margin-bottom: -2px;
    filter: drop-shadow(0 8px 24px rgba(99,102,241,0.08));
}

.hero-wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--navbar-height) + 1rem);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Courses Section */
.courses {
    padding: 3rem 0;
    position: relative;
    background: linear-gradient(to bottom, var(--light-bg), rgba(255, 255, 255, 0.7));
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.courses .container {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding: 2rem 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: text-shadow 0.3s ease;
}

.section-eyebrow:hover {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.section-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-full);
    transition: width 0.4s ease-in-out;
}

.section-header:hover .section-eyebrow::after {
    width: 100px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg,rgba(79, 70, 229, 1) 0%, rgba(162, 92, 247, 1) 50%, rgba(68, 164, 219, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-header:hover h2 {
    transform: scale(1.05);
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,rgba(79, 70, 229, 0) 0%, rgba(162, 92, 247, 0.527) 50%, rgba(68, 164, 219, 0) 100%);
    opacity: 0.6;
    border-radius: var(--border-radius-full);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.section-header:hover h2::before {
    transform: scaleX(1.15);
    opacity: 0.8;
}

.section-header p {
    font-size: 1.3rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-header:hover p {
    opacity: 1;
    transform: translateY(-3px);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    animation: cardFadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card:hover {
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.03);
}

.course-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card.featured {
    border: 2px solid var(--primary-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
    position: relative;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.course-card.featured::after {
    content: "Popular";
    position: absolute;
    top: 1.5rem;
    right: -3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.3rem 3.5rem;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.course-card.featured:hover::after {
    transform: rotate(45deg) scale(1.1);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    transition: transform 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.1);
}

.course-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--dark-bg);
    font-weight: 700;
}

.course-card p {
    color: #4b5563;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.course-features {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.course-features li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
    color: #4b5563;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.course-features li:hover {
    color: var(--primary-dark);
}

.course-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.course-duration {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1rem;
}

.btn-course {
    position: relative;
    overflow: hidden;
}

.btn-course::after {
    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 0.4s ease;
}

.btn-course:hover::after {
    left: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .courses {
        padding: 8rem 0;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .courses {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 4rem;
        padding: 1.5rem 0;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .section-eyebrow {
        font-size: 1rem;
    }

    .section-header p {
        font-size: 1.15rem;
        max-width: 90%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .courses {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
        padding: 1rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-eyebrow {
        font-size: 0.9rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-icon {
        font-size: 2.5rem;
    }

    .course-card h3 {
        font-size: 1.4rem;
    }

    .course-card p {
        font-size: 0.9rem;
    }

    .course-features li {
        font-size: 0.85rem;
    }
}





/* Formation Partners Section */
.formation-partners {
    padding: 6rem 0;
    background: linear-gradient(to top, var(--light-bg), rgba(255, 255, 255, 0.7));
    position: relative;
    overflow: hidden;
}

.formation-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.partners-header {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-title {
    display: inline-block;
    color: var(--dark-bg);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto;
    padding-bottom: 0.5rem;
    position: relative;
    text-align: center;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    opacity: 0.6;
    border-radius: var(--border-radius-full);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partners-slider {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.partners-slider .slider-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(200px * 10); /* Adjust based on number of logos */
}

.partners-slider:hover .slider-track {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    margin: 0 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Responsive Styles for Formation Partners Section */
@media (max-width: 1024px) {
    .formation-partners {
        padding: 4rem 0;
    }

    .partner-logo {
        width: 180px;
        height: 90px;
    }

    .partners-slider .slider-track {
        width: calc(180px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 5));
        }
    }
}

@media (max-width: 768px) {
    .formation-partners {
        padding: 3rem 0;
    }

    .partner-logo {
        width: 150px;
        height: 80px;
    }

    .partners-slider .slider-track {
        width: calc(150px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 5));
        }
    }
}

@media (max-width: 480px) {
    .formation-partners {
        padding: 2rem 0;
    }

    .partner-logo {
        width: 120px;
        height: 70px;
    }

    .partner-logo img {
        max-height: 60px;
    }

    .partners-slider .slider-track {
        width: calc(120px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 5));
        }
    }
}


/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-item p {
    color: #ffffffb3;
}





/* They Trust Us Section */
.trust-us {
    padding: 6rem 0;
        background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
    position: relative;
    overflow: hidden;
}


.trusted-by__title {
  display: inline-block;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 auto;
  padding-bottom: 0.5rem;
  position: relative;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
               0 0 10px rgba(255, 255, 255, 0.2);
}

/* Underline accent */
.trusted-by__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.25rem;
  background: #fff; /* accent color */
  border-radius: 4px;
}

/* Subtle glow/shadow for extra pop */
.trusted-by__title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
               0 0 10px rgba(255, 255, 255, 0.2);
}


.trust-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.trust-us-slider {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.slider-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(200px * 10); /* Adjust based on number of logos */
}

.trust-us-slider:hover .slider-track {
    animation-play-state: paused;
}

.trust-us-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    margin: 0 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-us-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.trust-us-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.trust-us-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 5)); /* Adjust based on number of logos */
    }
}

/* Responsive Styles for Trust Us Section */
@media (max-width: 1024px) {
    .trust-us {
        padding: 4rem 0;
    }

    .trust-us-logo {
        width: 180px;
        height: 90px;
    }

    .slider-track {
        width: calc(180px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 5));
        }
    }
}

@media (max-width: 768px) {
    .trust-us {
        padding: 3rem 0;
    }

    .trust-us-logo {
        width: 150px;
        height: 80px;
    }

    .slider-track {
        width: calc(150px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 5));
        }
    }
}

@media (max-width: 480px) {
    .trust-us {
        padding: 2rem 0;
    }

    .trust-us-logo {
        width: 120px;
        height: 70px;
    }

    .trust-us-logo img {
        max-height: 60px;
    }

    .slider-track {
        width: calc(120px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 5));
        }
    }
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--dark-bg), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    background-color: rgba(255, 255, 255, 0.8);
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.map-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--light-bg), rgba(255, 255, 255, 0.7));
    position: relative;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-content {
    padding: 2rem;
}

.map-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--dark-bg), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.location-text {
    flex: 1;
}

.location-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--dark-bg);
}

.location-text p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
}

.map-frame {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    height: 500px;
    position: relative;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.05));
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.directions-button {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@media (max-width: 1024px) {
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .map-content {
        text-align: center;
        padding: 1rem;
    }
    
    .location-item {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .map-frame {
        height: 400px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #cbd5e1;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
    padding: 4rem 0 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.newsletter h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Cairo', sans-serif;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.footer-contact h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-contact .contact-item {
    margin-bottom: 0.75rem;
}

.footer-contact .contact-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: white;
}

.social-link i {
    margin-right: 0.5rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
}

.footer-content > * {
    position: relative;
    z-index: 1;
}

/* Map Section Enhancements */
.map-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--light-bg), rgba(255, 255, 255, 0.7));
    position: relative;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-frame {
    height: 500px;
    transition: transform 0.3s ease;
}

.map-frame:hover {
    transform: scale(1.02);
}

.directions-button i {
    transition: transform 0.3s ease;
}

.directions-button:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-frame {
        height: 400px;
    }
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg), rgba(255, 255, 255, 0.9));
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-question {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.95);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-right: 2rem;
    line-height: 1.4;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.faq-answer ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* Accessibility */
.faq-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* --- Enhanced Modern Chatbot Styles --- */
.chatbot {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.chat-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 20px 20px;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.2), 0 1px 4px rgba(170,0,142,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
    position: absolute;
    bottom: 0;
    pointer-events: auto;
    animation: floatBtn 2.5s ease-in-out infinite;
}

.chatbot .chat-container.open ~ .chat-toggle {
    bottom: calc(0.5rem + 500px - 56px);
}

@keyframes floatBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.chat-toggle.active {
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    transform: scale(0.95);
}

.chat-toggle .notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ff5252;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff5252aa;
    display: none;
}

.chatbot .chat-container {
    width: 360px;
    max-width: 95vw;
    height: 500px;
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(99,102,241,0.2), 0 2px 6px rgba(170,0,142,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none; /* Only set here */
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99,102,241,0.15);
}

.chatbot .chat-container.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
}

.close-chat {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border-radius: 50%;
    padding: 0.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chat:hover {
    background: rgba(255,255,255,0.2);
    color: #ff5252;
    transform: scale(1.1);
}

.close-chat:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.chat-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: rgba(245,246,250,0.95);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scroll-behavior: smooth;
}

.chat-message {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(99,102,241,0.05);
    word-break: break-word;
    background: rgba(233,240,255,0.95);
    color: #242d50;
    position: relative;
    animation: fadeInUp 0.3s;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 1.2rem;
    box-shadow: 0 2px 10px rgba(99,102,241,0.12);
}

.chat-message.bot .message-content {
    background: rgb(237 237 237 / 98%);
    color: #242d50;
    border-bottom-left-radius: 0.3rem;
    border-bottom-right-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    padding: 0.8rem 1rem;
    background: rgba(245,246,250,0.98);
    border-top: 1px solid #e0e4ea;
    gap: 0.6rem;
}

.chat-input {
    flex: 1;
    border: none;
    border-radius: 1.2rem;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    resize: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(99,102,241,0.05);
    transition: box-shadow 0.2s;
    min-height: 38px;
    max-height: 100px;
    width: 100%;
}

.chat-input:focus {
    box-shadow: 0 2px 6px rgba(99,102,241,0.1);
}

.send-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(99,102,241,0.12);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.05);
}

.send-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .chatbot {
        bottom: 0.3rem;
        right: 0.3rem;
    }
    .chatbot .chat-container {
        width: 95vw;
        height: 85vh;
        max-width: 95vw;
        border-radius: 12px;
    }
    .chatbot .chat-container.open ~ .chat-toggle {
        bottom: calc(0.3rem + 85vh - 48px);
    }
    .chat-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .chat-header {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    .message-content {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
    .chat-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
    .send-button {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}







/* Mobile Media Queries */
@media (max-width: 768px) {
    /* General Layout */
    :root {
        --navbar-height: 4rem;
        --top-bar-height: 2rem;
    }

    body {
        padding-bottom: 4rem;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        width: 100%;
        padding: 0 0.75rem;
    }

    /* Top Bar */
    .top-bar {
        padding: 0.3rem 0;
        font-size: 0.7rem;
        height: var(--top-bar-height);
    }

    .top-bar-content {
        flex-direction: row;
        align-items: center;
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .top-bar-info {
        flex: 1;
        gap: 0.3rem;
        justify-content: flex-start;
    }

    .info-item {
        font-size: 0.65rem;
        gap: 0.2rem;
    }

    .top-bar-social {
        gap: 0.3rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* Navbar */
    .navbar {
        padding: 0.5rem;
        height: var(--navbar-height);
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 1rem;
        gap: 1.2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(209, 213, 219, 0.2);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        z-index: 1001;
    }

    .bar {
        width: 22px;
        height: 2px;
        margin: 3px auto;
        border-radius: 2px;
    }

    /* Hero Section */
    .hero {
        padding: calc(var(--navbar-height) + 1rem) 0 2rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-md);
    }

   

    /* Formation Partners */
    .formation-partners {
        padding: 1.5rem 0;
    }

    .partners-title {
        font-size: 1.5rem;
    }

    .partner-logo {
        width: 100px;
        height: 60px;
        margin: 0 0.4rem;
        border-radius: var(--border-radius-sm);
    }

    .partner-logo img {
        max-height: 40px;
    }

    .partners-slider .slider-track {
        width: calc(100px * 10);
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-100px * 5)); }
    }

    /* Features Section */
    .features {
        padding: 2rem 0;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    /* Trust Us Section */
    .trust-us {
        padding: 1.5rem 0;
    }

    .trusted-by__title {
        font-size: 1.5rem;
    }

    .trust-us-logo {
        width: 100px;
        height: 60px;
        margin: 0 0.4rem;
        border-radius: var(--border-radius-sm);
    }

    .trust-us-logo img {
        max-height: 40px;
    }

    .slider-track {
        width: calc(100px * 10);
    }

    /* Contact Section */
    .contact {
        padding: 2rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1rem;
        border-radius: var(--border-radius-md);
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-sm);
    }

    /* Map Section */
    .map-section {
        padding: 2rem 0;
    }

    .map-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .map-content {
        padding: 1rem;
        text-align: center;
    }

    .map-content h2 {
        font-size: 1.5rem;
    }

    .map-content p {
        font-size: 0.85rem;
    }

    .location-item {
        gap: 0.5rem;
        justify-content: center;
    }

    .location-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .location-text h4 {
        font-size: 0.9rem;
    }

    .location-text p {
        font-size: 0.75rem;
    }

    .map-frame {
        height: 300px;
        border-radius: var(--border-radius-md);
    }

    .directions-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-md);
    }

    

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-brand p {
        font-size: 0.8rem;
        max-width: 100%;
    }

    .newsletter h4,
    .footer-contact h4,
    .footer-links h4,
    .footer-social h4 {
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 0.5rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-sm);
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Language Toggle */
    .language-toggle {
        margin: 0.5rem auto;
        width: fit-content;
    }

    .lang-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        border-radius: var(--border-radius-sm);
    }

    .lang-menu {
        width: 100%;
        min-width: unset;
        border-radius: var(--border-radius-sm);
    }

    .lang-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Chatbot */
    .chatbot {
        bottom: 0.2rem;
        right: 0.2rem;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0.5rem;
    }

    .chatbot .chat-container {
        width: 100vw;
        height: calc(100vh - var(--navbar-height) - 0.5rem);
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .chatbot .chat-container.open ~ .chat-toggle {
        bottom: calc(0.2rem + 100vh - var(--navbar-height) - 50px);
    }

    .chat-header {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .chat-messages {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .message-content {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        border-radius: 0.8rem;
    }

    .chat-input-container {
        padding: 0.5rem;
    }

    .chat-input {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        border-radius: 0.8rem;
        min-height: 36px;
    }

    .send-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Further Optimizations for Smaller Screens */
    .top-bar {
        font-size: 0.6rem;
    }

    .top-bar-info .info-item:nth-child(n+2) {
        display: none;
    }

    .top-bar-social {
        gap: 0.2rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .navbar {
        padding: 0.3rem;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-logo img {
        height: 28px;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .nav-menu {
        padding: 0.5rem;
    }

    .nav-menu li {
        font-size: 1rem;
        padding: 0.6rem 0;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-container {
        padding: 0 0.5rem;
        margin-top: 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-buttons {
        gap: 0.4rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .courses {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-eyebrow {
        font-size: 0.7rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .course-card {
        padding: 1rem;
    }

    .course-icon {
        font-size: 1.5rem;
    }

    .course-card h3 {
        font-size: 1.1rem;
    }

    .course-card p {
        font-size: 0.75rem;
    }

    .course-features li {
        font-size: 0.7rem;
    }

    .course-duration {
        font-size: 0.75rem;
    }

    .btn-course {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .formation-partners {
        padding: 1rem 0;
    }

    .partners-title {
        font-size: 1.3rem;
    }

    .partner-logo {
        width: 90px;
        height: 50px;
    }

    .partner-logo img {
        max-height: 35px;
    }

    .partners-slider .slider-track {
        width: calc(90px * 10);
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-90px * 5)); }
    }

    .features {
        padding: 1.5rem 0;
    }

    .feature-item {
        padding: 0.8rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    .trust-us {
        padding: 1rem 0;
    }

    .trusted-by__title {
        font-size: 1.3rem;
    }

    .trust-us-logo {
        width: 90px;
        height: 50px;
    }

    .trust-us-logo img {
        max-height: 35px;
    }

    .slider-track {
        width: calc(90px * 10);
    }

    .contact {
        padding: 1.5rem 0;
    }

    .contact-info h2 {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 0.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .map-section {
        padding: 1.5rem 0;
    }

    .map-content h2 {
        font-size: 1.3rem;
    }

    .map-content p {
        font-size: 0.8rem;
    }

    .location-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .location-text h4 {
        font-size: 0.85rem;
    }

    .location-text p {
        font-size: 0.7rem;
    }

    .map-frame {
        height: 250px;
    }

    .directions-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .faq {
        padding: 1.5rem 0;
    }

    .faq-question {
        padding: 0.8rem;
    }

    .faq-question h3 {
        font-size: 0.85rem;
    }

    .faq-answer p {
        font-size: 0.8rem;
    }

    .faq-answer ul li {
        font-size: 0.75rem;
    }

    .footer {
        padding: 1rem 0;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-brand p {
        font-size: 0.75rem;
    }

    .newsletter h4,
    .footer-contact h4,
    .footer-links h4,
    .footer-social h4 {
        font-size: 0.9rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .social-link {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    .language-toggle {
        margin: 0.3rem auto;
    }

    .lang-button {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
    }

    .lang-menu {
        border-radius: var(--border-radius-sm);
    }

    .lang-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
    }

    .chatbot {
        bottom: 0;
        right: 0;
    }

    .chat-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin: 0.3rem;
    }

    .chatbot .chat-container {
        height: calc(100vh - var(--navbar-height));
    }

    .chatbot .chat-container.open ~ .chat-toggle {
        bottom: calc(100vh - var(--navbar-height) - 48px);
    }

    .chat-header {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .chat-messages {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .message-content {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        border-radius: 0.7rem;
    }

    .chat-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        border-radius: 0.7rem;
        min-height: 32px;
    }

    .send-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}