/* =========================
   Children S.S. School - CSS
   Orange + White Minimal
   ========================= */

:root{
  --orange: #f57c00;
  --orange-dark:#e56f00;
  --text:#1b1b1b;
  --muted:#6b7280;
  --bg:#ffffff;
  --soft:#fff6ee;
  --border:#f1f1f1;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --container: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--container), 92%);
  margin:0 auto;
}

.topbar{
  background: var(--soft);
  border-bottom:1px solid var(--border);
  font-size:14px;
}
.topbar .row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  color:var(--muted);
}
.topbar a{ color:var(--muted); }
.topbar a:hover{ color:var(--orange); }

header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.brand .logo{
  width:46px;
  height:46px;
  border-radius:12px;
  background: var(--soft);
  border:1px solid var(--border);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.brand .logo img{ width:100%; height:100%; object-fit:cover; }
.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand .name strong{ font-size:15px; letter-spacing:.2px; }
.brand .name span{ font-size:12px; color:var(--muted); }

nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  align-items:center;
}
nav a{
  padding:10px 12px;
  border-radius:12px;
  color:#111;
  font-weight:600;
  font-size:14px;
}
nav a:hover{
  background: var(--soft);
  color: var(--orange-dark);
}

.cta{
  display:flex;
  gap:10px;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:.2s ease;
}
.btn-primary{
  background: var(--orange);
  color:#fff;
  border-color: transparent;
}
.btn-primary:hover{ background: var(--orange-dark); }
.btn-ghost{
  background:#fff;
}
.btn-ghost:hover{ background: var(--soft); }

.hero{
  padding:48px 0 22px;
}
.hero-wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:stretch;
}
.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:28px;
  background:
    radial-gradient(800px 300px at 30% 10%, rgba(245,124,0,.15), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: var(--soft);
  border:1px solid var(--border);
  font-size:12px;
  color: var(--orange-dark);
  font-weight:800;
  letter-spacing:.3px;
}
.hero h1{
  margin:12px 0 10px;
  font-size:36px;
  line-height:1.15;
}
.hero p{
  margin:0;
  color:var(--muted);
  max-width: 56ch;
}

.hero-side{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.hero-img{
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(245,124,0,.2), rgba(245,124,0,.05)),
    url("csss.jpg");
  background-size:cover;
  background-position:center;
}
.hero-side .mini{
  padding:18px;
  display:grid;
  gap:12px;
}
.mini .stat{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--orange);
  margin-top:6px;
}
.stat strong{ font-size:14px; }
.stat span{ font-size:13px; color:var(--muted); display:block; margin-top:2px; }

.section{
  padding:42px 0;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section-title h2{
  margin:0;
  font-size:24px;
}
.section-title p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  max-width: 60ch;
}

/* Gradient background for Infrastructure & Facilities section */
#infrastructure{
  background: linear-gradient(180deg, rgba(245,124,0,0.14) 0%, #ffffff 70%);
}

/* #infrastructure .card{
  background: rgba(255,255,255,0.95);
} */

/* ===============================
   Leadership Large Section
================================= */

.leadership-section{
  padding:60px 0;
  background: linear-gradient(180deg, rgba(245,124,0,0.08), #ffffff 60%);
}

.leadership-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:40px;
}

.leader-card{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:40px;
  align-items:center;
  background:#fff;
  padding:30px;
  border-radius:20px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.leader-card.reverse{
  grid-template-columns: 1.2fr 1fr;
}

/* Leadership Image Container */
.leader-img{
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--border);
  display:flex;              /* Add this */
  justify-content:center;    /* Center horizontally */
}

/* Perfect Fit Image */
.leader-img img{
  width:auto;
  height:420px;
  object-fit:contain;
}

.leader-content h2{
  margin:0 0 10px;
  font-size:24px;
}

.leader-role{
  font-weight:900;
  color:var(--orange-dark);
  margin-bottom:12px;
  font-size:14px;
  letter-spacing:.4px;
}

.leader-content p{
  color:var(--muted);
  font-size:15px;
  margin-bottom:12px;
  line-height:1.7;
}

