/* Scoped to .tv-v1 (via :where(), so every rule keeps the specificity of the original design stylesheet) so sections of different designs can share a page. */
:where(.tv-v1) {
  /* Padding scale */
  --Padding-p-none: 0px;
  --Padding-p-tiny: 4px;
  --Padding-p-small: 8px;
  --Padding-p-medium: 16px;
  --Padding-p-regular: 24px;
  --Padding-p-large: 32px;
  --Padding-p-xl: 32px;
  --Padding-p-xxlarge: 48px;
  --Padding-p-xl2: 48px;
  --Padding-p-xl3: 64px;
  --Padding-p-xl4: 80px;

  /* Corner radius */
  --Corner-Radius-sharp: 0px;
  --Corner-Radius-small: 8px;
  --Corner-Radius-smooth-edge: 16px;
  --Corner-Radius-infinity: 9999px;

  /* Opacity */
  --Opacity-opacity-100: 1;

  /* Colours */
  --Colours-Shades-Neutral-N---100: #F7F7F7;
  --Colours-Shades-Neutral-N---200: #EAEAEA;
  --Colours-Shades-Primary-P---50: #F2F5F7;
  --Colours-Shades-Primary-P---500: #22577A;
  --Colours-Shades-Primary-P---600: #1b4662;
  --green: #4CAF7D;
  --green-dark: #3d9468;
  --navy: #16365C;
  --navy-deep: #102c4d;
  --blue: #2B8EF5;
  --text-dark: #16365C;
  --text-body: #4A6381;
  --white: #FFFFFF;
  --yellow: #F5C04E;
  --pagination-active: #57CC99;
  --pagination-idle: #EAEAEA;

  /* Layout */
  --topbar-h: 56px;
  --topbar-pad-x: 40px;

  /* Bootstrap overrides */
  --bs-body-font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--text-dark);
  --bs-border-radius-pill: var(--Corner-Radius-infinity);
}

:where(.tv-v1) {
  overflow-x: hidden;
}

:where(.tv-v1) a {
  text-decoration: none;
  color: inherit;
}

/* Added: Bootstrap has no .min-w-0 (the design uses it so long text can shrink) */
:where(.tv-v1) .min-w-0 {
  min-width: 0;
}

/* Added: anchored sections must clear the sticky header */
:where(.tv-v1) section[id] {
  scroll-margin-top: 76px;
}

/* ---------- Top bar ---------- */
:where(.tv-v1) .topbar {
  height: var(--topbar-h);
  max-width: 1920px;
  background: var(--brand-primary, var(--navy));
  color: var(--brand-primary-contrast, #D7E3F2);
  font-size: 13px;
  /* Added: keep the language dropdown above the sticky header */
  position: relative;
  z-index: 1030;
}

:where(.tv-v1) .topbar__left {
  background: var(--brand-secondary, var(--green));
  color: var(--brand-secondary-contrast, var(--white));
  padding-left: var(--topbar-pad-x);
  padding-right: calc(var(--topbar-pad-x) + 18px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

:where(.tv-v1) .topbar__dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, .7);
}

:where(.tv-v1) .topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .25);
}

:where(.tv-v1) .topbar__right {
  padding-right: var(--topbar-pad-x);
}

/* Added: language dropdown (the design's static "English" label made a real switcher) */
:where(.tv-v1) .lang {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

:where(.tv-v1) .lang:hover {
  color: var(--white);
}

:where(.tv-v1) .topbar .dropdown-menu {
  font-size: 13px;
  min-width: 9rem;
}

:where(.tv-v1) .topbar .dropdown-item.active,
:where(.tv-v1) .topbar .dropdown-item:active {
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
}

:where(.tv-v1) .socials a {
  width: 22px;
  height: 22px;
  background: var(--white);
  color: var(--navy);
  transition: transform .2s ease;
}

:where(.tv-v1) .socials a:hover {
  transform: translateY(-2px);
}

:where(.tv-v1) .socials svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* ---------- Header / nav ---------- */
:where(.tv-v1) .header {
  box-shadow: 0 1px 0 rgba(22, 54, 92, .06);
}

:where(.tv-v1) .logo__img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Added: dropdown carets/menus inside the nav (Gallery, Login) */
:where(.tv-v1) .nav-link--main .nav-caret {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  fill: currentColor;
  vertical-align: middle;
}

:where(.tv-v1) .header .dropdown-menu {
  font-size: 14px;
  border-radius: var(--Corner-Radius-small);
  border-color: #E6EDF4;
  box-shadow: 0 8px 24px rgba(22, 54, 92, .12);
}

:where(.tv-v1) .header .dropdown-item {
  padding: 8px 16px;
  color: var(--navy);
}

:where(.tv-v1) .header .dropdown-item:hover,
:where(.tv-v1) .header .dropdown-item:focus {
  background: var(--Colours-Shades-Primary-P---50);
  color: var(--navy);
}


:where(.tv-v1) .nav-link--main {
  padding: 6px 2px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

:where(.tv-v1) .nav-link--main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s ease;
}

:where(.tv-v1) .nav-link--main:hover::after,
:where(.tv-v1) .nav-link--main.active::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
:where(.tv-v1) .btn {
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

:where(.tv-v1) .btn:hover {
  transform: translateY(-1px);
}

:where(.tv-v1) .btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 10px 26px;
  font-size: 14px;
}

:where(.tv-v1) .btn-navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

:where(.tv-v1) .btn-green {
  background: var(--green);
  color: var(--white);
  padding: 10px 22px;
  font-size: 14px;
}

:where(.tv-v1) .btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--green) 35%, transparent);
}

