@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');



:root {
  /* site typography */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;

  --primary: #7339a5;
  --primary-dark: #4b236f;
  --secondary: #d84f82;
  --accent: #f6c65b;
  --ink: #1f2330;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #fff8fc;
  --lavender: #f3ebfa;
  --border: rgba(77, 36, 110, .13);
  --shadow-sm: 0 10px 30px rgba(54, 29, 76, .09);
  --shadow-lg: 0 24px 65px rgba(54, 29, 76, .16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Holds a scrolled-to heading clear of the sticky header, so it lands on screen and not behind it. */
[id] {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
}

h4 {
  font-size: 1.2rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

p {
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1.8;
}

/* spacing only between stacked paragraphs */
p + p {
  margin-top: 12px;
}

li,
label,
figcaption,
blockquote,
th,
td {
  font-family: var(--font-body);
}

.container {
  /* width: min(calc(100% - 32px), var(--container)); */
  width: 95% !important;
  margin-inline: auto;
}

.section {
  padding: 50px 0;
  position: relative;
}

.section-soft {
  background: linear-gradient(180deg, #fff9fc, #fbf7ff);
}

.section-title {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-title.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* color: var(--primary); */
  color: #cf9933;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  /* background: linear-gradient(90deg, var(--secondary), var(--primary)); */
  background: wheat;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-title p {
  color: var(--muted);
  max-width: 650px;
}

.center .section-title p,
.section-title.center p {
  margin-inline: auto;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 12px 23px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  /* color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(115, 57, 165, .12), rgba(216, 79, 130, .11));
  box-shadow: 0 14px 28px rgba(115, 57, 165, .24);
}

.btn-light {
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(115, 57, 165, .12), rgba(216, 79, 130, .11));
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(115, 57, 165, .25);
}

.btn-icon {
  transition: transform var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* White rather than purple: the crest is a blue transparent PNG, and the ring gives it its edge back. */
.loader-mark {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(115, 57, 165, .14), 0 14px 34px rgba(115, 57, 165, .18);
  animation: loaderPulse 1.05s infinite alternate;
}

/* Sized by height, not width. The crest is far taller than it is wide, so a
   width of 48px pushed it straight out of the circle. */
.loader-mark img {
  width: auto;
  height: 74px;
  max-width: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12));
}

@keyframes loaderPulse {
  to {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 18px 40px rgba(115, 57, 165, .25);
  }
}

/* Top bar */
.topbar {
  background: #2b153c;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-links,
.topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px
}

.topbar a:hover {
  color: white;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.4;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: var(--transition);
}

.topbar-btn:hover {
  color: var(--primary-dark);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.topbar-btn.is-primary {
  background: var(--secondary);
  border-color: var(--secondary);
}

.topbar-btn.is-primary:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 10px 32px rgba(38, 20, 52, .08);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  /* gap: 28px; */
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Height fixed, width left to the picture. The crest is a tall oval, and a
   54x54 box was squashing it into a square. */
.brand img {
  width: auto;
  height: 54px;
  max-width: 64px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  /* font-family: "Playfair Display", serif; */
  color: var(--primary-dark);
  font-size: 1.25rem;
  letter-spacing: .01em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  /* font-size: .69rem */
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  color: #3d3746;
  /* font-size: .80rem; */
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--lavender);
}

.dropdown-toggle::after {
  content: "⌄";
  font-size: .82rem;
  line-height: 1;
  transition: transform var(--transition);
}

.nav-item:hover>.dropdown-toggle::after,
.nav-item.open>.dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 255px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.dropdown-menu.wide {
  width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.nav-item:hover>.dropdown-menu,
.nav-item.open>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 15px;
  color: #4c4653;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: var(--surface-soft);
  padding-left: 16px;
}

.dropdown-menu .menu-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lavender);
}

.nav-cta {
  margin-left: 6px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--lavender);
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  transition: var(--transition);
}

.menu-toggle::before {
  top: 15px;
}

.menu-toggle span {
  top: 22px;
}

.menu-toggle::after {
  top: 29px;
}

.menu-toggle.active::before {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle.active span {
  opacity: 0;
}

.menu-toggle.active::after {
  top: 22px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: opacity .8s ease, visibility .8s ease, transform 5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* A photo slide with words: text along the bottom, and a scrim to keep white type readable. */
.hero-slide.has-copy {
  background-position: center 32%;
}

.hero-slide.has-copy::before {
  background:
    linear-gradient(180deg, rgba(14, 10, 28, .5) 0%, rgba(14, 10, 28, 0) 34%),
    linear-gradient(0deg, rgba(14, 10, 28, .9) 0%, rgba(14, 10, 28, .55) 30%, rgba(14, 10, 28, 0) 64%);
}

.hero-slide.has-copy .hero-content {
  align-items: flex-end;
}

.hero-slide.has-copy .hero-copy {
  max-width: 820px;
  padding: 60px 0 116px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-shadow: 0 2px 24px rgba(10, 6, 22, .45);
}

.hero-copy h2 span {
  color: #ffd77d;
}

/* The gold rule under the heading -- the one piece of decoration, kept thin so
   it reads as a finish line rather than a border. */
.hero-copy h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 215, 125, 0));
}

.hero-slide.has-copy .hero-copy p {
  margin-top: 16px;
  text-shadow: 0 1px 16px rgba(10, 6, 22, .5);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 730px;
  padding: 80px 0 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  font-size: .84rem;
  font-weight: 700;
}

.hero-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(246, 198, 91, .16);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  letter-spacing: -.045em;
}

.hero h1 span {
  color: #ffd77d;
}

.hero p {
  max-width: 660px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(calc(100% - 32px), var(--container));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-dots {
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: var(--transition);
}

.slider-dot.active {
  width: 62px;
  background: #fff;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.slider-arrow:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Announcement strip */
.notice-strip {
  position: relative;
  z-index: 5;
  margin-top: -28px;
}

.notice-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  padding: 16px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.notice-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 800;
}

.notice-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(216, 79, 130, .35)
  }

  50% {
    box-shadow: 0 0 0 9px rgba(216, 79, 130, 0)
  }
}

.notice-ticker {
  overflow: hidden;
  white-space: nowrap;
  color: var(--muted);
}

.notice-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 22s linear infinite;
}

.notice-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* Highlights */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.stat-card strong {
  display: block;
  color: var(--primary);
  /* font-family: "Playfair Display", serif; */
  font-size: 2.5rem;
}

.stat-card span {
  color: var(--muted);
  font-weight: 600;
}

/* About split */
.split-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 68px;
}

.image-composition {
  position: relative;
  min-height: 570px;
}

.image-composition .image-main {
  width: 84%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.image-composition .image-small {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 45%;
  height: 250px;
  object-fit: cover;
  border: 9px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  right: 7%;
  top: 35px;
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-lg);
  animation: floatY 3.5s ease-in-out infinite;
}

.experience-badge strong {
  display: block;
  font: 800 2.25rem "Playfair Display", serif;
}

@keyframes floatY {
  50% {
    transform: translateY(-12px);
  }
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  /* background: #2b153c; */
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #4d4653;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 800;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 340px;
  padding: 36px 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* thin accent strip along the top edge */
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
  opacity: .55;
}

.info-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--lavender);
  opacity: .55;
  transition: transform .45s ease;
}

.info-card:hover {
  transform: translateY(-7px);
  border-color: rgba(115, 57, 165, .3);
  box-shadow: var(--shadow-lg);
}

.info-card:hover::after {
  transform: scale(1.25);
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--lavender);
  font-size: 1.5rem;
}

.info-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.info-card p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(115, 57, 165, .28);
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color var(--transition), color var(--transition);
}

.text-link:hover {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

/* Principal */


.principal-heading {
  text-align: center;
  margin-bottom: 30px;

}

/* same style as the curriculam page title */
.principal-heading h1 {
  margin: 40px 0 0;
  color: #3f1f68;
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.principal-heading h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, #6f35b5, #b47de9);
  border-radius: 20px;
}

.principal-wrap {
  display: grid;
  /* display: flex; */
  /* A fixed column for the portrait, not a share of the width, so it cannot outgrow its message. */
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* background: #2f1740; */
  box-shadow: var(--shadow-lg);
}

/* only the principal block is meant to sit narrower than its container */
.principal-wrap.reveal.visible {
  width: 88%;
  margin-inline: auto;
}

/* photo box hugs the picture so nothing gets cropped */
.principal-photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  border-radius: 15px;
  overflow: hidden;
}

.principal-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
}

/* Home page only: the shorter portrait is centred against the message and kept off the card corners. */
.principal-wrap:not(.stacked) .principal-photo {
  justify-content: center;
  padding: 40px 0 40px 40px;
}

/* No tint over this photo: with no text sitting on it, a gradient only dulled the portrait. */

/* Principal's Desk page: photo on top, message below */
.principal-wrap.stacked {
  display: block;
  min-height: 0;
}

.principal-wrap.stacked .principal-photo {
  max-width: 320px;
  min-height: 0;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principal-wrap.stacked .principal-photo img {
  display: block;
  height: auto;
}

/* The message follows straight under the portrait, held to a readable line length. */
.principal-wrap.stacked .principal-copy {
  max-width: 860px;
  margin-inline: auto;
  padding: 30px 26px 60px;
}

.principal-copy {
  position: relative;
  padding: 72px;
  color: #130e0e;
  overflow: hidden;
}

.principal-copy::before {
  content: "“";
  position: absolute;
  right: 26px;
  top: -38px;
  /* font-family: Georgia, serif; */
  font-size: 18rem;
  color: rgba(255, 255, 255, .05);
  line-height: 1;
}

.principal-copy .eyebrow {
  line-height: 24px;
  color: rgb(91 87 77);
  /* letter-spacing: 4px; */
}

.principal-copy p {
  color: black;
  font-weight: 600;
}

.signature {
  display: inline-block;
  margin: 12px 0 24px;
  /* font-family: "Playfair Display", serif; */
  font-size: 1.55rem;
  font-style: italic;
  color: black;
}

/* Programs / image cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.program-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  transition: transform .7s ease;
}

.program-card:hover img {
  transform: scale(1.08);
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 16, 40, .92), rgba(31, 16, 40, .04) 70%);
}

.program-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
  color: #fff;
}

.program-content p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 0;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
}

.event-featured,
.event-list {
  border-radius: var(--radius-md);
}

.event-featured {
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.event-featured img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.event-body {
  padding: 28px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 10px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: var(--transition);
}

.event-row:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.event-date {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 16px;
  color: var(--primary-dark) !important;
  background: linear-gradient(135deg, rgba(115, 57, 165, .12), rgba(216, 79, 130, .11)) !important;
  line-height: 1;
}

.event-date strong {
  font-size: 1.55rem;
}

.event-date span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.event-row h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

:root {
  --primary-color: #713b72;
  --primary-dark: #512752;
  --primary-light: #f6eef7;

  --secondary-color: #c89754;

  --heading-color: #27202a;
  --text-color: #66606a;
  --border-color: #e7dde8;

  --white: #ffffff;
  --page-background: #fbf9fc;

  --container-width: 1200px;
  --border-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.gallery-container {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}








/* BASIC RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #713b72;
  --primary-dark: #4f2850;
  --primary-light: #f6eef7;

  --secondary-color: #c89754;

  --heading-color: #29222c;
  --text-color: #6f6772;
  --light-text: #948b96;

  --white: #ffffff;
  --background: #fbf9fc;
  --border-color: #e7dde8;

  --container-width: 1200px;
  --border-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-color);
  background: var(--background);
  font-family: var(--font-body);
  line-height: 1.75;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.video-container {
  width: min(var(--container-width),
      calc(100% - 40px));

  margin: 0 auto;
}


/* PAGE HEADING */

.video-page-heading {
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
  text-align: center;

  background:
    radial-gradient(circle at 10% 20%,
      rgba(113, 59, 114, 0.11),
      transparent 28%),
    radial-gradient(circle at 90% 80%,
      rgba(200, 151, 84, 0.13),
      transparent 28%),
    linear-gradient(135deg,
      #ffffff 0%,
      #f8f0f8 100%);

  border-bottom: 1px solid var(--border-color);
}

.video-small-heading {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.video-page-heading h1 {
  color: var(--heading-color);
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.15;
}

.video-page-heading h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto;
  background: var(--secondary-color);
  border-radius: 10px;
}

.video-page-heading p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
}


/* FEATURED VIDEO SECTION */

.featured-video-section {
  padding: 55px 0;
}

.featured-video-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr) minmax(320px, 0.85fr);

  gap: 28px;
  align-items: stretch;
}


