/* International Public School — additions to style.css (shared layout with the J.K. High School design) */

/* Colours of the old ipspurnea.co.in website: green top bar (#198754), dark navy header, menu and footer (#1c2539),
   bright green highlights (#11d82b); fonts Nunito Sans (text) and Red Hat Display (headings). */
body { font-family: 'Nunito Sans', Arial, sans-serif; }
.topbar { background: #198754; color: #fff; }
.topbar a, .topbar i { color: #fff; }
.topbar a:hover { color: #0f1522; }
.topbar-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Header: the logo image has the school name in white, so the header is dark navy (as on the old website) */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo img { width: auto; height: 96px; max-width: 100%; object-fit: contain; }
.header-btns .btn-outline { border-color: rgba(255,255,255,.75); }
.header-btns .btn-outline:hover { background: #fff; color: var(--navy); }

/* Menu: dark navy bar, bright green for the current page and on hover */
.mainnav { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.08); }
.menu > li > a { padding: 15px 12px; font-weight: 700; font-size: 17px; }
.menu > li > a i { font-size: 11px; margin-left: 2px; }
.submenu a { font-size: 15px; }
.menu > li:hover > a, .menu > li.active > a { background: transparent; color: var(--gold); }
.submenu { background: var(--navy); border-top-color: var(--gold); }
.submenu a { color: #fff; border-bottom-color: rgba(255,255,255,.08); }
.submenu a:hover { background: var(--navy-dark); color: var(--gold); }

/* Green accents */
.divider span { background: var(--gold); }
.eyebrow { color: var(--gold-dark); }
.btn-gold { color: #0f1522; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.site-footer { background: var(--navy); }
.footer-bottom { background: var(--navy-dark); }
.q-notice { background: #198754; }
.q-achieve { background: #e8740c; }
.q-toppers { background: #2a3754; }
.ticker { background: #eafbee; }
.page-banner { background: linear-gradient(120deg, rgba(20,27,43,.92), rgba(25,135,84,.80)), url('../img/slides/building.jpg') center 40%/cover; }

/* Buttons */
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Quick strip under the slider */
.quick-strip { background: var(--navy-dark); }
.quick-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.quick-strip a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 10px; color: #fff; font-weight: 700; font-size: 14px; border-right: 1px solid rgba(255,255,255,.12); transition: background .2s; }
.quick-strip a:last-child { border-right: 0; }
.quick-strip a i { color: var(--gold); font-size: 20px; }
.quick-strip a:hover { background: var(--navy); color: #fff; }

/* About + notice board */
.about-notice { grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.notice { background: #0f1522; }
.notice-view { height: 360px; }
.notice-list.still { animation: none; }
.notice-list small { display: block; color: var(--gold); font-weight: 600; font-size: 12px; }
.notice-empty { padding: 30px 20px; color: #d5dcea; text-align: center; }
.notice-empty a { color: var(--gold); font-weight: 700; }
.notice .more { background: #0b101b; }
.checklist.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.checklist.small li { font-size: 13.5px; }

/* Leadership messages */
.messages { align-items: stretch; }
.msg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.msg-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 4px solid var(--gold); margin-bottom: 12px; }
.msg-card b { font-family: 'Red Hat Display', sans-serif; color: var(--navy-dark); font-size: 18px; }
.msg-card > span { color: #c0392b; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.msg-card p { font-size: 14px; color: var(--muted); font-style: italic; flex: 1; }
.msg-card a { font-weight: 700; }

/* Facilities */
.facility-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: #ddd; }
.facility-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.facility-tile:hover img { transform: scale(1.06); }
.facility-tile > span { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(46,7,13,.92)); color: #fff; }
.facility-tile b { display: block; font-family: 'Red Hat Display', sans-serif; font-size: 18px; }
.facility-tile small { display: block; color: #e3e8f2; font-size: 13px; line-height: 1.5; }
.facility-card-ips .g-item { border-radius: 0; }
.facility-card-ips .g-item img { aspect-ratio: 4/3; }

/* Event and achievement cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .card-body { flex: 1; display: flex; flex-direction: column; }
.news-card .more-link { margin-top: auto; font-weight: 700; font-size: 14px; }
.news-img { display: block; overflow: hidden; }
.news-img img { transition: transform .4s; }
.news-img:hover img { transform: scale(1.05); }
.achieve-card { height: 100%; border-top: 4px solid var(--gold); }
.achieve-card .achieve-img { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; border-radius: 0; }
.achieve-card .achieve-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.achieve-card h3 { font-size: 17px; margin: 8px 0 6px; }
.achieve-card h3 i { color: var(--gold-dark); }
.achieve-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tag { background: #e7f6ec; color: var(--navy); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.students { color: var(--navy); font-weight: 600; font-size: 14px; }
[data-cat] > .card { height: 100%; }

/* Albums */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.album-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); transition: transform .25s; }
.album-card:hover { transform: translateY(-4px); color: var(--navy); }
.album-cover { display: block; position: relative; aspect-ratio: 4/3; background: #eee; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.album-name { display: block; padding: 10px 12px 12px; font-weight: 700; font-size: 14px; line-height: 1.4; }
.album-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.filters a { border: 1px solid var(--line); background: #fff; padding: 7px 18px; border-radius: 30px; font-weight: 700; color: var(--navy); }
.filters a.active, .filters a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.muted { color: var(--muted); }

/* Testimonials */
.testi { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-style: normal; }
.testi p { font-style: italic; color: var(--ink); font-size: 14.5px; }
.testi cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 14px; }

/* Pages */
.prose h4 { margin-top: 18px; color: var(--navy); }
.sign { margin-top: 20px; }
.pillars .pillar { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 14px; text-align: center; border: 1px solid var(--line); }
.pillar i { font-size: 28px; color: var(--gold-dark); display: block; margin-bottom: 8px; }
.pillar b { color: var(--navy-dark); font-family: 'Red Hat Display', sans-serif; }
.inst-grid { gap: 16px; }
.inst { display: flex; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.inst > i { font-size: 26px; color: var(--navy); margin-top: 4px; }
.inst b { display: block; color: var(--navy-dark); }
.inst span { font-size: 13.5px; color: var(--muted); }
.vm { align-items: stretch; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vm-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.vm-card > div { padding: 22px; }
.vm-card .sec-title i { color: var(--gold-dark); }
.motto { margin-top: 26px; font-size: 16px; color: var(--navy-dark); }
.stage-list { margin-top: 26px; display: grid; gap: 18px; }
.stage { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.stage h3 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stage-tag { background: var(--gold); color: #22180a; font-size: 12.5px; padding: 3px 12px; border-radius: 20px; }
.info-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.info-box h4 { margin-top: 0; }
.note { font-size: 13.5px; color: var(--muted); }
.rules details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.rules summary { cursor: pointer; padding: 14px 18px; font-family: 'Red Hat Display', sans-serif; font-weight: 700; color: var(--navy-dark); font-size: 17px; }
.rules summary i { color: var(--gold-dark); width: 24px; }
.rules details[open] summary { border-bottom: 1px solid var(--line); }
.rules .checklist { padding: 14px 22px 18px; }
ol.steps { padding-left: 20px; margin: 0 0 20px; }
ol.steps li { margin-bottom: 10px; }
.enquiry-band { align-items: start; gap: 34px; }
.info-list.big li { display: flex; gap: 14px; margin-bottom: 16px; }
.info-list.big b { display: block; color: var(--navy-dark); }
.parent-tiles { gap: 18px; }
.ptile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 14px; color: var(--ink); transition: transform .25s; }
.ptile:hover { transform: translateY(-4px); }
.ptile i { font-size: 32px; color: var(--navy); }
.ptile b { font-family: 'Red Hat Display', sans-serif; color: var(--navy-dark); }
.ptile span { color: var(--gold-dark); font-weight: 700; font-size: 13px; }
.media-item small { display: block; margin-top: 6px; font-size: 12.5px; }
.disclosure h3.block { margin-top: 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .hint { display: block; color: var(--muted); font-size: 12.5px; }
.f-social { display: flex; gap: 10px; margin-top: 10px; }
.f-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.f-social a:hover { background: var(--gold); color: #22180a; }

@media (max-width: 1300px) {
  .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 16px; }
}
@media (max-width: 1100px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .menu > li > a { padding-left: 6px; padding-right: 6px; font-size: 14px; }
}
@media (max-width: 900px) {
  .about-notice { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .menu > li > a { padding: 12px 16px; font-size: 16px; }
}
@media (max-width: 640px) {
  .checklist.two-col { grid-template-columns: 1fr; }
  .album-grid { gap: 12px; }
  .brand-logo img { height: auto; width: 100%; max-width: 420px; }
  .quick-strip .container { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .quick-strip a { border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
}

/* Mandatory Public Disclosure (same layout as the school's Appendix IX document) */
.mpd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid var(--gold); padding-bottom: 14px; margin-bottom: 10px; }
.mpd-school { display: flex; flex-direction: column; flex: 1; text-align: center; }
.mpd-school b { font-family: 'Red Hat Display', sans-serif; font-size: 20px; color: var(--navy-dark); }
.mpd-sub { font-weight: 700; color: var(--gold-dark); margin-top: 4px; }
.mpd-appendix { font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); white-space: nowrap; }
.mpd-title { margin: 28px 0 10px; font-size: 18px; color: var(--navy-dark); text-transform: uppercase; }
.mpd-table th.sl, .mpd-table td.sl { width: 70px; text-align: center; }
.mpd-table td { vertical-align: top; }
.mpd-table tr.mpd-subrow td:first-child { width: auto; text-align: left; font-weight: 400; color: inherit; padding-left: 34px; }
.mpd-table tr.mpd-subrow td, .mpd-table tr.mpd-grouped td { background: #fff; }
.mpd-table:not(.mpd-result) td:nth-child(2) { width: 50%; }
.mpd-table tr.mpd-subrow td:nth-child(2) { width: auto; }
.mpd-link { word-break: break-all; font-weight: 600; }
.mpd-note { font-size: 13.5px; margin-top: 12px; }
@media (max-width: 640px) { .mpd-head { flex-direction: column; align-items: center; } .mpd-school b, .mpd-appendix { font-size: 17px; } }

/* ---------- Home slider ---------- */
.slider { height: clamp(320px, 40vw, 680px); background: #0b101b; }
.slide { transition: opacity 1.1s ease; z-index: 0; pointer-events: none; }
.slide.active { z-index: 1; pointer-events: auto; }
.slide img { position: relative; z-index: 1; }
.slide::after { z-index: 2; background: linear-gradient(90deg, rgba(11,16,27,.82) 0%, rgba(11,16,27,.55) 38%, rgba(11,16,27,0) 70%), linear-gradient(0deg, rgba(11,16,27,.55) 0%, rgba(11,16,27,0) 30%); }
.slide.no-caption::after { background: linear-gradient(0deg, rgba(11,16,27,.45) 0%, rgba(11,16,27,0) 22%); }
/* "Show the whole image": the poster is never cropped; a blurred copy of it fills the sides */
.slide.fit-whole img { object-fit: contain; transform: none; }
.slide.fit-whole.active img { animation: none; }
.slide-bg { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(26px) brightness(.55) saturate(1.2); transform: scale(1.1); }
/* Caption: left-aligned in the page width, slides up when its slide appears */
.slide-caption { inset: 0; bottom: auto; top: 0; height: 100%; display: flex; align-items: center; text-align: left; padding: 0; z-index: 3; }
.slide-caption .container { width: 100%; }
.slide-text { max-width: 640px; opacity: 0; transform: translateY(24px); transition: opacity .7s ease .35s, transform .7s ease .35s; }
.slide.active .slide-text { opacity: 1; transform: none; }
.slide-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-left: 14px; border-left: 3px solid var(--gold); }
.slide-caption h2 { font-size: clamp(26px, 3.6vw, 54px); line-height: 1.12; margin-bottom: 12px; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.slide-caption p { font-size: clamp(14px, 1.3vw, 19px); color: #e3e8f2; margin: 0 0 6px; }
.slide-caption .slide-btn { margin-top: 18px; padding: 12px 24px; font-size: 15px; }
.slide-btn-corner { position: absolute; right: 28px; bottom: 34px; z-index: 3; }
.slide-link { position: absolute; inset: 0; z-index: 3; }
/* Controls: arrows at the sides (shown on hover), progress bars at the bottom */
.slider-nav, .slider-dots { display: none !important; }
.slider-arrow { position: absolute; top: 50%; z-index: 4; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(11,16,27,.35); color: #fff; font-size: 17px; cursor: pointer; backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s, background .2s, transform .2s; }
.slider-arrow.prev { left: 22px; } .slider-arrow.next { right: 22px; }
.slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: #0b101b; transform: scale(1.06); }
.slider-bars { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.slider-bars button { width: 46px; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.slider-bars span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.slider-bars span::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slider-bars button.done span::after { transform: scaleX(1); }
.slider-bars button.active span::after { animation: slideProgress var(--slide-delay, 6000ms) linear forwards; }
.slider.paused .slider-bars button.active span::after { animation-play-state: paused; }
@keyframes slideProgress { to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .slider { height: 62vw; min-height: 260px; }
  .slide::after { background: linear-gradient(0deg, rgba(11,16,27,.85) 0%, rgba(11,16,27,.35) 55%, rgba(11,16,27,.1) 100%); }
  .slide.no-caption::after { background: none; }
  .slide-caption { align-items: flex-end; padding-bottom: 40px; }
  .slide-kicker { display: none; }
  .slider-arrow { display: none; }
  .slide-btn-corner { display: none; }
}
@media (max-width: 640px) {
  .slide-caption .slide-btn { margin-top: 10px; padding: 8px 16px; font-size: 13px; }
  .slider-bars { bottom: 12px; }
  .slider-bars button { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-text { transition: none; }
  .slider-bars button.active span::after { animation: none; transform: scaleX(1); }
}
