/* Reset and fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* NAVIGATION */
.nav-header {
  background-color: navy;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.main-nav ul li a:hover {
  text-decoration: underline;
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  background-color: #fef6f6;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 2.5rem;
  color: crimson;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.cta-button {
  padding: 0.8rem 1.5rem;
  background-color: navy;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}
.cta-button:hover {
  background-color: crimson;
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-image img {
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
}
/*About section of the about.html*/
.about {
  max-height: 240px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  background-color: #ccc;

}
.steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10%;
}
.step h2 {
  margin-bottom: 10px;
  color: #007BFF;
}

.step {
  background-color: #f4f8ff;
  padding: 20px;
  border-radius: 10px;
  border-left: 6px solid #f52719;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 90%;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #f4f4f4;
}
.feature-box {
  background: white;
  padding: 1.5rem;
  border-left: 4px solid crimson;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.body{
  width: 90px;
  height: 90px;
}
.feature-box:hover {
  transform: scale(1.03);
}

/*Core Values Section of about.html*/
.core-container {
  padding: 50px 20px;
  text-align: center;
}
.core{
    display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.core-container h2{
  font-family: 'Times New Roman', Times, serif;
  font-size: 38px;
  margin-bottom: 20px;
  color: #333;
}
.values {
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}
.values img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
}
.values h3 {
  margin-bottom: 5px;
  color: #007BFF;
  font-size: 20px;
}
.why {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  background-color: #e08b8b;
  width: 80%;
  margin-left: 100px;
}
.why h2 {
  font-size: 42px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
/* FOOTER */

.school-footer {
  background: #002B5B;
  color: white;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #C21807;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #FFA500;
}

.footer-section p {
  margin: 0.6rem 0;
  display: flex;
  align-items: center;
}

.red-icon {
  color: #C21807;
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.footer-bottom .privacy {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}

.footer-bottom .privacy:hover {
  color: #FFA500;
}

.socials {
  margin-bottom: 0.5rem;
}

.socials a {
  margin: 0 0.5rem;
  text-decoration: none;
}

.socials i {
  font-size: 1.5rem;
}


footer {
  background-color: navy;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
footer a {
  color: crimson;
  text-decoration: none;
}
/* === Mobile Responsive Fix === */
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
    margin: 0 auto;
    padding: 20px 10px;
  }

  .container h1 {
    font-size: 28px;
    margin-left: 0;
    text-align: center;
  }

  .container p {
    font-size: 18px;
    margin-left: 0;
    text-align: center;
  }

  .cbc {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .subjects-container {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px 0;
  }

  .subject {
    width: 90%;
    max-width: 300px;
    height: auto;
  }

  .subject img {
    width: 100%;
    height: auto;
  }

  .extra-curricular {
    width: 95%;
    padding: 20px 10px;
  }

  .extra-container {
    flex-direction: column;
    align-items: center;
  }

  .extra {
    width: 90%;
    max-width: 300px;
    padding: 20px;
  }

  .extra img {
    width: 100%;
    height: auto;
  }

  .levels {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .level {
    width: 90%;
    margin: 1rem auto;
  }

  .overlay h1 {
    font-size: 2rem;
  }

  .overlay p {
    font-size: 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    min-width: unset;
    width: 90%;
    text-align: center;
  }

  iframe {
    width: 100%;
    height: 200px;
  }
}