/* MAIN VIDEO PLAYER */

.main-video-column {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 12px 35px rgba(67, 39, 68, 0.10);
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #171217;
}

.video-player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-video-information {
  padding: 25px 28px 28px;
}

.featured-video-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 4px 12px;
  color: var(--primary-color);
  background: var(--primary-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.featured-video-information h2 {
  margin-bottom: 8px;
  color: var(--heading-color);
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

.featured-video-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--light-text);
  font-size: 13px;
}

.meta-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* display:inline-block hidden attribute ko override kar deta hai */
.featured-video-meta [hidden] {
  display: none;
}

.featured-video-information p {
  max-width: 750px;
  font-size: 14px;
}


/* VIDEO PLAYLIST */

.video-playlist {
  display: flex;
  min-height: 0;
  max-height: 640px;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 12px 35px rgba(67, 39, 68, 0.08);
}

.playlist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
}

.playlist-heading span:first-child {
  display: block;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.playlist-heading h3 {
  color: var(--heading-color);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
}

.playlist-count {
  flex-shrink: 0;
  padding: 5px 10px;
  color: var(--primary-color);
  background: var(--primary-light);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}


/* PLAYLIST SEARCH */

.playlist-search {
  position: relative;
  margin: 15px 17px;
}

.playlist-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: #8d838f;
  transform: translateY(-50%);
  pointer-events: none;
}

.playlist-search input {
  width: 100%;
  height: 43px;
  padding: 0 14px 0 42px;
  color: var(--heading-color);
  background: #fcfafc;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.playlist-search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(113, 59, 114, 0.10);
}


/* PLAYLIST ITEMS */

.playlist-items {
  flex: 1;
  min-height: 0;
  padding: 0 10px 12px;
  overflow-y: auto;
}

.playlist-items::-webkit-scrollbar {
  width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
  background: transparent;
}

.playlist-items::-webkit-scrollbar-thumb {
  background: #d8c9d9;
  border-radius: 10px;
}

.playlist-video-button {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px;
  cursor: pointer;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    /* background 0.25s ease, */
    border-color 0.25s ease,
    transform 0.25s ease;
}

.playlist-video-button:hover {
  background: var(--primary-light);
  transform: translateX(3px);
}

.playlist-video-button.active {
  background: var(--primary-light);
  border-color: rgba(113, 59, 114, 0.20);
}

.playlist-thumbnail {
  position: relative;
  height: 70px;
  overflow: hidden;
  background: #e9e1ea;
  border-radius: 7px;
}

.playlist-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 29, 0.12);
}

.small-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--white);
  background: rgba(113, 59, 114, 0.90);
  border-radius: 50%;
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.small-play-button span {
  margin-left: 2px;
}

.playlist-video-text {
  min-width: 0;
  padding-top: 2px;
}

.playlist-video-text h4 {
  display: -webkit-box;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.playlist-video-text p {
  color: var(--light-text);
  font-size: 11px;
}


/* ALL VIDEOS SECTION */

.all-videos-section {
  padding: 15px 0 80px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.section-heading-row h2 {
  color: var(--heading-color);
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
}

/* heading that sends visitors to the school's YouTube channel */
.youtube-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

.youtube-channel-icon {
  display: inline-flex;
  align-items: center;
  color: #ff0000;
}

.youtube-channel-icon svg {
  width: 1.15em;
  height: 1.15em;
}

.youtube-channel-arrow {
  font-size: .8em;
  transition: transform .25s ease;
}

.youtube-channel-link:hover,
.youtube-channel-link:focus-visible {
  color: #ff0000;
}

.youtube-channel-link:hover .youtube-channel-arrow,
.youtube-channel-link:focus-visible .youtube-channel-arrow {
  transform: translateX(6px);
}


/* CATEGORY FILTERS */

.video-category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-filter-button {
  padding: 8px 17px;
  cursor: pointer;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.25s ease,
    /* background 0.25s ease, */
    border-color 0.25s ease,
    transform 0.25s ease;
}

.video-filter-button:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.video-filter-button.active {
  color: var(--white);
  background: var(--primary-color);
  border-color: var(--primary-color);
}


/* VIDEO CARD GRID */

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.video-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(67, 39, 68, 0.07);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.video-card:hover {
  border-color: rgba(113, 59, 114, 0.28);
  box-shadow: 0 15px 35px rgba(67, 39, 68, 0.14);
  transform: translateY(-6px);
}

.video-card.active {
  border-color: var(--primary-color);
}

.video-card-button {
  display: block;
  width: 100%;
  cursor: pointer;
  color: inherit;
  text-align: left;
  background: transparent;
}

.video-card-thumbnail {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e9e1ea;
}

.video-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.video-card:hover .video-card-thumbnail img {
  filter: brightness(0.80);
  transform: scale(1.06);
}

.large-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: rgba(113, 59, 114, 0.92);
  border: 4px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 19px;
  transform: translate(-50%, -50%);
  transition:
    /* background 0.3s ease, */
    transform 0.3s ease;
}

.large-play-button span {
  margin-left: 4px;
}

.video-card:hover .large-play-button {
  background: var(--secondary-color);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card-category {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(35, 23, 36, 0.75);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.video-card-content {
  padding: 19px 20px 21px;
}

.video-card-content h3 {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--heading-color);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.video-card-content p {
  color: var(--light-text);
  font-size: 12px;
}


/* EMPTY MESSAGE */

.video-empty-message {
  padding: 60px 20px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
}

.empty-video-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 19px;
}

.video-empty-message h3 {
  margin-bottom: 5px;
  color: var(--heading-color);
  font-size: 21px;
}

.video-empty-message p {
  font-size: 14px;
}


/* RESPONSIVE */

@media screen and (max-width: 1050px) {

  .featured-video-layout {
    grid-template-columns: 1fr;
  }

  .video-playlist {
    max-height: 470px;
  }

  .playlist-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media screen and (max-width: 768px) {

  .video-container {
    width: min(100% - 28px,
        var(--container-width));
  }

  .video-page-heading {
    padding: 52px 15px;
  }

  .featured-video-section {
    padding: 38px 0;
  }

  .featured-video-information {
    padding: 20px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-category-filters {
    justify-content: flex-start;
  }

  .video-playlist {
    max-height: 520px;
  }

  .playlist-items {
    display: block;
  }

  .video-card-thumbnail {
    height: 190px;
  }

}

@media screen and (max-width: 560px) {

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card-thumbnail {
    height: 220px;
  }

  .video-category-filters {
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    overflow-x: auto;
  }

  .video-filter-button {
    flex-shrink: 0;
  }

  .playlist-video-button {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .playlist-heading {
    padding: 17px;
  }

}


/* CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: #4a2367;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta-content h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.cta-content p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 0;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 19, 59, .91), rgba(113, 53, 143, .68));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 255, 255, .78);
}

.breadcrumb a {
  color: #fff;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 45px;
}

.sidebar-card {
  position: sticky;
  top: 112px;
  align-self: start;
  height: fit-content;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.3rem;
}

.sidebar-links {
  display: grid;
  gap: 8px;
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 10px;
  color: #514a57;
  background: #faf7fc;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links .a {
  color: #fff;
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  background: #4a2368;
  padding-left: 17px;
}

.prose h2 {
  font-size: 2.1rem;
  margin-top: 38px;
}

.prose h3 {
  font-size: 1.45rem;
  margin-top: 30px;
}

.prose p,
.prose li {
  color: #5f5964;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.prose li {
  position: relative;
  padding-left: 24px;
}

.prose li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--secondary);
  font-weight: 900;
}

/* Admission steps */




/* - ADMISSION PAGE */

:root {
  --primary: #8b3f70;
  --primary-dark: #5a2448;
  --primary-deep: #3d172f;
  --primary-light: #f5e8f0;

  --accent: #cf9d52;
  --accent-light: #f9eedc;

  --heading: #2b2027;
  --text: #685e64;
  --muted: #8e8289;

  --white: #ffffff;
  --off-white: #fdfafb;
  --soft-bg: #f8f2f6;
  --border: #eadde5;

  --green: #40725e;
  --green-light: #e8f2ed;

  --shadow-small: 0 12px 35px rgba(69, 35, 55, 0.08);
  --shadow-medium: 0 25px 65px rgba(69, 35, 55, 0.13);

  --radius-small: 10px;
  --radius-medium: 20px;
  --radius-large: 32px;

  --transition: 0.35s ease;
}


/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: Arial, Helvetica, sans-serif; */
  background: var(--off-white);
  color: var(--text);
  line-height: 1.7;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* COMMON STYLES */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.light-label {
  color: rgba(255, 255, 255, 0.8);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 50px;
}

.section-heading h2,
.center-heading h2 {
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.12;
}

.section-heading>p {
  max-width: 500px;
  font-size: 16px;
}

.center-heading {
  max-width: 750px;
  margin: 0 auto 55px;
  text-align: center;
}

.center-heading .section-label::before {
  display: none;
}

.center-heading .section-label::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.center-heading p {
  margin-top: 18px;
}


/* HERO SECTION */

.admission-hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0;
  background:
    linear-gradient(120deg,
      var(--primary-deep),
      var(--primary));
}

.admission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px,
      transparent 1px);
  background-size: 65px 65px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-shape-one {
  width: 450px;
  height: 450px;
  top: -230px;
  right: -70px;
}

.hero-shape-two {
  width: 270px;
  height: 270px;
  left: -110px;
  bottom: -130px;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: center;
  gap: 90px;
}

.hero-content h1 {
  margin-bottom: 25px;
  color: var(--white);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(55px, 8vw, 92px);
  font-weight: 500;
  line-height: 0.98;
}

.hero-content h1 span {
  display: block;
  color: #f2d6a8;
}

.hero-content>p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-note {
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 35px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.note-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #f2d6a8;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-weight: 700;
}

.hero-note p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 45px 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(26, 5, 19, 0.25);
  backdrop-filter: blur(15px);
}

.hero-card::after {
  content: "";
  width: 140px;
  height: 140px;
  position: absolute;
  right: -55px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-card-number {
  position: absolute;
  top: 25px;
  right: 28px;
  color: rgba(255, 255, 255, 0.1);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 65px;
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #f2d6a8;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 24px;
}

.small-title {
  display: block;
  margin-bottom: 8px;
  color: #f2d6a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 15px;
  color: var(--white);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}


/* INTRO SECTION */

.intro-section {
  padding: 90px 0 25px;
}

.intro-card {
  display: grid;
  grid-template-columns: 155px 1fr;
  align-items: center;
  gap: 45px;
  padding: 48px 55px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.intro-number {
  height: 125px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  color: var(--primary);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 39px;
}

.intro-content h2 {
  margin-bottom: 14px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 500;
  line-height: 1.18;
}

.intro-content p {
  max-width: 820px;
}


/* ELIGIBILITY SECTION */

.eligibility-section {
  padding: 110px 0;
}

.eligibility-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: stretch;
  gap: 30px;
}

.age-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.age-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.age-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.featured-age-card {
  color: rgba(255, 255, 255, 0.75);
  border-color: transparent;
  background:
    rgb(38, 19, 52);

}

.age-card::after {
  content: "";
  width: 120px;
  height: 120px;
  position: absolute;
  right: -50px;
  bottom: -50px;
  border-radius: 50%;
  background: var(--primary-light);
}

.featured-age-card::after {
  background: rgba(255, 255, 255, 0.08);
}

.age-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-number {
  /* color: rgba(139, 63, 112, 0.2); */
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 38px;
}


.class-tag {
  padding: 6px 10px;
  border-radius: 50px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-age-card .class-tag {
  color: var(--primary-deep);
  background: #f2d6a8;
}

.class-name {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 27px;
}

.featured-age-card .class-name {
  color: var(--white);
}

.age-number {
  position: relative;
  z-index: 2;
  margin: 5px 0;
  color: var(--primary);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 78px;
  line-height: 1;
}

.featured-age-card .age-number {
  color: #f2d6a8;
}

.age-card p {
  position: relative;
  z-index: 2;
  font-size: 13px;
}

.eligibility-info {
  padding: 42px 35px;
  border-radius: var(--radius-medium);
  background: var(--accent-light);
}

.info-title {
  display: inline-block;
  margin-bottom: 12px;
  color: #8b6632;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.eligibility-info h3 {
  margin-bottom: 14px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 32px;
  font-weight: 500;
}

.eligibility-info>p {
  font-size: 14px;
}

.info-divider {
  height: 1px;
  margin: 28px 0;
  background: rgba(139, 102, 50, 0.18);
}

.info-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  margin-bottom: 22px;
}

.info-point span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 13px;
}

.info-point p {
  font-size: 13px;
}


/* Eligibility Criteria Section */
.eligibility-criteria h2 {
  margin: 0 auto;
  width: fit-content;
  padding-top: 40px;

}

.eligibility-criteria-p {
  margin: 0 auto;
  width: fit-content;
  padding-top: 20px;

}

.eligibility-section {
  padding: 30px 20px;

  /* font-family: Arial, Helvetica, sans-serif; */
}

.eligibility-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: #92487a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: #2e2430;
  font-size: 36px;
  font-weight: 700;
}

.section-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: #68606a;
  font-size: 16px;
  line-height: 1.7;
}

