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

body, html {
  overflow-x: hidden;
  font-family: 'Cairo', sans-serif;
  
  background-color: #f5f6fa;
  color: #ff6e00;
}
/* ====== حاوية موحدة لجميع السكاشن ====== */
.container {
  max-width: 1200px;
  padding: 0 1px;
  margin-inline: auto;
}

/* ====== هامش موحد لكل السكاشن ====== */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ====== TOP BAR ====== */
.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(to right, #ffc800, #ff6e00);
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 80px;
  z-index: 1100;
}

.top-bar .left,
.top-bar .right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-bar a:hover {
  opacity: 0.8;
}


/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 40px; /* ← عشان تبدأ تحت التوب بار */

  right: 0;
  width: 100%;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  z-index: 999;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: #ffffff;
  padding: 14px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-content {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  color: #1e3d59;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #005a73;
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ff6e00;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.burger span {
  display: block;
  height: 3px;
  background: #1e3d59;
  border-radius: 2px;
  transition: 0.3s;
}


/*فاصل العنوان */
.section-header {
  margin-bottom: 30px;
}

.section-header.align-right {
  text-align: center;
}

.section-header.align-center {
  text-align: center;
}

.section-header.align-left {
  text-align: left;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffc800, #ff6e00);
  margin-top: 10px;
  margin-bottom: 40px;
  border-radius: 2px;
  animation: grow-line 1s ease-in-out forwards;
  display: inline-block;
}





.school-highlights {
  background: #f5f0e6;
  padding: 100px 20px;
  text-align: center;
}

.section-heading {
  font-size: 2.8rem;
  color: #ff6e00;
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;

}

.feature-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 198, 255, 0.05), transparent 70%);
  transition: all 0.6s ease;
  z-index: 0;
}

.feature-card:hover::before {
  top: 0;
  left: 0;
}

.feature-card:hover {
  transform: scale(1.035);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
  z-index: 1;
  position: relative;
}

.feature-card:hover .icon-wrapper {
  transform: rotate(10deg) scale(1.1);
}