/* Button / Primary / Default / Large / Only icon = On */
:where(.tv-v1) .btn-icon {
  width: 56px;
  height: 56px;
  gap: var(--Padding-p-none);
  padding: var(--Padding-p-small);
  opacity: var(--Opacity-opacity-100);
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
  transition: background .2s ease, transform .2s ease;
}

:where(.tv-v1) .btn-icon:hover {
  background: var(--Colours-Shades-Primary-P---600);
  color: var(--white);
}

:where(.tv-v1) .btn-icon:active {
  transform: scale(.94);
}

:where(.tv-v1) .btn-icon:focus-visible {
  outline: 3px solid rgba(34, 87, 122, .35);
  outline-offset: 2px;
}

:where(.tv-v1) .btn-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

:where(.tv-v1) .lang svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ---------- Hero slider ---------- */
/* Hero Banner - Style 1: 1920×900, aspect-ratio 32/15 */
:where(.tv-v1) .hero {
  max-width: 1920px;
  /* Changed: the design's fixed 900px height is replaced by its own 32/15 aspect ratio
     (capped at 900px) so uploaded banners are not stretched into a tall box on small screens */
  height: auto;
  min-height: 220px;
  max-height: 900px;
  padding-bottom: var(--Padding-p-large);
  aspect-ratio: 32 / 15;
  opacity: var(--Opacity-opacity-100);
}

:where(.tv-v1) .hero .carousel,
:where(.tv-v1) .hero .carousel-inner,
:where(.tv-v1) .hero .carousel-item {
  position: absolute;
  inset: 0;
}

:where(.tv-v1) .hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Added: slides that link somewhere wrap the image in an <a> */
:where(.tv-v1) .hero .carousel-item>a {
  display: block;
  width: 100%;
  height: 100%;
}

:where(.tv-v1) .hero__arrow {
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

:where(.tv-v1) .hero__arrow--prev {
  left: var(--Padding-p-regular);
}

:where(.tv-v1) .hero__arrow--next {
  right: var(--Padding-p-regular);
}

:where(.tv-v1) .hero__arrow:active {
  transform: translateY(-50%) scale(.94);
}

/* the slider arrows look the same under the pointer (no colour change, no lift: the button hover would
   also drop their vertical centring) */
:where(.tv-v1) .hero__arrow:hover {
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
  transform: translateY(-50%);
}

:where(.tv-v1) .hero .carousel-indicators {
  position: relative;
  z-index: 4;
  margin: 0;
  background: var(--white);
  padding: 6px 10px;
  border-radius: var(--Corner-Radius-infinity);
  box-shadow: 0 4px 14px rgba(22, 54, 92, .14);
}

/* Pagination - Style 1 */
:where(.tv-v1) .hero .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  border: 0;
  border-radius: var(--Corner-Radius-infinity);
  background-color: var(--pagination-idle);
  opacity: 1;
  text-indent: 0;
  transition: width 1.5s linear, background-color 1.5s linear;
}

:where(.tv-v1) .hero .carousel-indicators [data-bs-target].active {
  width: 27px;
  background-color: var(--pagination-active);
}

/* ---------- About Us ---------- */
/* Section: 1920×715, padding 80px 150px, gap 24 */
:where(.tv-v1) .about {
  max-width: 1920px;
  min-height: 715px;
  padding: var(--Padding-p-xl4) 150px;
  gap: var(--Padding-p-regular);
}

/* Container: 1620×555, gap 40 */
:where(.tv-v1) .about__grid {
  max-width: 1620px;
  min-height: 555px;
  gap: 40px;
}

/* Left container: 645×555.
   Changed: the 3-photo collage became one school photo. The 645×555 box now keeps its
   proportions (aspect-ratio) and every piece is positioned in % of it, so the collage
   scales fluidly and the design's transform:scale() mobile hack is no longer needed. */
:where(.tv-v1) .about__media {
  flex: 0 0 645px;
  width: 645px;
  aspect-ratio: 645 / 555;
  height: auto;
}

