/* ============ Global Styles ============ */
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: #1b263b;
  font-family: 'Segoe UI', sans-serif;
}

/*=== Header Section ===*/
.main-header {
  height: 60px;
  background: linear-gradient(135deg, #003366, #005580);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);

}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-title h1 {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding-bottom: 5px;
}

.logo-title h1 span {
  color: #00bcd4;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: #00bcd4;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00bcd4;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .nav-links a {
    margin: 10px 15px 0 0;
  }
}

/* ============ Hero Section ============ */
.hero {
  height: 470px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('./assets/images/background-image.png') no-repeat center/cover;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  margin-top: 250px;
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  background-color: #00bcd4;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s ease;
  font-size: 1rem;
}

.hero-btn:hover {
  background-color: #019ab2;
  transform: scale(1.05);
}

.hero-btn.alt {
  background-color: transparent;
  border: 2px solid #00bcd4;
  color: #00bcd4;
}

.hero-btn.alt:hover {
  background-color: #00bcd4;
  color: white;
}

.syllabus-section {
  text-align: center;
}

/* ============ Section Cards (Syllaabus) ============ */
.syllabus-section {
  text-align: center;
  color: white;
}

.classes-heading {
  text-align: center;
  margin-top: 60px;
  color: #00bcd4;
}

.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 80px;
}

.section {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section ul {
  text-align: left;
  padding-left: 20px;
  margin: 10px 0;
}

.section img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.section h3 {
  color: #003366;
}

.section p {
  line-height: 1.2;
}

.section button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.section button:hover {
  background-color: #005599;
}

/* ============ About & Testimonials ============ */
.about {
  background: #1b263b;
  padding: 40px 20px;
  text-align: center;
}

.about h2 {
  color: #00bcd4;
  margin-bottom: 20px;
  font-size: 30px;
}

/* ===== Mission Section ====== */
.mission-box {
  background-color: #ffffff;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.mission-box:hover {
  transform: translateY(-5px);
}

.mission-box img {
  margin-top: 50px;
  width: 80px;
  height: auto;
  border-radius: 10px;
}

.mission-content {
  flex: 1;
  min-width: 260px;
  line-height: 2;
}

.mission-content h3 {
  color: #003366;
  margin-top: 0px;
  margin-right: 130px;
  font-size: 22px;
}

/* ==== Why Choose Us ==== */
.why-choose {
  padding: 40px 100px;
}

.why-heading {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #00bcd4;
}

.why-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.why-card {
  background-color: white;
  width: 260px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.why-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.why-card h4 {
  margin-bottom: 8px;
  color: #003366;
  font-size: 18px;
}

.why-card p {
  line-height: 1.2;
}

/*=== Testimonials Section ===*/
.testimonial-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  padding: 20px 110px;
}

.testimonial-box {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 250px;
  transition: transform 0.3s;
}

.testimonial-box:hover {
  transform: scale(1.05);
}

.testimonial-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.rating {
  margin-top: 10px;
  font-size: 1.2rem;
  color: gold;
}


/*=== Footer section ===*/
.footer {
  background-color: #002244;
  color: white;
  padding: 20px 20px 10px;

}

.footer-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 20px;
}

.footer-block {
  max-width: 255px;
}

.footer-contact-heading,
.footer-mathverse-heading,
.footer-nav-heading {
  color: #00bcd4;
}

.footer-block a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 5px 0;
}

.footer-block a:hover {
  color: #00bcd4;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}


/* ============ Responsive Design ============ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .section {
    width: 90%;
  }

  .contact-form {
    width: 90%;
  }
}