.bg1 { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.bg2 { background: linear-gradient(135deg, #1e3d59, #3f5f7f); }
.bg3 { background: linear-gradient(135deg, #ffb703, #ff8800); }
.bg4 { background: linear-gradient(135deg, #e63946, #d72638); }

.feature-card h3 {
  font-size: 1.45rem;
  color: #ff6e00;
  margin-bottom: 10px;
  font-weight: 700;
  z-index: 1;
  position: relative;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: #ffb703;
}

.feature-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.65;
  z-index: 1;
  position: relative;
}


/*من نحن */
.about-section {
  background-color: #fffefc; /* خلفية بلون رملي ناعم */
  padding: 80px 20px;
}

.about-content {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 2;
  color: #1e3d59;
}

.about-text p strong {
  font-weight: bold;
  color: #ff6e00;
}

.about-text p em {
  font-style: italic;
  color: #333;
}



.about-image {
  flex: 1 1 40%;
  text-align: center;
}

.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.image-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* ====== رسالة المؤسس ====== */
.founder-message {
  background-color: #fff6ed;
  padding: 100px 20px;
}

.founder-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  direction: ltr; /* ✅ هذا السطر يجعل الاتجاه يسار-يمين داخل السكشن */
}

.founder-text {
  flex: 1 1 55%;
  max-width: 640px;
  color: #1e3d59;
  direction: rtl; /* ✅ نرجع النص بالعربي عادي */
  text-align: right;
}

.founder-text p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 20px;
}

.founder-text p strong {
  color: #ff6e00;
  font-weight: 700;
}

.founder-signature {
  margin-top: 30px;
  font-weight: bold;
  color: #ff6e00;
  font-size: 1.1rem;
  line-height: 1.4;
}

.founder-signature span {
  font-weight: normal;
  font-size: 0.95rem;
  color: #555;
}

.founder-image {
  flex: 1 1 40%;
  text-align: center;
}

.founder-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.founder-image img:hover {
  transform: scale(1.03);
}
/* ====== البرامج التعليمية ====== */
/* ✅ سكشن البرامج التعليمية */
.programs-section {
  background-color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.section-heading-blue {
  font-size: 2.2rem;
  color: #1e3d59;
  margin-bottom: 10px;
}

/* فاصل */
.section-divider-blue {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00c6ff, #1e3d59);
  margin: 20px auto 60px;
  border-radius: 2px;
  animation: grow-line 1s ease-in-out forwards;
}

@keyframes grow-line {
  0% { width: 0; opacity: 0; }
  100% { width: 80px; opacity: 1; }
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.program-card {
  background-color: #fdfaf4;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.program-card .icon {
  font-size: 48px;
  color: #00c6ff;
  margin-bottom: 20px;
}

.program-card h3 {
  color: #1e3d59;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}


/* معرض الصور */
/* معرض الصور */
.album-section {
  display: flex;
  gap: 0;
  width: 100%;
  height: 1000px;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
  box-sizing: border-box;
  height: 1000px;
  overflow: hidden;
}

.column img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* إزالة الرمادي عند الهوفر */
.column img:hover {
  filter: grayscale(0%);
}

/* حاوية للصورة داخلها اللماعة */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* العنصر اللامع */
.image-wrapper::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(0deg);
  pointer-events: none;
  opacity: 0;
}

/* عند الهوفر: تشغيل اللمعة */
.image-wrapper:hover::after {
  animation: diagonalShine 1s ease-in-out forwards;
}

/* حركة اللمعة بشكل قطري */
@keyframes diagonalShine {
  0% {
    top: -50%;
    left: -50%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    left: 100%;
    opacity: 0;
  }
}

/* ارتفاعات مخصصة لكل عمود */
.col-1 img:nth-child(1) { height: 240px; }
.col-1 img:nth-child(2) { height: 260px; }
.col-1 img:nth-child(3) { height: 250px; }
.col-1 img:nth-child(4) { height: 240px; }

.col-2 img:nth-child(1) { height: 330px; }
.col-2 img:nth-child(2) { height: 330px; }
.col-2 img:nth-child(3) { height: 330px; }

.col-3 img:nth-child(1) { height: 190px; }
.col-3 img:nth-child(2) { height: 190px; }
.col-3 img:nth-child(3) { height: 190px; }
.col-3 img:nth-child(4) { height: 190px; }
.col-3 img:nth-child(5) { height: 190px; }

.col-4 img:nth-child(1) { height: 500px; }
.col-4 img:nth-child(2) { height: 490px; }


.album-wrapper {
  background: #f5f0e6;
  padding: 100px 20px;
  text-align: center;
}


/*التسجيل*/
/* سكشن التسجيل الآن */
.registration-section {
  background-color: #fffefc; /* لون مختلف */
  padding: 100px 20px;
}

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

.registration-section form {
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 25px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e3d59;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.form-control:focus {
  border-color: #ff6e00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 110, 0, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

/* فوتر */
.main-footer {
  background-color: #f4f4f4;
  padding: 60px 20px 20px;
  color: #333;
  font-family: 'Cairo', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px; /* زيادة المسافة بين الأعمدة */
  align-items: start;
}

.footer-logo {
  width: 320px;
  margin-bottom: 20px; /* مسافة أكبر أسفل الشعار */
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.footer-logo:hover {
  filter: grayscale(0%);
}

.footer-description {
  font-size: 16px;
  max-width: 320px;
  margin-bottom: 30px; /* مسافة بين الوصف والعمود التالي */
  color: #555;
  line-height: 1.8;
  text-align: right; /* تناسق عربي */
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px; /* مسافة بين العناصر داخل العمود */
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1e3d59;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff8800;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  color: #fff;
  background-color: #ff8800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 8px;
  transition: background-color 0.3s;
}

.footer-social a:hover {
  background-color: #e06700;
}

.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0 20px; /* مسافة أكبر للفصل بين الأقسام */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
}

.footer-bottom .rights {
  margin: 0;
}

.footer-bottom .dev-note {
  margin: 0;
  color: #666;
}

.footer-bottom .dev-note a {
  color: #1e3d59;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom .dev-note a:hover {
  color: #ff8800;
}

/* السلايدر */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 25px 35px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  max-width: 80%;
}

.slide-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.slide-caption p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

a.cta-btn,
button.cta-btn,
input[type="submit"].cta-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff6e00;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

a.cta-btn:hover,
button.cta-btn:hover,
input[type="submit"].cta-btn:hover {
  background: #6b2f01;
}

form .cta-btn,
form button.cta-btn {
  font-family: 'Cairo', sans-serif !important;
  font-weight: bold;
  display: inline-block;
  padding: 12px 25px;
  background: #ff6e00;
  color: #fff;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

form .cta-btn:hover {
  background: #6b2f01;
}


/* Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dots button {
  width: 24px;
  height: 24px;
  margin: 4px;
  border: none;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.dots button.active {
  background: #ff6e00;
}

/* زر واتساب عائم */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  font-size: 28px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  color: #fff;
}




/*معرض الفيديو*/
/* 🎥 خلفية السلايدر بالكامل */
.video-swiper {
  background-color: #000;
  padding: 100px 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ كل سلايد ياخذ عرض كامل ويكون بمركز الصفحة */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ✅ كرت الفيديو بدون خلفية وبدون شادو */
.mp4-video-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ✅ الفيديو يكون داخل كادر 16:9 أو طولي بدون ما يكبر أو يهرب */
.mp4-video-card video {
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  background-color: #000;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.swiper-button-next,
.swiper-button-prev {
  color: #ff6e00 !important;
  outline: none !important;
  box-shadow: none !important;
  border: none;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: none !important;
  box-shadow: none !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1 !important;
  color: #d45500 !important;
}

.swiper-pagination-bullet {
  background: #888;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: #ff6e00;
  opacity: 1;
}


