:root {
  --ink: #1e2620;
  --muted: #58635d;
  --paper: #fffdf8;
  --soft: #f2efe6;
  --line: #d7d0c1;
  --green: #1f6b4b;
  --green-dark: #144531;
  --saffron: #d58a24;
  --blue: #315f86;
  --red: #a33a2c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(30, 38, 32, 0.14);
  --shadow-3d: 0 24px 70px rgba(20, 69, 49, 0.2), 0 8px 18px rgba(30, 38, 32, 0.09);
  --surface: rgba(255, 255, 255, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(213, 138, 36, 0.12), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(31, 107, 75, 0.14), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #f4f0e6 100%);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 34px);
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(30, 38, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(30, 38, 32, 0.16));
}

.brand strong,
.brand small {
  display: block;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand strong {
  color: var(--green-dark);
  font-size: clamp(1.15rem, 1.9vw, 1.72rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 780;
}

.brand-place {
  color: rgba(20, 69, 49, 0.86);
}

.brand-contact {
  margin-top: 3px;
  color: rgba(88, 99, 93, 0.92);
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(20, 69, 49, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.94rem;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--green-dark);
  background: #e8efe9;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 -120px 100px rgba(255, 253, 248, 0.92);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 34, 27, 0.58) 0%, rgba(16, 34, 27, 0.34) 44%, rgba(16, 34, 27, 0.06) 100%),
    url("assets/images/home-hero-secondary-students-v4.png") center 42% / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 26%;
  content: "";
  background: linear-gradient(0deg, var(--paper), transparent);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 12vh clamp(18px, 7vw, 92px);
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.hero-poster-peek {
  position: absolute;
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(34px, 8vw, 92px);
  width: min(250px, 22vw);
  min-width: 190px;
  color: var(--white);
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg);
  transform-origin: center;
  transition: transform 220ms ease, filter 220ms ease;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.36));
}

.hero-poster-peek:hover {
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg) translateY(-6px);
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.42));
}

.hero-poster-peek img {
  width: 100%;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
}

.hero-poster-peek span {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -8px auto 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  font-size: 0.86rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--saffron);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 5.6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 69, 49, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 69, 49, 0.22);
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.notice-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--green-dark);
  background: #e6f0e9;
  border-top: 1px solid #cadccd;
  border-bottom: 1px solid #cadccd;
}

.notice-strip strong {
  color: var(--white);
  background: var(--green);
  padding: 4px 10px;
  border-radius: 5px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics article {
  min-height: 132px;
  padding: 28px clamp(18px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.metrics strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 92px;
}

.page-hero {
  --page-hero-image: url("assets/images/students-study.jpg");
  --page-hero-position: center;
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 72px) clamp(26px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(20, 69, 49, 0.6), rgba(31, 107, 75, 0.32)),
    linear-gradient(180deg, rgba(8, 18, 14, 0.08), rgba(8, 18, 14, 0.24)),
    var(--page-hero-image) var(--page-hero-position) / cover;
  color: var(--white);
}

main > .section:last-of-type {
  padding-bottom: clamp(30px, 4.5vw, 56px);
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.news-page-hero,
.staff-page-hero,
.contact-hero {
  text-align: center;
}

.news-page-hero h1,
.news-page-hero .page-intro,
.staff-page-hero h1,
.staff-page-hero .page-intro,
.contact-hero h1,
.contact-hero .page-intro {
  margin-inline: auto;
}

.staff-page-hero h1,
.contact-hero h1 {
  max-width: none;
}

.staff-page-hero {
  --page-hero-image: url("assets/images/rural-teaching.jpg");
  --page-hero-position: center 42%;
}

.students-page-hero {
  --page-hero-image: url("assets/images/girls-classroom.jpg");
  --page-hero-position: center 44%;
}

.news-page-hero {
  --page-hero-image: url("assets/images/school-assembly.jpg");
  --page-hero-position: center 38%;
}

.contact-hero {
  --page-hero-image: url("assets/images/maharashtra-village-learning.jpg");
  --page-hero-position: center 52%;
}

.home-highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.64fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(213, 138, 36, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.92) 0%, rgba(237, 245, 239, 0.92) 100%);
  perspective: 1200px;
}