.section-heading p strong {
  color: #92487a;
}

.table-wrapper {
  overflow: hidden;
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.eligibility-table {
  width: 100%;
  border-collapse: collapse;
}

.eligibility-table thead {
  background: #f7f6f3;
}

.eligibility-table th {
  padding: 20px 25px;
  color: #3f1f68;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  background: #f7f6f3;
  border-bottom: 1px solid #e8e5e0;
}

.eligibility-table th:last-child {
  text-align: center;
}

.eligibility-table td {
  padding: 18px 25px;
  border-bottom: 1px solid #e8e5e0;
  color: #625b6b;
  font-size: 16px;
  font-weight: 600;
}

.eligibility-table tbody tr:last-child td {
  border-bottom: none;
}

.eligibility-table tbody tr {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.eligibility-table tbody tr:hover {
  background-color: #f7f6f3;
}

.eligibility-table td:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eligibility-table td:last-child {
  text-align: center;
}

.class-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e8e5e0;
  border-radius: 14px;
  background: #ffffff;
  color: #6f35b5;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(38, 22, 58, 0.10);
}

.age-badge {
  display: inline-block;
  min-width: 110px;
  padding: 10px 18px;
  border: 1px solid #e8e5e0;
  border-radius: 30px;
  background-color: #f7f6f3;
  color: #6f35b5;
  font-size: 14px;
  font-weight: 700;
}

.eligibility-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 22px 25px;
  border: 1px solid #e8e5e0;
  border-left: 5px solid #6f35b5;
  border-radius: 15px;
  background-color: #f7f6f3;
}

.note-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #42225a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.eligibility-note p {
  margin: 2px 0 0;
  color: #594c66;
  font-size: 14px;
  line-height: 1.6;
}

/* Mobile Responsive */

@media (max-width: 600px) {
  .eligibility-section {
    padding: 45px 15px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .eligibility-table th,
  .eligibility-table td {
    padding: 15px 12px;
    font-size: 14px;
  }

  .class-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 11px;
  }

  .eligibility-table td:first-child {
    gap: 9px;
  }

  .age-badge {
    min-width: 85px;
    padding: 8px 10px;
    font-size: 12px;
  }
}




/* PROCEDURE SECTION */

.procedure-section {
  padding: 110px 0;
  background:
    linear-gradient(135deg,
      var(--primary-deep),
      var(--primary-dark));
}

.procedure-heading h2 {
  color: var(--white);
}

.procedure-heading>p {
  color: rgba(255, 255, 255, 0.7);
}

.procedure-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: start;
  gap: 40px;
}

.procedure-intro {
  position: sticky;
  top: 30px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.07);
}

.procedure-step {
  display: block;
  margin-bottom: 12px;
  color: #f2d6a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.procedure-intro h3 {
  margin-bottom: 16px;
  color: var(--white);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 33px;
  font-weight: 500;
  line-height: 1.2;
}

.procedure-intro>p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.office-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding: 17px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.office-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #f2d6a8;
  /* font-family: Georgia, "Times New Roman", serif; */
}

.office-card strong {
  display: block;
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
}

.office-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.document-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px 65px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 27px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition),
    background var(--transition);
}

.document-card:hover {
  transform: translateX(7px);
  background: rgba(255, 255, 255, 0.12);
}

.document-number {
  color: rgba(255, 255, 255, 0.25);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 29px;
}

.document-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #f2d6a8;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 16px;
}

.document-content h3 {
  margin-bottom: 5px;
  color: var(--white);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 21px;
  font-weight: 500;
}

.document-content p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.required-label,
.optional-label {
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.required-label {
  color: #235640;
  background: #cfebdc;
}

.optional-label {
  color: #77521f;
  background: #f2d6a8;
}


/* PROCESS STEPS */

.steps-section {
  padding: 110px 0;
}

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

.step-card {
  position: relative;
  min-height: 260px;
  padding: 32px 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.step-card:not(:last-child)::after {
  content: "";
  width: 20px;
  height: 1px;
  position: absolute;
  top: 55px;
  right: -21px;
  background: var(--accent);
}

.step-number {
  display: block;
  margin-bottom: 35px;
  color: var(--primary);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 45px;
}

.step-card h3 {
  margin-bottom: 10px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 23px;
  font-weight: 500;
}

.step-card p {
  font-size: 13px;
}


/* FINAL NOTE */

.final-note-section {
  padding: 0 0 110px;
}

.final-note-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding: 60px;
  border-radius: var(--radius-large);
  background:
    rgb(38, 19, 52);

}

.final-note-card::after {
  content: "";
  width: 250px;
  height: 250px;
  position: absolute;
  right: -100px;
  top: -130px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.final-note-content {
  position: relative;
  z-index: 2;
}

.final-note-content h2 {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 49px);
  font-weight: 500;
  line-height: 1.15;
}

.final-note-content p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
}

.final-note-badge {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
}

.final-note-badge span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #f2d6a8;
  font-size: 22px;
}

.final-note-badge strong {
  max-width: 110px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* RESPONSIVE TABLET */

@media (max-width: 1000px) {

  .hero-layout {
    gap: 45px;
  }

  .eligibility-layout {
    grid-template-columns: 1fr;
  }

  .eligibility-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .eligibility-info>.info-title,
  .eligibility-info>h3,
  .eligibility-info>p,
  .eligibility-info>.info-divider {
    grid-column: 1 / -1;
  }

  .info-divider {
    margin: 10px 0;
  }

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

  .step-card:not(:last-child)::after {
    display: none;
  }

}


/* RESPONSIVE SMALL TABLET */

@media (max-width: 820px) {

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }

  .intro-card {
    grid-template-columns: 1fr;
  }

  .intro-number {
    width: 130px;
    height: auto;
    justify-content: start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .procedure-layout {
    grid-template-columns: 1fr;
  }

  .procedure-intro {
    position: static;
  }

  .final-note-card {
    grid-template-columns: 1fr;
  }

}


/* RESPONSIVE MOBILE */

@media (max-width: 600px) {

  .container {
    width: min(100% - 26px, 1180px);
  }

  .admission-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 50px;
  }

  .hero-content>p {
    font-size: 15px;
  }

  .hero-card {
    padding: 32px 25px;
    border-radius: 22px;
  }

  .intro-section {
    padding-top: 65px;
  }

  .intro-card {
    gap: 25px;
    padding: 32px 25px;
    border-radius: 22px;
  }

  .eligibility-section,
  .procedure-section,
  .steps-section {
    padding: 75px 0;
  }

  .age-cards {
    grid-template-columns: 1fr;
  }

  .eligibility-info {
    display: block;
    padding: 32px 24px;
  }

  .info-point {
    margin-bottom: 20px;
  }

  .procedure-intro {
    padding: 30px 24px;
  }

  .document-card {
    grid-template-columns: 45px 55px 1fr;
    gap: 13px;
    padding: 21px 18px;
  }

  .document-icon {
    width: 52px;
    height: 52px;
  }

  .required-label,
  .optional-label {
    grid-column: 3;
    justify-self: start;
    margin-top: 5px;
  }

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

  .step-card {
    min-height: auto;
  }

  .final-note-section {
    padding-bottom: 75px;
  }

  .final-note-card {
    padding: 42px 25px;
    border-radius: 22px;
  }

  .final-note-badge {
    width: 160px;
    height: 160px;
  }

}


/* VERY SMALL DEVICES */

