/* =========================================
   RTL/LTR Direction Support
   ========================================= */

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

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

/* Flexbox Direction Reversal for Layouts */
[dir="rtl"] .hero-content,
[dir="rtl"] .about-content,
[dir="rtl"] .ales-wrapper,
[dir="rtl"] .contact-wrapper,
[dir="rtl"] .comparison-grid {
  flex-direction: row-reverse;
}

[dir="ltr"] .hero-content,
[dir="ltr"] .about-content,
[dir="ltr"] .ales-wrapper,
[dir="ltr"] .contact-wrapper,
[dir="ltr"] .comparison-grid {
  flex-direction: row;
}

/* Adjust flex containers for RTL */
.hero-content,
.about-content,
.ales-wrapper,
.contact-wrapper,
.comparison-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text, .about-text, .ales-text,
.contact-info, .comp-col:first-child {
  flex: 1;
  min-width: 300px;
}

.hero-image, .about-image, .ales-image,
.contact-form, .comp-col:last-child {
  flex: 1;
  min-width: 300px;
}

/* Navigation Adjustments */
[dir="rtl"] .nav-menu {
  margin-right: auto;
}

[dir="ltr"] .nav-menu {
  margin-left: auto;
}

/* Float adjustments */
[dir="rtl"] .floating-card,
[dir="rtl"] .experience-badge {
  right: -30px;
  left: auto;
}

[dir="ltr"] .floating-card,
[dir="ltr"] .experience-badge {
  left: -30px;
  right: auto;
}

/* Form adjustments */
[dir="rtl"] .form-group i {
  right: 15px;
  left: auto;
}

[dir="ltr"] .form-group i {
  left: 15px;
  right: auto;
}

/* Newsletter form */
[dir="rtl"] .newsletter-form input {
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

[dir="ltr"] .newsletter-form input {
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

[dir="rtl"] .newsletter-form button {
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

[dir="ltr"] .newsletter-form button {
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

/* Footer links arrows */
[dir="rtl"] .footer-links i {
  margin-left: 8px;
}

[dir="ltr"] .footer-links i {
  margin-right: 8px;
  transform: rotate(180deg);
}

/* Scroll indicator position */
[dir="rtl"] .scroll-indicator {
  left: 30px;
  right: auto;
}

[dir="ltr"] .scroll-indicator {
  right: 30px;
  left: auto;
}

/* Floating animation adjustment */
[dir="ltr"] .hero-image img {
  animation: float-ltr 6s ease-in-out infinite;
}

@keyframes float-ltr {
  0%, 100% { transform: translateY(0px) scaleX(-1); }
  50% { transform: translateY(-20px) scaleX(-1); }
}

/* Service cards grid adjustment */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Offices grid adjustment */
.offices-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Hero buttons flex direction */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

[dir="rtl"] .hero-buttons {
  justify-content: flex-end;
}

[dir="ltr"] .hero-buttons {
  justify-content: flex-start;
}

/* Read more link arrow */
[dir="rtl"] .read-more i {
  margin-right: 8px;
}

[dir="ltr"] .read-more i {
  margin-left: 8px;
  transform: rotate(180deg);
}


/* =========================================
   CSS Reset and Base Styles
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0056b3;
  --primary-dark: #003d82;
  --secondary-color: #ff9f1c;
  --secondary-dark: #e68a00;
  --accent-color: #2ecc71;
  --accent-dark: #27ae60;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --text-color: #333;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

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

body[dir="rtl"] {
  font-family: "Cairo", "Poppins", sans-serif;
  line-height: 1.7;
  background-color: var(--white);
  color: var(--text-color);
  overflow-x: hidden;
  direction: rtl;
}

body[dir="ltr"] {
  direction: ltr;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

section {
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

/* =========================================
   Global Offices Section (The FIX)
   ========================================= */

/* 1. إصلاح الخلفية (التدرج اللوني) */
#global-offices {
    position: relative;
    width: 100%;
    padding: 140px 0 100px; /* مساحة كبيرة فوق عشان الأعلام */
    
    /* التدرج اللوني القوي (زي الصورة بالظبط) */
    background: linear-gradient(105deg, #FF4500 0%, #FF8C00 40%, #0056b3 60%, #002a4d 100%) !important;
    background-size: cover;
    
    overflow: visible; /* مهم جداً عشان مفيش حاجة تتقص */
    z-index: 1;
}

/* 2. الشبكة */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
}

/* 3. إصلاح الكارت (الشفافية + إلغاء القص) */
.office-card {
    position: relative;
    
    /* جعل الخلفية شفافة (Glass Effect) */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0; /* حواف حادة زي الصورة، أو خليها 10px لو عايزها ناعمة */
    
    /* أهم سطر: السماح للعلم بالخروج بره الكارت */
    overflow: visible !important; 
    
    padding: 80px 20px 40px; /* توسيع المساحة العلوية */
    text-align: center;
    color: #fff !important; /* إجبار النص يكون أبيض */
    margin-top: 50px;
    
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.office-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25) !important;
}

/* 4. إصلاح العلم (الدائرة العائمة) */
.flag-wrapper {
    position: absolute;
    /* رفعه للأعلى */
    top: -50px; 
    left: 50%;
    transform: translateX(-50%);
    
    width: 100px;
    height: 100px;
    
    /* دائرة كاملة */
    border-radius: 50%;
    
    /* قص الصورة داخل الدائرة */
    overflow: hidden !important; 
    
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

.flag-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يملأ الدائرة بالكامل */
    display: block;
}

/* 5. تنسيق النصوص */
.office-content .address {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 60px;
}

.contact-line {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #f0f0f0;
}

.contact-line strong {
    color: #FFD700; /* ذهبي */
}

.contact-line a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* 6. الموبايل */
@media (max-width: 992px) {
    #global-offices {
        /* التدرج يبقى رأسي في الموبايل */
        background: linear-gradient(180deg, #FF4500 0%, #002a4d 100%) !important;
        padding: 100px 0;
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: 80px; /* مسافة كبيرة عشان الأعلام */
    }
    
    .office-card {
        margin: 0 15px; /* هوامش جانبية */
    }
}
/* =========================================
   Preloader Video Styles (Updated)
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* تم التغيير لأبيض */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.logo-loader {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* عشان يحتوي الفيديو الكبير */
}

.logo-loader video {
  width: 75%; /* الحجم الجديد: 75% من عرض الشاشة */
  max-width: 500px; /* (اختياري) حد أقصى عشان ميبقاش ضخم جداً ع شاشات الكمبيوتر الكبيرة */
  height: auto;
  border-radius: var(--border-radius);
  /* تم تغيير لون الظل لأسود شفاف عشان يبان على الأبيض */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.loader {
  display: none;
  width: 60px;
  height: 60px;
  /* تم تغيير لون الدائرة لرمادي فاتح عشان تبان */
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin-top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================================
   Header & Navigation
   ========================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

#header.sticky {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: auto;
}

.logo-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin: 0;
}

.logo-text span {
  color: var(--primary-color);
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--gray-color);
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-color);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.lang-switcher {
  margin-left: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--light-gray);
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark-color);
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.cta-nav {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
  transition: var(--transition);
}

