/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* ===== Navbar Base ===== */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  /* background-color:#1F3A5F; */
  background-color:#0b1f3a;
  backdrop-filter: blur(6px);
  height: 20vh;
  margin-top: 0px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: #eceef1  !important;

}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>") !important;
  filter: none !important;
}


.navbar-brand img {
  height: 140px;

}
.logo-circle {
  width: 100px;
  height: 100px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.navbar-brand span {
  color: white ;
  margin-left: 18px;
  letter-spacing: 2px;
}

.nav-link {
  color: white;
  font-weight: 500;
}

.nav-link:hover {
  color: #f4c542 !important;
}

/* Small margin for the Contact nav link (targets href="contact.html") */
.navbar .navbar-nav .nav-link[href$="contact.html"] {
  margin-left: 12px;
  padding-left: 6px;
}

/* ===== Responsive (mobile view) ===== */
@media (max-width: 992px) {
  .navbar{
    height: 90px;
  }
  .navbar-toggler {
    order: 3; /* burger menu on the right */
    border: none;
    margin-left: auto;
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }

  .navbar-brand {
    position: absolute;
    left: 10px;
    transform: none;
  }
  .logo-circle {
  width: 90px;
  height: 90px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  }

  .navbar-brand img {
    height: 120px;
    padding: 5px;
    
  }

  .navbar-brand span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
  }

  /* Offcanvas menu styling */
  .offcanvas {
    background-color: white;
    color: white;
    backdrop-filter: blur(6px);
    background-color: #002b5c;
    max-width: 70%;
    
  }
  
  .offcanvas .nav-link {
    color:white;
    font-size: 1.1rem;
    margin: 10px 0;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: 0.3s ease;
  }

  .offcanvas .nav-link:hover {
    color: #f4c542 !important;
  }
 .offcanvas .btn-close {
  filter: invert(1) grayscale(1) !important;
}
}
#lang-btn {
 background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#lang-btn:hover {
  background: #ffcc00;
  color: #1e3a8a;
}
@media (max-width: 576px){
  .navbar-brand span{
    margin-left: 90px;
    font-size: 16px;
    letter-spacing: 1px;
}
.logo-circle {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 992px){
  .logo-circle {
    width: 80px;
    height: 80px;
  }
  .navbar-brand span{
    margin-left: 100px;
    font-size: 18px;
  }
}
/* ===== Hero Section ===== */
.hero {
  background-image: url("/images/banner3.jpeg");
  background-size:cover;         
  background-position: center;     /* تبقى في النص */
  background-repeat: no-repeat; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  z-index: 3;
  overflow: hidden;
  height: clamp(280px, 45vh, 520px);
}
.hero2 {
  background-image: url("/images/banner7.avif");
  background-size:cover;         
  background-position: center;     /* تبقى في النص */
  background-repeat: no-repeat; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  z-index: 3;
  overflow: hidden;
  height: clamp(280px, 45vh, 520px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); 
  z-index: 0;
  padding: 12px;

}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content h3 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-btn {
  padding: 10px 25px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #000;
  color: #fff;
}
@media (max-width: 480px) {

  .hero {
    height: 320px; /* أنسب للموبايل */
  }
  .hero2{
    height: 320px; /* أنسب للموبايل */
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* في النص رأسي */
    align-items: center;      /* في النص أفقي */
    text-align: center;
    padding: 10px;
  }

  .hero-content h3{
    font-size: 13px;   /* مقروء مش صغير قوي */
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .hero-content p {
    font-size: 8px;
    margin-bottom: 12px;
  }

  .hero-btn {
    font-size: 13px;     /* 👈 الصح */
    padding: 6px 16px;
    align-self: center;  /* يضمن إن الزرار في النص */
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}



@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  .hero2 {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 26px;
  }
}
 /* VISION AND MISSION */

.vision {
  padding: 70px 20px;
  text-align: center;
  background: #f7f9fc;
}

.vision h2 {
  margin-bottom: 30px;
  font-size: 32px;
  color: #0b1a3b;
}

.vision-box {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.vision-box div {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.vision-box div:hover {
  transform: translateY(-5px);
  background: #f0f4ff;
}



@media (max-width: 1040px) {
  .hero {
    padding: 90px 20px;
    text-align: center;
    display: flex;
    max-height: 50vh;
    background-position: 0px 1px 1px 5px;

  }
  .hero2 {
    padding: 90px 20px;
    text-align: center;
    display: flex;
    max-height: 50vh;
    background-position: 0px 1px 1px 5px;

  }

  .vision-box {
    flex-direction: column;
    gap: 30px;
  }

  .course-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
@media (max-width: 789px){
  .hero {
    text-align: center;
    display: flex;
    background-position: 0px 1px 1px 5px;
    max-width: 100%;     
    max-height: 50vh;     
    object-fit:contain; 
  }
  .hero2 {
    text-align: center;
    display: flex;
    background-position: 0px 1px 1px 5px;
    max-width: 100%;     
    max-height: 50vh;     
    object-fit:contain; 
  }

}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    text-align: center;
    display: flex;
    background-position: 0px 1px 1px 5px;
    max-width: 100%;     
    max-height: 30vh;     
    object-fit:cover; 
  }
  .hero2 {
    text-align: center;
    display: flex;
    background-position: 0px 1px 1px 5px;
    max-width: 100%;     
    max-height: 30vh;     
    object-fit:cover; 
  }

}
/* ===== For large screens (more than 1040px) ===== */
@media (min-width: 1041px) and (max-width: 2000px) {
  .hero {
    padding: 120px 60px;
    background-size: cover; /* الصورة متتمدش */
    background-position: center;
    background-position: 0px 1px 1px 5px;
    max-height: 100vh;
  }
  .hero2 {
    padding: 120px 60px;
    background-size: cover; /* الصورة متتمدش */
    background-position: center;
    background-position: 0px 1px 1px 5px;
    max-height: 100vh;
  }

  .vision-box {
    justify-content: space-around;
    gap: 50px;
  }

  .course-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-container {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-left, .footer-center, .footer-right {
    flex: 1;
    padding: 0 20px;
  }
}

/* ===== For extra large screens (more than 1600px) ===== */
@media (min-width: 1601px) {
  .hero {
    padding: 150px 100px;
    background-size: cover;
    background-position: center;
    max-height: 65vh;
  }
  .hero2 {
    padding: 150px 100px;
    background-size: cover;
    background-position: center;
    max-height: 65vh;
  }
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .testimonial-container {
    gap: 60px;
  }
}

/* ===== Stats Section (unchanged) ===== */
.stats-section {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #004080, #002b5c);
  margin-top: 30px;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
  animation: moveLight 8s linear infinite;
  z-index: 0;
}

@keyframes moveLight {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(0%, 0%) rotate(180deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.stats-section .container {
  position: relative;
  z-index: 1;
  padding: 10px;
}

.section-subtitle {
  font-size: 18px;
  color: #ffcc00;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.stats-section h2 {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item h3 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #ffcc00;
}

.stat-item p {
  font-size: 18px;
  margin: 0;
}

/* ===== Testimonials Section (unchanged) ===== */
.testimonials {
  text-align: center;
  background: linear-gradient(135deg, #062069, #0c1b3d);
  padding: 60px 20px;
  color: #fff;
}

.testimonials h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 40px;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 300px;
  transition: transform 0.3s;
  backdrop-filter: blur(4px);
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-style: italic;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.6;
}

.testimonial h4 {
  color: #e0f2fe;
  font-weight: bold;
  margin-top: 10px;
}



/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }
  .hero{
    flex-direction: column;
    text-align: center;
    padding: 80px 30px;
  }
  .hero2 {
    flex-direction: column;
    text-align: center;
    padding: 80px 30px;
  }

  .vision-box {
    flex-direction: column;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 10px 20px;
  }

  #lang-btn {
    margin-left: 10px;
  }

  .hero {
    padding: 80px 15px;
  }
  .hero2 {
    padding: 80px 15px;
  }

  .vision, .courses {
    padding: 50px 15px;
  }

  .footer {
    font-size: 13px;
  }
}
/* @media (max-width: 420px) {
  .hero {
    width: 100%;     
    height: 170px;     
    object-fit:cover; 
  }

} */

/* ===== About Page ===== */
/* ABOUT US PAGE */
.about .owner-info {
  max-width: 600px;
}
.owner-info h4 {
  color: #666;
  margin-bottom: 15px;
}

.owner-info p {
  line-height: 1.6;
  color: #333;
}

.about {
   padding: 10px;
    text-align: center;
    background: #eef2f7;
}

.about h2 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #004080;
}

.about p {
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.about ul {
    list-style: disc;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    padding-left: 20px;
}
/* Achievement&certifactes */
.achievements {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.achievements h2 {
  color: #004080;
  margin-bottom: 15px;
  font-size: 28px;
}

.achievements p {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.6;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item img {
  width: 100%;
  max-width: 200px; /* أقصى عرض للصورة */
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}


.gallery-item img:hover {
  transform: scale(1.05);
}

/* ===== Courses Section ===== */

.courses { 
  text-align: center; 
  background: #fff;
 } 
 .courses h2 {
  font-size: 32px; 
  color: #0b1a3b; 
  margin: 10px;
} 
 .course-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 25px;
  align-items: stretch; 
  padding: 40px 20px; 
} 
/* .course-card .btn {
   display: inline-flex; 
   align-items: center; 
   justify-content: center;
   margin: 0; 
   min-width: 130px;
}  */
.course-card {
   background:#0c1b3d; 
   padding: 20px; 
   border-radius: 10px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s, box-shadow 0.3s; 
   text-align: center; 
   display:flex; 
   flex-direction: column; 
   justify-content: flex-start; 
   max-height: 600px; gap: 3px; 
} 
.course-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
 } 
 .course-card img { 
  width: 100%; 
  height: 300px; /* خليه ثابت عشان الصور تبقى قد بعض */ 
  object-fit:cover; /* يخلي الصورة ما تتشوهش */ 
  border-radius: 8px; 
  margin-bottom: 15px; 
} 
.course-card h3 { 
  margin: 10px 0; 
  color: #fff;
   font-size: 19px; 
} 
.course-card p { 
  font-size: 15px; 
  color: #fff;
 }
 .courses {
  padding: 40px 15px;
}
 
.row {
  margin-left: 0;
  margin-right: 0;
}
 
 /* .course-card .btn { 
  display:inline-flex; 
  color: white; 
  padding: 10px 20px;
  text-decoration: none; 
  align-self:center; 
  justify-content: space-between;
  margin: 8px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb); 
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease; 
}  */
/* .course-card .btn:hover { 
  background: #ffcc00; 
  color: #1e3a8a; 
} */
@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    
  }
}

@media (max-width: 576px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
 
}




/* ===== CONTACT PAGE (Navy Gradient + White) ===== */
.contact {
  background: linear-gradient(135deg, #0a1e47, #163a80);
  color: white;
  padding: 40px 20px;
  box-sizing: border-box;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}


/* ===== LEFT SIDE (INFO + FORM) ===== */
.contact-left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info h2 {
  font-size: 30px;
  color: #fff;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #e0eaff;
}

/* ===== INFO CARDS ===== */
.info-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* اتنين في الصف */
  gap: 20px;
}


.info-card {
  /* flex: 1 1 250px; */
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
  /* width: 200px; */
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.info-card i {
  font-size: 30px;
  color: #fff;
  margin-bottom: 10px;
}

.info-card p {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.4;
}

.info-card strong {
  color: #fff;

}


/* ===== CONTACT FORM ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  margin-top: 50px;
  color: white;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #cdd8f3;
}

.contact-form button {
  background-color: #fff;
  color: #0a1e47;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #dbeafe;
}

/* ===== MAP SECTION (RIGHT SIDE) ===== */
.map {
  flex: 1 1 40%;
  display: flex;
  align-items: stretch;
  margin-top: 70px;
}

iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social {
  text-align: center;
  background: linear-gradient(135deg, #163a80, #0a1e47);
  padding: 60px 20px;
  color: white;
  border-radius: 15px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.social h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.social p {
  font-size: 16px;
  color: #dbeafe;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 22px;
  color: white;
  background: rgba(255,255,255,0.15);
  transition: 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.3);
}

/* ===== Specific Colors for Each Platform ===== */
.facebook:hover {
  background: #1877f2;
}

.instagram:hover {
  background: #e1306c;
}

.linkedin:hover {
  background: #0a66c2;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .contact {
    padding: 60px 15px;
  }

  .contact-info h2 {
    font-size: 26px;
  }

  .contact-container {
    gap: 25px;
  }

  iframe {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-left,
  .map {
    flex: 1 1 100%;
    width: 100%;
  }
  .map { margin-top: 20px; }
  .contact-form { padding: 30px; }
  iframe { height: 450px; min-height: 300px; }

}

/* Mobile optimizations */
@media (max-width: 600px) {
  .contact {
    padding: 28px 12px;
  }
  .contact-info h2 { font-size: 22px; }
  .contact-left { gap: 18px; }
  .contact-form {
    padding: 18px;
    margin-top: 20px;
  }
  .contact-form button {
    width: 100%;           /* make submit button easy to tap */
    padding: 12px;
  }
  iframe {
    height: 300px;
    min-height: 250px;
  }
  .info-box {
    grid-template-columns: 1fr;
  }


}

/* Very small phones: tighten spacing */
@media (max-width: 420px) {
  .contact { padding: 20px 10px; }
  .contact-info h2 { font-size: 20px; }
  .contact-form { padding: 14px; }
  .contact-form input,
  .contact-form textarea { padding: 10px; }
  .info-box {
    grid-template-columns: 1fr;
  
}

}


/* ===== Course Details Page ===== */
.course-details {
    padding: 20px 20px;
    background: #f8f8f8;
    max-width: 100%; 
    box-sizing: border-box; 
}

.course-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    justify-content: center;
    align-items: flex-start;
}
.course-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.course-image img {
    width: 100%;
    max-width: 900px; /* اتحكمي في العرض هنا */
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}
.course-info {
    flex: 1 1 400px;
    min-width: 300px;
    width: 100%;
    text-align: center; /* 👈 يخلي كل الكلام في النص */
}

.course-info h1 {
    color: #004080;
    margin-bottom: 15px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 15px;

}

.course-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.course-info ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0 auto 20px;
    display: inline-block; /* يخلي الليست نفسها في النص */
    text-align: left; /* والنص جواها مقروء */
}



.course-info li {
    margin-bottom: 10px;
}
.course-info-flex {
  display: flex;

  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* عشان لو الشاشة صغيرة يرجعوا تحت بعض */
  margin-top: 20px;
  justify-content: center;

}

.course-info-flex .topics,
.course-info-flex .details {
  flex: 1 1 45%; /* كل واحدة تاخد نص تقريبا */
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.course-info-flex h3 {
  color: #1e3a8a;
  margin-bottom: 15px;
}

.course-info-flex ul {
  list-style: disc;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
}
.course-container > img,
.course-container .course-info {
  flex: 1 1 380px;
  min-width: 280px;
}

/* Responsive */
/* On medium screens, reduce image max-height */
@media (max-width: 1200px) {
  .course-container {
    flex-direction: column;
  }
  .course-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
  }
  .course-info {
     width: 100%; 
    }
   
}
@media (max-width: 768px) {
  .course-info-flex {
    flex-direction: column;
  }
}
/* Stack vertically on small screens */
@media (max-width: 900px) {
  .course-container {
    flex-direction: column;
  }
  .course-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
  }
  .course-info {
     width: 100%; 
    }

}
/* Phones: tighter spacing, full-width action buttons */
@media (max-width: 576px) {
  .course-details {
     padding: 28px 12px; 
    }
  .course-container img {
     max-height: 280px; 
    }
  .course-info h1 { 
    font-size: 20px;
   }
  .course-info .btn {
     width: 100%;
      box-sizing: border-box;
     }
}