@media (max-width: 380px) {

  .hero-content h1 {
    font-size: 43px;
  }

  .section-heading h2,
  .center-heading h2,
  .intro-content h2 {
    font-size: 32px;
  }

  .document-card {
    grid-template-columns: 1fr;
  }

  .document-number {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .required-label,
  .optional-label {
    grid-column: 1;
  }

}



.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.step-number {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font: 800 1.55rem "Playfair Display", serif;
}


/* CURRICULAM AND ACADEMIC STRUCTURE */




.school-curriculam-section {
  --curriculam-primary: #6f35b5;
  --curriculam-dark: #3f1f68;
  --curriculam-light: #f6f0ff;
  --curriculam-soft: #eee2ff;
  --curriculam-border: #e4d5f6;
  --curriculam-text: #625b6b;
  --curriculam-white: #ffffff;
  --curriculam-gutter: 40px;

  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 5%,
      rgba(144, 85, 210, 0.13),
      transparent 28%),
    radial-gradient(circle at 95% 50%,
      rgba(111, 53, 181, 0.09),
      transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
  /* font-family: Arial, Helvetica, sans-serif; */
}

.school-curriculam-section *,
.school-curriculam-section *::before,
.school-curriculam-section *::after {
  box-sizing: border-box;
}

/* side gutters + one shared max width for every block */
.school-curriculam-section>* {
  width: min(100% - var(--curriculam-gutter), 1180px);
  margin-inline: auto;
}

.school-section {
  margin-top: -97px;

}

.curriculam-wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Main Heading */

.curriculam-main-heading {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.curriculam-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 9px 20px;
  color: var(--curriculam-primary);
  background: var(--curriculam-light);
  border: 1px solid var(--curriculam-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.curriculam-main-heading h1,
.curriculam-main-heading h2 {
  margin: 0;
  color: var(--curriculam-dark);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.curriculam-main-heading h1 span,
.curriculam-main-heading h2 span {
  color: inherit;
}

.curriculam-heading-line {
  width: 90px;
  height: 5px;
  margin: 22px auto 28px;
  background: linear-gradient(90deg,
      var(--curriculam-primary),
      #b47de9);
  border-radius: 20px;
}

.curriculam-main-heading p {
  margin: 0 0 12px;
  color: var(--curriculam-text);
  font-size: 16px;
  line-height: 1.85;
}

.curriculam-main-heading p:last-child {
  margin-bottom: 0;
}

/* Academic Stage Cards */

.academic-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.academic-stage-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 120px;
  padding: 22px;
  background: var(--curriculam-white);
  border: 1px solid #e8e5e0;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(38, 22, 58, 0.09);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.academic-stage-card:hover {
  transform: translateY(-6px);
  border-color: #bc94e6;
  box-shadow: 0 18px 40px rgba(72, 32, 112, 0.14);
}

.stage-number {
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #42225a;

  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(111, 53, 181, 0.25);
  font-size: 16px;
  font-weight: 800;
}

.academic-stage-card h3 {
  margin: 0 0 6px;
  color: var(--curriculam-dark);
  font-size: 17px;
  line-height: 1.3;
}

.academic-stage-card p {
  margin: 0;
  color: var(--curriculam-text);
  font-size: 13px;
  line-height: 1.5;
}

/* Main Content Boxes */

.curriculam-content-box {
  margin-bottom: 30px;
  overflow: hidden;
  background: var(--curriculam-white);
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.curriculam-box-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  overflow: hidden;
  color: var(--curriculam-text);
  background: #f7f6f3;
  border-bottom: 1px solid #e8e5e0;
}

.curriculam-box-header::after {
  content: "";
  position: absolute;
  top: -75px;
  right: -55px;
  width: 190px;
  height: 190px;
  border: 35px solid rgba(63, 31, 104, 0.035);
  border-radius: 50%;
}

.curriculam-box-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  min-width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--curriculam-primary);
  background: var(--curriculam-white);
  border: 1px solid #e8e5e0;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(38, 22, 58, 0.10);
  font-size: 20px;
  font-weight: 800;
}

.curriculam-box-header>div {
  position: relative;
  z-index: 1;
}

.curriculam-box-tag {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--curriculam-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.curriculam-box-header h3 {
  margin: 0 0 5px;
  color: var(--curriculam-dark);
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
}

.curriculam-box-header p {
  margin: 0;
  color: var(--curriculam-text);
  font-size: 14px;
}

.curriculam-box-body {
  padding: 32px;
}

.curriculam-box-body>p {
  margin: 0 0 18px;
  color: var(--curriculam-text);
  font-size: 15.5px;
  line-height: 1.85;
}

.curriculam-highlight {
  position: relative;
  margin: 24px 0;
  padding: 22px 25px 22px 30px;
  overflow: hidden;
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 15px;
}

.curriculam-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--curriculam-primary);
}

.curriculam-highlight p {
  margin: 0;
  color: #594c66;
  font-size: 15px;
  font-style: italic;
  line-height: 1.8;
}

.curriculam-list {
  display: grid;
  gap: 13px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.curriculam-list li {
  position: relative;
  padding: 15px 18px 15px 48px;
  color: var(--curriculam-text);
  background: #fcfaff;
  border: 1px solid #ede4f7;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.curriculam-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 17px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--curriculam-primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.curriculam-list strong {
  color: var(--curriculam-dark);
}

.curriculam-closing-line {
  margin-bottom: 0 !important;
  color: var(--curriculam-primary) !important;
  font-size: 18px !important;
  font-weight: 750;
  text-align: center;
}

/* Subject Tags */

.subject-box {
  margin: 24px 0;
  padding: 24px;
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 16px;
}

.subject-box h4,
.content-sub-heading {
  margin: 0 0 17px;
  color: var(--curriculam-dark);
  font-size: 20px;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-tags span {
  padding: 10px 16px;
  color: var(--curriculam-primary);
  background: var(--curriculam-white);
  border: 1px solid #d9c5ef;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}

/* Middle School Cards */

.middle-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.middle-subject-card {
  position: relative;
  padding: 23px;
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(38, 22, 58, 0.07);
}

.middle-subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 28px rgba(38, 22, 58, 0.12);
}

.small-card-number {
  display: inline-grid;
  width: 37px;
  height: 37px;
  margin-bottom: 15px;
  place-items: center;
  color: #ffffff;
  background: var(--curriculam-primary);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

.middle-subject-card h5 {
  margin: 0 0 9px;
  color: var(--curriculam-dark);
  font-size: 17px;
}

.middle-subject-card p {
  margin: 0;
  color: var(--curriculam-text);
  font-size: 14px;
  line-height: 1.65;
}

/* Language Policy */

.language-policy-box {
  position: relative;
  margin-bottom: 30px;
  padding: 40px;
  overflow: hidden;
  color: black;
  background: white;
  ;

  border: 1px solid #e8e5e0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.language-policy-title span {
  display: inline-block;
  margin-bottom: 9px;
  color: black;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.language-policy-title h3 {
  margin: 0 0 18px;
  color: black;
  font-size: clamp(25px, 4vw, 34px);
}

.language-policy-box>p {
  max-width: 980px;
  margin: 0 0 27px;
  color: black;
  font-size: 15.5px;
  line-height: 1.85;
}

.language-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.language-card {
  padding: 24px;
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 16px;
}

.language-number {
  width: 42px;
  height: 42px;
  display: grid;
  margin-bottom: 14px;
  place-items: center;
  color: var(--curriculam-primary);
  background: #ffffff;
  border: 1px solid #e8e5e0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
}

.language-card h4 {
  margin: 0 0 9px;
  color: black;
  font-size: 17px;
}

.language-card p {
  margin: 0;
  color: black;
  font-size: 14px;
  line-height: 1.65;
}

.language-quote {
  margin: 28px 0 0;
  padding: 20px 25px;
  color: black;
  background: #f7f6f3;
  border-left: 4px solid var(--curriculam-primary);
  border-radius: 0 13px 13px 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
}

/* Grade 11 Table */

.subject-combination-section {
  padding: 35px;
  background: var(--curriculam-white);
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.subject-combination-heading {
  margin-bottom: 25px;
  text-align: center;
}

.subject-combination-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--curriculam-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.subject-combination-heading h3 {
  margin: 0 0 10px;
  color: var(--curriculam-dark);
  font-size: clamp(25px, 4vw, 34px);
}

.subject-combination-heading p {
  margin: 0;
  color: var(--curriculam-text);
  font-size: 15px;
  line-height: 1.7;
}

.combination-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8e5e0;
  border-radius: 16px;
}

.combination-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.combination-table th {
  padding: 18px 15px;
  color: var(--curriculam-dark);
  background: #f7f6f3;
  border-right: 1px solid #e8e5e0;
  border-bottom: 1px solid #e8e5e0;
  font-size: 14px;
  text-align: left;
}

.combination-table th:last-child {
  border-right: none;
}

.combination-table td {
  padding: 17px 15px;
  color: var(--curriculam-text);
  background: #ffffff;
  border-right: 1px solid #ece9e4;
  border-bottom: 1px solid #ece9e4;
  font-size: 14px;
  line-height: 1.55;
  vertical-align: top;
}

.combination-table td:first-child {
  color: var(--curriculam-dark);
  background: #f7f6f3;
  font-weight: 700;
}

.combination-table tr:last-child td {
  border-bottom: none;
}

.combination-table td:last-child {
  border-right: none;
}

.combination-table tbody tr:hover td {
  background: #fbf8ff;
}

.combination-table tbody tr:hover td:first-child {
  background: #eee3fa;
}

/* Responsive Design */

@media screen and (max-width: 1050px) {
  .academic-stages {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media screen and (max-width: 768px) {
  .school-curriculam-section {
    --curriculam-gutter: 32px;
    padding: 45px 0 60px;
  }

  .curriculam-main-heading {
    margin-bottom: 38px;
  }

  .curriculam-box-header {
    padding: 24px;
  }

  .curriculam-box-body {
    padding: 25px;
  }

  .language-policy-box {
    padding: 30px 25px;
  }

  .language-policy-grid {
    grid-template-columns: 1fr;
  }

  .subject-combination-section {
    padding: 27px 20px;
  }
}



@media screen and (max-width: 600px) {
  .school-curriculam-section {
    --curriculam-gutter: 26px;
  }

  .academic-stages {
    grid-template-columns: 1fr;
  }

  .academic-stage-card {
    min-height: auto;
  }


  .curriculam-box-header {
    align-items: flex-start;
    gap: 15px;
  }

  .curriculam-box-icon {
    width: 55px;
    min-width: 55px;
    height: 55px;
    border-radius: 14px;
    font-size: 16px;
  }

  .curriculam-box-header h3 {
    font-size: 22px;
  }

  .curriculam-box-body {
    padding: 22px 18px;
  }

  .middle-subject-grid {
    grid-template-columns: 1fr;
  }

  .curriculam-list li {
    padding: 14px 14px 14px 44px;
  }

  .language-policy-box {
    padding: 27px 20px;
    border-radius: 20px;
  }

  .language-quote {
    padding: 18px;
    font-size: 15px;
  }

  .subject-combination-section {
    padding: 24px 15px;
  }

  .combination-table-wrapper {
    overflow: visible;
    border: none;
  }

  .combination-table {
    min-width: 100%;
  }

  .combination-table thead {
    display: none;
  }

  .combination-table,
  .combination-table tbody,
  .combination-table tr,
  .combination-table td {
    display: block;
    width: 100%;
  }

  .combination-table tr {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e8e5e0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(38, 22, 58, 0.08);
  }

  .combination-table td {
    position: relative;
    min-height: 55px;
    padding: 16px 15px 16px 48%;
    border-right: none;
    border-bottom: 1px solid #ece9e4;
  }

  .combination-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--curriculam-dark);
    background: #f7f6f3;
    font-size: 12px;
    font-weight: 700;
  }

  .combination-table td:first-child {
    padding: 15px;
    color: var(--curriculam-dark);
    background: #f2f0ec;
    text-align: center;
  }

  .combination-table td:first-child::before {
    display: none;
  }

  .combination-table tr:last-child td {
    border-bottom: 1px solid #eadff5;
  }

  .combination-table tr td:last-child {
    border-bottom: none;
  }
}

/* HOLY ANGELS' SCHOOL - ACHIEVEMENT PAGE */

:root {
  --primary: #873b6c;
  --primary-dark: #5f254b;
  --primary-deep: #40152f;
  --primary-light: #f5e8f0;

  --accent: #c89449;
  --accent-light: #f8eddc;

  --heading: #251b22;
  --text: #685d64;
  --light-text: #8a7e85;

  --white: #ffffff;
  --off-white: #fcfafb;
  --soft-background: #f8f3f6;
  --border: #eadde5;

  --green: #3e765f;
  --green-light: #e8f2ed;

  --blue: #42698b;
  --blue-light: #eaf1f7;

  --shadow-small: 0 10px 35px rgba(67, 35, 54, 0.08);
  --shadow-medium: 0 22px 60px rgba(67, 35, 54, 0.12);

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 30px;

  --transition: 0.35s ease;
}


/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: Arial, Helvetica, sans-serif; */
  background: var(--off-white);
  color: var(--text);
  line-height: 1.7;
}

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

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

.page-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* COMMON HEADINGS */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.light-label {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.section-heading h2 {
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.14;
}

.section-heading>p {
  max-width: 530px;
  font-size: 16px;
  line-height: 1.8;
}

.centered-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.centered-heading .section-label::before {
  display: none;
}

.centered-heading .section-label::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.centered-heading>p {
  margin-top: 18px;
}





/* INTRODUCTION */

.intro-section {
  padding: 70px 0 0px;
}

.intro-box {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 44px;
  padding: 50px 55px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.intro-symbol {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background:
    /* linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 20px 45px rgba(135, 59, 108, 0.25); */
    #42225a;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 35px;
}

.mini-heading {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.intro-content h2 {
  margin-bottom: 14px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
}

.intro-content p {
  max-width: 850px;
  font-size: 16px;
}

/* History of SJT */


.history-img {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.history-img .img-1 {
  flex: 0 1 340px;
  /* Without this a flex item refuses to shrink below its picture's own width,
     and the row spills off the side of a narrower screen. */
  min-width: 0;
}

.history-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* The pillars collage carries a name and a span of years under each face, so it
   keeps a width where that lettering stays readable instead of sitting in a row. */
.history-img.is-wide .img-1 {
  flex-basis: 900px;
}

@media screen and (max-width: 700px) {
  .history-img .img-1 {
    flex-basis: 100%;
  }
}

.pillars-of-sjt {
  margin: auto
}




/* RESULT SECTION */

.results-section {
  padding: 110px 0;
}

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.summary-card {
  min-height: 285px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.summary-card:hover {
  transform: translateY(-8px);
  border-color: rgba(135, 59, 108, 0.25);
  box-shadow: var(--shadow-medium);
}

/* All summary cards identical: white background, black text */
.result-summary-grid .summary-card,
.result-summary-grid .summary-card:first-child,
.result-summary-grid .summary-card.summary-card-main {
  color: #000000;
  border-color: var(--border);
  background: #ffffff;
}

.summary-card-icon {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 46px;
}

.result-summary-grid .summary-card .summary-card-icon,
.result-summary-grid .summary-card:first-child .summary-card-icon,
.result-summary-grid .summary-card.summary-card-main .summary-card-icon {
  color: rgba(0, 0, 0, 0.18);
}

.summary-number {
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 1;
}

.result-summary-grid .summary-card .summary-number,
.result-summary-grid .summary-card:first-child .summary-number,
.result-summary-grid .summary-card.summary-card-main .summary-number {
  color: var(--primary);
}

.summary-card h3 {
  margin-bottom: 11px;
  font-size: 23px;
  font-weight: 500;
}

.result-summary-grid .summary-card h3,
.result-summary-grid .summary-card:first-child h3,
.result-summary-grid .summary-card.summary-card-main h3 {
  color: #000000;
}

.summary-card p {
  font-size: 14px;
  line-height: 1.7;
}

.result-summary-grid .summary-card p,
.result-summary-grid .summary-card:first-child p,
.result-summary-grid .summary-card.summary-card-main p {
  color: #000000;
}

.result-statement {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  padding: 32px 38px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--accent-light);
}

.statement-mark {
  height: 55px;
  color: var(--accent);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 75px;
  line-height: 1;
}

.result-statement p {
  color: #66533a;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 19px;
  font-style: italic;
}


/* TOPPERS SECTION */


.toppers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: stretch;
}

.topper-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  padding: 35px 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--white);
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.topper-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

/* First topper card: same white background + purple accents as the others */
.first-rank {
  grid-column: span 2;
  color: var(--text);
  border-color: var(--border);
  background: var(--white);
}

.rank-label {
  display: inline-block;
  margin-bottom: 25px;
  padding: 6px 13px;
  border-radius: 40px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.first-rank .rank-label {
  color: var(--primary);
  background: var(--primary-light);
}

.topper-avatar {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 6px solid var(--primary-light);
  border-radius: 50%;
  color: var(--white);
  /* background: var(--primary); */
  background: #42225a;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 23px;
}

.first-rank .topper-avatar {
  color: var(--white);
  border-color: var(--primary-light);
  background: #42225a;
}

.rank-number {
  position: absolute;
  top: 25px;
  right: 25px;
  /* color: rgba(0, 0, 0, 0.12); */
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 53px;
}

.first-rank .rank-number {
  /* color: rgba(135, 59, 108, 0.12); */
  color:black
}

.topper-card h3 {
  margin-bottom: 5px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 23px;
  font-weight: 500;
}

.first-rank h3 {
  color: var(--heading);
}

.topper-percentage {
  margin-bottom: 18px;
  color: var(--primary);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 38px;
  font-weight: 600;
}

.first-rank .topper-percentage {
  color: var(--primary);
}

.topper-card p {
  font-size: 13px;
  line-height: 1.7;
}

.toppers-grid .topper-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.toppers-grid .topper-card:nth-child(5) {
  grid-column: 4 / span 2;
}


/* ALL ACHIEVERS SECTION */

.all-achievers-section {
  padding: 110px 0;
}

.achievers-panel {
  position: relative;
  overflow: hidden;
  padding: 60px;
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.achievers-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -170px;
  right: -100px;
  border: 1px solid rgba(63, 31, 104, 0.08);
  border-radius: 50%;
}

.achievers-panel::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 60px;
  bottom: -130px;
  border: 1px solid rgba(63, 31, 104, 0.07);
  border-radius: 50%;
}

.achievers-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  margin-bottom: 40px;
}

.achievers-heading h2 {
  color: #3f1f68;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.15;
}

.achievers-heading p {
  color: #625b6b;
}

.achievers-panel .light-label {
  color: #6f35b5;
}

.student-name-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.student-name-grid span {
  padding: 12px 14px;
  border: 1px solid #e8e5e0;
  border-radius: 8px;
  color: #625b6b;
  background: #f7f6f3;
  font-size: 13px;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.student-name-grid span:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #bc94e6;
}

.achievers-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: #625b6b;
  font-size: 13px;
}

.achievers-footer-line {
  width: 50px;
  height: 1px;
  background: #6f35b5;
}

/* The result poster stands in for the name grid, with easier padding since the artwork brings its own. */
.result-poster-panel {
  padding: 48px 48px 28px;
}

/* The poster fills its panel edge to edge, so the usual 110px tail leaves a
   visibly dead strip before the next section. Trim it on this section only. */
.poster-section {
  padding-bottom: 40px;
}

.result-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border: 1px solid #e8e5e0;
  border-radius: 14px;
  background: #f7f6f3;
}

.result-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.result-poster-note {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  color: #625b6b;
  font-size: 13px;
  text-align: center;
}


/* BEYOND ACADEMICS SECTION */

.beyond-academics-section {
  padding: 110px 0;
  background: var(--white);
}

.achievement-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.category-card {
  min-height: 550px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.sports-card {
  background:
    linear-gradient(145deg,
      var(--white),
      var(--green-light));
}

.culture-card {
  background:
    linear-gradient(145deg,
      var(--white),
      var(--primary-light));
}

.category-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.category-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 55px;
}

.category-number {
  color: var(--light-text);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 38px;
}

.category-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 20px;
}

.sports-card .category-icon {
  background: var(--green);
}

.culture-card .category-icon {
  background: var(--primary);
}

.category-content {
  position: relative;
  z-index: 2;
}

.category-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.category-content h3 {
  margin-bottom: 20px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 500;
  line-height: 1.18;
}

.category-content p {
  margin-bottom: 15px;
  font-size: 15px;
}

.category-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 30px;
}

.category-highlights span {
  padding: 7px 12px;
  border: 1px solid rgba(37, 27, 34, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}


/* VALUES SECTION */


.values-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 100px;
}

.values-title {
  position: sticky;
  top: 30px;
}

.values-title h2 {
  margin-bottom: 20px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(36px, 4vw, 53px);
  font-weight: 500;
  line-height: 1.13;
}

.values-list {
  display: flex;
  flex-direction: column;
}

.value-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 25px;
  padding: 31px 0;
  border-bottom: 1px solid var(--border);
}