.highlight-copy .button {
  margin-top: 16px;
}

.poster-carousel {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.carousel-track {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 2 / 3;
}

.highlight-poster {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.highlight-poster.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.highlight-poster img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow-3d);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-button,
.carousel-dots button {
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.carousel-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.carousel-dots button.is-active {
  background: var(--green);
  border-color: var(--green);
}

.quick-links-section {
  background: var(--paper);
}

.page-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-link-grid a,
.contact-grid article {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 242, 0.86));
  box-shadow: 0 18px 40px rgba(30, 38, 32, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.page-link-grid a:hover,
.contact-grid article:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: var(--shadow-3d);
}

.page-link-grid strong {
  color: var(--green-dark);
  font-size: 1.24rem;
}

.page-link-grid span {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-grid,
.achievements {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.13;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.principal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-3d);
}

.principal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.principal-card div {
  padding: 24px;
}

.principal-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.soft-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  max-width: 1120px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(30, 38, 32, 0.12);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.feature-grid h3,
.timeline h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.staff-section {
  background:
    radial-gradient(circle at 14% 14%, rgba(213, 138, 36, 0.11), transparent 20rem),
    radial-gradient(circle at 86% 30%, rgba(49, 95, 134, 0.1), transparent 22rem),
    rgba(255, 253, 248, 0.72);
}

.staff-page-hero .page-intro {
  max-width: 1120px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.staff-section .section-heading {
  display: block;
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 36px;
  text-align: center;
}

.staff-section .section-heading h2 {
  max-width: 980px;
  margin: 0 auto 10px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.1;
}

@media (min-width: 1180px) {
  .staff-section .section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 3.1vw, 3.15rem);
  }
}

.staff-section .section-heading p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.leadership-grid,
.staff-list {
  display: grid;
  gap: 16px;
}

.leadership-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 28px;
}

.staff-list {
  grid-template-columns: repeat(2, 1fr);
}

.staff-list.compact {
  grid-template-columns: repeat(2, 1fr);
}

.staff-group {
  margin-top: 28px;
}

.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.group-title span {
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
}

.group-title strong {
  color: var(--muted);
  font-size: 0.95rem;
}

.staff-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 22px;
  min-height: 286px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 244, 0.88));
  box-shadow: 0 18px 44px rgba(30, 38, 32, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.staff-card:hover {
  transform: translateY(-5px) rotateX(1.2deg);
  box-shadow: var(--shadow-3d);
}

.staff-card.featured {
  grid-template-columns: 152px 1fr;
  min-height: 304px;
  border-color: rgba(31, 107, 75, 0.28);
  background:
    radial-gradient(circle at 92% 8%, rgba(213, 138, 36, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 245, 239, 0.92) 100%);
}

.staff-photo {
  width: 138px;
  height: 138px;
  align-self: start;
  border: 6px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 107, 75, 0.18), 0 16px 30px rgba(30, 38, 32, 0.2);
}

.staff-card.featured .staff-photo {
  width: 152px;
  height: 152px;
}

.staff-card:nth-child(3n) .staff-photo {
  object-position: top center;
}

.staff-card h3 {
  margin: 3px 0 8px;
  font-size: 1.2rem;
  line-height: 1.28;
}

.staff-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.staff-card .role {
  color: var(--saffron);
  font-weight: 900;
  font-size: 0.88rem;
}

.staff-card .designation {
  color: var(--ink);
  font-weight: 750;
}

.staff-card .duration {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 9px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e8efe9;
  font-size: 0.84rem;
  font-weight: 850;
}

.staff-card .designation,
.staff-card .duration,
.staff-card .favorite {
  margin-top: 9px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(215, 208, 193, 0.8);
}

.staff-card .duration {
  display: flex;
  width: 100%;
  border-radius: 0;
  background: transparent;
}

.staff-card .favorite {
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-card .favorite strong {
  color: var(--green-dark);
}

.staff-card .favorite.outside strong {
  color: var(--blue);
}

.history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.students-page-hero,
.students-section .section-heading {
  text-align: center;
}

.students-page-hero h1,
.students-page-hero .page-intro,
.students-section .section-heading {
  margin-inline: auto;
}

.students-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(213, 138, 36, 0.13), transparent 20rem),
    radial-gradient(circle at 88% 28%, rgba(49, 95, 134, 0.1), transparent 22rem),
    rgba(255, 253, 248, 0.78);
}

