   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Cairo", sans-serif;
    scroll-behavior: smooth;
  }

  body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.8;
    overflow-x: hidden;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    background: linear-gradient(90deg, #1f2c9c, #2f80ed);
    padding: 15px 25px;
    z-index: 1030;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .navbar .nav-link {
    font-weight: 700;
    color: #ffffff !important;
    margin: 0px;
    transition: 0.3s ease;
  }

  .navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }


  .btnn {
    background-color: rgb(241, 240, 243);
    color: #3712bd;
    border: 1px solid rgb(67, 67, 248);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 5px;
    transition: 0.3s ease;
    text-decoration: none;
    font-weight: 500;

  }
  .btnn:hover {
    background: #3f22e0;
    transform: scale(1.05);
    color: white;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    text-align: center;
    padding: 120px 20px;
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('/main_images/images/كيف تصبح مهندس برمجيات ناجح.webp');
    background-repeat: no-repeat;
    background-size: cover;           /* تغطي السكشن كله بدون تمدد غير متناسب */
    background-position: center center;
    image-rendering: auto;            /* يحافظ على جودة الصورة */
  }

  .hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2f80ed;
  }

  .hero p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 15px auto 30px;
  }

  .hero .btn-main {
    background: #2f80ed;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: 600;
  }
  .hero .btn-main:hover {
    background: #1e40af;
    transform: scale(1.05);
  }
  .video-container {
    padding: 40px;
    display: flex;
    justify-content: center;
    background-color: #f4f7f6;
}

.video-card {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    /* حدود ومزيج ألوان طبي (أزرق وأخضر) */
    border: 4px solid #28a745;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

video {
    width: 100%;
    display: block;
    outline: none;
}

/* تنسيق بسيط عند التحويم */
.video-card:hover {
    border-color: #007bff;
    transition: border-color 0.4s ease;
}

  /* ===== COURSE SECTION ===== */
  .section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    color: #2f80ed;
    margin-bottom: 40px;
    position: relative;
  }

  .section-title::after {
    content: "";
    width: 70px;
    height: 3px;
    background:#1f2c9c;
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
  }


  /* ==== تصميم بطاقات الكورسات فقط ==== */
.course-card {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.4s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.course-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==== تأثير اللمعة المتحركة ==== */
.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.course-card:hover::before {
  left: 125%;
}

/* ==== صورة الكورس ==== */
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.4s ease;
}

.course-card:hover img {
  filter: brightness(1.08);
}

/* ==== المحتوى ==== */
.course-card .card-body {
  padding: 20px;
  text-align: center;
  background: #fff;
}

.course-card h5 {
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.course-card p {
  color: #555;
  font-size: 15px;
  min-height: 60px;
}

/* ==== الأزرار داخل الكورس ==== */
.course-card button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 8px;
  margin-right: 8px;
}

.course-card button:first-of-type {
  margin-bottom: 10px; /* مسافة بين الزرين */
}

.course-card button.btn-primary {
  background-color: #1e3a8a;
  color: #fff;
  border: none;
}

.course-card button.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.course-card button.btn-outline-primary {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.course-card button.btn-outline-primary:hover {
  background-color: #2563eb;
  color: #fff;
}


/* ==== سكشن الشهادات ==== */
.certificates {
  background-color: #f9fafb;
}

.certificates h2 {
  color: #1d4ed8;
  font-weight: 700;
}

.certificates p {
  color: #555;
  font-size: 16px;
  margin-bottom: 30px;
}

.certificate-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.certificate-card h5 {
  color: #1e3a8a;
  font-weight: 600;
  margin-bottom: 8px;
}

.certificate-card p {
  color: #666;
  font-size: 15px;
  min-height: 70px;
}

.certificate-card button {
  background-color: #1e3a8a;
  color: #fff;
  border: none;
  transition: 0.3s ease;
}

.certificate-card button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
}

/* ==== تأثير اللمعة على صور الشهادات ==== */
.certificate-card img {
  transition: all 0.5s ease;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

.certificate-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
  filter: brightness(1.1);
}

/* تأثير لمعة تدريجي (Glow Animation) */
.certificate-card img::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
  transform: skewX(-25deg);
}

.certificate-card img:hover::after {
  animation: shine 0.8s forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}


  /* ===== TRAINERS ===== */
  .trainer-card {
    background: #f9fafc;
    border-radius: 15px;
    text-align: center;
    padding: 25px 15px;
    transition: 0.3s ease;
  }
  .trainer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  }
  .trainer-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #2f80ed;
  }
  .trainer-card h6 {
    color: #1f2c9c;
    font-weight: 600;
  }

  .instructor-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #2f80ed;
  }


/* ======== Reset بسيط ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}



/* ===== Body & Section ===== */
body {
  background-color: #ffffff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.track-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.big-card {
  max-width: 1200px;
  width: 100%;
  background-color: #f5f7ff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
}

/* ===== Tracks Container ===== */
.tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ===== Track Cards ===== */
.track-card {
  flex: 1 1 200px;
  max-width: 250px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* ===== Add icon via CSS before ===== */
.track-card::before {
  content: "⭐"; /* أيقونة افتراضية، ممكن تختار emoji مختلف لكل track عبر nth-child */
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #003366;
}

/* ===== Card Text ===== */
.track-card h3 {
  margin: 10px 0 5px;
  color: #000000;
}

.track-card p {
  color: #333333;
  font-size: 0.85rem;
}

/* ===== Hover Animation ===== */
.track-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #0059b3;
  background-color: #d9e6ff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.track-card:hover::before {
  transform: rotate(10deg) scale(1.2);
  color: #0059b3;
}