.cta-nav:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
  color: var(--white);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   Hero Section
   ========================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  top: -150px;
  right: -150px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  top: 50%;
  left: 10%;
}

#hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-dark)
  );
  color: var(--white);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.3);
}

.cta-button.primary:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--secondary-color)
  );
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 159, 28, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-5px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

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

.floating-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: pulse 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary-color);
}

.floating-card h4 {
  font-size: 1.2rem;
  margin: 0;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}

.scroll-down a {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-down span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* =========================================
   About Section
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  gap: 12px;
}

.about-image {
  position: relative;
}

.image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-container img {
  transition: var(--transition);
}

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

.experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 25px;
  border-radius: 50%;
  text-align: center;
  box-shadow: var(--shadow);
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.experience-badge h3 {
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}

.experience-badge p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* =========================================
   Stats Section
   ========================================= */
#stats {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.stat-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* =========================================
   Services Section
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-features i {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* =========================================
   ALES Features Section (Accordion)
   ========================================= */
#ales-features {
  background-color: var(--light-color); /* خلفية فاتحة لتمييز السكشن */
}

.ales-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* مساحة للنص أكبر قليلاً من الصورة */
  gap: 50px;
  align-items: flex-start;
}

.ales-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.ales-description {
  color: var(--gray-color);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* تنسيق الأكورديون */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  background: var(--primary-color); /* يمكنك تغييره لبنفسجي #6c5ce7 لو أردت */
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--primary-dark);
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-header.active i {
  transform: rotate(45deg); /* تدوير علامة الزائد لتصبح ضرب */
}