:where(.tv-v1) .about__photo {
  position: absolute;
  border-radius: 12px;
  object-fit: cover;
}

:where(.tv-v1) .about__photo--1 {
  width: 74.4%;
  height: 86.5%;
  top: 10.8%;
  left: 7.75%;
  z-index: 2;
}

/* green frame sits up-left behind the photo */
:where(.tv-v1) .about__frame {
  position: absolute;
  width: 74.4%;
  height: 86.5%;
  top: 5.4%;
  left: 3.1%;
  border-radius: 12px;
  background: var(--green);
  z-index: 1;
}

/* hand-drawn scribble, top-right */
:where(.tv-v1) .about__scribble {
  position: absolute;
  top: 0;
  right: 1.5%;
  z-index: 1;
  width: 14.7%;
  height: auto;
}

/* badge overlaps the photo's lower-right edge */
:where(.tv-v1) .about__badge {
  position: absolute;
  top: 56%;
  left: 79%;
  z-index: 4;
  width: 56px;
  height: 68px;
  border-radius: var(--Corner-Radius-small);
  background: var(--Colours-Shades-Primary-P---500);
}

:where(.tv-v1) .about__badge svg {
  width: 26px;
  height: 26px;
  fill: var(--yellow);
}

/* Content: 935×489, gap 32 */
:where(.tv-v1) .about__content {
  display: flex;
  flex-direction: column;
  gap: var(--Padding-p-large);
  flex: 0 0 935px;
  max-width: 935px;
  min-width: 0;
}

:where(.tv-v1) .about__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--brand-secondary-tint, #E8F7EF);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .about__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .about__title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

:where(.tv-v1) .about__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

:where(.tv-v1) .about__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--Padding-p-regular) var(--Padding-p-xl);
  padding-bottom: var(--Padding-p-xl);
  border-bottom: 1px solid #E6EDF4;
}

:where(.tv-v1) .point__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: var(--brand-secondary-tint, #E8F7EF);
  color: var(--green);
}

:where(.tv-v1) .point__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .point__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

:where(.tv-v1) .point__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

:where(.tv-v1) .btn-read {
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
  padding: 8px 8px 8px 22px;
  font-size: 14px;
  gap: var(--Padding-p-medium);
}

:where(.tv-v1) .btn-read:hover {
  background: var(--Colours-Shades-Primary-P---600);
  color: var(--white);
}

:where(.tv-v1) .btn-read i {
  width: 30px;
  height: 30px;
  background: var(--green);
}

:where(.tv-v1) .btn-read svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

/* ---------- Programs ---------- */
:where(.tv-v1) .programs {
  max-width: 1920px;
  padding: var(--Padding-p-xl4) 150px;
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
}

:where(.tv-v1) .programs__head {
  max-width: 760px;
}

:where(.tv-v1) .programs__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--white);
  color: var(--Colours-Shades-Primary-P---500);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .programs__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .programs__title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}

:where(.tv-v1) .programs__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
}

/* track */
:where(.tv-v1) .programs__viewport {
  overflow: hidden;
}

:where(.tv-v1) .programs__track {
  display: flex;
  gap: var(--Padding-p-regular);
  transition: transform .45s ease;
}

/* Added: script.js sets .is-static when every card already fits, so a short row is centred */
:where(.tv-v1) .programs__track.is-static,
:where(.tv-v1) .staff__track.is-static {
  justify-content: center;
}

/* card */
:where(.tv-v1) .program {
  flex: 0 0 calc((100% - var(--Padding-p-regular) * 3) / 4);
  background: var(--white);
  color: var(--text-dark);
  border-radius: 12px;
  padding: var(--Padding-p-medium);
}

:where(.tv-v1) .program__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  /* Added: long program names wrap/clamp instead of squeezing the badge */
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

:where(.tv-v1) .program__badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--Corner-Radius-small);
  background: #EEF3F8;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

:where(.tv-v1) .program__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 3.2em;
  /* Added: two lines, so card images line up whatever the text length */
}

/* Card image: 355×300, sharp corners */
:where(.tv-v1) .program__media {
  border-radius: var(--Corner-Radius-sharp);
  opacity: var(--Opacity-opacity-100);
  overflow: hidden;
}