@media(max-width:900px){
  .leader-card,
  .leader-card.reverse{
    grid-template-columns:1fr;
  }

  /* Leadership Image Container */
  .leader-img{
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--border);
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f9f9f9;
  }

  /* Perfect Fit Image */
  .leader-img img{
    width:100%;
    height:100%;
    max-height:420px;
    object-fit:cover;   /* Keeps image proportional & fills nicely */
    display:block;
  }
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding:18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.card h3{ margin:0 0 8px; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-size:14px; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.person{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.avatar{
  width:84px; height:84px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--soft);
  flex: 0 0 auto;
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.person h3{ margin:0; font-size:16px; }
.person .role{ margin:2px 0 10px; color:var(--orange-dark); font-weight:800; font-size:12px; letter-spacing:.2px; }
.person p{ margin:0; color:var(--muted); font-size:14px; }

.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
.form{
  display:grid;
  gap:12px;
}
.input{
  display:grid;
  gap:6px;
}
label{ font-weight:700; font-size:13px; }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  font: inherit;
}
input:focus, textarea:focus{
  border-color: rgba(245,124,0,.6);
  box-shadow: 0 0 0 4px rgba(245,124,0,.12);
}
textarea{ min-height: 120px; resize: vertical; }
.note{
  font-size:12px;
  color: var(--muted);
  margin:0;
}

.map{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  min-height: 360px;
}
.map iframe{ width:100%; height:100%; border:0; }

footer{
  border-top:1px solid var(--border);
  background: #fff;
}
.footer-wrap{
  padding:26px 0;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.footer-wrap p{ margin:8px 0 0; color:var(--muted); font-size:14px; }
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:flex-start;
}
.pill{
  display:inline-flex;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--soft);
  font-weight:800;
  font-size:13px;
}
.pill:hover{ background:#fff; }

.page-head{
  padding:30px 0 10px;
}
.breadcrumb{
  color: var(--muted);
  font-size:13px;
  margin:0 0 6px;
}
.page-head h1{ margin:0; font-size:28px; }

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:#fff;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{
  background: var(--soft);
  color:#111;
  font-weight:900;
}
.table tr:last-child td{ border-bottom:0; }

/* Make fee table evenly spaced */
.table {
  width: 100%;
  table-layout: fixed;   /* Makes columns equal width */
  text-align: center;    /* Center content */
}

.table th,
.table td {
  text-align: center;
  padding: 14px 10px;
}

.table th {
  font-size: 15px;
}

