/* ================= GLOBAL ================= */

* {
  scroll-behavior: smooth;
  transition: all 0.2s ease-in-out;
}

html[dir="ltr"] body {
  font-family: 'Poppins', sans-serif;
}

body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;

  /* ===== خلفية الصفحة كاملة ===== */
  background-color: #1a1f3b; /* كحلي داكن */
  color: #fff; /* نصوص بيضاء افتراضية */
}

section {
  width: 100%;
  padding: 100px 0;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ================= TOP HEADER ================= */

.top-header {
  background-color: #0f172a; /* داكن جداً */
  color: #faa1a1; /* لون وردي للنصوص */
  font-size: 14px;
  padding: 8px 0;
}

.top-header a {
  color: #faa1a1; /* روابط بنفس اللون الوردي */
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-header a:hover {
  color: #00C2FF; /* عند المرور بالماوس يصبح أزرق */
}

.social-mini a {
  margin: 0 5px;
  color: white; /* أيقونات الشبكات الاجتماعية */
  transition: color 0.3s ease;
}

.social-mini a:hover {
  color: #00C2FF; /* تأثير عند المرور بالماوس */
}
/* ================= NAVBAR ================= */

/* ===== الترويسة (Navbar) ===== */
.navbar,
.navbar.custom-navbar {
  background-color: transparent; /* شفافة في البداية */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* عند النزول بالصفحة */
.navbar.scrolled,
.navbar.custom-navbar.scrolled {
  background-color: #ffffff; /* تصبح بيضاء عند النزول */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* نص الروابط */
.navbar.custom-navbar .nav-link,
.navbar.custom-navbar .navbar-brand {
  color: #fff; /* اللون الافتراضي */
  transition: color 0.3s ease;
}

/* بعد النزول */
.navbar.custom-navbar.scrolled .nav-link,
.navbar.custom-navbar.scrolled .navbar-brand {
  color: #222; /* يتحول النص للون داكن */
}

/* زر اللغة */
.navbar .nav-item .btn-outline-dark {
  color: #fff; /* اللون الافتراضي */
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: all 0.3s ease;
}

/* عند تمرير الصفحة */
.navbar.scrolled .nav-item .btn-outline-dark {
  color: #000;
  border-color: #ddd;
  background: #fff;
}

/* عند وضع المؤشر */
.navbar .nav-item .btn-outline-dark:hover {
  color: #000;
  background: #fff;
  border-color: #ddd;
}

/* زر التواصل */
.contact-btn {
  font-size: 14px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

/* تأثير hover للروابط */
.navbar-nav .nav-link:hover {
  color: #4A3AFF;
}

/* زر الهامبرغر */
.navbar-toggler {
  border: none;
  font-size: 22px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }

  .contact-btn {
    width: 100%;
  }
}

/* ================= ABOUT FINAL ================= */

.about-pro {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  padding: 80px 0;
}

/* الصور */
.bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-slider img.active {
  opacity: 1;
}

/* overlay */
.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.6)
  );
}

/* المحتوى */
.about-pro .content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.content-inner {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 60px 20px;
  width: 100%;
  text-align: center;
}

/* النص */
.about-pro h2 {
  font-size: 42px;
  margin-bottom: 25px;
}

.about-pro p {
  line-height: 2.2;
  margin-bottom: 15px;
}

/* ================= FEATURES ================= */

.features-wrapper {
  width: 100%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 30px 15px;
  margin: 30px 0 40px;

  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* الشبكة */
.features-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 🔥 تابلت */
@media (max-width: 992px) {
  .features-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🔥 موبايل */
@media (max-width: 576px) {
  .features-boxes {
    grid-template-columns: 1fr;
    padding: 0 5px;
  }
}

/* الكرت */
.feature-box {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px 20px;

  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #fff;

  transition: 0.3s;

  /* 🔥 مهم لحل مشكلة الضيق */
  width: 100%;
}

/* hover */
.feature-box:hover {
  transform: translateY(-6px);
  background: #ffffff;
  color: #1a1f3b;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* الأيقونات */
.feature-box i {
  font-size: 26px;
  margin-bottom: 10px;
  color: #00C2FF;
}

/* عند hover */
.feature-box:hover i {
  color: #1a1f3b;
}

/* النص */
.feature-box p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}


.content-inner {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
}

/* ================= FEATURED BOX ================= */



.school-box.featured i {
  color: white;
  font-size: 50px;
}

.school-box.featured h3 {
  font-size: 24px;
  font-weight: bold;
}

.school-box.featured {
  max-width: 600px;
  margin: 0 auto 50px;

  background: linear-gradient(135deg, #4A3AFF, #00C2FF);
  color: white;

  border-radius: 25px;
  padding: 40px 20px;

  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* الكرت */
.school-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);

  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.15);

  transition: 0.3s;
  color: #fff;
}

/* Hover */
.school-box:hover {
  transform: translateY(-10px) scale(1.03);
  background: #ffffff;
  color: #1a1f3b;

  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* الأيقونة */
.icon-box {
  width: 70px;
  height: 70px;
  margin: auto;
  margin-bottom: 15px;

  background: linear-gradient(135deg, #4A3AFF, #00C2FF);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 28px;
}

/* عند hover */
.school-box:hover .icon-box {
  background: #1a1f3b;
}

/* العنوان */
.school-box h4 {
  margin-bottom: 15px;
  font-weight: bold;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

  .about-pro {
    min-height: auto;
    padding: 60px 15px;
  }

  .content-inner {
    padding: 25px;
  }

  .about-pro h2 {
    font-size: 28px;
  }

  .about-pro p {
    font-size: 14px;
  }


}
/* الصف الرئيسي */
.schools-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin-top: 40px;
  padding: 0 20px;
}

/* الموبايل */
@media (max-width: 992px) {
  .schools-row {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ====== Hero Section ====== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الصور */
.hero-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;

  /* ✨ تحسين الصورة */
  filter: blur(0px);
  transform: scale(1.1);

  transition: opacity 1s ease-in-out, transform 8s ease;
}

/* الصورة النشطة */
.hero-slider img.active {
  opacity: 1;
  transform: scale(1.15);
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;

  /* ✨ تحسين احترافي */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.7) 100%
  );

  backdrop-filter: blur(0px);
  z-index: 1;
}

/* المحتوى */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

/* العنوان */
.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 3px 15px rgba(0,0,0,0.8);
}

/* النص */
.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* أزرار */
.hero-buttons a {
  margin: 5px;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

/* زر رئيسي */
.btn-main {
  background: #0d6efd;
  color: #fff;
}

.btn-main:hover {
  background: #0b5ed7;
  transform: translateY(-3px);
}

/* زر ثانوي */
.btn-outline-light {
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: #000;
}

/* ================= BUTTON ================= */

.btn-main {
  background: linear-gradient(135deg, #4A3AFF, #00C2FF);
  color: white;
  border-radius: 30px;
  padding: 12px 30px;
  border: none;
  box-shadow: 0 5px 20px rgba(74,58,255,0.3);
  transition: 0.3s;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
  border-radius: 30px;
  padding: 12px 30px;
  transition: 0.3s;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn-main,
  .btn-outline-light {
    width: 80%;
    max-width: 250px;
    display: block;
    margin: 10px auto;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }
}

/* ================= VISION PRO ================= */

.vision {
  position: relative;
  padding: 120px 20px;

  background: linear-gradient(135deg, #1a1f3b, #0f172a);
  color: #fff;
  overflow: hidden;
}

/* ✨ تأثير خفيف بالخلفية */
.vision::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,194,255,0.25), transparent);
  top: -100px;
  left: -100px;
}

.vision::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74,58,255,0.25), transparent);
  bottom: -100px;
  right: -100px;
}