:where(.tv-v1) .program__media img {
  width: 100%;
  max-width: 355px;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* progress bar + arrows */
:where(.tv-v1) .programs__rail {
  flex: 1;
  height: 4px;
  border-radius: var(--Corner-Radius-infinity);
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}

:where(.tv-v1) .programs__fill {
  height: 100%;
  border-radius: var(--Corner-Radius-infinity);
  background: var(--pagination-active);
  transition: width .45s ease;
}

:where(.tv-v1) .programs__nav {
  width: 32px;
  height: 32px;
  background: var(--pagination-active);
  color: var(--white);
  transition: background .2s ease, transform .2s ease;
}

:where(.tv-v1) .programs__nav:hover:not(:disabled) {
  background: var(--green-dark);
  color: var(--white);
}

:where(.tv-v1) .programs__nav:disabled {
  opacity: .45;
  cursor: default;
}

:where(.tv-v1) .programs__nav:active:not(:disabled) {
  transform: scale(.92);
}

:where(.tv-v1) .programs__nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Admission CTA ---------- */
:where(.tv-v1) .cta {
  max-width: 1920px;
  padding: var(--Padding-p-xl4) 150px;
}

:where(.tv-v1) .cta__inner {
  max-width: 1620px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
}

:where(.tv-v1) .cta__left {
  flex: 1 1 56%;
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
  padding: var(--Padding-p-xl2);
}

:where(.tv-v1) .cta__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--white);
  color: var(--Colours-Shades-Primary-P---500);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .cta__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .cta__title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

:where(.tv-v1) .cta__text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .8);
  max-width: 620px;
  overflow-wrap: anywhere;
}

:where(.tv-v1) .btn-register {
  background: var(--pagination-active);
  color: var(--white);
  padding: 8px 8px 8px 22px;
  font-size: 14px;
  gap: var(--Padding-p-medium);
}

:where(.tv-v1) .btn-register:hover {
  background: var(--green-dark);
  color: var(--white);
}

:where(.tv-v1) .btn-register i {
  width: 28px;
  height: 28px;
  background: var(--Colours-Shades-Primary-P---500);
}

:where(.tv-v1) .btn-register svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

/* right panel */
:where(.tv-v1) .cta__right {
  flex: 1 1 44%;
  background: var(--brand-secondary-light, #6FCF97);
  min-height: 340px;
  padding: var(--Padding-p-xl2) var(--Padding-p-regular);
}

:where(.tv-v1) .cta__ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 8px var(--brand-secondary-light, #6FCF97), 0 0 0 10px rgba(255, 255, 255, .85);
}

:where(.tv-v1) .cta__ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .9);
}

/* Changed: the design's transparent student cut-out slot now holds any rectangular photo,
   cropped to a circle that sits inside the ring */
:where(.tv-v1) .cta__cutout {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

:where(.tv-v1) .cta__doodle {
  position: absolute;
  stroke: rgba(255, 255, 255, .75);
  fill: none;
  stroke-width: 1.6;
}

:where(.tv-v1) .cta__doodle--book {
  top: 32px;
  right: 48px;
  width: 42px;
  height: 42px;
}

:where(.tv-v1) .cta__doodle--rocket {
  bottom: 46px;
  left: 42px;
  width: 48px;
  height: 48px;
}

:where(.tv-v1) .cta__doodle--spark {
  bottom: 70px;
  right: 56px;
  width: 26px;
  height: 26px;
}

/* ---------- Announcements ---------- */
:where(.tv-v1) .news {
  max-width: 1920px;
  padding: var(--Padding-p-xl4) 150px;
}

:where(.tv-v1) .news__head {
  max-width: 700px;
}

:where(.tv-v1) .news__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--brand-secondary-tint, #E8F7EF);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .news__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .news__title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

:where(.tv-v1) .news__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

:where(.tv-v1) .news__grid {
  max-width: 1620px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--Padding-p-regular);
}

/* card */
:where(.tv-v1) .notice {
  background: var(--white);
  border: 1px solid #E6EDF4;
  border-radius: 12px;
  padding: var(--Padding-p-medium);
}

:where(.tv-v1) .notice__date {
  flex: 0 0 68px;
  align-self: flex-start;
  border-radius: var(--Corner-Radius-small);
  overflow: hidden;
  text-align: center;
}

:where(.tv-v1) .notice__day {
  background: var(--pagination-active);
  color: var(--white);
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 600;
}

:where(.tv-v1) .notice__year {
  background: #EEF3F8;
  color: var(--navy);
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 600;
}

:where(.tv-v1) .notice__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  /* Added: long titles clamp to two lines */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

:where(.tv-v1) .notice__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

:where(.tv-v1) .notice__foot {
  border-top: 1px solid #E6EDF4;
  padding-top: var(--Padding-p-medium);
  margin-top: var(--Padding-p-medium);
}

:where(.tv-v1) .notice__meta {
  font-size: 12px;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:where(.tv-v1) .notice__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  margin-left: auto;
  /* Added: stays right-aligned when a notice has no class list */
}

:where(.tv-v1) .notice__link i {
  width: 22px;
  height: 22px;
  background: var(--Colours-Shades-Primary-P---500);
  transition: transform .2s ease;
}

:where(.tv-v1) .notice__link:hover i {
  transform: translateX(2px);
}

:where(.tv-v1) .notice__link svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

