










/* ===== HOME SLIDER (Merged Hero) ===== */
.home-slider {
  width: 100%;
  margin-bottom: 60px;
}

.slider {
  position: relative;
  width: 100%;
  margin: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Image & Video */
.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 6s ease;
}

.slide.active img,
.slide.active video {
  transform: scale(1.05);
}

/* Dark Overlay */
.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* ===== HERO CONTENT (Now inside slider) ===== */
.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffb703;
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(18, 103, 130, 0.85);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.arrow:hover {
  background: #126782;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 576px) {
  .slider {
    aspect-ratio: 4 / 3;
  }

  .arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


/*---------------- ABOUT SECTION ----------------*/
.about {
  width: 100%;
  background: #f8fafc;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-family: "Inter", sans-serif;
}

.about-container {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);

  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.about-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #023047;
  margin-bottom: 0.75rem;
}

.about-content p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: #126782;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffb703;
  color: #000;

  padding: 0.5rem 1.25rem;
  border: 1px solid #219ebc;
  border-radius: 0.5rem;

  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.2);
}

@media (max-width: 48em) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content p {
    margin-inline: auto;
  }
}

/*---------------- ACADEMICS ----------------*/
.academics {
  width: 100%;
  background: #f8fafc;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.academics-container {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.academics-header h2 {
  font-size: clamp(2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #023047;
}

.academics-header .subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: #219ebc;
  font-weight: 500;
}

.academics-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-block: clamp(2rem, 5vw, 3rem);
}

.academic-card {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.academic-card img {
  width: 3rem;
  height: auto;
  margin-bottom: 0.75rem;
}

.academic-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #023047;
  margin-bottom: 0.5rem;
}

.academic-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #126782;
}

.academic-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.academics-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffb703;
  color: #023047;

  padding: 0.55rem 1.4rem;
  border-radius: 0.5rem;

  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.academics-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.25);
}

@media (max-width: 64em) {
  .academics-cards {
    grid-template-columns: 1fr;
  }
}





/* ================= Facilities Section ================= */

.facilities {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #f8fafc;
}

.facilities h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #023047;
}

.facilities .subtitle {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #219ebc;
  font-weight: 500;
}

/* Container */
.facilities-container {
  max-width: 1200px;
  margin: auto;
}

/* Grid */
.facility-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Each Item */
.facility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card Container */
.facility-card {
  width: 100%;
  height: 260px;
  perspective: 1000px;
}

/* Inner Flip */
.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.facility-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front */
.card-front {
  background-size: cover;
  background-position: center;
}

/* Dark Overlay */
.card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Back */
.card-back {
  background: #023047;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  transform: rotateY(180deg);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 20px;
}

/* Title */
.facility-title {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #023047;
}

/* Button */
.facilities-btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  background: #ffb703;
  color: #023047;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.facilities-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Images */
.smart { background-image: url("../images/others/classroom1.JPG"); }
.computer { background-image: url("../images/others/computer_lab.JPG"); }
.labs { background-image: url("../images/others/lab.JPG"); }
.library { background-image: url("../images/library.jpg"); }
.sports { background-image: url("../images/others/sports.JPG"); }
.transport { background-image: url("../images/others/transport.JPG"); }
.safety { background-image: url("../images/safety.jpg"); }

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

@media (max-width: 1024px) {
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-card {
    height: 220px;
  }

  .card-back {
    font-size: 0.95rem;
  }
}





/*----------------------- Why Choose Us -----------------------*/
.why-choose {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #f8fafc;
}

.why-choose h2 {
  font-size: clamp(2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #023047;
}

.why-choose .subtitle {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  color: #219ebc;
  font-weight: 500;
}

.choose-grid {
  margin-top: 3rem;
  max-width: 48rem;
  margin-inline: auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.choose-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;

  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.choose-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.choose-card img {
  width: 3rem;
  height: auto;
  margin-bottom: 1rem;
}

.choose-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #023047;
  margin-bottom: 0.4rem;
}

.choose-card p {
  font-size: 0.875rem;
  color: #126782;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 48em) {
  .choose-grid {
    grid-template-columns: 1fr;
  }
}

/*---------------------- Gallery Section ----------------------*/
.gallery {
  padding: 4rem 1.5rem;
  text-align: center;
}

.gallery h2 {
  font-size: clamp(2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #023047;
}

.gallery .subtitle {
  margin-top: 0.3rem;
  font-size: 1.25rem;
  color: #219ebc;
  font-weight: 500;
}

.gallery .desc {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 400;
  color: #126782;
}

.gallery-container {
  width: 90%;
  margin-inline: auto;
  margin-top: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-block: clamp(2rem, 5vw, 3rem);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;

  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.gallery-btn {
  margin-top: 2.5rem;
  padding: 0.55rem 1.4rem;

  text-decoration: none;

  background: #ffb703;
  color: #023047;
  border: none;
  border-radius: 0.5rem;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-btn:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.25);
}

@media (max-width: 64em) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 40em) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 12rem;
  }
}

/*------------ Contact Section ------------*/
/* .contact {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #f8fafc;
}

.contact h2 {
  font-size: clamp(2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #023047;
}

.contact .subtitle {
  margin-top: 0.3rem;
  font-size: 1.25rem;
  color: #219ebc;
  font-weight: 500;
}

.contact-box {
  max-width: 42rem;
  margin: 3rem auto 0;

  padding: 2.5rem 2rem;
  background: #ffffff;

  border: 1px solid #000000;
  border-radius: 0.8rem;
}

.contact-box h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #023047;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;

  font-family: "Inter", sans-serif;
  font-size: 0.9rem;

  border-radius: 0.3rem;
  border: 0.08rem solid #666;
  outline: none;
}

.contact-form textarea {
  min-height: 6rem;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1e90ff;
}

.contact-form button {
  margin-top: 1.5rem;
  align-self: center;

  padding: 0.55rem 2.2rem;

  background: #ffb703;
  color: #023047;

  border: none;
  border-radius: 0.5rem;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.25);
}

@media (max-width: 40em) {
  .contact-box {
    padding: 2rem 1.5rem;
  }
} */






/* ==================================== */