.value-item:first-child {
  padding-top: 0;
}

.value-number {
  color: var(--primary);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 37px;
}

.value-item h3 {
  margin-bottom: 6px;
  color: var(--heading);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 25px;
  font-weight: 500;
}

.value-item p {
  font-size: 14px;
}


/* LEGACY SECTION */

.legacy-section {
  padding: 110px 0;
}

.legacy-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.6fr;
  gap: 70px;
  padding: 75px;
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.legacy-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.legacy-decoration span {
  position: absolute;
  border: 1px solid rgba(63, 31, 104, 0.07);
  border-radius: 50%;
}

.legacy-decoration span:nth-child(1) {
  width: 330px;
  height: 330px;
  right: -140px;
  top: -140px;
}

.legacy-decoration span:nth-child(2) {
  width: 230px;
  height: 230px;
  left: -110px;
  bottom: -110px;
}

.legacy-decoration span:nth-child(3) {
  width: 90px;
  height: 90px;
  right: 45%;
  top: -45px;
}

.legacy-content {
  position: relative;
  z-index: 2;
}

.legacy-content h2 {
  max-width: 650px;
  margin-bottom: 25px;
  color: #3f1f68;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.1;
}

.legacy-content p {
  max-width: 760px;
  margin-bottom: 17px;
  color: #625b6b;
  font-size: 15px;
}

.legacy-content .light-label {
  color: #6f35b5;
}

.legacy-quote {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 35px;
  border: 1px solid #e8e5e0;
  border-radius: 15px;
  background: #f7f6f3;
}

.quote-symbol {
  display: block;
  height: 60px;
  color: #6f35b5;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 80px;
  line-height: 1;
}

.legacy-quote p {
  margin-bottom: 20px;
  color: #3f1f68;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 25px;
  font-style: italic;
  line-height: 1.4;
}