/* ---------- Achievements ---------- */
/* Statistics: 1920×452, padding 48px 150px, gap 24 */
:where(.tv-v1) .stats {
  max-width: 1920px;
  min-height: 452px;
  padding: var(--Padding-p-xxlarge) 150px;
  gap: var(--Padding-p-regular);
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
}

/* Container: 1620×356, gap 40 */
:where(.tv-v1) .stats__container {
  width: 100%;
  max-width: 1620px;
  min-height: 356px;
  gap: 40px;
}

/* Content: 1620×174, gap 12 */
:where(.tv-v1) .stats__head {
  width: 100%;
  max-width: 1620px;
  min-height: 174px;
  gap: 12px;
}

:where(.tv-v1) .stats__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--white);
  color: var(--Colours-Shades-Primary-P---500);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .stats__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .stats__title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}

:where(.tv-v1) .stats__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
}

/* Frame 9: 1620×142, gap 24, 1px top + bottom borders */
:where(.tv-v1) .stats__grid {
  width: 100%;
  max-width: 1620px;
  min-height: 142px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--Padding-p-regular);
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

:where(.tv-v1) .stat {
  background: var(--white);
  border-radius: 12px;
  padding: var(--Padding-p-regular) var(--Padding-p-medium);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

:where(.tv-v1) .stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

:where(.tv-v1) .stat__label {
  font-size: 14px;
  color: var(--text-body);
}

/* ---------- Educators ---------- */
:where(.tv-v1) .staff {
  max-width: 1920px;
  padding: var(--Padding-p-xl4) 150px;
}

:where(.tv-v1) .staff__head {
  max-width: 700px;
}

:where(.tv-v1) .staff__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--brand-secondary-tint, #E8F7EF);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .staff__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .staff__title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

:where(.tv-v1) .staff__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

:where(.tv-v1) .staff__viewport {
  max-width: 1620px;
  overflow: hidden;
}

:where(.tv-v1) .staff__track {
  display: flex;
  gap: var(--Padding-p-regular);
  transition: transform .45s ease;
}

/* card */
:where(.tv-v1) .educator {
  flex: 0 0 calc((100% - var(--Padding-p-regular) * 3) / 4);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

:where(.tv-v1) .educator img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

:where(.tv-v1) .educator__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--Padding-p-xl2) var(--Padding-p-medium) var(--Padding-p-medium);
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Added: qualification line under the teacher's name */
:where(.tv-v1) .educator__role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
}

/* progress rail reused from programs, light variant */
:where(.tv-v1) .staff__rail {
  flex: 1;
  height: 4px;
  border-radius: var(--Corner-Radius-infinity);
  background: #E0E6EC;
  overflow: hidden;
}

:where(.tv-v1) .staff__fill {
  height: 100%;
  border-radius: var(--Corner-Radius-infinity);
  background: var(--pagination-active);
  transition: width .45s ease;
}

/* ---------- FAQs ---------- */
/* 1920×621, padding 80px 150px, gap 24 */
:where(.tv-v1) .faq {
  max-width: 1920px;
  min-height: 621px;
  padding: var(--Padding-p-xl4) 150px;
  gap: var(--Padding-p-regular);
  background: var(--Colours-Shades-Primary-P---50);
}

:where(.tv-v1) .faq__grid {
  max-width: 1620px;
  gap: var(--Padding-p-xl3);
}

:where(.tv-v1) .faq__left {
  flex: 1 1 42%;
  min-width: 0;
}

:where(.tv-v1) .faq__right {
  flex: 1 1 58%;
  min-width: 0;
}

:where(.tv-v1) .faq__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .faq__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .faq__title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

:where(.tv-v1) .faq__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

/* contact card */
:where(.tv-v1) .faq__cta {
  background: var(--white);
  border-radius: 12px;
  padding: var(--Padding-p-regular);
}

:where(.tv-v1) .faq__cta-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

:where(.tv-v1) .faq__cta-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

:where(.tv-v1) .btn-contact {
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
  padding: 7px 7px 7px 20px;
  font-size: 14px;
  gap: var(--Padding-p-small);
  white-space: nowrap;
}

:where(.tv-v1) .btn-contact:hover {
  background: var(--Colours-Shades-Primary-P---600);
  color: var(--white);
}

:where(.tv-v1) .btn-contact i {
  width: 26px;
  height: 26px;
  background: var(--white);
}

:where(.tv-v1) .btn-contact svg {
  width: 14px;
  height: 14px;
  fill: var(--Colours-Shades-Primary-P---500);
}

/* accordion */
:where(.tv-v1) .faq__list .accordion-item {
  background: var(--white);
  border: 0;
  border-radius: 12px;
  margin-bottom: var(--Padding-p-medium);
  overflow: hidden;
}

:where(.tv-v1) .faq__list .accordion-item:last-child {
  margin-bottom: 0;
}

