/* ==========================
   Base Styles
========================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f9fafc;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================
   Header / Navbar
========================== */
.header {
  background: #003366;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h4 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

/* Navbar */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #ffcc00;
}

/* Dropdown */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropbtn {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #003366;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  flex-direction: column;
}

.nav-links .dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links .dropdown-content li a:hover {
  background: #002244;
}

/* Show dropdown on hover (desktop) */
.nav-links .dropdown:hover .dropdown-content {
  display: flex;
}

/* Mobile: show dropdown when active */
.nav-links .dropdown.active .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* ==========================
   Hero / Carousel
========================== */
.hero {
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  height: 70vh;
  min-height: 350px;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit:fill;
  filter: brightness(0.55);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 600px;
}

.hero-text h2 {
  color: yellow;
  font-size: 25px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn.primary {
  background: #ff6600;
  color: #fff;
}

.btn.primary:hover {
  background: #e65c00;
}

.btn.secondary {
  background: #003366;
  color: #fff;
}

.btn.secondary:hover {
  background: #002244;
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50%;
  z-index: 5;
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

/* Indicators */
.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
}

.indicator.active {
  background: #fff;
}

/* ==========================
   About Section
========================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 25px 0;
}

.about img {
  width: 100%;
  border-radius: 10px;
}

/* ==========================
   Courses Section
========================== */
.courses {
  background: #eef4ff;
  padding: 60px 0;
  text-align: center;
}

.courses h2 {
  margin-bottom: 40px;
  color: #003366;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.course-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
}

/* ==========================
   Notices Section
========================== */
.notice ul {
  list-style: none;
  padding: 0;
}

.notice li {
  background: #fff3cd;
  margin: 10px 0;
  padding: 12px;
  border-radius: 5px;
  font-weight: 500;
}

/* ==========================
   Footer
========================== */
footer {
  background: #111;
  color: #ccc;
  margin-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.footer-container h3,
.footer-container h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffcc00;
}

.footer-bottom {
  background: #000;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  border-top: 1px solid #333;
}

.contact {
  padding: 10px 0;
  background: #f2f6fc;
}
.contact .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.contact h1 {
  color: #003366;
  font-size: 36px;
  margin-bottom: 10px;
}
.contact p {
  color: #555;
  margin-bottom: 40px;
  font-size: 16px;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

/* Contact Info */
.contact-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}
.contact-info h3 {
  color: #003366;
  margin-bottom: 15px;
}
.contact-info p {
  margin: 10px 0;
  font-size: 15px;
  color: #333;
}
.social-links {
  margin-top: 15px;
}
.social-links a {
  font-size: 22px;
  margin-right: 10px;
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}
.contact-form label {
  font-weight: 500;
  color: #003366;
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 15px;
  transition: border 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #003366;
  outline: none;
}
.contact-form button {
  background: #003366;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #0055aa;
}

 .gallery-item img {
    cursor: pointer;
  }
  .gallery-item img:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
  }


/* ==========================
   Responsive Styles
========================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    padding: 15px;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    left: 5%;
    right: 5%;
    text-align: center;
    transform: translateY(-50%);
  }

  .hero-text h2 {
    font-size: 26px;
  }

  .carousel {
    height: 50vh;
    min-height: 250px;
  }

  /* Mobile dropdown adjustments */
  .nav-links .dropdown-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 6px;
  }
}
/* Mobile dropdown smooth animation */
@media (max-width: 991px) {
  .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 15px; /* collapsed state */
  }

  .dropdown.active .dropdown-content {
    max-height: 500px; /* enough height for submenu */
    padding: 10px 15px;
  }

  /* Dropdown links styling */
  .dropdown-content a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #fff;
  }
}


/* Courses Section */
.courses {
  padding: 70px 0;
  background: #eef4ff;
}
.courses h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 40px;
  font-size: 32px;
}
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.course-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}
.course-item:hover {
  transform: translateY(-5px);
}
.course-item span {
  display: inline-block;
  background: #b22222;
  color: #00faff;
  font-weight: bold;
  font-size: 22px;
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 15px;
}
.course-item p {
  font-size: 15px;
  font-weight: 500;
  color: #444;
}
/* Franchise Page Styling */
/* ------------------------------ */
/* 🔹 Hero Section                */
/* ------------------------------ */
.small-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.small-hero img.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: brightness(70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* ------------------------------ */
/* 🔹 Franchise Section           */
/* ------------------------------ */
.franchise h2 {
  margin-top: 40px;
  font-size: 28px;
}

.franchise .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.franchise .card {
  background: #f9fafb;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ------------------------------ */
/* 🔹 Franchise Form Section      */
/* ------------------------------ */
.franchise-form {
  background: #f1f5f9;
  padding: 50px 0;
  margin-top: 50px;
}

.franchise-form .form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.franchise-form .form-group {
  margin-bottom: 20px;
}

.franchise-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.franchise-form input,
.franchise-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