.legacy-quote strong {
  color: #6f35b5;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* RESPONSIVE - TABLET */

@media (max-width: 1050px) {

  .hero-container {
    gap: 45px;
  }

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

  .student-name-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .legacy-box {
    grid-template-columns: 1fr;
    padding: 60px;
  }

  .legacy-quote {
    max-width: 500px;
  }

}


/* RESPONSIVE - SMALL TABLET */

@media (max-width: 850px) {

  .achievement-hero {
    padding: 80px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-highlight-card {
    max-width: 480px;
  }

  .intro-box {
    grid-template-columns: 1fr;
  }

  .intro-symbol {
    width: 105px;
    height: 105px;
    background-color: #42225a;
  }

  .section-heading,
  .achievers-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .topper-card,
  .first-rank,
  .toppers-grid .topper-card:nth-child(4),
  .toppers-grid .topper-card:nth-child(5) {
    grid-column: auto;
  }

  .toppers-grid .first-rank {
    grid-column: span 2;
  }

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

  .achievement-category-grid {
    grid-template-columns: 1fr;
  }

  .values-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .values-title {
    position: static;
  }

}


/* RESPONSIVE - MOBILE */

@media (max-width: 600px) {

  .page-container {
    width: min(100% - 26px, 1180px);
  }

  .achievement-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .hero-content>p {
    font-size: 15px;
  }

  .hero-highlight-card {
    padding: 32px 25px;
    border-radius: 22px;
  }

  .highlight-number {
    font-size: 72px;
  }

  .intro-section {
    padding-top: 65px;
  }

  .intro-box {
    gap: 25px;
    padding: 32px 25px;
    border-radius: 22px;
  }

  .results-section,
  .toppers-section,
  .all-achievers-section,
  .beyond-academics-section,
  .values-section,
  .legacy-section {
    padding: 75px 0;
  }

  /* Re-apply after the shared 75px rule above, which would otherwise win. */
  .poster-section {
    padding-bottom: 32px;
  }

  .result-summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: auto;
  }

  .result-statement {
    align-items: flex-start;
    padding: 27px 23px;
  }

  .result-statement p {
    font-size: 16px;
  }

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

  .toppers-grid .first-rank {
    grid-column: auto;
  }

  .achievers-panel {
    padding: 38px 23px;
    border-radius: 22px;
  }

  .result-poster-panel {
    padding: 32px 18px 20px;
  }

  .student-name-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
    padding: 32px 24px;
    border-radius: 22px;
  }

  .category-top {
    margin-bottom: 35px;
  }

  .category-content h3 {
    font-size: 30px;
  }

  .value-item {
    grid-template-columns: 58px 1fr;
    gap: 15px;
  }

  .legacy-box {
    gap: 40px;
    padding: 43px 24px;
    border-radius: 22px;
  }

  .legacy-content h2 {
    font-size: 37px;
  }

  .legacy-quote {
    padding: 27px 23px;
  }

  .legacy-quote p {
    font-size: 21px;
  }

}


/* VERY SMALL DEVICES */

@media (max-width: 380px) {

  .hero-content h1 {
    font-size: 44px;
  }

  .section-heading h2,
  .intro-content h2,
  .values-title h2 {
    font-size: 32px;
  }

  .highlight-number {
    font-size: 63px;
  }

}

/* FACULTY AND STAFF SECTION */

.faculty-section {
  --faculty-purple: #71348f;
  --faculty-dark: #412153;
  --faculty-medium: #9852ae;
  --faculty-light: #f7f0fa;
  --faculty-soft: #efe0f4;
  --faculty-border: #e6d4ec;
  --faculty-text: #68606d;
  --faculty-white: #ffffff;

  position: relative;
  padding: 90px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left,
      rgba(152, 82, 174, 0.13),
      transparent 30%),
    radial-gradient(circle at bottom right,
      rgba(113, 52, 143, 0.1),
      transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbf7fc 100%);
  /* font-family: Arial, Helvetica, sans-serif; */
}

.faculty-teacher-img {
  width: 100%;
  height: 80%;
}

.faculty-section *,
.faculty-section *::before,
.faculty-section *::after {
  box-sizing: border-box;
}

/* wrapper for the faculty page content (spacing only, no background) */
/* palette matches the curriculam page boxes so both pages look the same */
.faculty-wrap {
  --faculty-purple: #6f35b5;
  --faculty-dark: #3f1f68;
  --faculty-medium: #8b5cc4;
  --faculty-light: #f7f6f3;
  --faculty-soft: #efedea;
  --faculty-border: #e8e5e0;
  --faculty-text: #625b6b;
  --faculty-white: #ffffff;

  padding: 60px 0 70px;
}

.faculty-wrap *,
.faculty-wrap *::before,
.faculty-wrap *::after {
  box-sizing: border-box;
}

.faculty-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .faculty-container {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .faculty-wrap {
    padding: 40px 0 50px;
  }

  .faculty-container {
    width: 92%;
  }
}

/* MAIN HEADING */

.faculty-main-heading {
  max-width: 900px;
  margin: 0 auto 55px;
  text-align: center;
}

.faculty-small-title {
  display: inline-block;
  margin-bottom: 15px;
  padding: 9px 21px;
  color: var(--faculty-purple);
  background: var(--faculty-light);
  border: 1px solid var(--faculty-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* same style as the curriculam / principal page titles */
.faculty-main-heading h2 {
  margin: 0;
  color: #3f1f68;
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.faculty-title-line {
  width: 90px;
  height: 5px;
  margin: 22px auto;
  background: linear-gradient(90deg,
      #6f35b5,
      #b47de9);
  border-radius: 20px;
}

.faculty-main-heading h3 {
  margin: 0 0 18px;
  color: var(--faculty-purple);
  font-size: 22px;
  font-weight: 750;
}

.faculty-main-heading p {
  margin: 0 auto 12px;
  color: var(--faculty-text);
  font-size: 16px;
  line-height: 1.85;
}

/* CATEGORY HEADING */

.faculty-section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.faculty-section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--faculty-medium);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.faculty-section-heading h3 {
  margin: 0;
  color: var(--faculty-dark);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(25px, 4vw, 34px);
}

/* LEADERSHIP CARDS */

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}

.leadership-card {
  position: relative;
  min-height: 210px;
  padding: 30px 25px;
  overflow: hidden;
  background: var(--faculty-white);
  border: 1px solid #e8e5e0;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(38, 22, 58, 0.09);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.leadership-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--faculty-purple);
}

.leadership-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 135px;
  height: 135px;
  background: rgba(63, 31, 104, 0.035);
  border-radius: 50%;
}

.leadership-card:hover {
  transform: translateY(-6px);
  border-color: #bc94e6;
  box-shadow: 0 18px 40px rgba(72, 32, 112, 0.14);
}

.leadership-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  margin-bottom: 22px;
  place-items: center;
  color: white;
  background: #42225a;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(111, 53, 181, 0.25);
  font-size: 15px;
  font-weight: 800;
}

.staff-role {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--faculty-medium);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.leadership-card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--faculty-dark);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.45;
}

/* STAFF LIST BOXES */

.faculty-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.faculty-list-box {
  overflow: hidden;
  background: var(--faculty-white);
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
}

.faculty-full-width {
  grid-column: 1 / -1;
}

.faculty-box-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 28px 32px;
  overflow: hidden;
  color: var(--faculty-text);
  background: #f7f6f3;
  border-bottom: 1px solid #e8e5e0;
}

.faculty-box-heading::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(63, 31, 104, 0.035);
  border-radius: 50%;
}

.faculty-box-number {
  position: relative;
  z-index: 1;
  width: 55px;
  min-width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: var(--faculty-purple);
  background: #ffffff;
  border: 1px solid #e8e5e0;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(38, 22, 58, 0.10);
  font-size: 16px;
  font-weight: 800;
}

.faculty-box-heading>div {
  position: relative;
  z-index: 1;
}

