/* index.css - styles unique to this page. Shared nav, footer, reset and colours are in base.css. */

/* ============================================
  HERO BANNER (top image + heading)
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fdfdfd;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 1000px;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 30px;
}

.hero-content p {
  font-size: 1.1rem;
  font-weight: 100;
  line-height: 28px;
  margin-bottom: 40px;
}

/* ============================================
   Mobile responsiveness for hero section
   ============================================ */

@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    top: 50%;
    max-width: 100%;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 0.67rem;
    line-height: 20px;
    margin-bottom: 40px;
  }
}

/*cta-btn*/

/* Base Button Styles */

.cta-btn .btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

/* Primary Button: Apply Now */

.cta-btn .btn:first-child {
  background-color: var(--brown-mid);
  color: #ffffff;
}

/* Secondary Button: Learn More */

.cta-btn .btn:last-child {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #f7f7f7;
}

.cta-btn .btn:last-child:hover {
  color: var(--brown);
  border-color: var(--brown);
  background-color: #f8fafc;
  transform: translateY(-2px);
}

/* ============================================
   STATS BAR (4 cards)
   ============================================ */

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--brown);
  border: 1px solid #fff8f8;
  border-radius: 14px;
  margin: 0 20px clamp(20px, 6vw, 60px);
  overflow: hidden;
  color: #ffffff;
}

.stat-item {
  flex: 1 1 140px;
  padding: 18px 8px;
  text-align: center;
  border-right: 1px solid var(--cream);
}

.stat-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #ffffff;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .stat-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--cream);
  }

  .stat-item {
    padding: 12px 4px;
  }

  .stat-number {
    font-size: 16px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--cream);
  }
}

/* ABOUT SECTION */

.about-text {
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  color: var(--brown);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center; /* Centers items vertically */
  padding: 20px;
  max-width: 1200px;
  justify-content: center;
  margin-left: 150px;
}

.about-img-wrapper {
  width: 100%;
}

.about-img {
  width: 100%;
  height: 90%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.about-content {
  width: 100%;
}

.about-content p {
  margin-bottom: 15px;
  text-align: justify;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.cta-btn1 .btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-btn1 .btn:first-child {
  background-color: var(--brown-mid);
  color: #ffffff;
}

.cta-btn1 .btn:first-child:hover {
  color: var(--brown);
  border-color: var(--brown);
  background-color: var(--brown-hover);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .about-text {
    font-size: 18px;
  }

  .about {
    display: grid;
    grid-template-columns: 2, 1fr;
    max-width: 560px;
    margin-left: 0px;
  }

  .cta-btn1 .btn {
    padding: 8px;
    font-size: 14px;
  }
}

/* Container layout */

.choose-card {
  display: grid;
  /* Automatically adjusts column count; minimum size 280px per card */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual card styling */

.choose-c1 {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
  0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover animation */

.choose-c1:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Typography styles */

.choose-text {
  text-align: center;
  margin-bottom: 32px;
}

.choose-text h3 {
  font-size: 2rem;
  color: var(--brown);
  margin: 0;
}

.choose-head {
  font-size: 1.25rem;
  color: var(--brown);
  margin-top: 0;
  margin-bottom: 12px;
}

.choose-p {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.6;
  margin: 0;
}

/*CADEMICS SECTION*/

.academics-text {
  padding-left: 200px;
  margin-right: 200px;
  line-height: 1.8;
}

.academics-text h3 {
  text-align: center;
  margin-bottom: 13px;
  color: var(--brown-dark);
  font-weight: 700;
  font-size: 20px;
}

.academics-text p {
  color: var(--brown);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .academics-text {
    margin-left: 10px;
    padding: 0 10px; /* Adds clean breathing room on sides */
    margin-right: 10px;
  }

  .academics-text h3 {
    margin-left: 0; /* Resets the negative pull */
  }

  .academics-text p {
    margin-left: 0; /* Resets the negative pull */
    max-width: 100%; /* Prevents text from stretching indefinitely */
  }
}

/* ============================================
   ACADEMIC LEVEL CARDS (Nursery / Primary)
   ============================================ */

.levels-div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  padding: 24px 16px 8px;
  margin: 0 auto;
}

.level-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
  0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.level-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.level-card-body {
  padding: 20px;
}

.level-card-body h3 {
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.level-card-body p {
  color: var(--brown);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-outline {
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--brown-mid);
  color: var(--brown-mid);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background-color: var(--brown-mid);
  color: #ffffff;
}

/* OUR FACILITIES  */

.facilities h3 {
  color: var(--brown-dark);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 20px;
}

.facilities p {
  color: var(--brown);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 10px;
  padding-left: 200px;
}

.facilities-div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  padding: 16px;
  margin: 0 auto;
}

.facilities-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
  0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facilities-card h3 {
  padding-left: 20px;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.facilities-card p {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.8;
  padding-left: 20px;
  max-width: 1000px;
}

.facilities-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .facilities-card {
    padding-left: 0px;
  }

  .facilities p {
    padding-left: 20px;
  }
}

/* ============================================
   GALLERY PREVIEW
   ============================================ */

.gallery-text,
.news-text {
  text-align: center;
  margin-top: 30px;
}

.gallery-text h3,
.news-text h3 {
  color: var(--brown-dark);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.gallery-text p {
  color: var(--brown);
  font-size: 0.95rem;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  padding: 20px 16px;
  margin: 0 auto;
}

.gallery-preview-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.gallery-preview-grid img:hover {
  transform: scale(1.03);
}

.gallery-cta {
  text-align: center;
  padding-bottom: 20px;
}

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

/* ============================================
   LATEST NEWS & EVENTS
   ============================================ */

.news-div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  padding: 20px 16px 60px;
  margin: 0 auto;
}

.news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
  0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.news-card-body {
  padding: 18px 20px;
}

.news-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.news-card-body h3 {
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.news-card-body p {
  color: var(--brown);
  font-size: 0.92rem;
  line-height: 1.6;
}
