/* ==========================================================
   Sinha Model High School – Homepage redesign
   Everything is scoped under .hp so other pages are unaffected.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

.hp {
  --hp-ink: #12263f;
  --hp-ink-2: #1d3a5f;
  --hp-text: #3b4a5c;
  --hp-muted: #66768a;
  --hp-red: #d92d20;
  --hp-red-dark: #b42318;
  --hp-line: #dfe5ec;
  --hp-bg: #f3f6fa;
  --hp-white: #fff;
  --hp-r: 8px;
  --hp-shadow: 0 1px 2px rgba(18,38,63,.06), 0 6px 18px rgba(18,38,63,.06);
  --hp-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --hp-sans: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
  font-family: var(--hp-sans);
  color: var(--hp-text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: clip;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp img { max-width: 100%; display: block; }
.hp a { text-decoration: none; }
.hp ul { list-style: none; margin: 0; padding: 0; }
.hp p { margin: 0 0 12px; }

.hp-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.hp-section { padding: 56px 0; }
.hp-section--tint { background: var(--hp-bg); }
.hp-section--tight { padding: 40px 0; }

/* ---------- type ---------- */
.hp-h2 {
  font-family: var(--hp-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--hp-ink);
  font-weight: 700;
  margin: 0 0 8px;
}
.hp-kicker { font-size: 13px; font-weight: 600; color: var(--hp-red); margin: 0 0 6px; }
.hp-lead { color: var(--hp-muted); margin: 0; }
.hp-head { margin-bottom: 28px; }
.hp-head--center { text-align: center; }
.hp-head--center .hp-lead { max-width: 560px; margin-inline: auto; }

/* ---------- buttons ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  font: 600 14px/1 var(--hp-sans);
  border: 1px solid var(--hp-ink); border-radius: 6px;
  background: var(--hp-ink); color: #fff; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.hp-btn:hover { background: var(--hp-red); border-color: var(--hp-red); color: #fff; }
.hp-btn--red { background: var(--hp-red); border-color: var(--hp-red); }
.hp-btn--red:hover { background: var(--hp-red-dark); border-color: var(--hp-red-dark); }
.hp-btn--ghost { background: transparent; color: var(--hp-ink); }
.hp-btn--ghost:hover { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }
.hp-btn--light { background: #fff; color: var(--hp-ink); border-color: #fff; }
.hp-btn--light:hover { background: var(--hp-red); color: #fff; border-color: var(--hp-red); }
.hp-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hp-btn--outline-light:hover { background: #fff; color: var(--hp-ink); border-color: #fff; }
.hp a:focus-visible, .hp button:focus-visible, .hp input:focus-visible, .hp select:focus-visible, .hp [tabindex]:focus-visible {
  outline: 2px solid var(--hp-red); outline-offset: 2px;
}

/* ---------- 1. quick facts + enquiry ---------- */
.hp-quick { background: var(--hp-bg); padding: 28px 0 44px; }
.hp-quick__grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.hp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hp-tile {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  min-height: 74px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r);
  transition: border-color .2s, box-shadow .2s;
}
.hp-tile:hover { border-color: var(--hp-ink-2); box-shadow: var(--hp-shadow); }
.hp-tile__bg { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.hp-tile__bg img { width: 100%; height: 100%; object-fit: cover; }
.hp-tile a { position: relative; display: block; width: 100%; color: var(--hp-ink); }
.hp-tile__title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; text-align: center; color: var(--hp-ink); }
.hp-tile__title i { color: var(--hp-red); font-size: 16px; margin-right: 6px; vertical-align: -1px; }
.hp-tile--stat { background: var(--hp-ink); border-color: var(--hp-ink); }
.hp-tile--stat .hp-tile__title, .hp-tile--stat a { color: #fff; }
.hp-tile--stat .hp-tile__title i { color: #ff8a80; }
.hp-tile--stat:hover { border-color: var(--hp-red); }

.hp-enquiry { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); box-shadow: var(--hp-shadow); overflow: hidden; }
.hp-enquiry__head { background: var(--hp-red); color: #fff; padding: 14px 20px; }
.hp-enquiry__head h3 { margin: 0; font: 700 21px/1.2 var(--hp-serif); color: #fff; }
.hp-enquiry__head span { font-size: 14px; opacity: .92; }
.hp-enquiry__body { padding: 16px 20px 20px; }
.hp-field { margin-bottom: 10px; }
.hp-field input, .hp-field select {
  width: 100%; height: 42px; padding: 0 12px;
  font: 400 14px var(--hp-sans); color: var(--hp-ink);
  background: #fff; border: 1px solid #c9d3de; border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.hp-field input:focus, .hp-field select:focus { border-color: var(--hp-ink-2); box-shadow: 0 0 0 3px rgba(29,58,95,.12); outline: none; }
.hp-field .hp-btn { width: 100%; margin-top: 4px; }

/* ---------- 2. about + notifications ---------- */
.hp-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hp-about__aff { font-size: 13px; font-weight: 700; color: var(--hp-ink); margin: 8px 0 4px; }
.hp-about__aff i { color: var(--hp-red); font-style: normal; }
.hp-about__sub { font-size: 16px; color: var(--hp-ink-2); font-weight: 500; margin-bottom: 16px; }
.hp-about__text { text-align: justify; hyphens: auto; max-width: 62ch; }

.hp-notice { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); box-shadow: var(--hp-shadow); }
.hp-notice__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hp-line); }
.hp-notice__eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--hp-red); }
.hp-notice__head h3 { margin: 0; font: 700 19px/1.2 var(--hp-serif); color: var(--hp-ink); }
.hp-notice__all { font-size: 13px; font-weight: 600; color: var(--hp-ink-2); white-space: nowrap; }
.hp-notice__all:hover { color: var(--hp-red); }
.hp-notice__viewport { max-height: 288px; overflow: hidden; }
.hp-notice__track { animation: hp-scroll var(--notice-scroll-duration, 30s) linear infinite; }
.hp-notice__viewport:hover .hp-notice__track,
.hp-notice__viewport:focus-within .hp-notice__track { animation-play-state: paused; }
@keyframes hp-scroll { to { transform: translateY(-50%); } }
.hp-notice__item { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hp-line); color: var(--hp-text); transition: background .2s; }
.hp-notice__item:hover { background: var(--hp-bg); }
.hp-notice__icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fdecea; color: var(--hp-red); font-size: 12px; }
.hp-notice__copy { flex: 1; min-width: 0; }
.hp-notice__date { display: block; font-size: 12px; color: var(--hp-muted); }
.hp-notice__msg { display: block; font-size: 14px; font-weight: 500; color: var(--hp-ink); line-height: 1.4; }
.hp-notice__chev { font-size: 11px; color: var(--hp-muted); }
.hp-notice__empty { padding: 20px 18px; margin: 0; color: var(--hp-muted); }