.students-section .section-heading {
  display: block;
  max-width: 1040px;
  margin-bottom: 36px;
}

.students-section .section-heading h2 {
  max-width: 940px;
  margin: 0 auto 10px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.1;
}

.students-section .section-heading p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.students-history {
  max-width: 1180px;
  margin-inline: auto;
}

.students-tabs {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(30, 38, 32, 0.08);
}

.batch-tabs-scroller {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(237, 245, 239, 0.96), rgba(255, 253, 248, 0.92)),
    var(--white);
}

.batch-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.batch-tab {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 92px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 6px;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.batch-tab:hover,
.batch-tab:focus-visible {
  background: rgba(31, 107, 75, 0.08);
  outline: none;
}

.batch-tab.is-active,
.batch-tab[aria-selected="true"] {
  color: var(--white);
  border-color: var(--saffron);
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(30, 38, 32, 0.16);
}

.batch-tab small {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0.78;
}

.batch-panel {
  padding: 22px;
}

.batch-panel[hidden] {
  display: none;
}

.batch-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(215, 208, 193, 0.8);
}

.batch-panel-header span {
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
}

.batch-panel-header small {
  color: var(--muted);
  font-weight: 800;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.student-tile {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 239, 0.9));
  box-shadow: 0 10px 22px rgba(30, 38, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  text-align: center;
}

.student-tile strong,
.student-tile span {
  display: block;
}

.student-tile strong {
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.25;
}

.student-tile span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 22px;
  border-left: 5px solid var(--saffron);
  border-radius: 0 8px 8px 0;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(30, 38, 32, 0.08);
}

.timeline time {
  color: var(--green);
  font-weight: 900;
}

.gallery-section {
  background: #eef3f7;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery figure::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(0deg, rgba(20, 29, 24, 0.88), transparent);
}

.gallery figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  color: var(--white);
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.35;
}

.gallery figure:hover img {
  transform: scale(1.035);
}

.gallery .feature-photo {
  grid-row: span 2;
}

.photos-section {
  background:
    radial-gradient(circle at 14% 8%, rgba(213, 138, 36, 0.11), transparent 20rem),
    radial-gradient(circle at 88% 20%, rgba(49, 95, 134, 0.1), transparent 22rem),
    rgba(255, 253, 248, 0.76);
}

.photos-grid {
  columns: 4 230px;
  column-gap: 18px;
}

.photo-tile {
  position: relative;
  display: block;
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(215, 208, 193, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(30, 38, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(10px);
  animation: photoRise 520ms ease forwards;
  animation-delay: var(--delay);
}

.photo-tile img {
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 260ms ease;
}

.photo-tile span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(20, 69, 49, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.photo-tile:hover span {
  opacity: 1;
  transform: translateY(0);
}

.photo-viewer {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(215, 208, 193, 0.85);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 138, 36, 0.12), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 245, 239, 0.78));
  box-shadow: var(--shadow-3d);
}

.photo-stage {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 244, 0.9));
  box-shadow: 0 18px 44px rgba(30, 38, 32, 0.13);
}

.photo-stage img {
  width: 100%;
  height: min(60vh, 620px);
  object-fit: contain;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 22rem),
    #f5f1e8;
}

.photo-stage figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  color: var(--muted);
}

.photo-stage figcaption strong {
  color: var(--green-dark);
}

.photo-nav {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(30, 38, 32, 0.16);
  cursor: pointer;
  font-size: 2.6rem;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.photo-nav:hover {
  transform: translateY(-2px) scale(1.04);
  background: #e8efe9;
  box-shadow: 0 24px 42px rgba(30, 38, 32, 0.2);
}

.photo-thumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 12px;
  scroll-snap-type: x proximity;
}

.photo-thumb {
  flex: 0 0 112px;
  width: 112px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  opacity: 0.72;
  scroll-snap-align: center;
  box-shadow: 0 8px 18px rgba(30, 38, 32, 0.1);
}