:where(.tv-v1) .faq__list .accordion-button {
  background: var(--white);
  padding: var(--Padding-p-medium) var(--Padding-p-regular);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: none;
}

:where(.tv-v1) .faq__list .accordion-button:not(.collapsed) {
  color: var(--navy);
}

:where(.tv-v1) .faq__list .accordion-button:focus {
  box-shadow: none;
}

:where(.tv-v1) .faq__num {
  flex: 0 0 auto;
  margin-right: var(--Padding-p-medium);
  font-size: 14px;
  font-weight: 700;
  color: #B4C2D1;
}

/* swap Bootstrap's chevron for +/− pill */
:where(.tv-v1) .faq__list .accordion-button::after {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #EEF3F8 none;
  color: var(--navy);
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  transform: none;
}

:where(.tv-v1) .faq__list .accordion-button:not(.collapsed)::after {
  content: "–";
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
}

:where(.tv-v1) .faq__list .accordion-body {
  overflow-wrap: anywhere;
  padding: 0 var(--Padding-p-regular) var(--Padding-p-medium);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ---------- Gallery ---------- */
:where(.tv-v1) .gallery {
  max-width: 1920px;
  padding: var(--Padding-p-xl4) 150px;
}

:where(.tv-v1) .gallery__head {
  max-width: 700px;
}

:where(.tv-v1) .gallery__tag {
  padding: 6px 14px;
  border-radius: var(--Corner-Radius-small);
  background: var(--brand-secondary-tint, #E8F7EF);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

:where(.tv-v1) .gallery__tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

:where(.tv-v1) .gallery__title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

:where(.tv-v1) .gallery__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

:where(.tv-v1) .gallery__grid {
  max-width: 1620px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--Padding-p-regular);
}

/* card: photo with notched caption panel tucked into its lower edge */
:where(.tv-v1) .album {
  align-self: stretch;
  justify-self: stretch;
  grid-row: span 1;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--Corner-Radius-smooth-edge);
  border: 1px solid var(--Colours-Shades-Neutral-N---200);
  background: var(--Colours-Shades-Neutral-N---100);
  padding: var(--Padding-p-small);
  padding-bottom: 0;
}

:where(.tv-v1) .album__media {
  border-radius: var(--Corner-Radius-small);
  overflow: hidden;
}

:where(.tv-v1) .album__media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* notched panel: Subtract shape as a mask so the photo shows through the cut */
:where(.tv-v1) .album__body {
  position: relative;
  margin-top: -26px;
  padding: var(--Padding-p-medium) var(--Padding-p-small) var(--Padding-p-medium) var(--Padding-p-medium);
  background: var(--Colours-Shades-Neutral-N---100);
  border-radius: var(--Corner-Radius-smooth-edge) var(--Corner-Radius-smooth-edge) 0 0;
  margin-inline: calc(var(--Padding-p-small) * -1);
  margin-bottom: 0;
  flex: 1;
}

:where(.tv-v1) .album__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  /* Added: long album titles clamp to two lines */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

:where(.tv-v1) .album__meta {
  font-size: 12px;
  color: var(--text-body);
}

:where(.tv-v1) .album__dot {
  width: 3px;
  height: 3px;
  background: #B4C2D1;
}

/* ---------- Footer ---------- */
:where(.tv-v1) .footer {
  max-width: 1920px;
  background: var(--Colours-Shades-Primary-P---500);
  color: var(--white);
}

:where(.tv-v1) .footer__inner {
  max-width: 1620px;
  padding-inline: 150px;
}

/* contact strip */
:where(.tv-v1) .footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--Padding-p-regular);
  padding-block: var(--Padding-p-xl2);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

:where(.tv-v1) .footer__ci {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

:where(.tv-v1) .footer__ci svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

:where(.tv-v1) .footer__clabel {
  font-size: 14px;
  font-weight: 600;
}

:where(.tv-v1) .footer__cvalue {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  overflow-wrap: anywhere;
}

/* body columns */
:where(.tv-v1) .footer__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: var(--Padding-p-xl2);
  padding-block: var(--Padding-p-xl2);
}

/* Added: three columns when the school has no app links (keep before the responsive rules) */
:where(.tv-v1) .footer__body--no-apps {
  grid-template-columns: 1.4fr 1fr 1fr;
}

:where(.tv-v1) .footer__logo {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Added: schools without a dedicated footer logo show their (dark) main logo on a white chip */
:where(.tv-v1) .footer__logo-chip {
  display: inline-block;
  padding: 8px 12px;
  background: var(--white);
  border-radius: var(--Corner-Radius-small);
}

:where(.tv-v1) .footer__rule {
  width: 56px;
  height: 2px;
  background: var(--pagination-active);
}

:where(.tv-v1) .footer__about {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
  overflow-wrap: anywhere;
}

:where(.tv-v1) .footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--Corner-Radius-small);
  color: var(--white);
  transition: background .2s ease, border-color .2s ease;
}