/* ===== Highlight selected using :focus-within hack ===== */
.track-card:focus-within,
.track-card:active {
  border-color: #003366;
  background-color: #003366;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.track-card:focus-within h3,
.track-card:active h3,
.track-card:focus-within p,
.track-card:active p {
  color: #ffffff;
}

.track-card:focus-within::before,
.track-card:active::before {
  transform: rotate(360deg) scale(1.3);
  color: #ffffff;
}

/* ===== Exam Button ===== */
#examBtn {
  margin-top: 30px;
  padding: 15px 35px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background-color: #003366;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#examBtn:disabled {
  background-color: #b3c6e6;
  cursor: not-allowed;
}

#examBtn:hover:not(:disabled) {
  background-color: #0059b3;
  transform: translateY(-3px);
}

/* ===== Optional: different icons for each card without changing HTML ===== */
.tracks .track-card:nth-child(1)::before { content: "💻"; }
.tracks .track-card:nth-child(2)::before { content: "🗄️"; }
.tracks .track-card:nth-child(3)::before { content: "🔗"; }
.tracks .track-card:nth-child(4)::before { content: "📱"; }
.tracks .track-card:nth-child(5)::before { content: "🌐"; }
.tracks .track-card:nth-child(6)::before { content: "📊"; }
.tracks .track-card:nth-child(7)::before { content: "🛡️"; }
.tracks .track-card:nth-child(8)::before { content: "🤖"; }



  .certificate-card {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    transition: 0.3s ease;
  }

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

  .certificate-card img {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
  }



  /* ===== Testimonials Section ===== */
.testimonials {
  background: linear-gradient(135deg, #f8fbff, #eaf3ff);
  padding: 80px 0;
  text-align: center;
}

.testimonials .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 50px;
  position: relative;
}

.testimonials .section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #0d6efd;
  display: block;
  margin: 15px auto 0;
  border-radius: 5px;
}

/* ===== Card Style ===== */
.testimonial-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* quotation effect */
.testimonial-card::before {
  content: "❝";
  font-size: 60px;
  position: absolute;
  top: -10px;
  left: 15px;
  color: rgba(13, 110, 253, 0.08);
  font-weight: bold;
}

.testimonial-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card h6 {
  font-weight: 600;
  color: #0d6efd;
  font-size: 0.95rem;
}

/* ===== Hover Effect ===== */
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.18);
}


/* ==== الأسئلة الشائعة ==== */
.faq {
  background-color: #f9fafc;
}

.faq h2 {
  color: #1e3a8a;
  font-weight: 700;
}

.accordion-button {
  background-color: #fff;
  color: #1e3a8a;
  font-weight: 500;
  box-shadow: none !important;
  transition: background 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #e0e7ff;
  color: #1e3a8a;
}

.accordion-body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}


/* ==== تواصل معنا ==== */
.contact {
  background-color: #eef2ff;
}

.contact h2 {
  color: #1e3a8a;
  font-weight: 700;
}

.contact p {
  color: #555;
  font-size: 16px;
}

#contactForm {
  border-radius: 15px;
  background-color: #fff;
}

#contactForm label {
  color: #1e3a8a;
  font-weight: 500;
}

#contactForm .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
}

#contactForm .btn-primary {
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

  /* ===== FOOTER ===== */
  .academia-footer {
    background: linear-gradient(90deg, #1f2c9c, #2f80ed);
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: "Cairo", "Poppins", sans-serif;
  }

  .academia-footer .brand-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  .academia-footer .footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #fefeff !important;
  }

  .academia-footer .footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 10px;
  }

  .academia-footer .footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background:  #ffffff;
    border-radius: 3px;
  }

  .academia-footer .footer-links a {
    color:  #ffffff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
  }

  .academia-footer .footer-links a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
  }

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

  .academia-footer .footer-links a:hover i {
    transform: translateX(-5px);
  }

  /* Social Icons */
  .academia-footer .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: #ced3d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
  }

  .academia-footer .social-icon:hover {
    background: linear-gradient(135deg, #151a4b 0%, #123564 100%);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.3);
    border-color: transparent;
  }

  /* Support Buttons */
  .academia-footer .btn-premium-support {
    background: linear-gradient(90deg, #1f2c9c, #2f80ed);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 44, 156, 0.2);
    text-decoration: none;
  }

  .academia-footer .btn-premium-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 44, 156, 0.4);
    filter: brightness(1.1);
    color: #ffffff;
  }

  .academia-footer .btn-whatsapp-support {
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    text-decoration: none;
  }

  .academia-footer .btn-whatsapp-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
    color: #ffffff;
  }

  .academia-footer .footer-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .academia-footer .footer-bottom {
    font-size: 0.85rem;
  }

  .academia-footer .footer-policies a {
    transition: color 0.3s ease;
  }

  .academia-footer .footer-policies a:hover {
    color: #ffffff !important;
  }

  /* ======== Responsive ======== */

/* الهواتف الصغيرة: 320px - 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .navbar {
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }
  .login-box {
    padding: 20px 15px;
    width: 90%;
  }
}

/* الهواتف المتوسطة: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .navbar {
    padding: 12px 20px;
  }
  .login-box {
    padding: 25px 20px;
    width: 80%;
  }
}

/* التابلت: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .navbar {
    padding: 15px 30px;
  }
  .login-box {
    padding: 30px 25px;
    width: 70%;
  }
}

/* اللابتوب/سطح المكتب: 1025px+ */
@media (min-width: 1025px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .navbar {
    padding: 15px 40px;
  }
  .login-box {
    padding: 40px 30px;
    width: 50%;
  }
}