.photo-thumb.is-active {
  border-color: var(--green);
  opacity: 1;
  transform: translateY(-2px);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes photoRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-section {
  background:
    radial-gradient(circle at 14% 8%, rgba(213, 138, 36, 0.12), transparent 20rem),
    rgba(255, 253, 248, 0.78);
}

.news-section .section-heading {
  display: block;
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 36px;
  text-align: center;
}

.news-section .section-heading h2 {
  max-width: 940px;
  margin: 0 auto 10px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.1;
}

.news-section .section-heading p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.news-accordion {
  display: grid;
  gap: 16px;
}

.news-month {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(30, 38, 32, 0.1);
}

.news-month summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.news-month summary small {
  color: var(--muted);
}

.news-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 20px 20px;
}

.news-image-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(30, 38, 32, 0.1);
}

.news-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.news-image-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(20, 69, 49, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
}

.news-image-card:hover img {
  transform: scale(1.04);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 20px;
  padding: 10px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: #18241d;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 6px 14px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.9rem;
}

.footer-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 42px;
  }

  .site-nav {
    position: absolute;
    right: 18px;
    left: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 980px) {
  .metrics,
  .feature-grid,
  .staff-list,
  .history-list,
  .student-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .achievements,
  .home-highlight,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery,
  .page-link-grid,
  .news-image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - 72px);
    align-items: end;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 52px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(16, 34, 27, 0.68) 0%, rgba(16, 34, 27, 0.42) 56%, rgba(16, 34, 27, 0.08) 100%),
      url("assets/images/home-hero-secondary-students-v4.png") center 42% / cover;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.35rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-poster-peek {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .leadership-grid,
  .staff-list,
  .staff-list.compact,
  .history-list,
  .student-grid {
    grid-template-columns: 1fr;
  }

  .batch-tabs {
    gap: 7px;
    padding: 10px;
  }

  .batch-tab {
    flex: 1 1 78px;
    min-width: 76px;
    padding: 11px 13px;
  }

  .batch-panel {
    padding: 16px;
  }

  .batch-panel-header {
    display: block;
  }

  .batch-panel-header small {
    display: block;
    margin-top: 5px;
  }

  .staff-card,
  .staff-card.featured {
    grid-template-columns: 112px 1fr;
    min-height: auto;
  }

  .staff-photo,
  .staff-card.featured .staff-photo {
    width: 112px;
    height: 112px;
  }

  .group-title {
    display: block;
  }

  .group-title strong {
    display: block;
    margin-top: 3px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-viewer {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .photo-nav {
    position: absolute;
    top: min(48vw, 330px);
    width: 46px;
    height: 46px;
    z-index: 2;
    font-size: 2rem;
  }

  .photo-nav.previous {
    left: 8px;
  }

  .photo-nav.next {
    right: 8px;
  }

  .gallery .feature-photo {
    grid-row: auto;
  }

  .gallery figure {
    min-height: 310px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer address {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: clamp(1rem, 5.1vw, 1.28rem);
  }

  .brand small {
    font-size: 0.74rem;
  }

  .brand-contact {
    display: none;
  }

  .metrics,
  .feature-grid,
  .page-link-grid,
  .news-image-grid {
    grid-template-columns: 1fr;
  }

  .gallery figure {
    min-height: 260px;
  }

  .notice-strip {
    display: grid;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-badges span {
    font-size: 0.82rem;
  }

  .section {
    padding-inline: 16px;
  }

  .staff-card,
  .staff-card.featured {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .staff-photo,
  .staff-card.featured .staff-photo {
    width: 142px;
    height: 142px;
  }

  .staff-card .duration {
    margin-inline: auto;
  }

}

/* Premium production pass */
:root {
  --ink: #17221d;
  --muted: #59665f;
  --paper: #fffdf8;
  --soft: #f1efe6;
  --line: rgba(30, 38, 32, 0.14);
  --green: #19724d;
  --green-dark: #0d3c2a;
  --saffron: #d88a1d;
  --blue: #245f86;
  --red: #a84434;
  --shadow: 0 18px 45px rgba(23, 34, 29, 0.14);
  --shadow-3d: 0 30px 75px rgba(13, 60, 42, 0.22), 0 10px 22px rgba(23, 34, 29, 0.12);
}

body {
  background:
    linear-gradient(135deg, rgba(216, 138, 29, 0.12) 0 12%, transparent 12% 100%),
    linear-gradient(225deg, rgba(36, 95, 134, 0.11) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #fffdf8 0%, #eef4ed 48%, #fff8ed 100%);
}

.site-header {
  border-bottom: 1px solid rgba(20, 69, 49, 0.12);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 16px 40px rgba(23, 34, 29, 0.11);
}

.brand-mark {
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #eaf3ec);
  box-shadow: 0 14px 26px rgba(23, 34, 29, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-nav a {
  position: relative;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  transform: translateY(-1px);
  color: var(--white);
  border-color: rgba(13, 60, 42, 0.08);
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 24px rgba(23, 34, 29, 0.16);
}

.hero-premium {
  min-height: calc(100svh - 78px);
  align-items: center;
  background: #14241c;
  box-shadow: none;
}

.hero-premium .hero-media {
  background:
    linear-gradient(90deg, rgba(10, 22, 17, 0.36) 0%, rgba(10, 22, 17, 0.16) 44%, rgba(10, 22, 17, 0.03) 100%),
    linear-gradient(180deg, rgba(10, 22, 17, 0.02) 0%, rgba(10, 22, 17, 0.24) 100%),
    url("assets/images/home-hero-secondary-students-v4.png") center 42% / cover;
  transform: scale(1.03);
}

.hero-premium::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-premium .hero-content {
  width: min(640px, calc(100% - 36px));
  margin: clamp(76px, 10vw, 126px) 0 clamp(54px, 8vw, 90px) clamp(18px, 7vw, 92px);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 18, 14, 0.3), rgba(8, 18, 14, 0.08));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.hero-premium h1 {
  max-width: 640px;
  font-size: clamp(2.1rem, 4.35vw, 4.4rem);
}

.premium-strip {
  position: relative;
  justify-content: center;
  border: 0;
  color: #fff8e9;
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--blue));
  box-shadow: 0 18px 40px rgba(23, 34, 29, 0.14);
}

.premium-strip strong {
  color: var(--green-dark);
  background: #fff7df;
}

.premium-strip a {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  font-weight: 900;
}

.premium-metrics {
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px) 10px;
  border: 0;
  background: transparent;
  transform: none;
}

.premium-metrics article {
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 239, 0.88));
  box-shadow: var(--shadow-3d), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.values-section {
  position: relative;
  padding-block: clamp(24px, 3.5vw, 42px);
  margin-top: -100px;
  padding-top: calc(clamp(18px, 2.8vw, 34px) + 100px);
  background: var(--paper);
}

.values-section .section-heading {
  display: block;
  max-width: 1120px;
  margin-inline: auto;
  margin-bottom: 18px;
  text-align: center;
}

.values-section .section-heading h2 {
  max-width: 980px;
  margin: 0 auto 10px;
  font-size: clamp(1.9rem, 3.25vw, 3rem);
  line-height: 1.08;
  text-align: center;
}

.values-section .section-heading p:last-child {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 900px) {
  .values-section .section-heading h2 {
    white-space: nowrap;
  }
}

@media (min-width: 1180px) {
  .staff-page-hero h1,
  .staff-page-hero .page-intro,
  .contact-hero h1,
  .contact-hero .page-intro,
  .students-page-hero h1,
  .students-page-hero .page-intro {
    max-width: none;
    white-space: nowrap;
  }
}

.value-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-orbit article,
.academic-feature-grid article,
.month-stage,
.success-ribbon article {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 239, 0.9));
  box-shadow: var(--shadow-3d), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.value-orbit article {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 18px 20px 17px;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.value-orbit article::before {
  display: none;
}

.value-orbit article:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: 0 30px 75px rgba(13, 60, 42, 0.22), 0 10px 22px rgba(23, 34, 29, 0.12);
}

.value-card-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.value-orbit span {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green), var(--blue));
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(25, 114, 77, 0.2);
}

