/* ════════════════════════════════════════════════════════════════
   RN OXFORD — SHARED INNER PAGE STYLES
   Used by about-us, why-choose-us, leadership, academics, kg-primary,
   middle-secondary, neet-jee, facilities, student-life, clubs, sports,
   achievements, admissions, parents-corner, rules pages.
   ════════════════════════════════════════════════════════════════ */

:root {
  --pink: #c41472;
  --pink-deep: #9c0e59;
  --pink-light: #e8388e;
  --pink-pale: #fce8f3;

  --navy: #16082a;
  --navy-mid: #271050;
  --navy-soft: #3d1a6e;

  --gold: #f5a623;
  --gold-deep: #d4881a;

  --bg: #f9f7fc;
  --surface: #ffffff;
  --surface-2: #f4f0f9;
  --surface-3: #ede4f4;

  --border: rgba(22, 8, 42, 0.08);
  --border-mid: rgba(22, 8, 42, 0.14);

  --text: #16082a;
  --text-muted: #4a3868;
  --text-faint: #8a7aa8;

  --font-head: "Plus Jakarta Sans", "Roboto", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(22, 8, 42, 0.06), 0 2px 8px rgba(22, 8, 42, 0.04);
  --sh-md: 0 6px 20px rgba(22, 8, 42, 0.08), 0 10px 30px rgba(22, 8, 42, 0.06);
  --sh-lg: 0 14px 40px rgba(22, 8, 42, 0.13), 0 20px 50px rgba(22, 8, 42, 0.08);
  --sh-pink: 0 6px 18px rgba(196, 20, 114, 0.3);
  --sh-gold: 0 6px 18px rgba(245, 166, 35, 0.32);

  --ease: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Global justify for descriptive paragraph text */
.psec__sub,
.page-hero__sub,
.prose p,
.p-split__body p,
.p-feat p,
.p-card p,
.p-card__desc,
.programme-card__desc,
.p-feature p,
.p-quote {
  /* text-align: justify removed to prevent awkward gaps */
}
/* But keep certain contexts non-justified (centered headers, chips, buttons) */
.psec__head .psec__sub { text-align: center; }
.page-hero .page-hero__sub { text-align: left; }
@media (max-width: 640px) {
  /* On mobile, justify can leave big ugly gaps — fall back to left */
  .psec__sub,
  .page-hero__sub,
  .prose p,
  .p-split__body p,
  .p-feat p,
  .p-card p,
  .p-card__desc,
  .programme-card__desc,
  .p-feature p,
  .p-quote {
    text-align: left;
  }
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

/* ── TOP BAR ── */
.top-bar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #d8c8f5;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar__left, .top-bar__right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.top-bar__item { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.top-bar__item:hover { color: var(--gold); }
.top-bar__item svg { width: 16px; height: 16px; }
.top-bar__hours { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.top-bar__hours svg { width: 15px; height: 15px; }
.top-bar__social {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.2s;
}
.top-bar__social:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.top-bar__social svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .top-bar__left, .top-bar__right { gap: 14px; }
  .top-bar__item { font-size: 0.82rem; }
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.navbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo__img { display: block; width: auto; height: 64px; max-height: 64px; object-fit: contain; }

.nav__list { display: flex; align-items: center; gap: 0.3rem; }
.nav__list > li { white-space: nowrap; }
.nav__list > li > a {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav__list > li > a:hover,
.nav__list > li > a.active { background: var(--surface-2); color: var(--pink); }
.nav__cta {
  background: var(--pink) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: var(--r-full) !important;
  box-shadow: var(--sh-pink);
  margin-left: 6px;
}
.nav__cta:hover { background: var(--pink-deep) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}
.hamburger span { display: block; width: 24px; height: 2.4px; background: var(--navy); border-radius: 2px; transition: 0.3s; }

.mobile-menu { display: none; background: var(--surface); border-top: 1px solid var(--border); padding: 18px 24px; max-height: 80vh; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { display: block; padding: 10px 14px; font-weight: 500; font-size: 0.94rem; color: var(--text); border-radius: 8px; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--surface-2); color: var(--pink); }
.mobile-menu__cta { display: block; text-align: center; background: var(--pink); color: #fff !important; padding: 12px !important; border-radius: var(--r-full); margin-top: 14px; font-weight: 700; }

@media (max-width: 980px) {
  .nav__list { display: none; }
  .hamburger { display: flex; }
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 28px) clamp(70px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
/* Fallback gradient when no background image is set */
.page-hero:not([style*="background-image"]) {
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--pink-deep) 100%);
}
/* Dark tint overlay on top of the background image so text stays readable */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(22, 8, 42, 0.62) 0%, rgba(22, 8, 42, 0.44) 42%, rgba(22, 8, 42, 0.2) 74%, rgba(22, 8, 42, 0.1) 100%),
    linear-gradient(180deg, rgba(22, 8, 42, 0.26) 0%, rgba(22, 8, 42, 0.16) 100%);
  pointer-events: none;
}
/* No tint when there is no image (already dark gradient) */
.page-hero:not([style*="background-image"])::before {
  background: none;
}
/* Corner glow accents on top of the tint */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 166, 35, 0.06), transparent 55%),
    radial-gradient(circle at bottom left, rgba(232, 56, 142, 0.08), transparent 55%);
  pointer-events: none;
}

