/* Home page (loaded after site.css) */
.eyebrow { margin: 0 0 6px; color: var(--red); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.heading p { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.heading.light h2 { color: #fff; }
.heading.light p { color: var(--gold); }
.heading.light::after { background: linear-gradient(90deg, var(--gold) 50%, #fff 50%); }
.btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(4px); }
.btn-glass:hover { background: #fff; border-color: #fff; color: var(--blue-deep); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* Slider */
.hero { height: clamp(460px, 60vw, 680px); }
.hero-shade { background: linear-gradient(90deg, rgba(6, 29, 68, .9) 0%, rgba(6, 29, 68, .55) 45%, rgba(6, 29, 68, .05) 80%), linear-gradient(0deg, rgba(6, 29, 68, .55), transparent 40%); }
.hero-text { padding-bottom: 60px; }
.hero-text .hero-tag { font-size: 13.5px; font-weight: 500; color: #fff; letter-spacing: .04em; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 5px 16px; margin-bottom: 18px; backdrop-filter: blur(4px); }
.hero-text h1 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.12; margin-bottom: 14px; }
.hero-text h1 small { display: block; font-size: .42em; font-weight: 600; color: var(--gold); letter-spacing: .02em; margin-bottom: 4px; }
.hero-text span { max-width: 34em; font-size: clamp(15px, 1.5vw, 18px); font-weight: 400; color: #e3ebf9; }
.hero-nav { top: auto; bottom: 84px; transform: none; border: 1px solid rgba(255, 255, 255, .5); background: rgba(6, 29, 68, .35); }
.hero-nav.prev { left: auto; right: 78px; }
.hero-nav.next { right: 20px; }

/* Quick links under the slider */
.quick-bar { position: relative; z-index: 2; margin-top: -54px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(6, 29, 68, .55); overflow: hidden; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 24px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.4; border-right: 1px solid var(--line); border-bottom: 4px solid transparent; transition: background .2s, border-color .2s; }
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--tint); border-bottom-color: var(--red); }
.quick i { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--tint); color: var(--blue); transition: background .2s, color .2s; }
.quick a:hover i { background: var(--blue); color: #fff; }
.quick i .ic { width: 24px; height: 24px; }
.quick strong { display: block; color: var(--blue-deep); font-size: 16.5px; font-weight: 600; }

/* Welcome */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-img { position: relative; padding: 0 22px 22px 0; }
.about-img::before { content: ""; position: absolute; inset: 22px 0 0 22px; border-radius: 22px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.about-img img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.about-badge { position: absolute; left: -14px; bottom: 54px; background: var(--red); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 18px 30px -16px rgba(210, 16, 31, .9); }
.about-badge strong { display: block; font-size: 20px; font-weight: 700; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 18px; }
.about-text p { text-align: justify; hyphens: auto; }
.about-text .eyebrow { text-align: left; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.facts div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; color: var(--blue); line-height: 1.3; }
.facts span { font-size: 13.5px; color: var(--muted); }

/* Facilities */
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.facility-grid a { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px 26px; text-align: left; color: var(--muted); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.facility-grid a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.facility-grid a:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.facility-grid a:hover::after { transform: none; }
.facility-grid i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; background: var(--tint); margin-bottom: 18px; }
.facility-grid img { margin: 0; width: 56px; height: 56px; }
.facility-grid h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.facility-grid p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* Toppers */
.achievers { position: relative; background: radial-gradient(900px 420px at 85% 0, rgba(246, 185, 59, .2), transparent 60%), linear-gradient(135deg, var(--navy), var(--blue-deep) 55%, var(--blue)); }
.achievers .topper { border: 0; border-top: 5px solid var(--gold); box-shadow: 0 30px 50px -30px #000; transition: transform .25s; }
.achievers .topper:hover { transform: translateY(-6px); }
.achievers-empty { max-width: 560px; margin: 0 auto; text-align: center; color: #d5e0f5; border: 1.5px dashed rgba(255, 255, 255, .35); border-radius: 18px; padding: 34px 24px; }
.achievers-empty i { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.achievers-empty .ic { width: 34px; height: 34px; }
.achievers-empty h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.achievers-empty p { margin: 0; }

/* Principal */
.principal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.principal-photo { background: linear-gradient(160deg, var(--blue), var(--navy)); padding: 34px; display: grid; place-items: center; }
.principal-photo img { width: 100%; max-width: 320px; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; border-radius: 18px; border: 5px solid rgba(255, 255, 255, .9); }
.principal-text { position: relative; padding: clamp(24px, 4vw, 46px); }
.principal-text::before { content: "\201C"; position: absolute; top: 6px; right: 30px; font: 700 150px/1 Georgia, serif; color: var(--tint); }
.principal-text > * { position: relative; }
.principal-text h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
.principal-text p { text-align: justify; hyphens: auto; }
.principal-text .eyebrow, .principal-text .sign { text-align: left; }

/* News, notices, downloads */
.board { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 18px; }
.board.blue { border-top-color: var(--blue); }
.board.green { border-top-color: #12805a; }
.board h3 { margin: 0; padding: 18px 20px 12px; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.board h3 i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; }
.board.blue h3 i { background: var(--blue); }
.board.green h3 i { background: #12805a; }
.board h3 .ic { width: 20px; height: 20px; }
.board ul { height: 230px; }
.board .more { justify-content: space-between; }

/* Mission */
.mission .eyebrow { color: var(--gold); }

/* Athletics */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.mosaic .photo { aspect-ratio: auto; border-radius: 18px; }
.mosaic .photo:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .photo span { font-size: 16px; padding: 44px 18px 14px; }

.gallery-link { margin: 30px 0 0; }

/* Admission banner */
.cta { background: linear-gradient(110deg, var(--red), #9c0b17); color: #fff; padding: 44px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 4px; }
.cta p { margin: 0; color: #ffe1e3; }
.cta .hero-actions { margin: 0; }
.cta .btn-light { color: var(--red); }
.cta + .footer { border-top: 0; }

/* Updates come first, straight under the slider */
.hero { height: clamp(420px, 46vw, 560px); }
.updates { padding-top: clamp(40px, 5vw, 60px); }
.board ul { height: auto; min-height: 96px; max-height: 250px; }
.board li a { font-size: 15.5px; font-weight: 500; }
.board time { color: var(--red); font-weight: 600; }
.board .none { font-size: 15px; }

/* Latest updates: notice board panel with news and downloads beside it */
.updates-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; font-weight: 600; }
.panel-head h3 i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; }
.panel-head h3 .ic { width: 21px; height: 21px; }
.panel-head .more { flex: none; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--tint); }
.panel-head .more:hover { background: var(--blue); color: #fff; }

.notice-panel { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; color: #dbe6f8; background: linear-gradient(150deg, var(--blue-deep), var(--blue)); box-shadow: var(--shadow); }
.notice-panel::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 230px; height: 230px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .06); pointer-events: none; }
.notice-panel > * { position: relative; z-index: 1; }
.notice-panel h3 { color: #fff; }
.notice-panel h3 i { background: var(--gold); color: var(--navy); }
.notice-panel .more { background: rgba(255, 255, 255, .14); color: #fff; }
.notice-panel .more:hover { background: #fff; color: var(--blue-deep); }
.quiet { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); }
.quiet i { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--gold); }
.quiet .ic { width: 26px; height: 26px; }
.quiet p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.quiet strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }

.updates-side { display: grid; gap: 24px; }
.update-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.update-card.green { border-left-color: #12805a; }
.update-card.green h3 i { background: #12805a; }
.quiet-line { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--tint); color: var(--muted); font-size: 15px; }

.dated { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; display: grid; gap: 8px; }
.dated a { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.45; background: var(--tint); transition: background .2s, color .2s; }
.dated a:hover { background: #e4ecf8; color: var(--blue); }
.dated a span { flex: 1; min-width: 0; }
.dated a > .ic { flex: none; color: var(--red); }
.dated time { flex: none; width: 62px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--red); background: #fff; border-radius: 10px; padding: 6px 4px; box-shadow: 0 2px 8px -4px rgba(6, 29, 68, .5); }
.dated time b { display: block; font-size: 20px; font-weight: 700; color: var(--blue-deep); line-height: 1.1; }
.notice-panel .dated a { background: rgba(255, 255, 255, .1); color: #fff; }
.notice-panel .dated a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.notice-panel .dated a > .ic { color: var(--gold); }

/* Toppers follow the quick links directly: let the dark band run up behind the lower half of the bar */
.quick-bar + .achievers { margin-top: -50px; padding-top: calc(clamp(48px, 7vw, 84px) + 50px); }

/* Update popup */
.popup { backdrop-filter: blur(3px); animation: popup-in .25s ease; }
.popup-box { padding: 0; border-radius: 20px; width: min(560px, 100%); box-shadow: 0 40px 80px -30px #000; border-top: 6px solid var(--red); }
.popup-close { position: absolute; float: none; top: 10px; right: 10px; margin: 0; box-shadow: 0 6px 14px -6px #000; }
.popup-item + .popup-item { border-top: 1px solid var(--line); }
.popup-box .popup-item img { width: 100%; border-radius: 0; margin: 0; }
.popup-text { padding: 22px 26px 26px; }
.popup-text h2 { font-size: 23px; font-weight: 700; margin: 0 40px 8px 0; }
.popup-item img + .popup-text h2 { margin-right: 0; }
.popup-text p { margin: 0 0 16px; color: var(--ink); }
.popup-text p:last-child { margin: 0; }
@keyframes popup-in { from { opacity: 0; } }

/* School timings */
.timings { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 22px; align-items: stretch; }
.timing { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.timing.red { border-top-color: var(--red); background: linear-gradient(160deg, #fff, #fff5f5); }
.timing h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.timing h3 i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; }
.timing.red h3 i { background: var(--red); }
.timing h3 .ic { width: 20px; height: 20px; }
.timing table { width: 100%; border-collapse: collapse; font-size: 15px; }
.timing th { text-align: left; padding: 9px 12px; background: var(--tint); color: var(--blue-deep); font-weight: 600; }
.timing td { padding: 10px 12px; border-top: 1px solid var(--line); }
.timing td:first-child { font-weight: 600; color: var(--blue-deep); }
.timing dl { margin: 0; }
.timing dt { font-size: 13.5px; color: var(--muted); }
.timing dd { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--blue-deep); }
.timing p { margin: 0 0 14px; color: var(--ink); }
.timing p strong { display: block; font-size: 24px; font-weight: 700; color: var(--red); line-height: 1.3; }

@media (max-width: 1020px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .quick a:nth-child(2) { border-right: 0; }
  .quick a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .timings { grid-template-columns: 1fr 1fr; }
  .timing.wide { grid-column: 1 / -1; }
  .updates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-text { padding-bottom: 70px; }
  .hero-nav { display: none; }
  .quick-bar { margin-top: -44px; }
  .quick a { padding: 16px 14px; gap: 10px; }
  .quick a span { font-size: 0; }
  .quick strong { font-size: 14.5px; }
  .quick i { width: 40px; height: 40px; border-radius: 10px; }
  .about, .principal { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin-inline: auto; }
  .about-badge { left: 0; }
  .about-text p, .principal-text p { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facility-grid { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 150px; gap: 10px; }
  .cta .wrap { justify-content: center; text-align: center; }
  .timings { grid-template-columns: 1fr; }
  .timing table { font-size: 14px; }
  .timing th, .timing td { padding: 8px 6px; }
}