.value-orbit h3 {
  position: relative;
  margin: 0;
  color: var(--green-dark);
  font-size: 1.22rem;
  line-height: 1.25;
}

.value-orbit p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.story-section {
  background: linear-gradient(135deg, rgba(13, 60, 42, 0.94), rgba(36, 95, 134, 0.88));
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.story-panel h2,
.story-panel p {
  color: var(--white);
}

.story-stack {
  display: grid;
  gap: 12px;
}

.story-stack span {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  font-weight: 900;
}

.academics-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(232, 242, 234, 0.92));
}

.academic-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.academic-feature-grid article {
  min-height: 198px;
  padding: 22px;
}

.success-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-block: 30px;
  background: transparent;
}

.success-ribbon article {
  padding: 24px;
}

.success-ribbon strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.success-ribbon span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.month-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.month-stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0f1d17;
  transform: perspective(1000px) rotateX(0.5deg);
}

.month-stage img {
  width: 100%;
  height: min(64vh, 620px);
  min-height: 360px;
  object-fit: contain;
  background: linear-gradient(145deg, #101c17, #24362d);
}

.month-stage figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(9, 18, 14, 0.7);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.month-nav {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(25, 114, 77, 0.18);
  border-radius: 50%;
  color: var(--green-dark);
  background: linear-gradient(145deg, #ffffff, #edf5ee);
  box-shadow: 0 14px 30px rgba(23, 34, 29, 0.14);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.month-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(23, 34, 29, 0.18);
}

.month-nav:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.month-carousel.is-single .month-thumbs {
  display: none;
}

.month-thumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.month-thumb {
  flex: 0 0 86px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(23, 34, 29, 0.12);
  cursor: pointer;
}

.month-thumb.is-active {
  border-color: var(--saffron);
}

.month-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-panel,
.contact-method {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 239, 0.9));
  box-shadow: var(--shadow-3d), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-section {
  padding-block: clamp(30px, 4.5vw, 56px);
}

.contact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.contact-columns .contact-panel:nth-child(2) {
  order: -1;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.contact-panel-heading {
  margin-bottom: 12px;
}

.contact-panel-heading .section-kicker,
.contact-method strong {
  color: var(--green-dark);
}

.contact-panel-heading .section-kicker {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 2.5vw, 2.08rem);
  line-height: 1.18;
}

.contact-panel-heading h2 {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 800;
}

.contact-method p {
  margin: 0;
  color: var(--muted);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  gap: 12px;
}

.contact-method {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  gap: 8px 12px;
  min-height: 132px;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-method:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: 0 30px 75px rgba(13, 60, 42, 0.22), 0 10px 22px rgba(23, 34, 29, 0.12);
}

.contact-method strong {
  display: block;
  align-self: center;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.35;
}

.contact-method p {
  grid-column: 1 / -1;
}

.contact-method p a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-method p a:hover,
.contact-method p a:focus {
  color: var(--blue);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green), var(--blue));
  box-shadow: 0 12px 24px rgba(25, 114, 77, 0.2);
}