/* Photo gallery strip — compact row of images */
.p-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.p-gallery__tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.p-gallery__tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.p-gallery__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.p-gallery__tile:hover img { transform: scale(1.06); }
.p-gallery__tile--tall { aspect-ratio: 3 / 4; }
.page-hero__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.page-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(22, 8, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.page-hero__crumbs a { color: #ffb83f; transition: color 0.2s; font-weight: 700; }
.page-hero__crumbs a:hover { color: #fff; }
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 8, 42, 0.52);
  color: #ffb83f;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 166, 35, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.page-hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 22ch;
}
.page-hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold) 0%, #ffd279 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__sub {
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 65ch;
}

@media (max-width: 520px) {
  .page-hero {
    padding-top: 48px;
  }

  .page-hero__crumbs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .page-hero__crumbs span:last-child {
    flex-basis: auto;
  }

  .page-hero__crumbs a:not(:first-child),
  .page-hero__crumbs span:nth-of-type(2) {
    display: none;
  }

  .page-hero__eyebrow {
    padding: 6px 13px;
    border-radius: 16px;
    font-size: 0.72rem;
    letter-spacing: 1.1px;
  }
}

/* ── SECTION SHELL ── */
.psec {
  padding: clamp(30px, 3.5vw, 48px) clamp(16px, 4vw, 28px);
}
.psec--alt {
  background: linear-gradient(180deg, #ebe1f3 0%, #ded0ec 100%);
}
.psec--dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
}
.psec--dark h2, .psec--dark h3, .psec--dark h4 { color: #fff; }
.psec--dark p { color: rgba(255, 255, 255, 0.85); }
.psec__inner { max-width: var(--wrap); margin: 0 auto; }

/* Left-aligned section header (matches homepage style) */
.psec__head {
  max-width: 920px;
  margin: 0 auto 22px;
  text-align: center;
}
.psec__pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy) 0%, var(--pink-deep) 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(22, 8, 42, 0.18);
}
.psec--dark .psec__pill {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy);
}
.psec__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 14px;
}
.psec--dark .psec__title { color: #fff; }
.psec__sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 auto;
}
.psec--dark .psec__sub { color: rgba(255, 255, 255, 0.82); }

/* ── PROSE / LONG-FORM CONTENT ── */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 72ch;
}
.prose h2 { font-size: 1.7rem; margin: 32px 0 14px; color: var(--navy); }
.prose h3 { font-size: 1.35rem; margin: 26px 0 10px; color: var(--navy); }
.prose h4 { font-size: 1.1rem; margin: 22px 0 8px; color: var(--pink); }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul { margin: 12px 0 20px; padding-left: 6px; }
.prose ul li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--text);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
}

/* Split content: text + image */
.p-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.p-split--reverse .p-split__media { order: 2; }
.p-split__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.p-split__media img { width: 100%; height: 100%; object-fit: cover; }
.p-split__media--portrait {
  aspect-ratio: 1 / 1 !important;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.p-split__media--portrait img { object-position: center 18%; }
.p-split__body h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--navy);
  margin-bottom: 14px;
}
.p-split__body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .p-split { grid-template-columns: 1fr; }
  .p-split--reverse .p-split__media { order: 0; }
  .p-split__media--portrait { max-width: 360px; }
}