:where(.tv-v1) .footer__social a:hover {
  background: var(--pagination-active);
  border-color: var(--pagination-active);
}

:where(.tv-v1) .footer__social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

:where(.tv-v1) .footer__title {
  font-size: 15px;
  font-weight: 600;
}

/* Home: hover slides 4px right and turns green */
:where(.tv-v1) .footer__links a {
  display: inline-block;
  font-size: 13px;
  color: #FFF;
  opacity: .8;
  translate: 0 0;
  transition: color .2s ease-out, translate .2s ease-out;
}

:where(.tv-v1) .footer__links a:hover {
  color: var(--pagination-active);
  translate: 4px 0;
  opacity: 1;
}

/* app download tiles */
:where(.tv-v1) .footer__apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--Padding-p-medium);
}

:where(.tv-v1) .app-tile {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--Corner-Radius-small);
  padding: var(--Padding-p-medium);
  transition: border-color .2s ease, background .2s ease;
}

:where(.tv-v1) .app-tile:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--pagination-active);
}

:where(.tv-v1) .app-tile__mark {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 4px;
}

/* Added: store icon inside the design's empty white mark */
:where(.tv-v1) .app-tile__mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

:where(.tv-v1) .app-tile__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

:where(.tv-v1) .app-tile__os {
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
}

/* copyright */
:where(.tv-v1) .footer__bar {
  overflow-wrap: anywhere;
  background: var(--brand-secondary, var(--navy-deep));
  padding-block: var(--Padding-p-medium);
  font-size: 13px;
  color: var(--brand-secondary-contrast, rgba(255, 255, 255, .75));
}

/* ---------- Responsive ---------- */
@media (max-width: 1619.98px) {
  :where(.tv-v1) .about__media {
    flex: 1 1 645px;
  }

  :where(.tv-v1) .about__content {
    flex: 1 1 935px;
  }
}