/* العنوان */
.vision-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;

  background: linear-gradient(45deg, #00C2FF, #4A3AFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* النص */
.vision-text {
  font-size: 18px;
  max-width: 700px;
  margin: auto;

  line-height: 2;
  opacity: 0.9;
}

/* ✨ حركة خفيفة */
.vision-text:hover {
  transform: scale(1.02);
}

/* ================= CONTACT PRO ================= */

.contact {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(135deg, #0f172a, #1a1f3b);
  color: #fff;
  text-align: center;
}

/* عنوان */
.contact h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.contact p {
  opacity: 0.8;
  margin-bottom: 40px;
}

/* الكروت */
.contact-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);

  padding: 30px;
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,0.15);

  transition: 0.3s;
}

/* Hover احترافي */
.contact-box:hover {
  transform: translateY(-10px) scale(1.03);
  background: #ffffff;
  color: #1a1f3b;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* الأيقونات */
.contact-box i {
  font-size: 30px;
  color: #00C2FF;
  margin-bottom: 10px;
}

/* عند hover */
.contact-box:hover i {
  color: #1a1f3b;
}

/* الروابط */
.contact-box a {
  color: #00C2FF;
  text-decoration: none;
}

.contact-box:hover a {
  color: #1a1f3b;
}

/* ================= SOCIAL ================= */

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  margin: 5px;
  border-radius: 50%;

  background: linear-gradient(135deg, #4A3AFF, #00C2FF);
  color: white;

  transition: 0.3s;
}

.social-links a:hover {
  transform: scale(1.15);
}

.form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 20px;
  padding: 30px;
  color: #fff;

  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-icon i {
  font-size: 45px;
  color: #00c6ff;
}

.form-content h3 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.form-content p {
  margin-top: 5px;
  color: #ccc;
}

.form-btn a {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  padding: 12px 25px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.form-btn a:hover {
  transform: scale(1.05);
}

/* موبايل */
@media (max-width: 768px) {
  .form-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ================= FOOTER ================= */

footer {
  background: #0f172a; /* بدل الأسود العادي */
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.app-download img {
  transition: 0.3s;
}

.app-download img:hover {
  transform: scale(1.07);
}

/* ================= ADMIN BUTTON ================= */

.admin-btn {
  display: inline-block;
  margin-top: 10px;

  padding: 8px 18px;
  border-radius: 20px;

  background: linear-gradient(45deg, #4A3AFF, #00C2FF);
  color: #fff;
  text-decoration: none;
  font-size: 13px;

  transition: 0.3s;
}

.admin-btn:hover {
  background: #ffffff;
  color: #4A3AFF;
  transform: translateY(-2px);
}

/* ================= PROGRESS BAR ================= */

#progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4A3AFF, #00C2FF);
  width: 0%;
  z-index: 9999;
}

/* ================= MOBILE HERO ================= */

@media (max-width: 768px) {

  .hero {
    min-height: 90vh;
    padding: 100px 15px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    width: 80%;
  }

  .btn-main {
    width: 80%;
    max-width: 250px;
  }

}


@media (max-width: 768px) {
  .contact-btn {
    display: none;
  }
}


/* الرقم داخل الهيرو يظهر فقط على الموبايل */
.hero-phone {
  display: none; /* مخفي افتراضياً */
}

@media (max-width: 768px) {
  .hero-phone {
    display: block;
    margin-top: 15px;
  }

  .hero-phone a {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4A3AFF, #00C2FF);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }

  .hero-phone a i {
    margin-left: 5px;
  }
}



/* رقم الهاتف في Hero */
.hero-phone {
  margin-top: 15px; /* مسافة فوق الرقم */
  font-size: 16px;
}

.hero-phone a {
  color: #fff; /* لون رقم الهاتف */
  text-decoration: none;
  font-weight: bold;
}

.hero-phone a:hover {
  text-decoration: underline;
}

/* موبايل أصغر */
@media (max-width: 576px) {
  .hero-phone {
    font-size: 14px;
    margin-top: 10px;
  }
}






.gallery {
  background: linear-gradient(180deg, #0b1a3a, #0a1730);
}

/* العنصر */
.gallery-item {
  height: 250px; /* 🔥 ارتفاع ثابت */
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 أهم سطر */
}

/* تكبير */
.gallery-item:hover img {
  transform: scale(1.15);
}

/* Overlay */
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s;
}

.gallery-item .overlay span {
  color: #fff;
  font-size: 18px;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 30px;
}

/* عند hover */
.gallery-item:hover .overlay {
  opacity: 1;
}

/* ظل احترافي */
.gallery-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}