/* =========================================================
   ABOUT PAGE – ISOLATED STYLES
   This file ONLY affects about.html
   ========================================================= */

/* ---------- PAGE WRAPPER ---------- */
#about {
  padding: 70px 20px;
  background: #fff;
}

#about .container {
  max-width: 1200px;
  margin: auto;
}

/* ---------- TITLES ---------- */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2b2f66;
}

#about h3 {
  margin-top: 50px;
  margin-bottom: 15px;
  color: #2b2f66;
}

/* ---------- TEXT ---------- */
#about p {
  max-width: 900px;
  margin: 0 auto 18px;
  line-height: 1.8;
  color: #444;
}

/* ---------- HERO IMAGE ---------- */
.about-hero {
  max-width: 1100px;
  margin: 30px auto 50px;
  border-radius: 18px;
  overflow: hidden;
}

.about-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================================================
   HEADTEACHER MESSAGE
   ========================================================= */
.headteacher-message {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin: 70px auto;
  max-width: 1000px;
  align-items: center;
}

.headteacher-image {
  max-width: 260px;
  margin: auto;
}

.headteacher-image img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.message h1 {
  font-size: 1.6rem;
  color: #2b2f66;
}

.signature-name {
  color: #2b2f66;
}

/* Desktop layout */
@media (min-width: 768px) {
  .headteacher-message {
    grid-template-columns: 260px 1fr;
  }
}

/* =========================================================
   MISSION / VISION / MOTTO
   ========================================================= */
.about-values {
  padding: 60px 0;
  background: #f8f9fc;
}

.about-values-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.about-value-box {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.about-value-box h3 {
  margin-bottom: 10px;
}

/* Tablet & up */
@media (min-width: 768px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   ABOUT FEATURES (THIS WAS NOT SHOWING BEFORE)
   ========================================================= */
.about-features {
  padding: 70px 0;
}

.about-features-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Tablet */
@media (min-width: 640px) {
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  .about-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* FEATURE CARD */
.about-feature-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* Image */
.about-feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.about-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-feature-card:hover img {
  transform: scale(1.08);
}

/* Card text */
.about-feature-card h4 {
  margin: 18px 15px 8px;
  color: #2b2f66;
}

.about-feature-card p {
  padding: 0 18px 22px;
  font-size: 0.95rem;
}

/* =========================================================
   CORE VALUES LIST
   ========================================================= */
.values-list {
  max-width: 800px;
  margin: 30px auto;
  padding-left: 20px;
}

.values-list li {
  margin-bottom: 10px;
  color: #444;
}

/* =========================================================
   CLOSING IMAGE
   ========================================================= */
.image-box.medium {
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 18px;
  overflow: hidden;
}

.image-box.medium img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================================================
   MOBILE REFINEMENTS
   ========================================================= */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .message h1 {
    font-size: 1.4rem;
  }
}