@media (max-width: 1200px) {
  :where(.tv-v1) .about {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .about__grid {
    gap: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .programs {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .program {
    flex: 0 0 calc((100% - var(--Padding-p-regular) * 2) / 3);
  }

  :where(.tv-v1) .cta {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .news {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .stats {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(.tv-v1) .staff {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .educator {
    flex: 0 0 calc((100% - var(--Padding-p-regular) * 2) / 3);
  }

  :where(.tv-v1) .faq {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .faq__grid {
    gap: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .gallery {
    padding: var(--Padding-p-xl4) var(--topbar-pad-x);
  }

  :where(.tv-v1) .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  :where(.tv-v1) .footer__inner {
    padding-inline: var(--topbar-pad-x);
  }

  :where(.tv-v1) .footer__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--Padding-p-xl);
  }
}

@media (max-width: 991.98px) {
  :where(.tv-v1) .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  :where(.tv-v1) .faq {
    min-height: 0;
  }

  :where(.tv-v1) .faq__grid {
    flex-direction: column;
  }

  :where(.tv-v1) .faq__left,
:where(.tv-v1) .faq__right {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 860px) {
  :where(.tv-v1) .cta__inner {
    flex-direction: column;
  }

  :where(.tv-v1) .cta__left,
:where(.tv-v1) .cta__right {
    flex: 1 1 auto;
    width: 100%;
  }

  :where(.tv-v1) .cta__ring {
    width: 220px;
    height: 220px;
  }

  :where(.tv-v1) .cta__cutout {
    width: 220px;
  }

  :where(.tv-v1) .cta__right {
    min-height: 300px;
  }

  :where(.tv-v1) .stats,
:where(.tv-v1) .stats__container,
:where(.tv-v1) .stats__head,
:where(.tv-v1) .stats__grid {
    min-height: 0;
  }

  :where(.tv-v1) .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :where(.tv-v1) .program {
    flex: 0 0 calc((100% - var(--Padding-p-regular)) / 2);
  }

  :where(.tv-v1) .educator {
    flex: 0 0 calc((100% - var(--Padding-p-regular)) / 2);
  }

  :where(.tv-v1) .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(.tv-v1) .footer__contact {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--Padding-p-xl);
  }
}

@media (max-width: 991.98px) {
  :where(.tv-v1) .about {
    min-height: 0;
  }

  :where(.tv-v1) .about__grid {
    min-height: 0;
  }

  :where(.tv-v1) .about__media {
    flex: 0 0 auto;
    width: 645px;
    max-width: 100%;
  }

  :where(.tv-v1) .about__content {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  :where(.tv-v1) {
    --topbar-pad-x: 16px;
  }

  :where(.tv-v1) .topbar {
    font-size: 11px;
  }

  :where(.tv-v1) .logo__img {
    height: 34px;
  }

  :where(.tv-v1) .btn-icon {
    width: 44px;
    height: 44px;
  }

  :where(.tv-v1) .btn-icon svg {
    width: 20px;
    height: 20px;
  }

  :where(.tv-v1) .about {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .about__title {
    font-size: 24px;
  }

  :where(.tv-v1) .about__points {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.tv-v1) .about__badge {
    width: 42px;
    height: 52px;
  }

  :where(.tv-v1) .about__badge svg {
    width: 20px;
    height: 20px;
  }

  :where(.tv-v1) .programs {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .programs__title {
    font-size: 24px;
  }

  :where(.tv-v1) .program {
    flex: 0 0 100%;
  }

  :where(.tv-v1) .cta {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .cta__left {
    padding: var(--Padding-p-regular);
  }

  :where(.tv-v1) .cta__title {
    font-size: 22px;
  }

  :where(.tv-v1) .cta__doodle {
    display: none;
  }

  :where(.tv-v1) .news {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .news__title {
    font-size: 24px;
  }

  :where(.tv-v1) .news__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.tv-v1) .stats {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .stats__title {
    font-size: 24px;
  }

  :where(.tv-v1) .stats__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.tv-v1) .staff {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .staff__title {
    font-size: 24px;
  }

  :where(.tv-v1) .educator {
    flex: 0 0 100%;
  }

  :where(.tv-v1) .faq {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .faq__title {
    font-size: 22px;
  }

  :where(.tv-v1) .gallery {
    padding-block: var(--Padding-p-xl2);
  }

  :where(.tv-v1) .gallery__title {
    font-size: 22px;
  }

  :where(.tv-v1) .gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.tv-v1) .footer__body {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.tv-v1) .footer__apps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Added: the platform has RTL languages, so slider arrows mirror there */
[dir="rtl"] :where(.tv-v1) .btn-icon svg,
[dir="rtl"] :where(.tv-v1) .programs__nav svg {
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {

  :where(.tv-v1) .hero .carousel-item,
:where(.tv-v1) .hero .carousel-indicators [data-bs-target] {
    transition: none;
  }
}

/* ---------- Hover effects ----------
   Cards lift and pick up the school's primary colour; photos zoom a little (the teacher photos only zoom:
   their row clips anything that leaves it); the FAQ questions and the top bar links react too.
   Only on devices that can hover (no sticky hover after a tap). */
@media (hover: hover) and (pointer: fine) {

  :where(.tv-v1) .stat,
  :where(.tv-v1) .program,
  :where(.tv-v1) .notice,
  :where(.tv-v1) .album {
    transition: translate .3s ease, box-shadow .3s ease, border-color .3s ease;
  }

  :where(.tv-v1) .stat:hover,
  :where(.tv-v1) .program:hover,
  :where(.tv-v1) .notice:hover,
  :where(.tv-v1) .album:hover {
    translate: 0 -4px;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--Colours-Shades-Primary-P---500) 16%, transparent);
  }

  :where(.tv-v1) .notice:hover,
  :where(.tv-v1) .album:hover {
    border-color: var(--Colours-Shades-Primary-P---500);
  }

  :where(.tv-v1) .stat__value {
    transition: color .3s ease;
  }

  :where(.tv-v1) .stat:hover .stat__value {
    color: var(--Colours-Shades-Primary-P---500);
  }

  :where(.tv-v1) .educator img,
  :where(.tv-v1) .album__media img {
    transition: scale .45s ease;
  }

  :where(.tv-v1) .educator:hover img,
  :where(.tv-v1) .album:hover .album__media img {
    scale: 1.06;
  }

  :where(.tv-v1) .faq__list .accordion-button {
    transition: color .25s ease, background-color .25s ease;
  }

  :where(.tv-v1) .faq__list .accordion-button:hover {
    color: var(--Colours-Shades-Primary-P---500);
    background: var(--Colours-Shades-Primary-P---50);
  }

  :where(.tv-v1) .topbar__left a {
    transition: opacity .2s ease;
  }

  :where(.tv-v1) .topbar__left a:hover {
    opacity: .75;
  }

  /* hero pagination dots: the dot under the pointer takes the active colour (the slide change keeps its own timing) */
  :where(.tv-v1) .hero .carousel-indicators [data-bs-target]:not(.active):hover {
    background-color: var(--pagination-active);
    cursor: pointer;
    transition: width 1.5s linear, background-color .25s ease;
  }
}

@media (prefers-reduced-motion: reduce) {

  :where(.tv-v1) .stat,
  :where(.tv-v1) .program,
  :where(.tv-v1) .notice,
  :where(.tv-v1) .album,
  :where(.tv-v1) .educator img,
  :where(.tv-v1) .album__media img {
    transition: none;
    translate: none;
    scale: none;
  }
}
