/* ==========================
   Children College (1977)
   White + #735FF2 theme
   HTML + CSS only
   ========================== */

:root{
  --bg:#ffffff;
  --text:#0f1222;
  --muted:#5b607a;
  --line:rgba(15,18,34,.10);

  --brand:#735FF2;
  --brand2:#9A8CFF;
  --brand3:#4C35E6;

  --card:#ffffff;
  --soft:#f6f5ff;

  --shadow: 0 18px 45px rgba(17, 18, 35, .10);
  --shadow2: 0 10px 26px rgba(17, 18, 35, .08);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1000px 500px at 10% 0%, rgba(115,95,242,.10), transparent 60%),
    radial-gradient(900px 520px at 95% 15%, rgba(115,95,242,.12), transparent 55%),
    linear-gradient(#fff, #fff);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.section{padding:72px 0}
.section.small{padding:52px 0}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  background: rgba(115,95,242,.10);
  border:1px solid rgba(115,95,242,.20);
  color:var(--brand3);
  border-radius:999px;
  font-weight:700;
  font-size:13px;
}

.h1{
  font-size: clamp(36px, 5vw, 58px);
  line-height:1.05;
  margin:14px 0 10px;
  letter-spacing:-0.02em;
}
.h2{
  font-size: clamp(26px, 3.4vw, 38px);
  line-height:1.15;
  margin:0 0 12px;
  letter-spacing:-0.02em;
}
.p{
  color:var(--muted);
  margin:0;
  font-size:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:800;
  font-size:14px;
  transition:.22s ease;
  background:#fff;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand3));
  color:#fff;
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 28px rgba(115,95,242,.25);
}
.btn.ghost{
  background: rgba(115,95,242,.08);
  border:1px solid rgba(115,95,242,.20);
  color:var(--brand3);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
  border:1px solid rgba(15,18,34,.08);
  box-shadow: 0 16px 30px rgba(17,18,35,.08);
  font-weight:800;
  font-size:13px;
}

/* ==========================
   NAVBAR (CSS-only mobile)
   ========================== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(15,18,34,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:42px;height:42px;border-radius:50%;
  /* background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.8), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand3)); */
  box-shadow: 0 16px 26px rgba(115,95,242,.28);
}

.logo-img{
  border-radius: 50%;
}
.brand-title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand-title strong{font-size:14px}
.brand-title span{font-size:12px; color:var(--muted); font-weight:700}

.navlinks{
  display:flex;
  align-items:center;
  gap:18px;
}
.navlinks a{
  color: rgba(15,18,34,.80);
  font-weight:800;
  font-size:14px;
  padding:10px 10px;
  border-radius:999px;
}
.navlinks a:hover{background: rgba(115,95,242,.08); color:var(--brand3)}
.navlinks a.active{
  background: rgba(115,95,242,.12);
  color:var(--brand3);
  border:1px solid rgba(115,95,242,.22);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Hamburger */
#nav-toggle{display:none}
.burger{
  display:none;
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(15,18,34,.10);
  background: #fff;
  box-shadow: 0 12px 26px rgba(17,18,35,.08);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;height:2px;
  background: rgba(15,18,34,.75);
  position:relative;
}
.burger span::before,
.burger span::after{
  content:"";
  position:absolute; left:0;
  width:18px;height:2px;
  background: rgba(15,18,34,.75);
}
.burger span::before{top:-6px}
.burger span::after{top:6px}

.mobile-panel{
  display:none;
  padding:10px 0 16px;
}
.mobile-panel .panel{
  padding:14px;
  border-radius:var(--radius);
  background: rgba(115,95,242,.06);
  border:1px solid rgba(115,95,242,.18);
}
.mobile-panel .panel a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  font-weight:900;
}
.mobile-panel .panel a:hover{background: rgba(115,95,242,.10); color:var(--brand3)}
.mobile-panel .panel .row{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;
}

#nav-toggle:checked ~ .mobile-panel{display:block}

/* ==========================
   HERO (reference-inspired)
   ========================== */
