/* ===== J.S.K Memorial Public School – Public Website ===== */
:root {
  --navy: #0f1d40; --navy-2: #1a2c5c; --gold: #f2a516; --gold-2: #ffcf5c; --cream: #fffaf0;
  --ink: #18203a; --muted: #5d6680; --line: #e7e3d8; --bg: #fbf9f4; --white: #fff;
  --r: 18px; --shadow: 0 10px 40px rgba(15,29,64,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.material-symbols-rounded { font-size: 22px; vertical-align: middle; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* top strip */
.strip { background: var(--navy); color: #cdd5ea; font-size: 13px; }
.strip .wrap { display: flex; gap: 22px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.strip span { display: inline-flex; align-items: center; gap: 6px; }
.strip .material-symbols-rounded { font-size: 17px; color: var(--gold); }
.strip .push { margin-left: auto; }
.strip a:hover { color: #fff; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand b { display: block; font-size: 17px; line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -.2px; }
.brand small { color: var(--gold); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.links a { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: .15s; }
.links a:hover, .links a.on { color: var(--navy); background: #f3efe4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700; border: 0; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(242,165,22,.35); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); } .btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid var(--line); } .btn-line:hover { border-color: var(--gold); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.links .btn { margin-left: 8px; color: #fff; }
#burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover; background-position: center; opacity: .35; }
.hero::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 20%, rgba(242,165,22,.28), transparent 40%),
  linear-gradient(100deg, rgba(15,29,64,.97) 25%, rgba(15,29,64,.75) 60%, rgba(15,29,64,.4)); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: rgba(242,165,22,.16); color: var(--gold-2); font-weight: 700; font-size: 13px; border: 1px solid rgba(242,165,22,.35); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242,165,22,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(242,165,22,0); } }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.07; font-weight: 800; letter-spacing: -1.5px; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 18px; color: #d7deef; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.crest { justify-self: center; position: relative; width: min(340px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.crest::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(242,165,22,.08); }
.crest img { position: relative; width: 88%; border-radius: 50%; }

/* stats */
.stats { margin-top: -46px; position: relative; z-index: 2; }
.stats .wrap > div { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* sections */
section.sec { padding: 96px 0; }
.sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: #c7850a; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -.8px; margin: 12px 0 16px; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 660px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; flex-wrap: wrap; }
.center { text-align: center; } .center .eyebrow { justify-content: center; } .center .lead { margin: 0 auto; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about .txt p { color: var(--muted); margin-bottom: 14px; white-space: pre-line; }
.about-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 38px; position: relative; overflow: hidden; }
.about-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(242,165,22,.12); right: -70px; bottom: -70px; }
.about-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.15); position: relative; z-index: 1; }
.about-card .row:last-child { border: 0; }
.about-card .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(242,165,22,.15); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.about-card b { display: block; } .about-card small { color: #b9c3dd; }

.facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fac { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: .2s; }
.fac:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.fac .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--cream); color: #c7850a; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #f4e3bb; }
.fac .ic .material-symbols-rounded { font-size: 28px; }
.fac h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; } .fac p { color: var(--muted); font-size: 14.5px; }

.principal { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; background: linear-gradient(135deg, var(--cream), #fff); border: 1px solid #f1e5c8; border-radius: 26px; padding: 46px; }
.principal .ph { width: 100%; aspect-ratio: 4/5; border-radius: 20px; object-fit: cover; background: var(--navy); display: grid; place-items: center; color: var(--gold); }
.principal .ph .material-symbols-rounded { font-size: 90px; }
.principal blockquote { font-size: 18px; color: var(--ink); white-space: pre-line; position: relative; }
.principal blockquote::before { content: '“'; font-size: 110px; line-height: .6; color: var(--gold); display: block; height: 46px; font-family: Georgia, serif; }
.principal .who { margin-top: 20px; } .principal .who b { color: var(--navy); font-size: 17px; display: block; } .principal .who span { color: var(--muted); }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.news-card .d { display: inline-flex; gap: 6px; align-items: center; color: #c7850a; font-weight: 700; font-size: 13px; }
.news-card h3 { font-size: 17.5px; color: var(--navy); margin: 10px 0 8px; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: 14.5px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photos .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; background: #e8e4d8; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.photos .ph:hover img { transform: scale(1.06); }
.photos:not(.flat) .ph:first-child { grid-column: span 2; grid-row: span 2; }
footer .brand img { border-radius: 50%; background: #fff; }
.photos .ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: .2s; }
.photos .ph:hover span { opacity: 1; }
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: .2s; }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album .cv { aspect-ratio: 16/10; background: var(--navy) center/cover; position: relative; }
.album .cv b { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; display: flex; gap: 4px; align-items: center; }
.album .in { padding: 18px 20px; } .album h3 { color: var(--navy); font-size: 17px; } .album small { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.empty .material-symbols-rounded { font-size: 46px; color: #d9c79a; display: block; margin-bottom: 8px; }

.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.mat .fi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: #eef1fa; color: var(--navy-2); }
.mat .fi.pdf { background: #fdecec; color: #d03434; } .mat .fi.doc { background: #e8f0fe; color: #1a5fd6; } .mat .fi.img { background: #eaf8ee; color: #1e8a4c; }
.mat .meta { flex: 1; min-width: 0; } .mat b { display: block; color: var(--navy); line-height: 1.3; }
.mat small { color: var(--muted); display: block; margin: 3px 0 10px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; background: #f3efe4; font-size: 12px; font-weight: 700; color: #8a6a1c; margin-right: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters input, .filters select, .form input, .form select, .form textarea {
  height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; outline: none; transition: .15s; }
.filters input { flex: 1; min-width: 220px; }
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,165,22,.15); }

/* admission + contact */
.adm { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.adm .side { background: var(--navy); color: #fff; padding: 46px; position: relative; overflow: hidden; }
.adm .side::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(242,165,22,.1); bottom: -90px; right: -90px; }
.adm .side .title { color: #fff; }
.adm .side p { color: #c7d0e8; }
.adm .ci { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; position: relative; z-index: 1; }
.adm .ci .material-symbols-rounded { color: var(--gold); background: rgba(242,165,22,.14); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.adm .ci small { color: #9fabc9; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.form { padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; }
.form textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.ok-msg { grid-column: 1/-1; background: #ecfbf1; border: 1px solid #b9ecca; color: #12723c; padding: 18px; border-radius: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.map { margin-top: 28px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 360px; background: #e9e5da; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* page header (inner pages) */
.phead { background: var(--navy); color: #fff; padding: 60px 0 56px; position: relative; overflow: hidden; }
.phead::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(242,165,22,.09); right: -120px; top: -160px; }
.phead h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; }
.phead p { color: #c7d0e8; } .phead a { color: var(--gold-2); }
.crumb { font-size: 13.5px; color: #9fabc9; margin-bottom: 8px; }

/* footer */
footer { background: #0a1430; color: #aeb8d3; padding: 64px 0 26px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer a { display: block; padding: 4px 0; } footer a:hover { color: var(--gold); }
footer .brand b { color: #fff; }
footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.socials a:hover { background: var(--gold); color: var(--navy); }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); z-index: 60; }
.wa-float .material-symbols-rounded { font-size: 30px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(6,10,24,.94); z-index: 100; display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lb img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #dfe4f2; font-weight: 600; padding: 0 20px; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb .x { top: 18px; right: 18px; } .lb .pv { left: 18px; } .lb .nx { right: 18px; }
@keyframes fade { from { opacity: 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; } .reveal.in { opacity: 1; transform: none; }
.loader { display: grid; place-items: center; padding: 120px; } .loader::after { content: ''; width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .links a { padding: 8px 9px; font-size: 14px; }
  .facilities, .news, .mats, .albums { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .principal { grid-template-columns: 200px 1fr; gap: 30px; padding: 32px; }
}
@media (max-width: 860px) {
  #burger { display: grid; place-items: center; }
  .links { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 18px 22px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08); transform: translateY(-130%); transition: .25s; margin: 0; }
  body.menu .links { transform: none; }
  .links a { padding: 13px 14px; font-size: 16px; } .links .btn { margin: 8px 0 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 86px; gap: 30px; }
  .crest { width: 200px; order: -1; justify-self: start; }
  .hero p { font-size: 16px; }
  .stats .wrap > div { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  section.sec { padding: 70px 0; }
  .about, .adm { grid-template-columns: 1fr; } .about { gap: 34px; }
  .principal { grid-template-columns: 1fr; text-align: left; } .principal .ph { max-width: 220px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .adm .side, .form { padding: 30px 22px; }
  .strip .hide-m { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand img { width: 46px; height: 46px; } .brand b { font-size: 15px; }
  .facilities, .news, .mats, .albums { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero .cta .btn { flex: 1; }
  .stat b { font-size: 27px; }
  .lb .pv, .lb .nx { top: auto; bottom: 70px; } .lb .pv { left: 30%; } .lb .nx { right: 30%; }
}