.table td {
  font-size: 14px;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.gitem{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.gitem img{
  width:100%;
  height: 220px;
  object-fit:cover;
}
.gitem .cap{
  padding:12px;
  font-weight:800;
  font-size:14px;
}
.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: var(--soft);
  border:1px solid var(--border);
  color: var(--orange-dark);
  font-size:12px;
  font-weight:900;
}

@media (max-width: 900px){
  .hero-wrap{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-wrap{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
  nav ul{ gap:10px; flex-wrap:wrap; justify-content:center; }
  .brand{ min-width:auto; }
  .hero h1{ font-size:30px; }
  .gallery{ grid-template-columns: 1fr; }
}

/* Fee Note Section - Centered */
.fee-note{
  margin:20px auto 40px auto;
  padding:16px 22px;
  background: linear-gradient(90deg, rgba(245,124,0,0.12), rgba(245,124,0,0.04));
  border-left: 4px solid var(--orange);
  border-radius:12px;
  font-size:14px;
  color:var(--text);
  text-align:center;        /* Centers text */
  max-width:600px;          /* Keeps it neat and not full width */
}

.fee-note p{
  margin:0;
}

/* ===============================
   RESPONSIVE PACK (Mobile/Tablet)
   Add at END of style.css
================================= */

/* Better base scaling */
@media (max-width: 1024px){
  .container{ width: min(var(--container), 94%); }
}

/* Tablet */
@media (max-width: 900px){
  .topbar .row{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .nav{
    flex-wrap:wrap;
    gap:12px;
  }

  nav ul{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }

  nav a{
    padding:10px 10px;
  }

  .cta{
    width:100%;
    justify-content:center;
  }

  .hero{ padding:34px 0 12px; }
  .hero-wrap{ grid-template-columns: 1fr; }

  .hero h1{ font-size:30px; }
  .hero-card{ padding:22px; }

  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }

  .footer-wrap{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
}

/* Mobile */
@media (max-width: 600px){
  .brand .name strong{ font-size:14px; }
  .brand .name span{ font-size:12px; }

  .btn{ width:100%; } /* buttons become full width for easy tapping */
  .cta{ flex-direction:column; }

  .hero h1{ font-size:26px; }
  .hero p{ font-size:14px; }

  .card{ padding:16px; }

  /* Leadership cards stack nicely */
  .leader-card,
  .leader-card.reverse{
    grid-template-columns:1fr;
    gap:18px;
    padding:18px;
  }

  .leader-img img{
    max-height:320px;
  }

  /* Gallery becomes single column */
  .gallery{ grid-template-columns:1fr; }
  .gitem img{ height:200px; }

  /* Map height better on small screens */
  .map{ min-height:280px; }

  /* Prevent overflow in tables */
  .table{
    font-size:13px;
  }
}

/* Ultra-small phones */
@media (max-width: 420px){
  .hero-card{ padding:18px; }
  .kicker{ font-size:11px; }
  .section{ padding:34px 0; }
}

.table-wrap{
  width:100%;
  overflow-x:auto;           /* allows horizontal scroll if needed */
  -webkit-overflow-scrolling: touch;
}
.table{
  min-width: 520px;          /* keeps columns readable on small screens */
}

/* ===============================
   Mobile Hamburger (HTML+CSS only)
================================= */

/* Hide the toggle checkbox */
.nav-toggle{
  position:absolute;
  left:-9999px;
}

/* Hamburger button */
.hamburger{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
}
.hamburger span{
  width:22px;
  height:2px;
  background:#111;
  display:block;
  position:relative;
  border-radius:2px;
}
.hamburger span::before,
.hamburger span::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#111;
  border-radius:2px;
}
.hamburger span::before{ top:-7px; }
.hamburger span::after{ top:7px; }

/* Default: desktop nav visible */
.nav-menu{
  display:flex;
  gap:18px;
  align-items:center;
}

/* Mobile styles */
@media (max-width: 900px){
  /* Show hamburger, hide desktop menu by default */
  .hamburger{ display:flex; }
  .nav-menu{
    display:none;
    width:100%;
  }

  /* When checkbox checked, show menu */
  .nav-toggle:checked ~ .nav-menu{
    display:block;
  }

  /* Make menu look like a dropdown panel */
  .nav-menu ul{
    flex-direction:column;
    align-items:stretch;
    width:100%;
    gap:8px;
    margin-top:10px;
    padding:12px;
    border:1px solid var(--border);
    border-radius: var(--radius);
    background:#fff;
    box-shadow: var(--shadow);
  }

  .nav-menu a{
    width:100%;
    display:block;
    text-align:left;
    padding:12px 14px;
  }

  /* Header layout */
  .nav{
    flex-wrap:wrap;
  }

  nav{
    width:100%;
  }

  /* Keep CTA nice on mobile (optional) */
  .cta{
    width:auto;
  }
}

/* ===============================
   Full Width Principal Section
================================= */
.principal-full-section{
  padding: 60px 0;
}

.principal-full-card{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, rgba(245,124,0,0.08), #ffffff 65%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.principal-full-image{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principal-full-image img{
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.principal-full-content h2{
  margin: 12px 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.principal-full-content p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.principal-sign{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.principal-sign strong{
  font-size: 16px;
  color: var(--text);
}

.principal-sign span{
  font-size: 14px;
  color: var(--orange-dark);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px){
  .principal-full-card{
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .principal-full-image img{
    height: 360px;
  }

  .principal-full-content h2{
    font-size: 26px;
  }
}

@media (max-width: 600px){
  .principal-full-section{
    padding: 42px 0;
  }

  .principal-full-card{
    padding: 18px;
    border-radius: 18px;
  }

  .principal-full-image img{
    height: 280px;
  }

  .principal-full-content h2{
    font-size: 22px;
  }

  .principal-full-content p{
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ===============================
   CSS Only Gallery Preview
================================= */

.gallery-preview{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

.gallery-preview .gitem{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  background:#fff;
}

.gallery-preview .gitem img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}

.gallery-preview .gitem:hover img{
  transform:scale(1.04);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.3s ease;
  z-index:9999;
}

.lightbox:target{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.lightbox img{
  max-width:90%;
  max-height:90vh;
  border-radius:16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  border:4px solid #fff;
}

.lightbox-close{
  position:absolute;
  inset:0;
  cursor:default;
}

.lightbox::after{
  content:"×";
  position:absolute;
  top:24px;
  right:34px;
  font-size:42px;
  color:#fff;
  font-weight:700;
  line-height:1;
  pointer-events:none;
}

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

  .gallery-preview .gitem img{
    height:220px;
  }
}

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

  .gallery-preview .gitem img{
    height:200px;
  }

  .lightbox img{
    max-width:95%;
    max-height:80vh;
  }

  .lightbox::after{
    top:18px;
    right:24px;
    font-size:34px;
  }
}