.hero{
  padding:46px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:28px;
  align-items:center;
}
.hero-left .actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.searchbar{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:999px;
  border:1px solid rgba(15,18,34,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 34px rgba(17,18,35,.08);
  max-width: 520px;
}
.searchbar input{
  width:100%;
  border:none;
  outline:none;
  font-weight:700;
  color:var(--text);
  background:transparent;
}
.searchbar button{
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid rgba(15,18,34,.12);
  background: rgba(115,95,242,.10);
  cursor:pointer;
  display:grid; place-items:center;
}
.searchbar button:hover{background: rgba(115,95,242,.16)}
.search-icon{
  width:16px;height:16px;border:2px solid var(--brand3);
  border-radius:999px; position:relative;
}
.search-icon:after{
  content:"";
  position:absolute;
  width:10px;height:2px;
  background: var(--brand3);
  right:-8px; bottom:-6px;
  transform: rotate(45deg);
  border-radius:2px;
}

.hero-right{
  position:relative;
  min-height: 420px;
}
.hero-blob{
  position:absolute; inset:0;
  border-radius: var(--radius2);
  background:
    radial-gradient(240px 240px at 30% 30%, rgba(115,95,242,.18), transparent 60%),
    radial-gradient(240px 240px at 80% 30%, rgba(115,95,242,.14), transparent 60%),
    linear-gradient(135deg, rgba(115,95,242,.10), rgba(76,53,230,.08));
  border: 1px solid rgba(115,95,242,.18);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-photo-wrap{
  position:absolute;
  right:14px; top:18px;
  width:min(330px, 86%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background:
    radial-gradient(35% 35% at 30% 30%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(135deg, rgba(115,95,242,.20), rgba(115,95,242,.06));
  border:1px solid rgba(115,95,242,.22);
  overflow:hidden;
  display:grid; place-items:center;
}
.hero-photo{
  width:86%;
  height:86%;
  border-radius: 999px;
  object-fit: cover;
  border: 10px solid rgba(255,255,255,.70);
  box-shadow: 0 18px 40px rgba(17,18,35,.12);
}
.floating{
  position:absolute;
  left:18px; bottom:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.spark{
  position:absolute;
  width:12px;height:12px;
  border-radius:4px;
  border:2px solid rgba(115,95,242,.55);
  transform: rotate(45deg);
  opacity:.9;
}
.spark.s1{left:22px; top:34px}
.spark.s2{right:26px; top:66px}
.spark.s3{left:120px; bottom:36px}

/* ==========================
   Highlights strip
   ========================== */
.highlights{
  margin-top:26px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,18,34,.08);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 40px rgba(17,18,35,.08);
  overflow:hidden;
}
.highlights-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
}
.hitem{
  padding:18px 16px;
  border-right:1px solid rgba(15,18,34,.08);
}
.hitem:last-child{border-right:none}
.hitem strong{font-size:18px}
.hitem span{display:block;color:var(--muted);font-weight:700;font-size:13px;margin-top:2px}

/* ==========================
   Popular / Cards
   ========================== */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.mini-card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(15,18,34,.10);
  background: #fff;
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
.mini-card .icon{
  width:44px;height:44px;border-radius:16px;
  background: rgba(115,95,242,.12);
  border:1px solid rgba(115,95,242,.20);
  display:grid;place-items:center;
  margin-bottom:12px;
}
.mini-card h3{margin:0 0 6px; font-size:18px}
.mini-card p{margin:0 0 12px; color:var(--muted); font-weight:650; font-size:14px}
.link{
  font-weight:900;
  color:var(--brand3);
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.link:after{
  content:"→";
  font-weight:900;
}

.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}

.feature-list{
  display:grid;
  gap:12px;
}
.feature{
  padding:14px;
  border-radius: 16px;
  border:1px solid rgba(15,18,34,.10);
  background: rgba(255,255,255,.86);
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.dot{
  width:12px;height:12px;border-radius:4px;
  background: linear-gradient(135deg, var(--brand), var(--brand3));
  box-shadow: 0 12px 18px rgba(115,95,242,.22);
  margin-top:6px;
}
.feature b{display:block}
.feature span{display:block;color:var(--muted);font-weight:650;font-size:14px;margin-top:2px}

/* ==========================
   Message / Profile sections
   ========================== */
.message{
  padding:22px;
}
.message .meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.quote{
  font-size:15px;
  color:rgba(15,18,34,.82);
  font-weight:650;
}

.profile{
  padding:22px;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:18px;
  align-items:center;
}
.profile .photo{
  width:220px;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(115,95,242,.18);
  background: rgba(115,95,242,.08);
  box-shadow: var(--shadow2);
}
.profile .photo img{width:100%;height:100%;object-fit:cover}
.profile h3{margin:0 0 6px; font-size:20px}
.profile p{margin:0; color:var(--muted); font-weight:650}
.profile .role{
  display:inline-flex;
  margin-top:10px;
  font-weight:900;
  color:var(--brand3);
  background: rgba(115,95,242,.10);
  border:1px solid rgba(115,95,242,.18);
  padding:8px 12px;
  border-radius:999px;
}

/* ==========================
   Tables
   ========================== */
.table-wrap{
  overflow:auto;
  border-radius: var(--radius);
  border:1px solid rgba(15,18,34,.10);
  background:#fff;
  box-shadow: var(--shadow2);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width: 720px;
}
th, td{
  padding:14px 14px;
  border-bottom:1px solid rgba(15,18,34,.08);
  text-align:left;
}
th{
  background: rgba(115,95,242,.08);
  color:rgba(15,18,34,.86);
  font-size:13px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
td{font-weight:650; color:rgba(15,18,34,.82)}
tr:last-child td{border-bottom:none}

.note{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(115,95,242,.18);
  background: rgba(115,95,242,.08);
  font-weight:800;
  color: rgba(15,18,34,.86);
}
.note b{color:var(--brand3)}

/* ==========================
   Admissions flowchart
   ========================== */
.flow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.step{
  flex: 1 1 220px;
  padding:16px;
  border-radius: 18px;
  border:1px solid rgba(115,95,242,.18);
  background: #fff;
  box-shadow: var(--shadow2);
  position:relative;
  overflow:hidden;
}
.step:before{
  content:"";
  position:absolute;
  inset:-40% -40% auto auto;
  width:220px;height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(115,95,242,.22), transparent 60%);
  transform: rotate(25deg);
}
.step strong{
  display:block;
  font-size:14px;
  color:var(--brand3);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.step span{
  display:block;
  margin-top:6px;
  font-weight:900;
  font-size:18px;
}
.arrow{
  font-weight:900;
  color:var(--brand3);
  opacity:.9;
}

/* ==========================
   Gallery grid
   ========================== */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.g{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(15,18,34,.10);
  box-shadow: var(--shadow2);
  background: rgba(115,95,242,.08);
  min-height: 170px;
}
.g img{width:100%;height:100%;object-fit:cover}
.g.span-6{grid-column: span 6}
.g.span-4{grid-column: span 4}
.g.span-8{grid-column: span 8}

/* ==========================
   Contact
   ========================== */
.form{
  padding:20px;
}
.field{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
label{font-weight:850; font-size:13px; color:rgba(15,18,34,.75)}
input, textarea{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,18,34,.12);
  outline:none;
  font-weight:650;
  background: rgba(255,255,255,.92);
}
textarea{min-height:120px; resize:vertical}

.map{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(15,18,34,.10);
  box-shadow: var(--shadow2);
  background:#fff;
}
.map iframe{width:100%; height:360px; border:0}

/* ==========================
   Footer
   ========================== */
.footer{
  padding:24px 0 40px;
  border-top:1px solid rgba(15,18,34,.08);
  background: rgba(255,255,255,.70);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.footer p{margin:8px 0 0; color:var(--muted); font-weight:650}
.footer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-links a{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,18,34,.08);
  background:#fff;
  font-weight:850;
}
.footer-links a:hover{background: rgba(115,95,242,.08); color:var(--brand3)}

.smallprint{
  margin-top:14px;
  color:rgba(91,96,122,.95);
  font-weight:700;
  font-size:13px;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .hero-right{min-height: 360px}
  .highlights-row{grid-template-columns: repeat(2, 1fr)}
  .hitem:nth-child(2){border-right:none}
  .hitem{border-bottom:1px solid rgba(15,18,34,.08)}
  .hitem:nth-last-child(-n+2){border-bottom:none}
  .split{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .profile{grid-template-columns: 1fr}
  .profile .photo{width:100%; max-width: 360px}
}

@media (max-width: 820px){
  .navlinks{display:none}
  .burger{display:flex}
  .nav-actions .btn.ghost{display:none}
  table{min-width: 680px}
  .gallery .g.span-8, .gallery .g.span-6, .gallery .g.span-4{grid-column: span 12}
}

@media (max-width: 520px){
  .highlights-row{grid-template-columns: 1fr}
  .hitem{border-right:none}
  .hero-photo-wrap{right:10px}
  .searchbar{max-width: 100%}
}

/* ===== Principal message with image ===== */
.message-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:18px;
  align-items:center;
}
.message-photo{
  width:220px;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(115,95,242,.18);
  background: rgba(115,95,242,.08);
  box-shadow: var(--shadow2);
}
.message-photo img{width:100%;height:100%;object-fit:cover}

/* Larger founder/manager images */
.profile{
  grid-template-columns: 320px 1fr; /* was 220px */
}
.profile .photo{
  width:320px;                 /* was 220px */
  aspect-ratio: 4/5;
  border-radius: 26px;
}

/* Center + smaller tables on admissions */
.table-center{
  display:flex;
  justify-content:center;
}
.table-center .table-wrap{
  width:min(860px, 100%);      /* makes table block smaller */
}

/* Keep nice on mobile */
@media (max-width: 980px){
  .message-grid{grid-template-columns: 1fr}
  .message-photo{max-width: 360px; width:100%}
  .profile{grid-template-columns: 1fr}
  .profile .photo{max-width: 440px; width:100%}
}

/* ==========================
   Gallery Lightbox Preview
   ========================== */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:0.3s;
  z-index:999;
}

.lightbox img{
  max-width:90%;
  max-height:85%;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}

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

.lightbox-close{
  position:absolute;
  top:30px;
  right:40px;
  font-size:40px;
  color:white;
  text-decoration:none;
  font-weight:bold;
}

.lightbox-close:hover{
  opacity:.7;
}