.faculty-box-heading div>span {
  display: block;
  margin-bottom: 7px;
  color: var(--faculty-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faculty-box-heading h3 {
  margin: 0;
  color: var(--faculty-dark);
  font-size: 23px;
  font-weight: 750;
}

/* Staff Names */

.staff-name-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  padding: 25px;
}

.class-teacher-grid {
  grid-template-columns: repeat(3, 1fr);
}

.staff-name {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 13px 15px 13px 42px;
  color: var(--faculty-text);
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.staff-name::before {
  content: "✓";
  position: absolute;
  left: 13px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--faculty-purple);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.staff-name:hover {
  transform: translateX(4px);
  color: var(--faculty-dark);
  background: #ffffff;
  border-color: #bc94e6;
}

/* BOTTOM MESSAGE */

.faculty-bottom-message {
  position: relative;
  margin-top: 45px;
  padding: 30px 35px;
  overflow: hidden;
  background: #f7f6f3;
  border: 1px solid #e8e5e0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(38, 22, 58, 0.10);
  text-align: center;
}

.faculty-bottom-message span {
  display: block;
  margin-bottom: 9px;
  color: var(--faculty-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.faculty-bottom-message p {
  max-width: 900px;
  margin: 0 auto;
  color: #594c66;
  font-size: 16px;
  line-height: 1.8;
}

/* RESPONSIVE DESIGN */

@media screen and (max-width: 1000px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media screen and (max-width: 800px) {
  .faculty-section {
    padding: 70px 15px;
  }

  .faculty-list-grid {
    grid-template-columns: 1fr;
  }

  .faculty-full-width {
    grid-column: auto;
  }
}

@media screen and (max-width: 650px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leadership-card {
    min-height: auto;
  }

  .staff-name-grid,
  .class-teacher-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .faculty-box-heading {
    padding: 22px 18px;
  }

  .faculty-box-number {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 14px;
  }

  .faculty-box-heading h3 {
    font-size: 20px;
  }

  .faculty-bottom-message {
    padding: 25px 20px;
  }

  .faculty-bottom-message p {
    font-size: 14px;
  }
}

/* School information */
.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  width: 34%;
  color: var(--primary-dark);
  background: #faf5fd;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

/* Public disclosure — the document tables and their View buttons */

.doc-group {
  margin: 32px 0 12px;
  color: var(--primary-dark);
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* the table keeps its four columns on a phone and scrolls sideways instead of
   folding, because a folded row loses which file the button belongs to */
.doc-table-wrap {
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc-table th,
.doc-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc-table thead th {
  color: var(--primary-dark);
  background: #faf5fd;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.doc-sl {
  width: 70px;
  color: var(--muted);
}

.doc-file {
  width: 28%;
  color: var(--muted);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.doc-view {
  display: inline-block;
  padding: 7px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  white-space: nowrap;
  transition: background var(--transition);
}

.doc-view:hover {
  background: var(--primary-dark);
}

.doc-view.is-missing {
  background: #f1eef5;
  color: var(--muted);
}

.disclosure-prose li {
  padding-left: 0;
}

.disclosure-prose li::before {
  content: none;
}

.disclosure-note {
  padding: 18px 22px;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  background: #faf5fd;
  font-size: 14.5px;
}

@media (max-width: 560px) {
  .doc-table th,
  .doc-table td {
    padding: 12px 14px;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
}

.contact-panel,
.contact-form {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-panel {
  color: #fff;
  /* background: linear-gradient(145deg, var(--primary-dark), var(--primary)); */
  background: #261334;
}

.contact-panel p {
  color: rgba(255, 255, 255, .78);
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
}

#purple-btn {
  background: #261334;
  color: #ffffff;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
}

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

.form-group {
  display: grid;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: #423b47;
  font-weight: 700;
  font-size: .9rem;
}

.form-control {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: 0;
  background: #fff;
  transition: var(--transition);
}

textarea.form-control {
  min-height: 135px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(115, 57, 165, .09);
}

.form-message {
  margin: 14px 0 0;
  font-weight: 700;
}

/* Admission form -- the same furniture as the enquiry form, except that its one
   textarea holds an address rather than a message and does not need the height. */

.admission-form textarea.form-control {
  min-height: 92px;
}

/* "(if any)" beside a label -- an aside to the label, not part of it. */

.label-note {
  color: #7a7280;
  font-weight: 500;
}

/* The note under a field that has been filled in wrongly. It is written both by
   the server, when the page comes back, and by the browser as you type. */

.field-error {
  color: #b3261e;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.form-control.is-invalid {
  border-color: #d9534f;
  background: #fffafa;
}

.form-control.is-invalid:focus {
  border-color: #d9534f;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, .12);
}

.form-control.is-valid {
  border-color: #58a877;
}

/* Footer */
.site-footer {
  margin-top: 92px;
  color: rgba(255, 255, 255, .76);
  background: #261334;
}

.footer-main {
  padding: 72px 0 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr 1.05fr;
  gap: 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

/* The footer is dark and the crest is drawn in dark blue on a transparent
   background, so it needs its own white plate to stay visible. */
.footer-brand img {
  width: auto;
  height: 74px;
  max-width: 66px;
  object-fit: contain;
  padding: 6px 8px;
  background: #fff;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font: 700 1.25rem "Playfair Display", serif;
}

.footer-brand span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-title {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 13px;
  font-weight: 700;
}

/* The pin gets its own column, so the address lines stay under each other and read as one entry. */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* The one question a parent asks first, answered on its own page. */
.footer-why {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-bottom: 3px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.footer-why:hover {
  border-bottom-color: #fff;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  transition: var(--transition);
}

.social-link:hover {
  color: #fff;
  background: var(--secondary);
  transform: translateY(-4px);
}

#footer-contact {
  font-size: 13px;
}

.footer-bottom {
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .88rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 9, 27, .92);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .38);
}

.lightbox-close {
  position: absolute;
  right: 25px;
  top: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 1.4rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* Back to top */
/* Sticky social rail (button design from Uiverse.io by vinodjangid07), centred clear of the back-to-top. */
.social-rail {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  /* Keeps the tilting .BG behind the icon but in front of the page: without
     isolation a z-index of -1 would drop it behind the page background. */
  position: relative;
  isolation: isolate;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
}

.rail-btn .svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  border-radius: 10px;
  border: 1px solid rgba(156, 156, 156, .466);
  transition: var(--transition);
}

.rail-btn svg {
  height: 17px;
  width: auto;
  fill: #fff;
}

.rail-btn .BG {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: var(--transition);
}

.rail-btn.is-facebook .BG {
  background: #1877f2;
}

.rail-btn.is-instagram .BG {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.rail-btn.is-twitter .BG {
  background: #0f172a;
}

.rail-btn.is-youtube .BG {
  background: #ff0000;
}

.rail-btn:hover .BG,
.rail-btn:focus-visible .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.rail-btn:hover .svgContainer,
.rail-btn:focus-visible .svgContainer {
  border: 1px solid rgba(255, 255, 255, .55);
  background-color: rgba(219, 219, 219, .466);
  backdrop-filter: blur(4px);
}

.rail-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .social-rail {
    right: 6px;
    gap: 6px;
  }

  .rail-btn {
    width: 34px;
    height: 34px;
  }

  .rail-btn svg {
    height: 15px;
  }
}

@media print {
  .social-rail {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-cta {
    display: none;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 13.5px;
  }

  .split-grid {
    gap: 42px;
  }

  .principal-copy {
    padding: 52px;
  }
}

@media (max-width: 920px) {

  /* stack the bar so contacts and the MIS / Automation buttons both fit */
  .topbar .container {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-links {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 4px 16px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .topbar-social {
    display: none;
  }

  .topbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .topbar-btn {
    flex: 1 1 0;
    max-width: 220px;
    justify-content: center;
    padding: 8px 12px;
  }

  .navbar {
    min-height: 76px;
  }

  /* Shorter header here, so an anchor needs to stop a little higher. */
  [id] {
    scroll-margin-top: 94px;
  }

  .menu-toggle {
    display: block;
  }

  /* anchored to the header itself so the topbar height doesn't offset it */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateX(105%);
    width: min(390px, 92vw);
    height: calc(100vh - 76px);
    display: block;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 20px 50px rgba(31, 17, 41, .14);
    transition: transform .35s ease;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 52px;
    font-size: 15px;
  }

  .dropdown-menu,
  .dropdown-menu.wide {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 0 0 12px 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.open>.dropdown-menu {
    display: grid;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

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

  .split-grid,
  .principal-wrap,
  .events-grid,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .principal-photo {
    min-height: 0;
  }

  /* One column from here down: the portrait sits above the message, centred and capped rather than stretched. */
  .principal-wrap:not(.stacked) .principal-photo {
    max-width: 420px;
    margin-inline: auto;
    padding: 36px 36px 0;
  }

  .principal-wrap.stacked .principal-photo {
    min-height: 0;
  }

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

  .sidebar-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .topbar-links {
    font-size: 11.5px;
    gap: 2px 12px;
  }

  .topbar-btn {
    font-size: 11.5px;
    padding: 8px 10px;
  }

  .brand-text strong {
    font-size: 1.08rem;
  }

  .brand-text span {
    font-size: .7rem;
  }

  .brand img {
    width: auto;
    height: 46px;
    max-width: 54px;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .hero-slide.has-copy .hero-copy {
    padding: 40px 0 92px;
  }

  .hero-copy h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .slider-controls {
    bottom: 26px;
  }

  .slider-arrows {
    display: none;
  }

  .notice-box {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .notice-box .btn {
    display: none;
  }

  .stats-grid,
  .card-grid,
  .program-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
    padding: 30px 26px 28px;
  }

  .image-composition {
    min-height: 455px;
  }

  .image-composition .image-main {
    width: 90%;
    height: 410px;
  }

  .image-composition .image-small {
    height: 190px;
  }

  .experience-badge {
    width: 112px;
    height: 112px;
    top: 18px;
  }

  .experience-badge strong {
    font-size: 1.8rem;
  }

  .principal-photo {
    min-height: 0;
  }

  .principal-wrap.stacked .principal-photo {
    min-height: 0;
    margin-top: 28px;
  }

  .principal-copy {
    padding: 36px 26px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .cta-band {
    padding: 38px 24px;
  }

  .cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    min-height: 340px;
  }

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

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    border-bottom: 0;
    padding-bottom: 7px;
  }

  .data-table td {
    padding-top: 7px;
  }
}

/* Fee Structure */


.fee-section {
  width: 100%;
  padding: 40px 15px;
}

.fee-container {
  width: 100%;
  max-width: 700px;
  min-height: 750px;
  margin: 0 auto;
  padding: 55px 55px;
  background-color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.fee-heading {
  margin-bottom: 32px;
  text-align: center;
}


.fee-heading h2 {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: underline;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  min-width: 520px;
  border: 1px solid #000000;
  border-collapse: collapse;
  font-size: 16px;
}

.fee-table th,
.fee-table td {
  height: 37px;
  padding: 6px 10px;
  border: 1px solid #000000;
  vertical-align: middle;
}

.fee-table th {
  font-weight: 700;
  text-align: center;
}

.serial-width {
  width: 10%;
}

.class-width {
  width: 52%;
}

.amount-width {
  width: 38%;
}

.text-center {
  text-align: center;
}

.grade-heading td {
  font-weight: 700;
  text-align: center;
}

@media screen and (max-width: 600px) {

  .fee-section {
    padding: 15px 8px;
  }

  .fee-container {
    min-height: auto;
    padding: 35px 15px;
  }

  .fee-heading {
    margin-bottom: 25px;
  }

  .fee-heading h1 {
    font-size: 19px;
  }

  .fee-heading h2 {
    font-size: 14px;
  }

  .fee-table {
    font-size: 14px;
  }

  .fee-table th,
  .fee-table td {
    height: 34px;
    padding: 5px 8px;
  }
}

@media print {

  body {
    background-color: #ffffff;
  }

  .fee-section {
    padding: 0;
  }

  .fee-container {
    max-width: 100%;
    min-height: auto;
    padding: 30px;
    box-shadow: none;
  }

  .table-responsive {
    overflow: visible;
  }
}


/* labs */
.lab-container {
  width: 100%;
}

.lab-head {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 50px;
  text-align: center;
}

.lab-head h1 {
  margin: 0;
  text-wrap: balance;
}

/* A small mark above a heading, for pages that list one point after another. */
.lab-head .head-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1;
}

.para-lab {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.img-lab {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.img-lab img {
  width: 45%;
  border-radius: 15px;
  margin-top: 30px;
}

/* A row that mixes an upright photograph with a wide one: 45% of the width makes
   the tall one tower over its neighbour. Matching their heights instead and letting
   each keep its own width levels the row without cropping or stretching anything. */
.img-lab.is-level img {
  flex: 0 0 auto;
  width: auto;
  height: 290px;
}

/* A closing paragraph with no heading of its own still needs the gap a .lab-head would have given it. */
.para-lab.is-closing {
  padding-top: 50px;
}

@media screen and (max-width: 1100px) {
  .img-lab.is-level img {
    height: 230px;
  }
}

@media screen and (max-width: 700px) {
  .lab-head {
    padding-top: 35px;
  }

  .para-lab.is-closing {
    padding-top: 35px;
  }

  .img-lab img {
    width: 100%;
  }

  .img-lab.is-level img {
    width: 100%;
    height: auto;
  }
}

.reccom-container {
  width: 80%;
  margin-left: 80px;
}

.reccom-head {
  width: 100%;
  text-align: center;

}

.reccom-head h2 {
  margin-top: 40px;
  color: rgb(80, 78, 78);
}

.reccom-head h1 {
  margin-top: 40px;
}

.reccom-para {
  margin-top: 40px;
}

.reccom-para .dear {
  margin-bottom: 20px;
}

/* Section titles on the rules page. Same style as the curriculam / principal /
   faculty page titles, so every inner page reads with one heading voice. */
.rules-heading {
  margin: 55px 0 24px;
  color: #3f1f68;
  font-family: var(--font-head);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.rules-heading:first-child {
  margin-top: 40px;
}

.rules-heading::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, #6f35b5, #b47de9);
  border-radius: 20px;
}



.appearance-list {
  list-style-type: disc !important;
  list-style-position: outside;
  margin: 10px 0 20px 35px;
  padding-left: 20px;
}

.appearance-list li {
  display: list-item !important;
  list-style-type: disc !important;
  margin-bottom: 8px;
  line-height: 1.6;
}

.code-of-conduct {
  margin-top: 50px;
  margin-bottom: 20px;
}

/* -------------------- */

/* calender */



.calendar-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
}

.calendar-title {
  margin-bottom: 25px;
  text-align: center;
}

.calendar-title h1 {
  margin: 0 0 6px;
  font-size: 25px;
  text-transform: uppercase;
}

.calendar-title h2 {
  margin: 0;
  font-size: 18px;
  text-decoration: underline;
}

.month-table {
  width: 100%;
  margin-bottom: 22px;
  border-collapse: collapse;
  page-break-inside: avoid;
}

.month-table th,
.month-table td {
  padding: 8px 10px;
  border: 1px solid #222222;
  font-size: 14px;
  line-height: 1.4;
}

.month-name {
  padding: 9px !important;
  font-size: 16px !important;
  font-weight: bold;
  text-align: center;
  background-color: #eeeeee;
}

.table-heading th {
  font-weight: bold;
  text-align: center;
  background-color: #f8f8f8;
}

.day-column,
.month-table td:first-child {
  width: 75px;
  text-align: center;
}

.date-column,
.month-table td:nth-child(2) {
  width: 70px;
  text-align: center;
}

.month-table td:nth-child(3) {
  text-align: left;
}

.holiday td {
  color: #d00000;
}

/* Mobile Responsive */

@media screen and (max-width: 600px) {

  body {
    padding: 10px;
  }

  .calendar-container {
    padding: 12px;
  }

  .calendar-title h1 {
    font-size: 20px;
  }

  .calendar-title h2 {
    font-size: 16px;
  }

  .month-table th,
  .month-table td {
    padding: 6px 5px;
    font-size: 12px;
  }

  .day-column,
  .month-table td:first-child {
    width: 50px;
  }

  .date-column,
  .month-table td:nth-child(2) {
    width: 45px;
  }
}

/* Print Settings */

@media print {

  body {
    padding: 0;
    background-color: #ffffff;
  }

  .calendar-container {
    max-width: 100%;
    padding: 0;
    border: none;
  }

  .month-table {
    page-break-inside: avoid;
  }
}


/* tc card-------------- */
.tc-box {
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  box-sizing: border-box;
  /* font-family: Arial, sans-serif; */
}

.tc-box h2 {
  margin: 0 0 18px;
  color: #333333;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.tc-card {
  width: 100%;
  max-width: 480px;
  background: #3f2155d8;
  padding: 28px;
  border-radius: 6px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.tc-card h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.search {
  display: flex;
  width: 100%;
}

.search input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dddddd;
  border-right: 1px solid black;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 15px;
  box-sizing: border-box;
}

.search input:focus {
  border-color: #333333;
}

.search button {
  height: 43px;
  padding: 0 24px;
  border: 1px solid #ffffff;
  border-radius: 0 4px 4px 0;
  background-color: #ffffff;
  color: #07020a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.search button:hover {
  background-color: #333333;
  border-color: #333333;
  color: #ffffff;
}

@media (max-width: 500px) {
  .tc-card {
    padding: 22px 18px;
  }

  .search {
    flex-direction: column;
    gap: 10px;
  }

  .search input,
  .search button {
    width: 100%;
    border: none;
    border-radius: 4px;
  }

  .search input {
    border: 1px solid #dddddd;
  }
}


/* photo gallery--------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: Arial, Helvetica, sans-serif; */
  background-color: #f8f6f7;
  color: #333333;
}

/* Main Gallery Section */

.gallery-section {
  padding: 60px 20px;
}

.gallery-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-heading {
  max-width: 650px;
  margin: 0 auto 42px;
  text-align: center;
}

.gallery-heading span {
  display: inline-block;
  margin-bottom: 9px;
  color: #91466f;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.gallery-heading h1 {
  margin-bottom: 12px;
  color: #333333;
  font-size: 36px;
}

.gallery-heading p {
  color: #686868;
  font-size: 16px;
  line-height: 1.7;
}


/* Festival Cards */

.festival-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.festival-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e5dce1;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.festival-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(80, 42, 62, 0.14);
}

.festival-cover {
  position: relative;
  height: 225px;
  overflow: hidden;
  background-color: #ece4e8;
}

.festival-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.festival-card:hover .festival-cover img {
  transform: scale(1.06);
}

.photo-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 7px 11px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.68);
  border-radius: 4px;
  font-size: 13px;
}

.festival-details {
  padding: 20px;
}

.festival-details h2 {
  margin-bottom: 9px;
  color: #703353;
  font-size: 21px;
}

.festival-details p {
  min-height: 68px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.6;
}

.view-button {
  margin-top: 14px;
  padding: 10px 17px;
  color: #ffffff;
  background-color: #91466f;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.view-button:hover {
  background-color: #703353;
}


/* Album Popup */

.album-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.75);
}

.album-popup.active {
  display: flex;
}

.album-box {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 9px;
}

.album-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  background-color: #ffffff;
  border-bottom: 1px solid #e7e1e4;
}

.album-header h2 {
  margin-bottom: 5px;
  color: #703353;
  font-size: 26px;
}

.album-header p {
  color: #777777;
  font-size: 13px;
}

.close-album {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #703353;
  background-color: #f2e9ee;
  border: none;
  border-radius: 50%;
  font-size: 27px;
  line-height: 40px;
  cursor: pointer;
}

.close-album:hover {
  color: #ffffff;
  background-color: #703353;
}


/* Upload Section */

.upload-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 25px 0;
  padding: 17px 19px;
  background-color: #fbf7f9;
  border: 1px dashed #b987a2;
  border-radius: 6px;
}

.upload-information h3 {
  margin-bottom: 5px;
  color: #583248;
  font-size: 17px;
}

.upload-information p {
  color: #777777;
  font-size: 13px;
}

.upload-button {
  flex-shrink: 0;
  display: inline-block;
  padding: 11px 19px;
  color: #ffffff;
  background-color: #91466f;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.upload-button:hover {
  background-color: #703353;
}

#photoUpload {
  display: none;
}


/* Album Images */

.album-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 25px;
}

.album-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #eeeeee;
  border-radius: 6px;
  cursor: pointer;
}

.album-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-photo::after {
  content: "View Photo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: rgba(68, 30, 51, 0.58);
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-photo:hover img {
  transform: scale(1.06);
}

.album-photo:hover::after {
  opacity: 1;
}

.no-photo {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: #777777;
  border: 1px dashed #cccccc;
  border-radius: 6px;
}

.no-photo h3 {
  margin-bottom: 8px;
  color: #703353;
}


/* Full Screen Photo Viewer */

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.94);
}

.photo-viewer.active {
  display: flex;
}

.photo-viewer img {
  max-width: 94%;
  max-height: 88vh;
  object-fit: contain;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 4px;
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

.close-viewer:hover {
  color: #333333;
  background-color: #ffffff;
}


/* Tablet Responsive */

@media screen and (max-width: 950px) {

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

  .album-images {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* Mobile Responsive */

@media screen and (max-width: 650px) {

  .gallery-section {
    padding: 40px 14px;
  }

  .gallery-heading {
    margin-bottom: 30px;
  }

  .gallery-heading h1 {
    font-size: 29px;
  }

  .festival-list {
    grid-template-columns: 1fr;
  }

  .festival-cover {
    height: 220px;
  }

  .festival-details p {
    min-height: auto;
  }

  .album-popup {
    padding: 8px;
  }

  .album-box {
    max-height: 97vh;
  }

  .album-header {
    padding: 16px;
  }

  .album-header h2 {
    font-size: 21px;
  }

  .upload-section {
    flex-direction: column;
    align-items: flex-start;
    margin: 15px;
  }

  .upload-button {
    width: 100%;
    text-align: center;
  }

  .album-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .album-photo {
    height: 145px;
  }

}


/* Small Mobile */

@media screen and (max-width: 400px) {

  .album-images {
    grid-template-columns: 1fr;
  }

  .album-photo {
    height: 220px;
  }

}

.upload-section {
  display: none;
}


/* ================= PHOTO GALLERY ================= */

.pg-section {
  padding: 90px 0 100px;
  background:
    radial-gradient(900px 420px at 10% -10%, var(--lavender), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.pg-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.pg-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pg-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 14px 0 10px;
  color: var(--ink);
}

.pg-subtitle {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 34px;
}


/* Year filters */

.pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.pg-filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: var(--transition);
}

.pg-filter:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pg-filter.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}


/* Album grid */

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.pg-card {
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pgFade .45s ease both;
}

.pg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

@keyframes pgFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.pg-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.pg-card:hover .pg-card-media img {
  transform: scale(1.09);
}

.pg-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 35, 48, 0) 40%, rgba(31, 35, 48, .72) 100%);
}