/* Feature grid — icon + title + body cards */
.p-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .p-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-features { grid-template-columns: 1fr; } }
.p-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.p-feat:hover {
  transform: translateY(-5px);
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: transparent;
  box-shadow: var(--sh-lg);
}
.p-feat h3, .p-feat p { transition: none; }
.p-feat:hover h3 { color: #fff; }
.p-feat:hover p { color: rgba(255, 255, 255, 0.82); }
.p-feat__ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--sh-pink);
}
.p-feat__ico .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.p-feat--gold .p-feat__ico { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); box-shadow: var(--sh-gold); }
.p-feat--blue .p-feat__ico { background: linear-gradient(135deg, #4f6bef 0%, #2842c4 100%); }
.p-feat--green .p-feat__ico { background: linear-gradient(135deg, #2ec06a 0%, #1d8f4a 100%); }
/* Image-icon variant: full-color raster art on a soft neutral chip */
.p-feat__ico.p-feat__ico--img {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: #fff5ea;
  border: 1px solid rgba(214, 51, 132, 0.10);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.10);
}
.p-feat--gold .p-feat__ico.p-feat__ico--img { background: #fff5ea; }
.p-feat--blue .p-feat__ico.p-feat__ico--img { background: #eef2ff; border-color: rgba(40, 66, 196, 0.12); box-shadow: 0 8px 20px rgba(40, 66, 196, 0.10); }
.p-feat--green .p-feat__ico.p-feat__ico--img { background: #edfaf1; border-color: rgba(29, 143, 74, 0.14); box-shadow: 0 8px 20px rgba(29, 143, 74, 0.10); }
.p-feat__ico--img img { width: 44px; height: 44px; object-fit: contain; display: block; }
.p-feat h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.p-feat p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* Admissions layout modifiers */
.admissions-features-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 560px) {
  .admissions-features-grid {
    grid-template-columns: 1fr !important;
  }
}
.admission-step-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.admission-step-heading .p-feat__ico {
  margin-bottom: 0;
  flex-shrink: 0;
}
.admission-step-heading h3 {
  margin-bottom: 0 !important;
}

/* Highlight tick list */
.p-ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
  padding: 22px 24px;
  background: var(--surface-2);
  border-left: 4px solid var(--pink);
  border-radius: var(--r-lg);
  list-style: none;
}
.p-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 500;
}
.p-ticks li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* Card grid — image + body */
/* Editorial image cards — full-bleed photo with dark gradient content overlay */
.p-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.p-card {
  position: relative;
  border: none;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--sh-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
  aspect-ratio: 4 / 5;
  display: block;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.p-card__img {
  position: absolute !important;
  inset: 0 !important;
  aspect-ratio: unset !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: var(--navy);
  z-index: 0;
}
.p-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.p-card:hover .p-card__img img {
  transform: scale(1.06);
}
/* Subtle dark wash only where the tag/title sit — keep image bright */
.p-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 8, 42, 0.15) 75%, rgba(22, 8, 42, 0.7) 100%);
  pointer-events: none;
}
/* Body slides above the gradient */
.p-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 22px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.p-card__body h3 {
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}
.p-card__body p {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin-top 0.45s var(--ease);
}
.p-card:hover .p-card__body p {
  max-height: 160px;
  opacity: 1;
  margin-top: 4px;
}
.p-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 12px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: none !important;
}
@media (max-width: 520px) {
  .p-card { aspect-ratio: 3 / 4; }
  .p-card:hover .p-card__body p { max-height: 200px; }
}

