/* ===== Base Reset ===== */
* { box-sizing: border-box; margin:0; padding:0; }
html, body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:#222; background:#fff; }
body { font-size:16px; line-height:1.5; }
.container { max-width:1100px; margin:0 auto; padding:28px; }

/* ===== Header ===== */
.site-header { background: linear-gradient(90deg,#244a86,#3b6fb4); color:#fff; position:sticky; top:0; z-index:50; }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; }
.logo { width:130px; height:130px; object-fit:cover; border-radius:8px; background:#fff2; padding:6px; }
.tagline { font-size:12px; opacity:0.95; }

/* ===== Google Font Titles ===== */
#schoolTitleEN, #schoolTitleMR {
  font-family: "Finger Paint", cursive;
  font-weight:400;
  font-style:normal;
  color:#faf6f6;
  font-size:21px;
  line-height:1.2;
  margin-bottom:4px;
}

/* ===== Navigation ===== */
.main-nav a { 
  color:#eaf2ff; 
  margin-left:16px; 
  text-decoration:none; 
  font-weight:600; 
  font-size:12px; 
  font-family: "Poppins", sans-serif;
}
.main-nav a:hover { text-decoration:underline; }

/* ===== Hero Slider ===== */
.hero { position:relative; padding:0; }
.slider { position:relative; height:420px; overflow:hidden; border-bottom:6px solid #f1f5f9; border-radius:18px; }
.slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transform:scale(1.02); transition:opacity .6s ease, transform .7s ease; display:flex; align-items:flex-end; padding:36px; }
.slide.active { opacity:1; transform:scale(1); }
.slide-caption { background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.2)); color:#fff; padding:18px; border-radius:8px; max-width:56%; }
.slide-caption h2 { font-size:26px; margin-bottom:6px; }
.slide-caption p { opacity:0.95; }

/* ===== Slider Controls ===== */
.slider-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.35); border:none; color:#fff; width:44px; height:44px; border-radius:50%; font-size:22px; cursor:pointer; }
.slider-btn.prev { left:16px; }
.slider-btn.next { right:16px; }
.slider-dots { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.slider-dots button { width:10px; height:10px; border-radius:50%; border:none; opacity:0.6; cursor:pointer; background:rgba(255,255,255,0.8); }
.slider-dots button.active { transform:scale(1.2); opacity:1; background:#fff; }

/* ===== Sections ===== */
.section { padding:48px 0; }
.section-title { font-size:24px; margin-bottom:12px; color:#16325c; }
.lead { margin-bottom:16px; color:#2a3b59; opacity:0.9; }
.alt-bg { background:#f7fbff; }

/* ===== Cards ===== */
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:18px; }
.card { background:#fff; border-radius:10px; padding:18px; box-shadow:0 6px 18px rgba(20,40,80,0.06); border:1px solid rgba(20,40,80,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(36,74,134,0.15); }

/* ===== Boarding ===== */
.boarding-grid { display:grid; grid-template-columns:1fr 420px; gap:22px; align-items:center; }
.boarding-photo img { width:100%; border-radius:10px; object-fit:cover; box-shadow:0 8px 18px rgba(20,40,80,0.06); }

/* ===== Staff ===== */
.staff-grid { display:flex; gap:14px; flex-wrap:wrap; margin-top:14px; }
.staff-card { width:200px; background:#fff; padding:12px; border-radius:10px; text-align:center; box-shadow:0 6px 18px rgba(20,40,80,0.05); }
.staff-card img { width:100%; height:140px; object-fit:cover; border-radius:8px; margin-bottom:8px; transition: transform 0.3s ease; }
.staff-card:hover img { transform: scale(1.05); box-shadow:0 6px 16px rgba(0,0,0,0.15); }

/* ===== Gallery ===== */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:12px; }
.gallery-item img { width:100%; height:150px; object-fit:cover; display:block; cursor:pointer; transition: transform 0.3s; }
.gallery-item img:hover { transform: scale(1.05); }

/* ===== Contact & Footer ===== */
.contact-grid { display:flex; gap:24px; }
.site-footer { background:#062238; color:#bcd3f0; padding:16px 0; text-align:center; font-size:14px; }


/* Facilities Card Images Only */
#facilities .card-img {
  width: 100%;
  height: 180px;          /* Fixed height */
  object-fit: cover;      /* Crop image without distortion */
  border-radius: 8px;
  margin-bottom: 12px;    /* Space between image and title */
  transition: transform 0.3s ease;
  display: block;
}

#facilities .card-img:hover {
  transform: scale(1.05); /* Slight zoom effect */
}

/* Ensure cards in Facilities section do not overlap */
#facilities .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}


/* ===== Responsive ===== */
@media (max-width:768px) {
  .cards { grid-template-columns:1fr; }
  .staff-grid { justify-content:center; }
  .staff-card { width:90%; }
}

@media (max-width:600px) {
  .gallery-item img { height:120px; }
}

@media (max-width:900px) {
  .boarding-grid { grid-template-columns:1fr; }
  .hero .slide-caption { max-width:90%; }
}