.card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.whatsapp-contact .card-icon {
  background: linear-gradient(145deg, #168a52, #1f6b4b);
}

.primary-contact {
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 138, 29, 0.18), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 239, 0.92));
}

@media (max-width: 980px) {
  .value-orbit,
  .success-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-panel,
  .academics-split,
  .contact-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-premium {
    min-height: calc(100svh - 72px);
    align-items: end;
  }

  .values-section {
    margin-top: -64px;
    padding-top: calc(clamp(18px, 3.5vw, 30px) + 64px);
  }

  .hero-premium .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 28px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(8, 18, 14, 0.28), rgba(8, 18, 14, 0.08));
    backdrop-filter: blur(1px);
  }

  .premium-metrics {
    grid-template-columns: repeat(2, 1fr);
    transform: none;
  }

  .month-carousel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .month-nav {
    position: absolute;
    top: min(46vw, 300px);
    z-index: 2;
    width: 46px;
    height: 46px;
  }

  .month-nav.previous {
    left: 16px;
  }

  .month-nav.next {
    right: 16px;
  }

  .month-stage img {
    height: min(58vh, 520px);
    min-height: 300px;
  }
}

@media (max-width: 540px) {
  .value-orbit,
  .academic-feature-grid,
  .success-ribbon,
  .contact-card-grid,
  .premium-metrics {
    grid-template-columns: 1fr;
  }

  .month-stage figcaption {
    display: grid;
  }
}