@media (max-width: 700px) {
  .p-cards[style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Text-only p-card fallback (no .p-card__img element) — used on
   about-us Vision/Mission, parents-corner Student Corner cards, etc.
   Show a clean navy gradient card with all content visible. */
.p-card:not(:has(.p-card__img)) {
  aspect-ratio: auto;
  min-height: 220px;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-soft) 100%);
  display: flex;
  flex-direction: column;
}
.p-card:not(:has(.p-card__img))::before {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), transparent 55%),
              linear-gradient(-135deg, rgba(232, 56, 142, 0.1), transparent 55%);
}
.p-card:not(:has(.p-card__img)) .p-card__body {
  position: static;
  padding: 30px 28px;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.p-card:not(:has(.p-card__img)) .p-card__body h3 {
  font-size: 1.4rem !important;
  margin-bottom: 12px !important;
}
.p-card:not(:has(.p-card__img)) .p-card__body p {
  max-height: none !important;
  opacity: 1 !important;
  margin-top: 4px !important;
  overflow: visible !important;
  font-size: 0.94rem !important;
}
.p-card:not(:has(.p-card__img)) .p-card__tag {
  background: rgba(245, 166, 35, 0.18);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

@media (max-width: 520px) {
  .psec {
    padding-inline: 18px;
  }

  .psec__head {
    margin-bottom: 24px;
  }

  .psec__pill {
    margin-bottom: 16px;
  }

  .p-card:not(:has(.p-card__img)) {
    border-radius: 18px;
  }

  .p-card:not(:has(.p-card__img)) .p-card__body {
    padding: 24px 20px;
  }

  .p-card:not(:has(.p-card__img)) .p-card__body h3 {
    font-size: 1.24rem !important;
    line-height: 1.16 !important;
  }

  .p-card:not(:has(.p-card__img)) .p-card__body p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .p-ticks {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .p-ticks li {
    min-width: 0;
  }
}

/* Programme cards — numbered outline + accent stripe (Student Life page) */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .programme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programme-grid { grid-template-columns: 1fr; } }

.programme-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--accent, var(--pink));
}
.programme-card--pink  { --accent: var(--pink);  --accent-soft: rgba(196, 20, 114, 0.14); }
.programme-card--gold  { --accent: #d4881a;      --accent-soft: rgba(245, 166, 35, 0.16); }
.programme-card--blue  { --accent: #2842c4;      --accent-soft: rgba(79, 107, 239, 0.14); }
.programme-card--green { --accent: #1d8f4a;      --accent-soft: rgba(46, 192, 106, 0.14); }
.programme-card--navy  { --accent: var(--navy-mid); --accent-soft: rgba(39, 16, 80, 0.14); }
.programme-card--teal  { --accent: #0e7c7b;      --accent-soft: rgba(14, 124, 123, 0.14); }

.programme-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.programme-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.programme-card:hover .programme-card__img img { transform: scale(1.05); }
.programme-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 8, 42, 0.35) 100%);
  pointer-events: none;
}

.programme-card__num {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.2px rgba(255, 255, 255, 0.75);
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: -webkit-text-stroke 0.35s var(--ease), color 0.35s var(--ease);
}
.programme-card:hover .programme-card__num {
  -webkit-text-stroke: 2.2px var(--accent, var(--pink));
  color: rgba(255, 255, 255, 0.15);
}

.programme-card__body {
  padding: 24px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.programme-card__body::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 44px;
  height: 4px;
  background: var(--accent, var(--pink));
  border-radius: 0 0 3px 3px;
  transition: width 0.35s var(--ease);
}
.programme-card:hover .programme-card__body::before { width: 72px; }

.programme-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft, rgba(196, 20, 114, 0.14));
  color: var(--accent, var(--pink));
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.programme-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.programme-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
}

/* Quote / callout block */
.p-quote {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: var(--r-2xl);
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem);
  line-height: 1.55;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.p-quote::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
}
.p-quote cite { display: block; margin-top: 20px; font-size: 0.9rem; font-style: normal; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--pink); color: #fff; box-shadow: var(--sh-pink); }
.btn--primary:hover { background: var(--pink-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border-mid); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface-2); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #0c041a 100%);
  color: #b5a7d3;
  padding-top: 56px;
  font-size: 0.96rem;
}
.footer__main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.05fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.footer__col, .footer__brand { min-width: 0; }

.footer__logo-link {
  display: inline-block;
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-bottom: 16px;
  transition: transform 0.2s;
}
.footer__logo-link:hover { transform: translateY(-2px); }
.footer__logo-img { display: block; width: auto; height: 70px; max-height: 70px; object-fit: contain; }

.footer__affil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.13);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__affil-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.footer__desc { font-size: 0.96rem; color: #b5a7d3; line-height: 1.65; margin-bottom: 18px; }
.footer__socials { display: flex; gap: 8px; }
.footer__social {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #b5a7d3;
  transition: all 0.2s;
}
.footer__social:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }

.footer__col-head {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer__col-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2.5px;
  background: var(--gold);
}
.footer__nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-list a { font-size: 0.96rem; color: #b5a7d3; transition: color 0.2s, padding 0.2s; }
.footer__nav-list a:hover { color: var(--gold); padding-left: 4px; }

.footer__contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact-icon {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.footer__contact-icon svg { width: 14px; height: 14px; }
.footer__contact-label {
  display: block;
  font-size: 0.7rem;
  color: #8a7aa8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 2px;
}
.footer__contact-value { font-size: 0.9rem; color: #d8c8f5; line-height: 1.45; }
.footer__contact-value a { transition: color 0.2s; }
.footer__contact-value a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 18px 24px; }
.footer__bottom-inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.footer__copyright { font-size: 0.9rem; color: #8a7aa8; }
.footer__copyright a { color: var(--gold); }

@media (max-width: 1080px) { .footer__main { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px)  { .footer__main { grid-template-columns: 1fr; gap: 28px; } }

/* ─── Careers page — application form ─────────────────── */
.p-split__media--form { padding: 0; background: none; box-shadow: none; aspect-ratio: auto; overflow: visible; }
.careers-form {
  background: #fff;
  border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: 0 12px 40px rgba(60, 30, 60, 0.10);
  border: 1px solid rgba(214, 51, 132, 0.10);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.careers-form__head { margin-bottom: 4px; }
.careers-form__head h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 4px;
}
.careers-form__head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}
.careers-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.careers-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}
.careers-form__field > span {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}
.careers-form__field em {
  color: var(--pink);
  font-style: normal;
  margin-left: 2px;
}
.careers-form input[type="text"],
.careers-form input[type="email"],
.careers-form input[type="tel"],
.careers-form select,
.careers-form textarea {
  font: inherit;
  font-weight: 500;
  color: var(--navy);
  background: #fbf9fd;
  border: 1.5px solid rgba(90, 55, 120, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.careers-form textarea { resize: vertical; min-height: 88px; font-family: inherit; }
.careers-form input:focus,
.careers-form select:focus,
.careers-form textarea:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.14);
}
.careers-form__file input[type="file"] {
  font-size: 0.88rem;
  padding: 8px;
  background: #fbf9fd;
  border: 1.5px dashed rgba(214, 51, 132, 0.35);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
}
.careers-form__file input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  background: var(--pink);
  color: #fff;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
}
.careers-form__file small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.careers-form__submit {
  margin-top: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.careers-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.4);
}
.careers-form__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.careers-form__note a { color: var(--pink); font-weight: 700; text-decoration: none; }
.careers-form__note a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .careers-form__row { grid-template-columns: 1fr; }
  .careers-form { padding: 22px 20px 20px; }
}

/* ─── Full-bleed page banner (image drives its own height) ─── */
.page-banner {
  display: block;
  background: var(--navy);
  overflow: hidden;
}
.page-banner__img {
  display: block;
  width: 100%;
  height: auto;   /* height follows the image aspect — no crop */
  object-fit: contain;
}

/* ─── Thirukural champions banner ─────────────────────── */
.thiru-banner {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fffbe6;
  box-shadow: var(--sh-md);
  border: 1px solid rgba(245, 166, 35, 0.22);
}
.thiru-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.thiru-banner figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: #fff8e6;
  border-top: 1px solid rgba(245, 166, 35, 0.22);
}

/* ─── Tamil Odu Vilayadu — Kalaignar TV gallery ───────── */
.tov-gallery {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.tov-gallery__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}
.tov-gallery__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(196, 20, 114, 0.08);
  margin-bottom: 12px;
}
.tov-gallery__title {
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem);
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.25;
}
.tov-gallery__title em { color: var(--pink); font-style: normal; }
.tov-gallery__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.tov-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tov-gallery__item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #f4f0f9;
  box-shadow: var(--sh-sm);
  aspect-ratio: 4 / 3;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tov-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tov-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
@media (max-width: 780px) {
  .tov-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .tov-gallery__item:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 460px) {
  .tov-gallery__grid { grid-template-columns: 1fr; }
  .tov-gallery__item:nth-child(3) { aspect-ratio: 4 / 3; }
}

/* ─── Olympiad chip grid (shared with homepage) ─────── */
.oly-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 32px auto 0;
}
.oly-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.3s var(--ease);
}
.oly-chip:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: var(--gold-deep);
  box-shadow: var(--sh-gold);
}
.oly-chip__ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--sh-gold);
  transition: none;
}
.oly-chip:hover .oly-chip__ico {
  background: rgba(22, 8, 42, 0.18);
  color: var(--navy);
}
.oly-chip__ico .ico { width: 22px; height: 22px; stroke-width: 2.2; transition: none; }
.oly-chip strong,
.oly-chip span { transition: none; }
.oly-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 800;
}
.oly-chip span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.oly-chip:hover strong { color: var(--navy); }
.oly-chip:hover span { color: rgba(22, 8, 42, 0.7); }
@media (max-width: 520px) { .oly-chips { grid-template-columns: 1fr; } }