.course-info .btn {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a, #2563eb); /* Navy → Royal Blue */
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin: 10px 6px;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
}



.course-info .btn:hover {
    background: #ffcc00;
    color: #004080;
}
.back-btn {
    background: #777;
    margin-left: 10px;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.back-btn:hover {
    background: #1e3a8a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}
/* ===== Subtle glow animation ===== */
.course-info .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.5s ease;
}

.course-info .btn:hover::after {
  left: 100%;
}

@media (max-width: 768px) {
  .course-info .btn {
    width: auto;
  }
}


@media (max-width: 320px) {
  .course-info h1 {
    font-size: 22px;
  }
  .course-info .btn {
    font-size: 14px;
    padding: 10px;
  }
}
.course-breakdown {
  padding: 40px;
  background: #f0f4f9;
  margin: 40px auto;
  border-radius: 8px;
  max-width: 1000px;
}

.course-breakdown h2 {
  color: #004080;
  margin-bottom: 20px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.course-table th, .course-table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

.course-table th {
  background-color: #004080;
  color: #fff;
}

.course-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.accordion {
  background-color: #004080;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
  margin-top: 5px;
  border-radius: 5px;
}

.accordion:hover {
  background-color: #003060;
}
/* ===== Course Breakdown Accordion ===== */
.course-breakdown {
  background-color: #f8f9fa;
}

.course-breakdown h2 {
  font-weight: 700;
  margin-bottom: 30px;
}

/* Accordion item */
.course-breakdown .accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Header button */
.course-breakdown .accordion-button {
  background-color: #ffffff;
  color: #0a2540; /* لون رسمي */
  font-weight: 600;
  padding: 18px 20px;
  border-radius: 10px;
}

.course-breakdown .accordion-button:not(.collapsed) {
  background-color: #0a2540;
  color: #fff;
}

/* Remove default focus */
.course-breakdown .accordion-button:focus {
  box-shadow: none;
  border: none;
}

/* Arrow icon */
.course-breakdown .accordion-button::after {
  filter: brightness(0);
}

.course-breakdown .accordion-button:not(.collapsed)::after {
  filter: brightness(100);
}

/* Body */
.course-breakdown .accordion-body {
  background-color: #ffffff;
  color: #444;
  line-height: 1.7;
  padding: 20px;
  border-top: 1px solid #eee;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .course-breakdown .accordion-button {
    font-size: 14px;
    padding: 15px;
  }

  .course-breakdown .accordion-body {
    font-size: 14px;
  }
}
.course-img {
  max-height: 300px;
  
  object-fit: cover;   /* يخلي الصورة مظبوطة مش ممدودة */
}




.panel {
  padding: 0 15px;
  display: none;
  background-color: #f9f9f9;
  overflow: hidden;
  border-left: 3px solid #004080;
  border-right: 3px solid #004080;
  border-bottom: 3px solid #004080;
  margin-bottom: 10px;
}

/* INFO PAGE */
.info-section {
  padding: 30px;
  background: linear-gradient(135deg, #0a1e47, #163a80);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-radius: 10px;
  color: white;
}
/* زرار أول في الكاردات (مستقبلياً لو ليكي كارد كورسات) */
.info-section .btn:first-of-type {
  margin-top: auto;
}

/* Form Styling */
.info-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


/* Inputs + Textarea */
.info-section form input,
.info-section form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.info-section form input::placeholder,
.info-section form textarea::placeholder {
  color: #ccc;
}

.info-section form input:focus,
.info-section form textarea:focus {
  outline: none;
  border-color: white;
}
/* White Form Frame */
.info-section .container {
  max-width: 700px;
  background: linear-gradient(135deg, #0a1e47, #163a80);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #000;
  margin-top: -40px;
}

/* Adjust text inside form */
.info-section p,
.info-section h1,
.info-section label {
  color: white;
}

/* Button */
.info-section form button {
  background-color: rgb(3, 4, 52) !important;
  color: rgb(251, 251, 251) !important;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.info-section form button:hover {
  background-color: transparent !important;
  color: white !important;
  border: 1px solid white;
}
/* ===== Responsive Design ===== */
@media (max-width: 1024px) {

  .info-section .container {
    padding: 2px;
    width: 95%;
  }
}

@media (max-width: 768px) {
  .info-section .container {
    padding: 2px;
    width: 98%;
  }
}

@media (max-width: 480px) {

  .info-section h1 {
    font-size: 22px;
  }
  .info-section p {
    font-size: 16px;
  }
  .info-section .container {
    padding: 2px;
    width: 100%;
  }
  .info-section form input,
  .info-section form textarea {
    padding: 10px;
    font-size: 15px;
  }
  .info-section form button {
    font-size: 16px;
    padding: 10px;
  }
}

/* ===== SERVICES PAGE ===== */
.services-page {
  background: #fff;
  color: #0a1e47;
  padding: 10px;
}

.services-page .container {
  max-width: 1100px;
  margin: 0 auto;
  
}

.page-title {
  text-align: center;
  font-size: 36px;
  color: #0a1e47;
  margin-bottom: 20px;
}

.intro-text {
  text-align: center;
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
  line-height: 1.6;
}

.service-section {
  background: #f9f9ff;
  border-left: 5px solid #0a1e47;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-section h2 {
  color: #0a1e47;
  margin-bottom: 15px;
}

.service-section p {
  color: #333;
  line-height: 1.7;
}

.service-list {
  margin-top: 10px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.service-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.service-section .btn {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.service-section .btn:hover {
  background: #ffcc00;
  color: #0a1e47;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }
  .service-section {
    padding: 20px;
  }

}

/* ===== CLIENTS & PARTNERS SECTION ===== */
.clients {
  background: #f8faff;
  padding: 70px 20px;
  text-align: center;
}

.clients h2 {
  color: #0a1e47;
  font-size: 30px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.clients h2 i {
  color: #2563eb;
}

.clients p {
  color: #333;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.client-logos img {
  width: 140px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .client-logos img {
    width: 100px;
  }
}


/* END OF INDEX PAGE */
/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, #0b1a3b, #1e3a8a);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  font-size: 15px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer h3, .footer h4 {
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: white;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer .social-icons a {
    color: white;
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer .footer-bottom {
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right, .footer-center, .footer-left {
        margin-bottom: 20px;
    }
}


/* Body background */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9ff;
  margin: 0;
  padding: 0;
}

/* Form container */
.form-container {
  background: #fff;
  color: #0a1e47;
  padding: 40px 30px;
  max-width: 500px;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Form title */
.form-container h2 {
  text-align: center;
  font-size: 32px;
  color: #0a1e47;
  margin-bottom: 25px;
}

/* Labels */
form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #0a1e47;
  font-weight: bold;
}

/* Inputs */
form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Submit button */
form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
form button:hover {
  background: #ffcc00;
  color: #0a1e47;
}

/* لون الكارت */
.card {
  background-color: #0b1f3a; /* Navy Blue */
  color: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  margin-top: 12px;

}
@media (max-width: 576px) {
  .card {
    margin-bottom: 25px;
  }
}


/* Hover effect */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* توحيد مقاس الصور */
.card-img-top {
  height: 220px;        /* نفس الارتفاع لكل الصور */
  object-fit: cover;   /* يقص الصورة بدون تشويه */
}

/* النص */
.card-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  opacity: 0.9;
}

/* الأزرار */
.card .btn {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border: none;
  font-size: 14px;
}

.card .btn:hover {
  opacity: 0.9;
  background: #ffcc00; 
  color: #1e3a8a;
  
}
.card-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;        /* مسافة بين الزرارين */
  margin-top: auto;
}

.card-buttons .btn {
  flex: 3;          /* يخليهم نفس العرض */
  max-width: 140px;
  text-align: center;
}
.card-body {
    display: flex;
    flex-direction: column;
}


/* Banner Container */
.banner {
  position: relative;
  width: 100%;
  height: 400px; /* ممكن تغيري حسب البانر */
  overflow: hidden;
}

/* Video Background */
.banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* Content above video */
.banner-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/* Optional: Overlay for better text readability */
.banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* شفافية */
  z-index: 0;
}

/* Button style */
.banner-content .btn {
  display: inline-block;
  background-color: #2563EB;
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
}
.banner-content .btn:hover {
  background-color: #1E3A8A;
}

@media (max-width: 576px) {
  .banner {
    height: 50vh;
  }
  .banner-content h1 {
    font-size: 1.8rem;
  }
  .banner-content p {
    font-size: 1rem;
  }
  .banner-content .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.panel:empty {
  display: none !important;
}