/* ---------- 3. what we offer ---------- */
.hp-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.hp-card:hover { box-shadow: var(--hp-shadow); border-color: #c5d0dc; }
.hp-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hp-bg); }
.hp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hp-card:hover .hp-card__img img { transform: scale(1.03); }
.hp-card__body { padding: 18px 20px 20px; border-top: 3px solid var(--hp-red); }
.hp-card__title { margin: 0 0 8px; font: 700 18px/1.3 var(--hp-serif); color: var(--hp-ink); }
.hp-card__text { margin: 0; text-align: justify; font-size: 14px; }
.hp-card--feature { background: var(--hp-ink); border-color: var(--hp-ink); justify-content: center; padding: 26px 24px; }
.hp-card--feature .hp-card__title { color: #fff; font-size: 21px; }
.hp-card--feature .hp-card__text { color: #d3deea; }
.hp-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.hp-help h4 { margin: 0 0 6px; font: 600 13px var(--hp-sans); color: #ff9a92; }
.hp-help a { display: block; color: #fff; font: 700 22px/1.4 var(--hp-serif); }
.hp-help a:hover { color: #ffb4ad; }

/* ---------- 4. counters ---------- */
.hp-counters { background: var(--hp-ink); color: #fff; padding: 36px 0; }
.hp-counters__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hp-counter { padding: 4px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.hp-counter:first-child { border-left: 0; padding-left: 0; }
.hp-counter > span { display: block; font: 700 26px/1.2 var(--hp-serif); color: #fff; margin-bottom: 6px; }
.hp-counter p { margin: 0; font-size: 13px; color: #c3d1e0; line-height: 1.5; }

/* ---------- 5. principal ---------- */
.hp-principal__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hp-principal__name { font: 600 16px var(--hp-sans); color: var(--hp-ink-2); margin: 4px 0 16px; }
.hp-principal__text { text-align: justify; max-width: 62ch; }
.hp-principal__img { border-radius: var(--hp-r); overflow: hidden; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); }
.hp-principal__img img { width: 100%; height: auto; }

/* ---------- 6. co-curricular ---------- */
.hp-co__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hp-co__text { text-align: justify; }
.hp-co__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hp-line); }
.hp-co__lists li { position: relative; padding: 3px 0 3px 18px; font-size: 14px; }
.hp-co__lists li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--hp-red); }
.hp-co__img { border-radius: var(--hp-r); overflow: hidden; border: 1px solid var(--hp-line); }
.hp-co__img img { width: 100%; height: auto; }

/* ---------- 7. important information ---------- */
.hp-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-info__card { position: relative; display: flex; flex-direction: column; border-radius: var(--hp-r); overflow: hidden; background-color: var(--hp-ink); background-repeat: no-repeat; background-position: center; background-size: cover; color: #fff; }
.hp-info__card::before { content: ""; position: absolute; inset: 0; background: rgba(14,32,54,.88); }
.hp-info__card > * { position: relative; }
.hp-info__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 3px solid var(--hp-red); background: rgba(255,255,255,.06); }
.hp-info__top a.hp-info__title { font: 700 18px/1.3 var(--hp-serif); color: #fff; }
.hp-info__call { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 13px; transition: background .2s, color .2s; }
.hp-info__call:hover { background: #fff; color: var(--hp-ink); }
.hp-info__body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.hp-info__body p { color: #e6edf5; font-size: 14px; text-align: justify; }
.hp-info__body ul { list-style: disc; padding-left: 18px; color: #e6edf5; font-size: 14px; }
.hp-info__body li { margin-bottom: 6px; }
.hp-info__more { margin-top: auto; padding-top: 10px; }
.hp-info__more a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; color: #fff; font: 600 13px var(--hp-sans); transition: background .2s, color .2s; }
.hp-info__more a:hover { background: #fff; color: var(--hp-ink); }

/* ---------- 8. awards ---------- */
.hp-awards .swiper-container { overflow: hidden; }
.hp-awards .single-blog, .hp-awards .blog-img { margin: 0; }
.hp-awards .blog-img img { width: 100%; height: 210px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hp-line); }

/* ---------- 9. admissions band ---------- */
.hp-band { position: relative; padding: 64px 0; background-size: cover; background-position: center; text-align: center; color: #fff; }
.hp-band::before { content: ""; position: absolute; inset: 0; background: rgba(14,32,54,.8); }
.hp-band .hp-wrap { position: relative; }
.hp-band h2 { margin: 0 0 8px; font: 700 clamp(26px, 3.4vw, 38px)/1.2 var(--hp-serif); color: #fff; }
.hp-band p { margin: 0 0 22px; color: #e3ebf3; font-size: 16px; }

/* ---------- 10. gallery ---------- */
.hp-gallery__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hp-gallery__imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.hp-gallery__imgs .single-blog { min-width: 0; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; border-radius: 6px; }
.hp-gallery__imgs .blog-img { width: 100%; height: 100%; margin: 0; }
.hp-gallery__imgs img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 6px; border: 1px solid var(--hp-line); }
.hp-gallery__imgs > p { grid-column: 1 / -1; }
.hp-gallery__video .swiper-container { overflow: hidden; border-radius: var(--hp-r); height: 100%; }
.hp-gallery__video .single-blog, .hp-gallery__video .blog-img { margin: 0 !important; height: 100%; }
.hp-gallery__video .video-thumb { position: relative; cursor: pointer; }
.hp-gallery__video .video-thumb img { width: 100%; height: 100% !important; min-height: 280px; object-fit: cover; border-radius: var(--hp-r); }
.hp-gallery__more { margin-top: 24px; text-align: center; }

/* ---------- 11. join cta ---------- */
.hp-join { background: var(--hp-bg); border-block: 1px solid var(--hp-line); padding: 36px 0; }
.hp-join__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hp-join h2 { margin: 0 0 6px; font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--hp-serif); color: var(--hp-ink); }
.hp-join p { margin: 0; max-width: 56ch; color: var(--hp-text); }
.hp-join__btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* ---------- 12. faq ---------- */
.hp-faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.hp-faq__img { border-radius: var(--hp-r); overflow: hidden; border: 1px solid var(--hp-line); }
.hp-faq__img img { width: 100%; height: auto; }
.hp-faq .accordion-item { border: 1px solid var(--hp-line); border-radius: 6px !important; margin-bottom: 8px; overflow: hidden; background: #fff; }
.hp-faq .accordion-button { font: 600 15px/1.4 var(--hp-sans); color: var(--hp-ink); background: #fff; padding: 14px 18px; box-shadow: none; }
.hp-faq .accordion-button:not(.collapsed) { color: #fff; background: var(--hp-ink); }
.hp-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(29,58,95,.15); }
.hp-faq .accordion-body { font-size: 14px; padding: 14px 18px 16px; }

/* ---------- 13. testimonials ---------- */
.hp-testi .swiper-container { overflow: hidden; padding-bottom: 36px; }
.hp-quote { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-left: 3px solid var(--hp-red); border-radius: var(--hp-r); padding: 20px 22px; }
.hp-quote__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hp-quote__mark { font: 700 44px/0.8 var(--hp-serif); color: var(--hp-red); height: 22px; }
.hp-quote__stars { color: #e5a50a; letter-spacing: 2px; font-size: 14px; }
.hp-quote__msg { flex: 1; font-size: 14px; margin-bottom: 16px; }
.hp-quote__author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hp-line); }
.hp-quote__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.hp-quote__initial { display: grid; place-items: center; background: var(--hp-ink); color: #fff; font: 700 16px var(--hp-serif); }
.hp-quote__name { display: block; font-weight: 700; color: var(--hp-ink); line-height: 1.3; }
.hp-quote__role { display: block; font-size: 12.5px; color: var(--hp-muted); }
.hp-testi .swiper-pagination { bottom: 0; }
.hp-testi__empty { text-align: center; color: var(--hp-muted); }

/* ---------- 14. blog ---------- */
.hp-blog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; transition: box-shadow .2s; }
.hp-post:hover { box-shadow: var(--hp-shadow); }
.hp-post__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--hp-bg); }
.hp-post__img img { width: 100%; height: 100%; object-fit: cover; }
.hp-post__body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.hp-post__date { font-size: 12px; color: var(--hp-muted); margin-bottom: 4px; }
.hp-post__date i { margin-right: 5px; color: var(--hp-red); }
.hp-post__title { margin: 0 0 6px; font: 700 16px/1.35 var(--hp-serif); }
.hp-post__title a { color: var(--hp-ink); }
.hp-post__title a:hover { color: var(--hp-red); }
.hp-post__desc { font-size: 13.5px; color: var(--hp-text); margin-bottom: 10px; }
.hp-post__more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--hp-red); }
.hp-post__more:hover { color: var(--hp-red-dark); }
.hp-post__more i { margin-left: 4px; font-size: 11px; }
.hp-empty { grid-column: 1 / -1; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .hp-quick__grid { grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
  .hp-blog { grid-template-columns: repeat(2, 1fr); }
  .hp-about__grid, .hp-principal__grid { gap: 36px; }
}
@media (max-width: 991px) {
  .hp-section { padding: 44px 0; }
  .hp-quick__grid, .hp-about__grid, .hp-principal__grid, .hp-co__grid, .hp-faq__grid, .hp-gallery__grid { grid-template-columns: 1fr; }
  .hp-enquiry { max-width: 520px; }
  .hp-offer, .hp-info { grid-template-columns: repeat(2, 1fr); }
  .hp-counters__grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .hp-counter:nth-child(3) { border-left: 0; padding-left: 0; }
  .hp-join__inner { flex-direction: column; align-items: flex-start; }
  .hp-principal__img { order: -1; max-width: 420px; }
  .hp-faq__img { display: none; }
}
@media (max-width: 640px) {
  .hp { font-size: 14.5px; }
  .hp-wrap { width: calc(100% - 28px); }
  .hp-section { padding: 36px 0; }
  .hp-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hp-tile { min-height: 64px; padding: 10px 8px; }
  .hp-tile__title { font-size: 12px; }
  .hp-enquiry { max-width: none; }
  .hp-offer, .hp-info, .hp-blog { grid-template-columns: 1fr; }
  .hp-co__lists { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .hp-counters__grid { grid-template-columns: 1fr 1fr; }
  .hp-counter { padding: 4px 14px; }
  .hp-counter > span { font-size: 21px; }
  .hp-gallery__video .video-thumb img { min-height: 210px; }
  .hp-join__btns { width: 100%; }
  .hp-join__btns .hp-btn { flex: 1 1 100%; }
  .hp-band { padding: 48px 0; }
  .hp-about__text, .hp-principal__text, .hp-co__text, .hp-card__text, .hp-info__body p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-notice__track { animation: none; }
  .hp * { transition: none !important; }
}