.accordion-content {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content p {
  padding: 20px;
  color: var(--text-color);
  font-size: 0.95rem;
  border: 1px solid #eee;
  border-top: none;
  line-height: 1.6;
  margin: 0;
}

/* تنسيق الصورة */
.ales-image img {
  width: 100%;
  border-radius: var(--border-radius);
  /* box-shadow: var(--shadow-lg); */
}

/* التجاوب مع الموبايل */
@media (max-width: 992px) {
  .ales-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ales-image {
    order: -1; /* رفع الصورة للأعلى في الموبايل */
    text-align: center;
  }

  .ales-image img {
    max-width: 80%;
  }
}

/* =========================================
   Build Future Section
   ========================================= */
#build-future {
  width: 100%;
  /* لا يوجد padding هنا لأننا سنقسمه داخلياً */
}

/* الجزء العلوي (الأزرق) */
.future-top {
  background-color: #001f54; /* أزرق داكن جداً كما في الصورة */
  padding: 80px 0;
  color: var(--white);
  text-align: center;
  position: relative;
}

.future-top .section-title.white {
  color: var(--white);
  margin-bottom: 30px;
}

.future-top .section-title.white::after {
  background: var(--secondary-color); /* الخط تحت العنوان باللون البرتقالي */
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px;
  opacity: 0.95;
}

.sub-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* الجزء السفلي (البرتقالي) */
.future-bottom {
  background-color: #e69500; /* برتقالي داكن قليلاً لتباين النصوص */
  /* أو استخدم متغيرك: background-color: var(--secondary-color); */
  padding: 80px 0;
  color: var(--white);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.comp-col {
  background: rgba(255, 255, 255, 0.1); /* خلفية شفافة خفيفة */
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.comp-col:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

.comp-header i {
  font-size: 2rem;
  color: #001f54; /* الأيقونة باللون الأزرق الداكن للتباين */
}

.comp-header h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #001f54;
  font-weight: 800;
}

.comp-body h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comp-body p {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

.comp-body .highlight {
  font-weight: 700;
  background: #001f54;
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.9rem;
}

.future-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 30px;
}

.future-footer p {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: #001f54;
}

/* تجاوب الموبايل */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .comp-header h3 {
    font-size: 1.5rem;
  }

  .future-footer p {
    font-size: 1.1rem;
  }
}
/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 25px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.info-content p {
  color: var(--gray-color);
  margin-bottom: 5px;
}

.info-content a {
  color: var(--primary-color);
  transition: var(--transition);
}

.info-content a:hover {
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-color);
}

body[dir="ltr"] .form-group input,
body[dir="ltr"] .form-group textarea {
  padding: 15px 45px 15px 15px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  background: var(--white);
}

.form-group i {
  position: absolute;
  top: 45px;
  right: 15px;
  color: var(--gray-color);
  transition: var(--transition);
}

body[dir="ltr"] .form-group i {
  right: auto;
  left: 15px;
}

.form-group input:focus + i,
.form-group textarea:focus + i {
  color: var(--primary-color);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.4);
  gap: 15px;
}

.alert {
  padding: 15px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* =========================================
   Footer
   ========================================= */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin: 0;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  gap: 12px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  font-family: inherit;
}

body[dir="rtl"] .newsletter-form input {
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.newsletter-form button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  transition: var(--transition);
}

body[dir="rtl"] .newsletter-form button {
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}


/* =========================================
   Curriculum Section
   ========================================= */
#curriculum {
    background-color: var(--light-color); /* خلفية فاتحة لتمييز السكشن */
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين */
    gap: 50px;
    margin-top: 40px;
}

.curr-col {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid transparent; /* تجهيز لحد علوي ملون */
    position: relative;
    overflow: hidden;
}

/* إضافة ألوان الهوية كحد علوي للكروت */
.curr-col.us-col {
    border-top-color: var(--secondary-color); /* البرتقالي للمنهج الأمريكي */
}

.curr-col.uk-col {
    border-top-color: var(--primary-color); /* الأزرق للمنهج البريطاني */
}

.curr-col:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.curr-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.curr-flag {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* ظل خفيف للعلم ليعطي عمق */
}

.curr-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.curr-body p {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
}

/* تجاوب الموبايل */
@media (max-width: 992px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .curr-col {
        padding: 30px;
    }
}


/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

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

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

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  body[dir="ltr"] .nav-menu {
    right: auto;
    left: -100%;
  }

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

  body[dir="ltr"] .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .lang-switcher {
    margin: 20px 0;
  }

  .cta-nav {
    margin-top: 20px;
    text-align: center;
  }

  #hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .floating-card {
    right: 50%;
    transform: translateX(50%);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