.pg-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
}

.pg-year-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.pg-view {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--primary);
  font-size: 1.35rem;
  opacity: 0;
  transition: var(--transition);
}

.pg-card:hover .pg-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pg-card-body {
  padding: 18px 20px 22px;
}

.pg-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: var(--ink);
}

.pg-card-body span {
  color: var(--muted);
  font-size: .87rem;
}

.pg-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.pg-empty div {
  font-size: 2.6rem;
}


/* ================= GALLERY MODAL / CAROUSEL ================= */

body.pg-lock {
  overflow: hidden;
}

.pg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 24px;
  place-items: center;
}

.pg-modal.open {
  display: grid;
}

.pg-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 32, .88);
  backdrop-filter: blur(6px);
  animation: pgFade .3s ease both;
}

.pg-modal-box {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  height: 92vh;
  max-height: 92vh;
  /* A column claiming the full 92vh, so whatever the heading and thumbnails leave goes to the photo. */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px 24px;
  animation: pgZoom .32s ease both;
}

@keyframes pgZoom {
  from {
    opacity: 0;
    transform: scale(.94) translateY(14px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pg-modal-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.pg-modal-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pg-modal-head h3 {
  margin: 8px 0 2px;
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.pg-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.pg-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.pg-close:hover {
  background: var(--secondary);
  color: #fff;
  transform: rotate(90deg);
}


/* Slider stage */

/* No aspect-ratio on purpose: the stage takes the height the viewport has left and shrinks first. */
.pg-stage {
  position: relative;
  flex: 1 1 auto;
  height: 62vh;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #14091f;
}

.pg-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.55, .06, .32, 1);
}

.pg-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

/* Pinned to the four edges rather than laid out inside, since height:100% never resolved on a grid item. */
.pg-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.pg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--primary-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.pg-arrow:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.pg-prev {
  left: 14px;
}

.pg-next {
  right: 14px;
}

.pg-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(20, 10, 32, .72);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}

.pg-caption {
  flex: 0 0 auto;
  margin: 14px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  min-height: 22px;
}


/* Thumbnails */

.pg-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.pg-thumb {
  flex: 0 0 92px;
  height: 66px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: var(--transition);
}

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

.pg-thumb:hover {
  opacity: .85;
}

.pg-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}


@media screen and (max-width: 640px) {

  .pg-section {
    padding: 60px 0 70px;
  }

  .pg-modal {
    padding: 12px;
  }

  .pg-modal-box {
    padding: 16px 14px 18px;
  }

  .pg-stage {
    height: 56vh;
  }

  .pg-arrow {
    width: 40px;
    height: 40px;
  }

  .pg-thumb {
    flex: 0 0 72px;
    height: 54px;
  }

}

/* Sideways on a phone there is no height to spare, so the thumbnail strip steps aside. */
@media screen and (max-height: 560px) {

  .pg-modal-box {
    padding: 12px 14px 14px;
  }

  .pg-modal-head {
    margin-bottom: 10px;
  }

  .pg-modal-head h3 {
    margin: 4px 0 0;
    font-size: 1.1rem;
  }

  .pg-modal-tag,
  .pg-modal-head p,
  .pg-thumbs {
    display: none;
  }

  .pg-caption {
    margin: 8px 0 0;
  }

}

/* Added with the CMS: the security code, the form reply messages and the TC result card. */

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}

.captcha-image {
  display: block;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 8px;
  background: #f5f6fa;
}

.captcha-reload {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.captcha-reload:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, .35);
}

/* Bot trap. Real visitors never see or tab into it. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message.is-success {
  color: #15803d;
}

.form-message.is-error {
  color: #b91c1c;
}

.tc-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.tc-result p {
  margin: 0 0 12px;
  line-height: 1.7;
}

/* The two classes the CMS Insert bar needs that the sheet had no name for; the rest reuses what is above. */

.page-figure {
  margin: 28px 0;
}

.page-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-figure figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

.split-image {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
