/*
 * School theme — teal & orange "education template" look (an original stylesheet inspired by the
 * Eduka style: teal brand colour, orange accents, navy footer, asymmetric rounded cards and buttons).
 * Loaded after home.css / branch.css and only restyles: no markup, content or behaviour depends on it,
 * so every CMS-driven section keeps working. Remove this one stylesheet to get the previous look back.
 */

:root,
.branch-page {
  --brand-green: #116e63;
  --brand-green-dark: #0b4c44;
  --brand-gold: #fda31b;
  --brand-gold-light: #ffc35e;
  --brand-cream: #f2f3f5;
  --brand-cream-dark: #e8eaee;
  --brand-text: #19232b;
  --brand-muted: #757f95;
  --brand-border: #e6e9ef;

  --theme: #116e63;
  --theme-light: rgba(17, 110, 99, .09);
  --accent: #fda31b;
  --dark: #19232b;
  --navy: #012758;
  --hero-overlay: rgba(11, 28, 57, .72);

  --shape: 30px 30px 30px 0;
  --shape-sm: 18px 18px 18px 0;
  --btn-shape: 50px 50px 50px 0;
  --shadow: 0 0 40px 5px rgba(0, 0, 0, .05);
  --shadow-hover: 0 10px 45px 8px rgba(0, 0, 0, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-heading: "Yantramanav", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
body,
.branch-page {
  font-family: var(--font-body);
  color: var(--brand-muted);
  -webkit-font-smoothing: antialiased;
}

.branch-page h1,
.branch-page h2,
.branch-page h3,
.branch-page h4,
.branch-page h5,
.site-footer h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
}

.branch-page p {
  line-height: 1.75;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Top bar: teal strip with an angled orange block on the left ────────────── */
.topbar {
  position: relative;
  background: var(--theme);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}

.topbar .site-container,
.topbar-row {
  position: relative;
  z-index: 1;
}

.topbar a {
  color: #fff;
}

/* Phone / email sit over the orange block and the teal strip: on hover they stay white with a soft
   dark highlight behind them (an orange hover colour would vanish into the orange block). No underline. */
.topbar-contact a {
  padding: 3px 10px;
  border-radius: 50px 50px 50px 0;
  text-decoration: none;
  transition: background-color .3s var(--ease);
}

.topbar-contact a:hover,
.topbar-contact a:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, .18);
}

.topbar-contact a i {
  transition: transform .3s var(--ease);
}

.topbar-contact a:hover i {
  transform: scale(1.15);
}

.topbar-social a:not(.topbar-disclosure) {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
}

.topbar-social a:not(.topbar-disclosure):hover {
  background: var(--accent);
  color: #fff;
}

/* Mandatory Public Disclosure: a white-outlined pill on the teal strip; orange with white text on hover */
.topbar a.topbar-disclosure {
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50px 50px 50px 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.topbar a.topbar-disclosure:hover,
.topbar a.topbar-disclosure:focus-visible,
.topbar a.topbar-disclosure.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 991px) {
  .topbar::before {
    display: none;
  }
}

/* ── Header / navigation ───────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: box-shadow .3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

/* Menu text a size up (the heading font runs small): large desktops, smaller laptops (long menus
   still fit on one line), and the tablet / phone drop-down menu. */
.nav-link,
.nav-label {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: capitalize;
}

.nav-sublink {
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.nav-cta {
  font-size: 1rem;
}

@media (max-width: 1440px) and (min-width: 1200px) {
  .nav-link,
  .nav-label {
    font-size: 1.1rem;
  }

  .nav-cta {
    font-size: .92rem;
  }
}

@media (max-width: 1199px) {
  .nav-link,
  .nav-label {
    font-size: 1.18rem;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--theme);
}

.nav-link::after {
  height: 2px;
  background: var(--accent);
}

/* ── Buttons: orange, rounded except bottom-left, teal fill grows on hover ─── */
.branch-page .btn,
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: var(--btn-shape);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.branch-page .btn::before,
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--theme);
  transform: translate(-50%, -50%);
  transition: width .5s var(--ease), height .5s var(--ease);
}

.branch-page .btn:hover::before,
.btn:hover::before {
  width: 320px;
  height: 320px;
}

.branch-page .btn-primary,
.btn-accent,
.branch-page .btn-accent,
.branch-page .banner-btn-primary,
.branch-page .cf-submit {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(253, 163, 27, .32);
}

.branch-page .btn-primary:hover,
.btn-accent:hover,
.branch-page .btn-accent:hover,
.branch-page .banner-btn-primary:hover,
.branch-page .cf-submit:hover {
  color: #fff;
  box-shadow: 0 10px 26px rgba(17, 110, 99, .3);
}

.branch-page .btn-ghost,
.branch-page .banner-btn-secondary {
  background: #fff;
  color: var(--theme);
  border: 0;
}

.branch-page .btn-ghost:hover,
.branch-page .banner-btn-secondary:hover {
  color: #fff;
}

/* ── Hero banner (CMS Sliders: an uploaded video plays first, then images) ─── */
.branch-page .banner {
  background: var(--navy);
}

.branch-page .banner-overlay {
  background: linear-gradient(90deg, var(--hero-overlay) 0%, rgba(11, 28, 57, .5) 50%, rgba(11, 28, 57, .15) 100%);
}

.branch-page .banner-copy .eyebrow {
  display: inline-block;
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.branch-page .banner-copy h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.branch-page .banner-copy p {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
}

.branch-page .banner-copy:not([hidden]) > * {
  animation: theme-rise .8s var(--ease) both;
}

.branch-page .banner-copy:not([hidden]) > *:nth-child(2) { animation-delay: .12s; }
.branch-page .banner-copy:not([hidden]) > *:nth-child(3) { animation-delay: .24s; }
.branch-page .banner-copy:not([hidden]) > *:nth-child(4) { animation-delay: .36s; }

.branch-page .banner-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .3s var(--ease);
}

.branch-page .banner-nav:hover {
  background: var(--accent);
}

.branch-page .banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.branch-page .banner-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

/* ── Section headings: orange underlined tagline, big title, teal divider ──── */
.branch-page .section-heading {
  margin-bottom: clamp(30px, 4vw, 50px);
}

.branch-page .eyebrow,
.branch-page .section-heading .eyebrow {
  display: inline-block;
  width: auto;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.branch-page .section-heading h2 {
  margin: 14px 0 16px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.branch-page .heading-underline {
  position: relative;
  width: 90px;
  height: 3px;
  border-radius: 0;
  background: var(--brand-border);
  overflow: hidden;
}

.branch-page .heading-underline::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 36px;
  background: var(--theme);
  animation: theme-divider 4s linear infinite alternate;
}

/* Section backgrounds: light grey and white, alternating */
.branch-page .message-board,
.branch-page .toppers-birthdays,
.branch-page .gallery,
.branch-page .achievements {
  background: var(--brand-cream);
}

.branch-page .leadership,
.branch-page .cms-news,
.branch-page .videos,
.branch-page .cms-contact,
.branch-page .about,
.branch-page .cms-welcome {
  background: #fff;
}

/* ── Cards: white, rounded except bottom-left, soft shadow, orange edge on hover ── */
.branch-page .message-board-card,
.branch-page .notice-board,
.branch-page .leadership-card,
.branch-page .tb-card,
.branch-page .cms-news-card,
.branch-page .event-card,
.branch-page .achievement-card,
.branch-page .video-card,
.branch-page .cms-contact-form {
  border: 0;
  border-radius: var(--shape);
  background: #fff;
  box-shadow: var(--shadow);
}

.branch-page .cms-news-card,
.branch-page .event-card,
.branch-page .achievement-card,
.branch-page .video-card {
  overflow: hidden;
  border-bottom: 4px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.branch-page .cms-news-card:hover,
.branch-page .event-card:hover,
.branch-page .achievement-card:hover,
.branch-page .video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}

.branch-page .cms-news-image,
.branch-page .event-card-image,
.branch-page .video-thumb {
  overflow: hidden;
}

.branch-page .cms-news-image img,
.branch-page .event-card-image img,
.branch-page .video-thumb-image {
  transition: transform .6s var(--ease);
}

.branch-page .cms-news-card:hover .cms-news-image img,
.branch-page .event-card:hover .event-card-image img,
.branch-page .video-card:hover .video-thumb-image {
  transform: scale(1.1);
}

.branch-page .cms-news-card h3,
.branch-page .event-card h3,
.branch-page .achievement-card h3,
.branch-page .video-title {
  color: var(--dark);
  transition: color .3s var(--ease);
}

.branch-page .cms-news-card:hover h3,
.branch-page .event-card:hover h3,
.branch-page .video-card:hover .video-title {
  color: var(--theme);
}

/* Date / type pills in the theme colours */
.branch-page .cms-news-type,
.branch-page .cms-news-date,
.branch-page .achievement-date {
  border-radius: 50px 50px 50px 0;
}

.branch-page .cms-news-type {
  background: var(--accent);
  color: #fff;
}

/* Icons: teal circles with an offset light shadow that spin on hover */
.branch-page .achievement-icon {
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  box-shadow: -6px 6px 0 var(--brand-cream-dark);
  transition: transform .6s var(--ease), background-color .3s var(--ease);
}

.branch-page .achievement-card:hover .achievement-icon {
  transform: rotateY(360deg);
  background: var(--accent);
}

.branch-page .video-play-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(253, 163, 27, .25);
  transition: transform .3s var(--ease);
}

.branch-page .video-card:hover .video-play-button {
  transform: scale(1.1);
}

/* Message board tabs as pills */
.branch-page .message-board-tab {
  border-radius: 50px 50px 50px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* Gallery: rounded photos that zoom with a teal tint on hover */
.branch-page .gallery-item {
  border-radius: var(--shape-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.branch-page .gallery-item img {
  transition: transform .6s var(--ease);
}

.branch-page .gallery-item:hover img {
  transform: scale(1.1);
}

.branch-page .gallery-nav {
  background: var(--accent);
  color: #fff;
}

/* ── Reviews: navy section, white cards with an orange bottom edge and quote tab ── */
.branch-page .cms-reviews {
  position: relative;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(17, 110, 99, .45), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, #02306b 100%);
}

.branch-page .cms-reviews .section-heading h2 {
  color: #fff;
}

.branch-page .cms-reviews .section-subtitle {
  color: rgba(255, 255, 255, .75);
}

.branch-page .cms-review {
  position: relative;
  border: 0;
  border-bottom: 5px solid var(--accent);
  border-radius: var(--shape);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
  transition: transform .4s var(--ease);
}

.branch-page .cms-review::after {
  content: "\201D";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  border-radius: 0 30px 0 30px;
  background: var(--accent);
  color: #fff;
  font: 800 2.6rem/68px Georgia, serif;
  text-align: center;
}

.branch-page .cms-review:hover {
  transform: translateY(-6px);
}

.branch-page .cms-review-avatar {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

.branch-page .cms-review-stars {
  color: var(--accent);
}

/* ── Contact form fields ───────────────────────────────────────────────────── */
.branch-page .cf-field input,
.branch-page .cf-field select,
.branch-page .cf-field textarea {
  border: 1px solid var(--brand-border);
  border-radius: 14px 14px 14px 0;
  background: var(--brand-cream);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.branch-page .cf-field input:focus,
.branch-page .cf-field select:focus,
.branch-page .cf-field textarea:focus {
  outline: none;
  border-color: var(--theme);
  background: #fff;
  box-shadow: 0 0 0 4px var(--theme-light);
}

/* ── Footer: navy with a teal bottom bar ───────────────────────────────────── */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(17, 110, 99, .35), transparent 65%),
    var(--navy);
  color: #f5faff;
}

.site-footer h4 {
  position: relative;
  padding-bottom: 12px;
  color: #fff;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.site-footer a {
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}

.site-footer .footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-social a {
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  background: var(--theme);
}

/* Floating buttons and back-to-top */
.branch-page .floating-registration-btn {
  background: var(--accent);
  border-radius: var(--btn-shape);
  box-shadow: 0 12px 28px rgba(253, 163, 27, .4);
}

.back-to-top {
  background: var(--accent);
  border-radius: 50px 50px 50px 0;
  box-shadow: 0 10px 24px rgba(253, 163, 27, .35);
}

.branch-page .floating-registration-btn,
.branch-page .floating-whatsapp-btn,
.back-to-top {
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.back-to-top:hover {
  background: var(--theme);
  transform: translateY(-3px);
}

/* The registration tab is centred on the right edge with translateY(-50%): hover keeps that and only
   nudges it left (replacing the transform made it jump away from the cursor and shake). */
.branch-page .floating-registration-btn:hover {
  background: var(--theme);
  transform: translateY(-50%) translateX(-6px);
}

@media (max-width: 640px) {
  .branch-page .floating-registration-btn:hover {
    transform: none;
  }
}

/* ── Scroll reveal (modern.js adds .reveal / .is-visible; nothing hides without JS) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes theme-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes theme-divider {
  from {
    left: 0;
  }

  to {
    left: calc(100% - 36px);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .branch-page .banner-nav {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  :root,
  .branch-page {
    --shape: 22px 22px 22px 0;
    --shape-sm: 14px 14px 14px 0;
  }

  .branch-page .site-container {
    padding: 0 16px;
  }

  .branch-page .eyebrow,
  .branch-page .section-heading .eyebrow {
    font-size: .82rem;
    letter-spacing: .12em;
  }

  .branch-page .banner-copy .eyebrow {
    font-size: .72rem;
  }

  .branch-page .banner-actions {
    gap: 8px;
  }

  .branch-page .banner-actions .btn {
    padding: 10px 16px;
    font-size: .78rem;
  }

  .branch-page .cms-news-card:hover,
  .branch-page .event-card:hover,
  .branch-page .achievement-card:hover,
  .branch-page .video-card:hover,
  .branch-page .cms-review:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .branch-page .banner-copy:not([hidden]) > *,
  .branch-page .heading-underline::before {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ── About section: photo collage + content (Eduka-style layout, all CMS / branch data) ── */
.branch-page .about-modern {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  background: #fff;
  overflow: hidden;
}

.branch-page .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.branch-page .about-grid.no-images {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

/* Collage: a tall main photo, a smaller one overlapping its corner, a phone badge and a soft shape */
.branch-page .about-media {
  position: relative;
  padding: 0 0 70px 0;
}

.branch-page .about-photo {
  overflow: hidden;
  border-radius: var(--shape);
  box-shadow: var(--shadow-hover);
}

.branch-page .about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.branch-page .about-photo:hover img {
  transform: scale(1.06);
}

.branch-page .about-photo-main {
  width: 82%;
  aspect-ratio: 4 / 4.6;
}

.branch-page .about-photo-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 8px solid #fff;
}

/* A single photo is shown whole, at its own shape (not cropped to a fixed box) */
.branch-page .about-media:not(:has(.about-photo-small)) .about-photo-main {
  width: 100%;
  aspect-ratio: auto;
}

.branch-page .about-media:not(:has(.about-photo-small)) .about-photo-main img {
  height: auto;
}

/* Desktop: a wider photo column, so the whole photo shows larger (and taller) without cropping */
@media (min-width: 992px) {
  .branch-page .about-panel:not(.no-images) {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }
}

.branch-page .about-badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border-radius: 50px 50px 50px 0;
  background: var(--theme);
  color: #fff;
  box-shadow: 0 16px 34px rgba(17, 110, 99, .35);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.branch-page .about-badge:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.branch-page .about-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--theme);
  font-size: 1.4rem;
}

.branch-page .about-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.branch-page .about-badge-text small {
  font-size: .78rem;
  opacity: .85;
}

.branch-page .about-badge-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.branch-page .about-shape {
  position: absolute;
  top: -30px;
  right: 6%;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 163, 27, .35) 2px, transparent 2.5px) 0 0 / 16px 16px;
}

/* Content side */
.branch-page .about-content {
  text-align: left;
}

.branch-page .about-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-page .about-content h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.branch-page .about-content .about-lead {
  margin: 0 0 16px;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.branch-page .about-text,
.branch-page .about-text p,
.branch-page .about-content .about-cms {
  color: var(--brand-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

.branch-page .about-text p + p {
  margin-top: 12px;
}

.branch-page .about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 30px;
}

.branch-page .about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--shape-sm);
  background: var(--brand-cream);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.branch-page .about-feature:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.branch-page .about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: -5px 5px 0 var(--brand-cream-dark);
  transition: transform .6s var(--ease), background-color .3s var(--ease);
}

.branch-page .about-feature:hover .about-feature-icon {
  transform: rotateY(360deg);
  background: var(--accent);
}

.branch-page .about-feature h4 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
  color: var(--dark);
}

.branch-page .about-feature p {
  margin: 0;
  color: var(--brand-muted);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.55;
}

.branch-page .about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.branch-page .about-actions .btn {
  padding: 14px 26px;
}

.branch-page .about-contact-btn {
  border: 1.5px solid var(--theme);
}

/* Tablet: stacked, collage first */
@media (max-width: 991px) {
  .branch-page .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-page .about-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Phone */
@media (max-width: 600px) {
  .branch-page .about-media {
    padding-bottom: 50px;
  }

  .branch-page .about-photo-small {
    border-width: 5px;
  }

  .branch-page .about-badge {
    left: 0;
    bottom: 8px;
    padding: 10px 16px 10px 10px;
  }

  .branch-page .about-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .branch-page .about-badge-text strong {
    font-size: 1rem;
  }

  .branch-page .about-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-page .about-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ── Message board (About School / Our Mission / Our Aim / Our Objective tabs) + notice board ── */
.branch-page .message-board-card,
.branch-page .notice-board {
  --board-heading: var(--dark);
  --board-text: var(--brand-muted);
  border: 0;
  border-radius: var(--shape);
  box-shadow: var(--shadow-hover);
  font-family: var(--font-body);
}

/* Tab bar: light strip of pills, teal icon circles; the active tab is orange */
.branch-page .message-board-tabs {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--brand-cream);
  border-bottom: 1px solid var(--brand-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.branch-page .message-board-tabs::-webkit-scrollbar {
  display: none;
}

.branch-page .message-board-tab {
  flex: 1 0 auto;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  min-width: max-content;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 50px 50px 50px 0;
  background: #fff;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.branch-page .message-board-tab i,
.branch-page .message-board-tab:not(.active) i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 1.15rem;
  opacity: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .6s var(--ease);
}

.branch-page .message-board-tab:hover {
  background: #fff;
  color: var(--theme);
  transform: translateY(-2px);
}

.branch-page .message-board-tab:hover i {
  transform: rotateY(360deg);
}

.branch-page .message-board-tab.active {
  background: var(--accent);
  color: #fff;
  border-bottom-color: transparent;
  box-shadow: 0 10px 22px rgba(253, 163, 27, .35);
}

.branch-page .message-board-tab.active i {
  background: #fff;
  color: var(--accent);
}

/* Content panel */
.branch-page .message-board-panel {
  padding: 28px 32px;
}

.branch-page .message-board-panel h3 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 12px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.branch-page .message-board-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.branch-page .message-board-rich,
.branch-page .message-board-panel p {
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.branch-page .message-board-rich ul {
  padding-left: 0;
  list-style: none;
}

.branch-page .message-board-rich ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.branch-page .message-board-rich ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-light);
  color: var(--theme);
  font-size: .7rem;
  font-weight: 700;
}

.branch-page .message-board-panel.has-image.active {
  gap: 30px;
  padding: 26px 30px 26px 26px;
}

.branch-page .message-board-image {
  border-radius: var(--shape-sm);
  box-shadow: var(--shadow-hover);
}

.branch-page .message-board-image img {
  transition: transform .8s var(--ease);
}

.branch-page .message-board-panel:hover .message-board-image img {
  transform: scale(1.05);
}

/* Thin themed scrollbar inside long panels */
.branch-page .message-board-panel,
.branch-page .message-board-body {
  scrollbar-width: thin;
  scrollbar-color: var(--theme) transparent;
}

/* Notice board beside it: teal header with orange accents */
.branch-page .notice-board-header {
  background: var(--theme);
}

.branch-page .notice-board-header h3 i {
  color: var(--accent);
}

.branch-page .notice-board-count {
  border-radius: 50px 50px 50px 0;
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  .branch-page .message-board-tabs {
    padding: 10px;
    gap: 8px;
  }

  .branch-page .message-board-tab {
    flex: 0 0 auto;
    padding: 6px 14px 6px 6px;
    font-size: .95rem;
  }

  .branch-page .message-board-tab i,
  .branch-page .message-board-tab:not(.active) i {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .branch-page .message-board-panel,
  .branch-page .message-board-panel.has-image.active {
    padding: 20px;
  }
}

/* ── About section tabs: About Us / Our Mission / Our Aim / Our Objective ─────────────── */
.branch-page .about-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.branch-page .about-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-page .about-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.branch-page .about-head .about-lead {
  margin: 0 0 22px;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 700;
}

/* Compact tab row: all four on one line */
.branch-page .about-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px;
  border-radius: 50px 50px 50px 0;
  background: var(--brand-cream);
  box-shadow: inset 0 0 0 1px var(--brand-border);
}

.branch-page .about-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 14px 5px 5px;
  border: 0;
  border-radius: 50px 50px 50px 0;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.branch-page .about-tab i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: .95rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.branch-page .about-tab:hover {
  background: #fff;
  color: var(--theme);
}

.branch-page .about-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(253, 163, 27, .32);
}

.branch-page .about-tab.active i {
  background: #fff;
  color: var(--accent);
}

/* Panels: only the active tab's panel shows */
.branch-page .about-panel {
  display: none;
}

.branch-page .about-panel.active {
  display: grid;
  animation: theme-rise .5s var(--ease) both;
}

.branch-page .about-panel.no-images {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.branch-page .about-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.branch-page .about-panel-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: -5px 5px 0 var(--brand-cream-dark);
}

.branch-page .about-cms ul {
  padding-left: 0;
  list-style: none;
}

.branch-page .about-cms ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.branch-page .about-cms ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-light);
  color: var(--theme);
  font-size: .7rem;
  font-weight: 700;
}

/* A single CMS photo (Mission / Aim / Objective) fills the media column on its own */
.branch-page .about-media:not(:has(.about-photo-small)) {
  padding-bottom: 0;
}

/* Tablet: tabs stay on one row, a little tighter */
@media (max-width: 991px) {
  .branch-page .about-tab {
    padding: 5px 12px 5px 5px;
    font-size: .92rem;
  }
}

/* Phone: the four tabs sit in a neat 2 × 2 grid */
@media (max-width: 600px) {
  .branch-page .about-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 18px 18px 18px 0;
  }

  .branch-page .about-tab {
    justify-content: flex-start;
    padding: 5px 10px 5px 5px;
    font-size: .88rem;
  }

  .branch-page .about-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .branch-page .about-tab i {
    width: 26px;
    height: 26px;
    font-size: .85rem;
  }

  .branch-page .about-panel-title i {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* ── Leadership: Director + Principal as two animated cards ─────────────────────────── */
.branch-page .leadership-modern {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(17, 110, 99, .07), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(253, 163, 27, .08), transparent 70%),
    #fff;
  overflow: hidden;
}

.branch-page .leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}

.branch-page .leader-grid.single {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.branch-page .leader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 30px 30px;
  border-radius: var(--shape);
  background: #fff;
  box-shadow: var(--shadow-hover);
  text-align: center;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

/* Orange line that grows along the bottom on hover */
.branch-page .leader-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--theme));
  transition: width .5s var(--ease);
}

.branch-page .leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
}

.branch-page .leader-card:hover::after {
  width: 100%;
}

/* Round photo with a slowly turning dashed ring and the role badge */
.branch-page .leader-photo {
  position: relative;
  width: 168px;
  height: 168px;
  margin-bottom: 26px;
  flex-shrink: 0;
}

.branch-page .leader-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #fff;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  transition: transform .6s var(--ease);
}

.branch-page .leader-card:hover .leader-photo img {
  transform: scale(1.06);
}

.branch-page .leader-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  animation: leader-spin 18s linear infinite;
}

.branch-page .leader-card:hover .leader-photo-ring {
  animation-duration: 6s;
}

.branch-page .leader-photo-fallback {
  display: none;
}

.branch-page .leader-photo.no-photo .leader-photo-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 4rem;
}

.branch-page .leader-role-badge {
  position: absolute;
  left: 50%;
  bottom: -14px;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 50px 50px 50px 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(253, 163, 27, .35);
}

/* Text */
.branch-page .leader-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.branch-page .leader-quote {
  margin-bottom: 6px;
  color: var(--theme);
  font-size: 2.4rem;
  opacity: .9;
  animation: leader-float 4s ease-in-out infinite;
}

.branch-page .leader-name {
  margin: 0 0 4px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.branch-page .leader-title {
  margin: 0 0 16px;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
}

/* Message: shortened to ~8 lines with a soft fade; Read More shows it all */
.branch-page .leader-message {
  position: relative;
  width: 100%;
  max-height: 14.4em;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
  transition: max-height .6s var(--ease);
}

.branch-page .leader-message::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.6em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.branch-page .leader-card.is-expanded .leader-message {
  max-height: 200em;
}

.branch-page .leader-card.is-expanded .leader-message::after,
.branch-page .leader-card:has(.leader-more[hidden]) .leader-message::after {
  opacity: 0;
}

.branch-page .leader-message p {
  margin: 0 0 10px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.branch-page .leader-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 20px;
  border: 1.5px solid var(--theme);
  border-radius: 50px 50px 50px 0;
  background: transparent;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.branch-page .leader-more[hidden] {
  display: none;
}

.branch-page .leader-more:hover {
  background: var(--theme);
  color: #fff;
}

.branch-page .leader-more i {
  transition: transform .3s var(--ease);
}

.branch-page .leader-card.is-expanded .leader-more i {
  transform: rotate(180deg);
}

/* Entrance: Director slides in from the left, Principal from the right (with the section's scroll reveal) */
.branch-page .leader-grid.reveal .leader-card {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .45s var(--ease);
}

.branch-page .leader-grid.reveal .leader-card.from-left {
  transform: translateX(-60px);
}

.branch-page .leader-grid.reveal .leader-card.from-right {
  transform: translateX(60px);
  transition-delay: .15s;
}

.branch-page .leader-grid.reveal.is-visible .leader-card {
  opacity: 1;
  transform: none;
}

@keyframes leader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes leader-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Tablet & phone: one card per row */
@media (max-width: 900px) {
  .branch-page .leader-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .branch-page .leader-card {
    padding: 28px 18px 24px;
  }

  .branch-page .leader-photo {
    width: 132px;
    height: 132px;
  }

  .branch-page .leader-card:hover {
    transform: none;
  }

  .branch-page .leader-grid.reveal .leader-card.from-left,
  .branch-page .leader-grid.reveal .leader-card.from-right {
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .leader-photo-ring,
  .branch-page .leader-quote {
    animation: none;
  }

  .branch-page .leader-grid.reveal .leader-card {
    opacity: 1;
    transform: none;
  }
}

/* ── Leadership cards, styled: teal header band, medium portrait photo with an offset dashed
      frame and dot pattern (overrides the round-photo look above) ─────────────────────── */
.branch-page .leader-card {
  padding: 0 30px 30px;
}

/* Teal band across the top of the card, the photo overlaps it */
.branch-page .leader-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .14) 0 40px, transparent 41px),
    radial-gradient(circle at 92% 0%, rgba(253, 163, 27, .45) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--theme) 0%, #0b4c44 100%);
  transition: height .5s var(--ease);
}

.branch-page .leader-card:hover::before {
  height: 162px;
}

/* Medium portrait photo */
.branch-page .leader-photo {
  width: 210px;
  height: 240px;
  margin: 36px 0 30px;
}

.branch-page .leader-photo img {
  border-radius: var(--shape);
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  transition: transform .6s var(--ease);
}

.branch-page .leader-card:hover .leader-photo img {
  transform: rotate(-2deg) scale(1.03);
}

/* Offset dashed frame behind the photo (was the turning ring) */
.branch-page .leader-photo-ring {
  inset: 16px -16px -16px 16px;
  z-index: 0;
  border-radius: var(--shape);
  border: 2px dashed var(--accent);
  animation: none;
  transition: transform .5s var(--ease);
}

.branch-page .leader-card:hover .leader-photo-ring {
  transform: translate(6px, 6px);
}

/* Orange dot pattern at the photo's top-left corner */
.branch-page .leader-photo::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -26px;
  z-index: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 2px, transparent 2.5px) 0 0 / 14px 14px;
}

.branch-page .leader-photo.no-photo .leader-photo-fallback {
  border-radius: var(--shape);
  border: 6px solid #fff;
}

.branch-page .leader-role-badge {
  bottom: -16px;
  padding: 7px 18px;
  font-size: .84rem;
}

.branch-page .leader-quote {
  margin-top: 4px;
}

/* Tablet */
@media (max-width: 900px) {
  .branch-page .leader-photo {
    width: 200px;
    height: 228px;
  }
}

/* Phone */
@media (max-width: 600px) {
  .branch-page .leader-card {
    padding: 0 18px 24px;
  }

  .branch-page .leader-card::before {
    height: 120px;
  }

  .branch-page .leader-photo {
    width: 170px;
    height: 195px;
    margin: 28px 0 28px;
  }

  .branch-page .leader-photo-ring {
    inset: 12px -12px -12px 12px;
  }

  .branch-page .leader-card:hover .leader-photo img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .leader-card:hover .leader-photo img,
  .branch-page .leader-card:hover .leader-photo-ring {
    transform: none;
  }
}

/* ══ Flat layout: no card boxes unless they're needed ════════════════════════════════════
   Content sits straight on the section background — no white box, shadow, border or lift.
   Images keep their rounded corners and hover zoom. Kept as cards: the small topper / birthday
   person tiles (they group a photo with a name), the tab bar, buttons and photos. */
.branch-page .message-board-card,
.branch-page .notice-board,
.branch-page .leader-card,
.branch-page .tb-card,
.branch-page .cms-news-card,
.branch-page .event-card,
.branch-page .achievement-card,
.branch-page .video-card,
.branch-page .cms-contact-form,
.branch-page .about-feature,
.branch-page .cms-review {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.branch-page .message-board-card:hover,
.branch-page .notice-board:hover,
.branch-page .leader-card:hover,
.branch-page .tb-card:hover,
.branch-page .cms-news-card:hover,
.branch-page .event-card:hover,
.branch-page .achievement-card:hover,
.branch-page .video-card:hover,
.branch-page .about-feature:hover,
.branch-page .cms-review:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* Message board: tab bar stays, the panel text sits on the section background */
.branch-page .message-board-card {
  overflow: visible;
}

.branch-page .message-board-tabs {
  border-radius: 50px 50px 50px 0;
  border-bottom: 0;
}

.branch-page .message-board-panel,
.branch-page .message-board-panel.has-image.active {
  padding-left: 0;
  padding-right: 0;
}

/* Notice board: plain heading with a line under it instead of a coloured header bar */
.branch-page .notice-board-header {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-bottom: 2px solid var(--brand-border);
}

.branch-page .notice-board-header h3,
.branch-page .notice-board-subtitle {
  color: var(--dark);
}

.branch-page .notice-board-subtitle {
  color: var(--brand-muted);
}

.branch-page .notice-board-header h3 i {
  color: var(--accent);
}

/* Leadership: no band, no box — photo, name and message on the section background */
.branch-page .leader-card {
  padding: 0 10px;
  overflow: visible;
}

.branch-page .leader-card::before,
.branch-page .leader-card::after {
  display: none;
}

.branch-page .leader-photo::before {
  background: radial-gradient(circle, rgba(253, 163, 27, .55) 2px, transparent 2.5px) 0 0 / 14px 14px;
}

.branch-page .leader-photo {
  margin-top: 10px;
}

.branch-page .leadership-modern {
  background: var(--brand-cream);
}

.branch-page .leader-message::after {
  background: linear-gradient(180deg, rgba(242, 243, 245, 0), var(--brand-cream));
}

/* Leadership: a thin divider between Director and Principal on wide screens */
@media (min-width: 901px) {
  .branch-page .leader-grid:not(.single) {
    gap: 0;
  }

  .branch-page .leader-grid:not(.single) .leader-card {
    padding: 0 clamp(20px, 3vw, 44px);
  }

  .branch-page .leader-grid:not(.single) .leader-card + .leader-card {
    border-left: 1px dashed var(--brand-border);
  }
}

/* About section feature items: icon + text, no box */
.branch-page .about-feature {
  padding: 0;
}

/* Toppers / birthdays: no outer panel */
.branch-page .tb-card {
  padding-left: 0;
  padding-right: 0;
}

/* News, events, videos: rounded image with the text under it, no box */
.branch-page .cms-news-card,
.branch-page .event-card,
.branch-page .video-card {
  overflow: visible;
  border-bottom: 0;
}

.branch-page .cms-news-image,
.branch-page .event-card-image,
.branch-page .video-thumb {
  border-radius: var(--shape-sm);
  overflow: hidden;
}

.branch-page .cms-news-body,
.branch-page .event-card-body {
  padding-left: 0;
  padding-right: 0;
}

.branch-page .video-title {
  padding-left: 0;
  padding-right: 0;
}

/* Achievements: icon + text centred, no box */
.branch-page .achievement-card {
  padding-left: 0;
  padding-right: 0;
}

/* Contact form: fields straight on the section */
.branch-page .cms-contact-form {
  padding: 0;
}

/* Testimonials on navy: white text with an orange line on the left instead of white cards */
.branch-page .cms-review {
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: rgba(255, 255, 255, .85);
}

.branch-page .cms-review::after {
  display: none;
}

.branch-page .cms-review h3,
.branch-page .cms-review h4,
.branch-page .cms-review strong,
.branch-page .cms-review p {
  color: rgba(255, 255, 255, .9);
}

.branch-page .cms-review blockquote,
.branch-page .cms-review figcaption strong {
  color: #fff;
}

.branch-page .cms-review figcaption small {
  color: rgba(255, 255, 255, .7);
}

/* ══ Leadership: alternating feature rows on a deep teal section ═══════════════════════════ */
.branch-page .lead-section {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, #0b4c44 0%, #0a3a3c 45%, var(--navy) 100%);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}

.branch-page .lead-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.branch-page .lead-glow-1 {
  top: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: rgba(253, 163, 27, .22);
}

.branch-page .lead-glow-2 {
  right: -140px;
  bottom: -140px;
  width: 440px;
  height: 440px;
  background: rgba(17, 110, 99, .55);
}

.branch-page .lead-section .site-container {
  position: relative;
  z-index: 1;
}

.branch-page .lead-section .section-heading h2 {
  color: #fff;
}

.branch-page .lead-section .heading-underline {
  background: rgba(255, 255, 255, .18);
}

.branch-page .lead-list {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 110px);
}

/* One leader: photo | message (reversed for the next one) */
.branch-page .lead-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}

.branch-page .lead-row.is-reversed {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.branch-page .lead-row.is-reversed .lead-media {
  order: 2;
}

/* Photo with an offset orange frame, dot pattern, role tag and quote badge */
.branch-page .lead-media {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 5 / 6;
}

.branch-page .lead-frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--accent);
  border-radius: var(--shape);
  transition: transform .6s var(--ease);
}

.branch-page .lead-row.is-reversed .lead-frame {
  inset: 22px 22px -22px -22px;
}

.branch-page .lead-dots {
  position: absolute;
  top: -26px;
  left: -30px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(253, 163, 27, .75) 2px, transparent 2.6px) 0 0 / 15px 15px;
}

.branch-page .lead-row.is-reversed .lead-dots {
  left: auto;
  right: -30px;
}

.branch-page .lead-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--shape);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.branch-page .lead-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s var(--ease);
}

.branch-page .lead-photo-fallback {
  display: none;
}

.branch-page .lead-photo.no-photo .lead-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .5);
  font-size: 6rem;
}

.branch-page .lead-row:hover .lead-photo img {
  transform: scale(1.05);
}

.branch-page .lead-row:hover .lead-frame {
  transform: translate(8px, 8px);
}

.branch-page .lead-row.is-reversed:hover .lead-frame {
  transform: translate(-8px, 8px);
}

.branch-page .lead-role-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 50px 50px 50px 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.branch-page .lead-quote-badge {
  position: absolute;
  top: 18px;
  right: -22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--theme);
  font-size: 1.6rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
  animation: lead-bob 4s ease-in-out infinite;
}

.branch-page .lead-row.is-reversed .lead-quote-badge {
  right: auto;
  left: -22px;
}

/* Message side */
.branch-page .lead-content {
  position: relative;
}

.branch-page .lead-bigquote {
  position: absolute;
  top: -70px;
  left: -10px;
  color: rgba(255, 255, 255, .07);
  font: 700 13rem/1 Georgia, serif;
  pointer-events: none;
}

.branch-page .lead-kicker {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.branch-page .lead-name {
  margin: 14px 0 18px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.branch-page .lead-message {
  position: relative;
  max-height: 13.5em;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  font-size: 1.04rem;
  line-height: 1.85;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  transition: max-height .7s var(--ease);
}

.branch-page .lead-message p,
.branch-page .lead-message li {
  margin: 0 0 10px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.branch-page .lead-message h2,
.branch-page .lead-message h3,
.branch-page .lead-message h4,
.branch-page .lead-message strong {
  color: #fff;
}

.branch-page .lead-row.is-expanded .lead-message {
  max-height: 300em;
  -webkit-mask-image: none;
  mask-image: none;
}

.branch-page .lead-row:has(.lead-more[hidden]) .lead-message {
  -webkit-mask-image: none;
  mask-image: none;
}

.branch-page .lead-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.branch-page .lead-more[hidden] {
  display: none;
}

.branch-page .lead-more:hover {
  color: #fff;
}

.branch-page .lead-more i {
  transition: transform .3s var(--ease);
}

.branch-page .lead-row.is-expanded .lead-more i {
  transform: rotate(180deg);
}

/* Signature */
.branch-page .lead-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 26px;
}

.branch-page .lead-sign-line {
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.branch-page .lead-signature {
  color: #fff;
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.branch-page .lead-sign-role {
  color: rgba(255, 255, 255, .6);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Entrance: photo slides in from its side, the message from the other */
.branch-page .lead-list.reveal .lead-media,
.branch-page .lead-list.reveal .lead-content {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.branch-page .lead-list.reveal .lead-row .lead-media {
  transform: translateX(-70px);
}

.branch-page .lead-list.reveal .lead-row .lead-content {
  transform: translateX(70px);
  transition-delay: .15s;
}

.branch-page .lead-list.reveal .lead-row.is-reversed .lead-media {
  transform: translateX(70px);
}

.branch-page .lead-list.reveal .lead-row.is-reversed .lead-content {
  transform: translateX(-70px);
}

.branch-page .lead-list.reveal.is-visible .lead-media,
.branch-page .lead-list.reveal.is-visible .lead-content {
  opacity: 1;
  transform: none;
}

@keyframes lead-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Tablet & phone: photo above the message */
@media (max-width: 900px) {
  .branch-page .lead-row,
  .branch-page .lead-row.is-reversed {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .branch-page .lead-row.is-reversed .lead-media {
    order: 0;
  }

  .branch-page .lead-media {
    width: min(78%, 300px);
  }

  .branch-page .lead-content {
    text-align: center;
  }

  .branch-page .lead-message {
    text-align: left;
  }

  .branch-page .lead-sign {
    justify-content: center;
  }

  .branch-page .lead-bigquote {
    left: 50%;
    transform: translateX(-50%);
  }

  .branch-page .lead-list.reveal .lead-row .lead-media,
  .branch-page .lead-list.reveal .lead-row .lead-content,
  .branch-page .lead-list.reveal .lead-row.is-reversed .lead-media,
  .branch-page .lead-list.reveal .lead-row.is-reversed .lead-content {
    transform: translateY(40px);
  }
}

@media (max-width: 600px) {
  .branch-page .lead-media {
    width: min(76%, 250px);
  }

  .branch-page .lead-frame,
  .branch-page .lead-row.is-reversed .lead-frame {
    inset: 14px -14px -14px 14px;
  }

  .branch-page .lead-quote-badge,
  .branch-page .lead-row.is-reversed .lead-quote-badge {
    right: -14px;
    left: auto;
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .branch-page .lead-message {
    font-size: .98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .lead-quote-badge {
    animation: none;
  }

  .branch-page .lead-list.reveal .lead-media,
  .branch-page .lead-list.reveal .lead-content {
    opacity: 1;
    transform: none;
  }
}

/* ── Leadership, school look: light warm background, dark readable text (overrides the dark version) ── */
.branch-page .lead-section {
  background:
    radial-gradient(rgba(17, 110, 99, .08) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, #fffaf0 0%, #fff6e5 55%, #fdf3e1 100%);
  color: #3a4550;
}

/* Soft pastel shapes instead of dark glows */
.branch-page .lead-glow {
  filter: blur(70px);
}

.branch-page .lead-glow-1 {
  background: rgba(255, 210, 120, .45);
}

.branch-page .lead-glow-2 {
  background: rgba(150, 220, 200, .45);
}

.branch-page .lead-section .section-heading h2 {
  color: var(--dark);
}

.branch-page .lead-section .heading-underline {
  background: rgba(17, 110, 99, .15);
}

.branch-page .lead-photo {
  background: #fff;
  box-shadow: 0 22px 46px rgba(60, 45, 20, .16);
}

.branch-page .lead-photo.no-photo .lead-photo-fallback {
  background: var(--theme-light);
  color: var(--theme);
}

.branch-page .lead-quote-badge {
  background: var(--theme);
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 110, 99, .3);
}

.branch-page .lead-bigquote {
  color: rgba(17, 110, 99, .08);
}

.branch-page .lead-kicker {
  color: #d9820a;
  border-bottom-color: var(--accent);
}

.branch-page .lead-name {
  color: var(--dark);
}

.branch-page .lead-message {
  color: #3d4852;
  font-size: 1.08rem;
  line-height: 1.85;
}

.branch-page .lead-message h2,
.branch-page .lead-message h3,
.branch-page .lead-message h4,
.branch-page .lead-message strong {
  color: var(--dark);
}

.branch-page .lead-more {
  color: var(--theme);
}

.branch-page .lead-more:hover {
  color: #d9820a;
}

.branch-page .lead-signature {
  color: var(--theme);
}

.branch-page .lead-sign-role {
  color: #6b7480;
}

@media (max-width: 600px) {
  .branch-page .lead-message {
    font-size: 1rem;
  }
}

/* ══ Toppers & Birthdays: festive, school-friendly look ═══════════════════════════════════ */
.branch-page .toppers-birthdays {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(253, 163, 27, .35) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 82%, rgba(17, 110, 99, .3) 0 4px, transparent 5px),
    radial-gradient(circle at 48% 10%, rgba(236, 72, 153, .25) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 88%, rgba(253, 163, 27, .3) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 22%, rgba(59, 130, 246, .25) 0 3px, transparent 4px),
    linear-gradient(160deg, #eefaf6 0%, #fffaf0 55%, #fff4ec 100%);
}

.branch-page .tb-row {
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}

/* Each column on its own soft tinted panel (gold for toppers, peach for birthdays) */
.branch-page .tb-card,
.branch-page .tb-card:hover {
  height: 100%;
  padding: clamp(26px, 3vw, 38px) clamp(18px, 2.5vw, 30px);
  border-radius: var(--shape);
}

.branch-page .tb-card-toppers,
.branch-page .tb-card-toppers:hover {
  background: linear-gradient(160deg, rgba(255, 236, 190, .65) 0%, rgba(255, 255, 255, .7) 100%);
  box-shadow: inset 0 0 0 1px rgba(253, 163, 27, .25);
}

.branch-page .tb-card-birthdays,
.branch-page .tb-card-birthdays:hover {
  background: linear-gradient(160deg, rgba(255, 220, 228, .65) 0%, rgba(255, 255, 255, .7) 100%);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, .2);
}

.branch-page .tb-card .section-heading {
  margin-bottom: 22px;
}

.branch-page .tb-card .section-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.branch-page .tb-card-birthdays .eyebrow {
  color: #db2777;
  border-bottom-color: #f472b6;
}

/* Class / date pill */
.branch-page .topper-group-title {
  display: table;
  margin: 0 auto 14px;
  padding: 7px 16px;
  border-radius: 50px 50px 50px 0;
  background: #fff;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.branch-page .topper-group-title i {
  color: var(--accent);
}

.branch-page .tb-card-birthdays .topper-group-title i {
  color: #db2777;
}

/* Paging: progress bar + dots as pills */
.branch-page .tb-progress {
  width: 140px;
  height: 5px;
  margin: 0 auto 20px;
  background: rgba(0, 0, 0, .07);
}

.branch-page .tb-progress::after {
  background: linear-gradient(90deg, var(--accent), var(--theme));
}

.branch-page .tb-card-birthdays .tb-progress::after {
  background: linear-gradient(90deg, #f472b6, var(--accent));
}

.branch-page .tb-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .15);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}

.branch-page .tb-dots span.active {
  width: 26px;
  background: var(--accent);
}

/* Topper tiles */
.branch-page .topper-group-grid {
  gap: clamp(10px, 1.6vw, 18px);
}

.branch-page .topper-profile {
  position: relative;
  max-width: none;
  padding: 22px 12px 18px;
  border-radius: 24px 24px 24px 0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 80, 0, .1);
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.branch-page .topper-profile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(120, 80, 0, .16);
}

.branch-page .topper-photo-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--accent), #ffd36e, var(--accent), #ff8a3d, var(--accent));
  box-shadow: 0 8px 20px rgba(253, 163, 27, .35);
  transition: box-shadow .4s var(--ease);
}

.branch-page .topper-photo-ring img,
.branch-page .topper-photo-fallback {
  border: 3px solid #fff;
}

.branch-page .topper-profile:hover .topper-photo-ring {
  box-shadow: 0 10px 28px rgba(253, 163, 27, .55);
}

.branch-page .topper-rank {
  background: var(--theme);
  border: 2px solid #fff;
  font-family: var(--font-heading);
  font-weight: 800;
}

.branch-page .topper-profile.is-first .topper-rank {
  background: linear-gradient(135deg, #ffd36e, #f59e0b);
  color: #5a3a00;
}

.branch-page .topper-profile.is-first {
  box-shadow: 0 12px 32px rgba(245, 158, 11, .25), inset 0 0 0 2px rgba(245, 158, 11, .35);
}

.branch-page .topper-crown {
  background: linear-gradient(135deg, #ffd36e, #f59e0b);
  color: #5a3a00;
  box-shadow: 0 6px 14px rgba(245, 158, 11, .4);
  animation: tb-crown 2.4s ease-in-out infinite;
}

.branch-page .topper-profile-name {
  margin: 12px 0 2px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.branch-page .topper-profile-class,
.branch-page .topper-profile-session {
  color: var(--brand-muted);
  font-size: .85rem;
}

.branch-page .topper-profile-score {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 50px 50px 50px 0;
  background: linear-gradient(135deg, var(--theme), #17907f);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 800;
}

.branch-page .topper-profile-score::before {
  content: "\2605  ";
  color: #ffd36e;
}

/* Birthday tiles */
.branch-page .birthday-grid {
  gap: clamp(10px, 1.6vw, 18px);
}

.branch-page .birthday-card,
.branch-page .birthday-card:hover {
  position: relative;
  padding: 22px 12px 18px;
  border: 0;
  border-radius: 24px 24px 24px 0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(160, 40, 90, .1);
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.branch-page .birthday-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(160, 40, 90, .16);
}

/* Small balloon in the corner */
.branch-page .birthday-card::before {
  content: "\1F388";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.1rem;
  animation: tb-bounce 3s ease-in-out infinite;
}

.branch-page .birthday-photo-ring {
  padding: 4px;
  background: conic-gradient(from 0deg, #f472b6, #fb923c, #facc15, #f472b6);
  box-shadow: 0 8px 20px rgba(244, 114, 182, .35);
}

.branch-page .birthday-photo-ring img,
.branch-page .birthday-photo-fallback {
  border: 3px solid #fff;
}

.branch-page .birthday-name {
  margin-top: 12px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.branch-page .birthday-class {
  color: var(--brand-muted);
  font-size: .85rem;
}

.branch-page .birthday-tag {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 50px 50px 50px 0;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

@keyframes tb-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  .branch-page .topper-photo-ring {
    width: 78px;
    height: 78px;
  }

  .branch-page .topper-profile,
  .branch-page .birthday-card,
  .branch-page .birthday-card:hover {
    padding: 16px 8px 14px;
  }

  .branch-page .topper-profile-name,
  .branch-page .birthday-name {
    font-size: .95rem;
  }

  .branch-page .topper-profile:hover,
  .branch-page .birthday-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .topper-crown,
  .branch-page .birthday-card::before {
    animation: none;
  }
}

@keyframes tb-crown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ══ Toppers ↔ Birthdays flip card + Notice Board beside it ════════════════════════════════ */
.branch-page .tb-row.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.branch-page .tb-flip {
  height: 100%;
  perspective: 1600px;
}

/* Both faces share one grid cell, so the card is as tall as its taller side */
.branch-page .tb-flip-inner {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.4, .2, .2, 1);
}

.branch-page .tb-face {
  position: relative;
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.branch-page .tb-face-back {
  transform: rotateY(180deg);
}

.branch-page .tb-flip.can-flip.is-flipped .tb-flip-inner {
  transform: rotateY(180deg);
}

/* Mouse: hovering the card flips it; the button on each side flips it too (and on touch screens) */
@media (hover: hover) and (pointer: fine) {
  .branch-page .tb-flip.can-flip:hover .tb-flip-inner {
    transform: rotateY(180deg);
  }
}

/* Touch screens: a button on each side flips the card */
.branch-page .tb-flip-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 50px 50px 50px 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(253, 163, 27, .35);
  cursor: pointer;
}

.branch-page .tb-face-back .tb-flip-btn {
  background: var(--theme);
  box-shadow: 0 8px 18px rgba(17, 110, 99, .3);
}

/* Room at the bottom of each face for the hint / button */
.branch-page .tb-flip.can-flip .tb-card {
  padding-bottom: 64px;
}

/* Notice board in the right column: a soft teal panel matching the flip card */
.branch-page .tb-col-notices {
  display: flex;
}

.branch-page .tb-col-notices .notice-board {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: 720px;
  padding: clamp(22px, 2.5vw, 32px) clamp(18px, 2.2vw, 28px);
  border-radius: var(--shape);
  background: linear-gradient(160deg, rgba(200, 240, 230, .7) 0%, rgba(255, 255, 255, .75) 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 110, 99, .18);
}

.branch-page .tb-col-notices .notice-board-header {
  flex-shrink: 0;
  padding: 0 0 14px;
}

.branch-page .tb-col-notices .notice-board-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.branch-page .tb-col-notices .notice-board-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme) transparent;
}

.branch-page .tb-col-notices .notice-item {
  border-radius: 18px 18px 18px 0;
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.branch-page .tb-col-notices .notice-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(17, 110, 99, .12);
}

.branch-page .tb-col-notices .notice-date {
  border-radius: 14px 14px 14px 0;
  background: var(--theme);
  color: #fff;
}

@media (max-width: 900px) {
  .branch-page .tb-row:not(.single) {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-page .tb-col-notices .notice-board {
    max-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .tb-flip-inner {
    transition: none;
  }
}

/* ══ Photo gallery: bento grid per page, hover overlay, full-screen lightbox (modern.js) ══════ */
.branch-page .gallery {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #fff;
}

.branch-page .gallery-grid.active {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: clamp(170px, 17vw, 240px);
  gap: clamp(10px, 1.4vw, 18px);
}

/* 4 photos: big one left (2 rows), a wide one top-right, two small ones under it */
.branch-page .gallery-grid > .gallery-item:nth-child(1) {
  grid-row: span 2;
}

.branch-page .gallery-grid > .gallery-item:nth-child(2) {
  grid-column: span 2;
}

/* 3 photos: the third also spans the two right columns */
.branch-page .gallery-grid:has(> .gallery-item:nth-child(3):last-child) > .gallery-item:nth-child(3) {
  grid-column: span 2;
}

/* 2 photos: side by side */
.branch-page .gallery-grid.active:has(> .gallery-item:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(240px, 26vw, 380px);
}

.branch-page .gallery-grid:has(> .gallery-item:nth-child(2):last-child) > .gallery-item {
  grid-row: auto;
  grid-column: auto;
}

/* 1 photo: one wide image */
.branch-page .gallery-grid.active:has(> .gallery-item:only-child) {
  grid-template-columns: minmax(0, 900px);
  grid-auto-rows: clamp(260px, 34vw, 480px);
  justify-content: center;
}

.branch-page .gallery-grid > .gallery-item:only-child {
  grid-row: auto;
}

.branch-page .gallery-item,
.branch-page .gallery-item:hover {
  position: relative;
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 22px 22px 22px 0;
  overflow: hidden;
  background: var(--brand-cream);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: none;
  cursor: zoom-in;
}

.branch-page .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}

.branch-page .gallery-item:hover img {
  transform: scale(1.08);
}

/* Dark gradient + round "+" view icon on hover */
.branch-page .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(11, 28, 57, .75) 100%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.branch-page .gallery-item::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 300 2.2rem/1 var(--font-heading);
  box-shadow: 0 10px 24px rgba(253, 163, 27, .45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}

.branch-page .gallery-item:hover::before {
  opacity: 1;
}

.branch-page .gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.branch-page .gallery-caption {
  z-index: 2;
  left: 16px;
  bottom: 16px;
  padding: 5px 14px;
  border-radius: 50px 50px 50px 0;
  background: rgba(255, 255, 255, .92);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  transform: translateY(6px);
  transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

.branch-page .gallery-item:hover .gallery-caption {
  transform: none;
  background: var(--accent);
  color: #fff;
}

/* Arrows and dots */
.branch-page .gallery-nav {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(253, 163, 27, .4);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.branch-page .gallery-nav:hover {
  background: var(--theme);
}

.branch-page .gallery-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transition: width .35s var(--ease), background-color .35s var(--ease);
}

.branch-page .gallery-dots button.active {
  width: 28px;
  background: var(--accent);
}

/* Tablet & phone: a large photo on top, then two side by side, a fourth one full width */
@media (max-width: 768px) {
  .branch-page .gallery-grid.active,
  .branch-page .gallery-grid.active:has(> .gallery-item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(130px, 36vw, 200px);
  }

  .branch-page .gallery-grid > .gallery-item,
  .branch-page .gallery-grid:has(> .gallery-item:nth-child(3):last-child) > .gallery-item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .branch-page .gallery-grid > .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .branch-page .gallery-grid > .gallery-item:nth-child(4),
  .branch-page .gallery-grid:has(> .gallery-item:nth-child(2):last-child) > .gallery-item:nth-child(2) {
    grid-column: span 2;
  }

  .branch-page .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .branch-page .gallery-item::after {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(6, 14, 28, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox-figure img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 170px);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  object-fit: contain;
  animation: lightbox-in .35s ease;
}

.gallery-lightbox-caption {
  color: rgba(255, 255, 255, .9);
  font-family: "Yantramanav", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.gallery-lightbox-count {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
  letter-spacing: .08em;
}

.gallery-lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color .25s ease;
}

.gallery-lightbox-btn:hover {
  background: #fda31b;
}

.gallery-lightbox-close {
  top: 16px;
  right: 18px;
}

.gallery-lightbox-prev {
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .gallery-lightbox {
    padding: 60px 10px;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .gallery-lightbox-prev {
    left: calc(50% - 60px);
  }

  .gallery-lightbox-next {
    right: calc(50% - 60px);
  }
}

/* ══ Notice Board, modern widget: accent bar, pulsing megaphone, timeline of dated notices ═══ */
.branch-page .tb-col-notices .notice-board {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px) clamp(18px, 2.2vw, 28px) 18px;
  border-radius: var(--shape);
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 60, 55, .1);
  overflow: hidden;
}

/* Teal → orange accent bar on top */
.branch-page .tb-col-notices .notice-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--theme), #17907f 45%, var(--accent));
}

/* Header */
.branch-page .tb-col-notices .notice-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 0 16px;
  border-bottom: 1px dashed var(--brand-border);
}

.branch-page .tb-col-notices .notice-board-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.branch-page .tb-col-notices .notice-board-header h3 i {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc35e, var(--accent));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(253, 163, 27, .35);
}

.branch-page .tb-col-notices .notice-board-header h3 i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(253, 163, 27, .45);
  animation: notice-pulse 2.2s ease-out infinite;
}

.branch-page .tb-col-notices .notice-board-subtitle {
  display: block;
  margin: 4px 0 0 58px;
  color: var(--brand-muted);
  font-size: .88rem;
}

.branch-page .tb-col-notices .notice-board-count {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px 50px 50px 0;
  background: var(--theme-light);
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

/* List: a timeline joining the date tiles, soft fades where it scrolls */
.branch-page .tb-col-notices .notice-board-list {
  position: relative;
  margin: 0;
  padding: 10px 4px 10px 0;
  list-style: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}

.branch-page .tb-col-notices .notice-board-list li {
  position: relative;
  padding: 0;
  border: 0;
}

.branch-page .tb-col-notices .notice-board-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 62px;
  bottom: -10px;
  border-left: 2px dashed rgba(17, 110, 99, .2);
}

.branch-page .tb-col-notices .notice-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px 10px 10px;
  border: 0;
  border-radius: 18px 18px 18px 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition: background-color .3s var(--ease);
}

.branch-page .tb-col-notices div.notice-item {
  cursor: default;
}

.branch-page .tb-col-notices .notice-item:hover,
.branch-page .tb-col-notices .notice-item:focus-visible {
  background: rgba(17, 110, 99, .06);
  box-shadow: none;
  transform: none;
  outline: none;
}

/* Date tile */
.branch-page .tb-col-notices .notice-date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px 16px 16px 0;
  background: linear-gradient(160deg, var(--theme), #0b4c44);
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 110, 99, .28);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.branch-page .tb-col-notices .notice-date strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.branch-page .tb-col-notices .notice-date span {
  margin-top: 2px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .9;
}

.branch-page .tb-col-notices .notice-item:hover .notice-date {
  transform: scale(1.06);
  background: linear-gradient(160deg, #ffc35e, var(--accent));
}

/* Text */
.branch-page .tb-col-notices .notice-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.branch-page .tb-col-notices .notice-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color .3s var(--ease);
}

.branch-page .tb-col-notices .notice-item:hover .notice-title {
  color: var(--theme);
}

.branch-page .tb-col-notices .notice-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-muted);
  font-size: .76rem;
  font-weight: 600;
}

.branch-page .tb-col-notices .notice-meta i {
  color: var(--accent);
}

/* New / Pinned tags */
.branch-page .tb-col-notices .notice-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 6px;
  padding: 1px 9px 1px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.branch-page .tb-col-notices .notice-new:not(.notice-pinned)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .6);
  animation: notice-dot 1.8s ease-out infinite;
}

.branch-page .tb-col-notices .notice-pinned {
  background: rgba(253, 163, 27, .15);
  color: #b4690e;
}

/* Arrow: appears and slides in on hover */
.branch-page .tb-col-notices .notice-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-cream);
  color: var(--theme);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.branch-page .tb-col-notices .notice-item:hover .notice-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
}

@keyframes notice-pulse {
  0% {
    transform: scale(.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes notice-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .55);
  }

  100% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
  }
}

@media (max-width: 600px) {
  .branch-page .tb-col-notices .notice-board-header {
    flex-wrap: wrap;
  }

  .branch-page .tb-col-notices .notice-board-subtitle {
    margin-left: 0;
  }

  .branch-page .tb-col-notices .notice-board-header h3 i {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .branch-page .tb-col-notices .notice-date {
    width: 48px;
    height: 52px;
  }

  .branch-page .tb-col-notices .notice-board-list li:not(:last-child)::before {
    left: 34px;
    top: 56px;
  }

  .branch-page .tb-col-notices .notice-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .tb-col-notices .notice-board-header h3 i::after,
  .branch-page .tb-col-notices .notice-new:not(.notice-pinned)::before {
    animation: none;
  }
}

/* Notice board "View More" (shown when there are more than 5 notices) */
.branch-page .notice-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
  border: 1.5px dashed rgba(17, 110, 99, .35);
  border-radius: 50px 50px 50px 0;
  background: transparent;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.branch-page .notice-more small {
  font-size: .8rem;
  font-weight: 700;
  opacity: .75;
  text-transform: none;
}

.branch-page .notice-more i {
  transition: transform .3s var(--ease);
}

.branch-page .notice-more:hover {
  border-style: solid;
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
}

.branch-page .notice-more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.branch-page .notice-extra:not([hidden]) {
  animation: theme-rise .45s var(--ease) both;
}

/* Expanded: the whole list shows (no inner scrolling) */
.branch-page .tb-col-notices .notice-board.is-expanded {
  max-height: none;
}

.branch-page .tb-col-notices .notice-board.is-expanded .notice-board-list {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ══ News & Events: filter pills, featured story, photo grid, details pop-up ════════════════ */
.branch-page .news-modern {
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(180deg, #fff 0%, var(--brand-cream) 100%);
}

/* Filter pills */
.branch-page .news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -8px 0 clamp(26px, 3.5vw, 40px);
}

.branch-page .news-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1.5px solid var(--brand-border);
  border-radius: 50px 50px 50px 0;
  background: #fff;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.branch-page .news-filter span {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-muted);
  font-size: .78rem;
  text-align: center;
}

.branch-page .news-filter:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.branch-page .news-filter.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.branch-page .news-filter.active span {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Grid: the featured story is large, the rest fill in around it */
.branch-page .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 32px);
}

.branch-page .news-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.branch-page .news-item[hidden] {
  display: none;
}

.branch-page .news-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px 22px 22px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--theme-light), rgba(253, 163, 27, .12));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.branch-page .news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.branch-page .news-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  font-size: 3.4rem;
}

.branch-page .news-item:hover .news-media img,
.branch-page .news-item:focus-visible .news-media img {
  transform: scale(1.07);
}

/* Calendar date tile + type pill on the photo */
.branch-page .news-date-tile {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 58px;
  border-radius: 14px 14px 14px 0;
  background: #fff;
  color: var(--dark);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
  line-height: 1;
}

.branch-page .news-date-tile strong {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--theme);
}

.branch-page .news-date-tile span {
  margin-top: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.branch-page .news-type {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px 50px 50px 0;
  background: var(--theme);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.branch-page .news-type.is-event {
  background: var(--accent);
}

/* Text under the photo */
.branch-page .news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 4px 0;
}

.branch-page .news-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-muted);
  font-size: .86rem;
}

.branch-page .news-meta i {
  color: var(--accent);
}

.branch-page .news-body h3 {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  transition: color .3s var(--ease);
}

.branch-page .news-item:hover .news-body h3 {
  color: var(--theme);
}

.branch-page .news-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--brand-muted);
  font-size: .96rem;
  line-height: 1.7;
}

.branch-page .news-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.branch-page .news-read i {
  transition: transform .3s var(--ease);
}

.branch-page .news-item:hover .news-read i {
  transform: translateX(5px);
}

/* Featured story: two columns wide and two rows tall, text over the photo */
@media (min-width: 901px) {
  .branch-page .news-item.is-featured {
    position: relative;
    grid-column: span 2;
    grid-row: span 2;
  }

  .branch-page .news-item.is-featured .news-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 30px 30px 30px 0;
  }

  .branch-page .news-item.is-featured .news-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(8, 22, 40, .88) 100%);
  }

  .branch-page .news-item.is-featured .news-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    min-height: 420px;
    justify-content: flex-end;
    padding: 34px;
  }

  .branch-page .news-item.is-featured .news-meta,
  .branch-page .news-item.is-featured .news-body p {
    color: rgba(255, 255, 255, .82);
  }

  .branch-page .news-item.is-featured .news-body h3,
  .branch-page .news-item.is-featured:hover .news-body h3 {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  }

  .branch-page .news-item.is-featured .news-read {
    color: var(--accent);
  }

  .branch-page .news-item.is-featured .news-date-tile {
    top: 22px;
    left: 22px;
    width: 64px;
    height: 68px;
  }

  .branch-page .news-item.is-featured .news-type {
    top: 26px;
    right: 22px;
  }

  /* A single story spans the whole row */
  .branch-page .news-item.is-featured:only-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .branch-page .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-page .news-item.is-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .branch-page .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-page .news-body h3 {
    font-size: 1.15rem;
  }
}

/* ── Details pop-up ── */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 14, 28, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.news-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.news-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 28px 28px 28px 0;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
  transform: translateY(20px) scale(.98);
  transition: transform .35s ease;
}

.news-modal.is-open .news-modal-dialog {
  transform: none;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #19232b;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  cursor: pointer;
}

.news-modal-close:hover {
  background: #fda31b;
  color: #fff;
}

.news-modal-media {
  flex-shrink: 0;
  max-height: 46vh;
  overflow: hidden;
  background: #f2f3f5;
}

.news-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 46vh;
  object-fit: cover;
}

.news-modal-body {
  padding: 26px 30px 32px;
  overflow-y: auto;
}

.news-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #757f95;
  font-size: .9rem;
}

.news-modal-meta .news-type {
  position: static;
  padding: 4px 12px;
  border-radius: 50px 50px 50px 0;
  background: #116e63;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-modal-meta .news-type.is-event {
  background: #fda31b;
}

.news-modal-meta .news-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-modal-body h3 {
  margin: 0 0 12px;
  color: #19232b;
  font-family: "Yantramanav", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.news-modal-body p {
  margin: 0;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* News & Events: every item the same size (no featured story); a short last row stays centred */
.branch-page .news-grid {
  --news-gap: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--news-gap);
}

.branch-page .news-item {
  flex: 0 1 calc((100% - 2 * var(--news-gap)) / 3);
}

@media (max-width: 900px) {
  .branch-page .news-item {
    flex-basis: calc((100% - var(--news-gap)) / 2);
  }
}

@media (max-width: 600px) {
  .branch-page .news-item {
    flex-basis: 100%;
  }
}

/* ══ Section order backgrounds: alternate so neighbouring sections never blend together ═════
   Welcome · About · Toppers/Notices · News & Events · Leadership · Achievements · Gallery ·
   Videos · Testimonials · Contact */
.branch-page .cms-welcome {
  background: var(--brand-cream);
}

.branch-page .about-modern {
  background: #fff;
}

.branch-page .achievements {
  background: #fff;
}

.branch-page .gallery {
  background: var(--brand-cream);
}

.branch-page .videos {
  background: #fff;
}

.branch-page .cms-contact {
  background: var(--brand-cream);
}

.branch-page .anchor-alias {
  display: block;
  position: relative;
  top: -90px;
  height: 0;
}

/* ── Notice board: calendar-style date tiles (the day was dark-on-teal, i.e. invisible) ── */
.branch-page .tb-col-notices .notice-date {
  display: flex;
  flex-direction: column-reverse;
  width: 54px;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 14px 14px 14px 0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 60, 55, .1);
}

.branch-page .tb-col-notices .notice-date span {
  display: block;
  margin: 0;
  padding: 4px 0 3px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  opacity: 1;
  transition: background-color .3s var(--ease);
}

.branch-page .tb-col-notices .notice-date strong {
  display: block;
  padding: 6px 0 7px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.branch-page .tb-col-notices .notice-item:hover .notice-date {
  background: #fff;
  transform: translateY(-2px);
}

.branch-page .tb-col-notices .notice-item:hover .notice-date span {
  background: var(--theme);
}

/* "Latest updates from the school": a teal pill with a pulsing live dot */
.branch-page .tb-col-notices .notice-board-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 8px 0 0 58px;
  padding: 4px 12px 4px 10px;
  border-radius: 50px 50px 50px 0;
  background: var(--theme-light);
  color: var(--theme);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.branch-page .tb-col-notices .notice-board-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .55);
  animation: notice-dot 1.8s ease-out infinite;
}

@media (max-width: 600px) {
  .branch-page .tb-col-notices .notice-board-subtitle {
    margin-left: 0;
    font-size: .82rem;
  }

  .branch-page .tb-col-notices .notice-date {
    width: 48px;
  }

  .branch-page .tb-col-notices .notice-date strong {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .tb-col-notices .notice-board-subtitle::before {
    animation: none;
  }
}

/* ── Header: larger logo and comfortable space on the left and right ──────────────────── */
.site-header .site-container {
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
}

/* Logo with the school name in it (banner) and a square logo beside the name */
.brand .brand-banner {
  height: 90px;
  max-width: min(360px, 62vw);
}

.brand .brand-logo {
  height: 72px;
}

.brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

/* Small laptops: a little smaller so a long menu still fits */
@media (max-width: 1440px) and (min-width: 1200px) {
  .brand .brand-banner {
    height: 76px;
  }

  .brand .brand-logo {
    height: 64px;
  }
}

@media (max-width: 1199px) {
  .brand .brand-banner {
    height: 70px;
  }

  .brand .brand-logo {
    height: 58px;
  }
}

@media (max-width: 600px) {
  .brand .brand-banner {
    height: 56px;
  }

  .brand .brand-logo {
    height: 48px;
  }

  .brand .brand-name {
    font-size: 1.1rem;
  }
}

/* Header height to fit the larger logo with breathing room above and below */
:root {
  --header-height: 108px;
}

@media (max-width: 1440px) and (min-width: 1200px) {
  :root {
    --header-height: 98px;
  }
}

@media (max-width: 1199px) {
  :root {
    --header-height: 88px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 72px;
  }
}

/* About section tabs: longer, equal-width tabs in a wider strip */
.branch-page .about-tabs {
  display: flex;
  width: min(100%, 920px);
  gap: 8px;
  padding: 6px;
}

.branch-page .about-tab {
  flex: 1 1 0;
  justify-content: center;
  min-width: 170px;
  padding: 8px 22px 8px 8px;
  font-size: 1.05rem;
}

.branch-page .about-tab i {
  width: 34px;
  height: 34px;
  font-size: 1.08rem;
}

@media (max-width: 991px) {
  .branch-page .about-tab {
    min-width: 0;
    padding: 7px 14px 7px 7px;
    font-size: .98rem;
  }

  .branch-page .about-tab i {
    width: 30px;
    height: 30px;
    font-size: .98rem;
  }
}

@media (max-width: 600px) {
  .branch-page .about-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .branch-page .about-tab {
    justify-content: flex-start;
    padding: 6px 10px 6px 6px;
    font-size: .9rem;
  }

  .branch-page .about-tab i {
    width: 28px;
    height: 28px;
    font-size: .88rem;
  }
}

/* About section tabs: +10% */
.branch-page .about-tabs {
  width: min(100%, 1012px);
  gap: 9px;
  padding: 7px;
}

.branch-page .about-tab {
  min-width: 187px;
  padding: 9px 24px 9px 9px;
  font-size: 1.155rem;
}

.branch-page .about-tab i {
  width: 37px;
  height: 37px;
  font-size: 1.19rem;
}

@media (max-width: 991px) {
  .branch-page .about-tab {
    min-width: 0;
    padding: 8px 15px 8px 8px;
    font-size: 1.08rem;
  }

  .branch-page .about-tab i {
    width: 33px;
    height: 33px;
    font-size: 1.08rem;
  }
}

@media (max-width: 600px) {
  .branch-page .about-tab {
    padding: 7px 11px 7px 7px;
    font-size: .99rem;
  }

  .branch-page .about-tab i {
    width: 31px;
    height: 31px;
    font-size: .97rem;
  }
}

/* About section tabs: only the width +10% — text, icon and height back to the previous size */
.branch-page .about-tabs {
  width: min(100%, 1012px);
  gap: 8px;
  padding: 6px;
}

.branch-page .about-tab {
  min-width: 187px;
  padding: 8px 24px 8px 8px;
  font-size: 1.05rem;
}

.branch-page .about-tab i {
  width: 34px;
  height: 34px;
  font-size: 1.08rem;
}

@media (max-width: 991px) {
  .branch-page .about-tab {
    min-width: 0;
    padding: 7px 15px 7px 7px;
    font-size: .98rem;
  }

  .branch-page .about-tab i {
    width: 30px;
    height: 30px;
    font-size: .98rem;
  }
}

@media (max-width: 600px) {
  .branch-page .about-tab {
    padding: 6px 11px 6px 6px;
    font-size: .9rem;
  }

  .branch-page .about-tab i {
    width: 28px;
    height: 28px;
    font-size: .88rem;
  }
}

/* ══ Page backgrounds from the school logo's colours: sky blue #71dafa and cream yellow #fcf8b9 ══
   Soft tints of the two, alternating with white; the header stays white so the logo stands out. */
:root,
.branch-page {
  --logo-sky: #71dafa;
  --logo-cream: #fcf8b9;
  --bg-sky: #edf9fe;
  --bg-sky-deep: #dff4fd;
  --bg-cream: #fffde9;
  --bg-cream-deep: #fdf8cf;
  --brand-cream: #edf9fe;
  --brand-cream-dark: #dff4fd;
}

/* Sky-blue sections */
.branch-page .cms-welcome,
.branch-page .gallery,
.branch-page .cms-contact {
  background: var(--bg-sky);
}

/* Toppers / Birthdays + Notice Board: sky blue easing into cream, with light confetti dots */
.branch-page .toppers-birthdays {
  background:
    radial-gradient(circle at 8% 18%, rgba(113, 218, 250, .55) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 82%, rgba(250, 11, 16, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 10%, rgba(253, 163, 27, .35) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 88%, rgba(113, 218, 250, .5) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 22%, rgba(252, 248, 185, .9) 0 4px, transparent 5px),
    linear-gradient(160deg, var(--bg-sky) 0%, #ffffff 50%, var(--bg-cream) 100%);
}

/* Leadership: logo cream with soft sky-blue and cream glows */
.branch-page .lead-section {
  background:
    radial-gradient(rgba(17, 110, 99, .07) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-deep) 100%);
}

.branch-page .lead-glow-1 {
  background: rgba(252, 248, 185, .8);
}

.branch-page .lead-glow-2 {
  background: rgba(113, 218, 250, .4);
}

/* News & Events: white easing into sky blue */
.branch-page .news-modern {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-sky) 100%);
}

/* White sections in between */
.branch-page .about-modern,
.branch-page .achievements,
.branch-page .videos {
  background: #fff;
}

/* Soft panels inside sections pick up the logo tints too */
.branch-page .tb-card-toppers,
.branch-page .tb-card-toppers:hover {
  background: linear-gradient(160deg, rgba(252, 248, 185, .75) 0%, rgba(255, 255, 255, .75) 100%);
  box-shadow: inset 0 0 0 1px rgba(230, 210, 90, .35);
}

.branch-page .tb-card-birthdays,
.branch-page .tb-card-birthdays:hover {
  background: linear-gradient(160deg, rgba(113, 218, 250, .22) 0%, rgba(255, 255, 255, .75) 100%);
  box-shadow: inset 0 0 0 1px rgba(113, 218, 250, .35);
}

.branch-page .about-tabs {
  background: var(--bg-sky);
}

/* ══ Header & footer from the logo's colours ═══════════════════════════════════════════════
   Deep sky blue = the logo's #71dafa darkened, so white text stays easy to read. */
:root {
  --logo-sky-deep: #0e4f6b;
  --logo-sky-darker: #0a3a50;
}

/* Header menu bar: light sky tint with a sky-blue line underneath */
.site-header {
  background: #f0fbff;
  border-bottom: 1px solid rgba(113, 218, 250, .45);
}

.site-header.scrolled {
  background: rgba(240, 251, 255, .97);
  box-shadow: 0 8px 30px rgba(14, 79, 107, .12);
}

/* Top strip (phone / email / disclosure): deep logo blue, orange block kept on the left */
.topbar {
  background: linear-gradient(90deg, var(--logo-sky-darker), var(--logo-sky-deep));
}

/* Footer: deep logo-blue gradient with a soft sky glow; darker copyright bar */
.site-footer {
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(113, 218, 250, .22), transparent 65%),
    radial-gradient(700px 300px at 0% 100%, rgba(252, 248, 185, .08), transparent 70%),
    linear-gradient(160deg, var(--logo-sky-darker) 0%, var(--logo-sky-deep) 100%);
}

.footer-bottom {
  background: #082d3e;
}

/* Mobile drop-down menu matches the header */
@media (max-width: 1199px) {
  .site-nav {
    background: #f0fbff;
  }
}

/* ══ Policy pages (Privacy, Terms & Conditions, Refund): backgrounds from the logo's colours ══ */
.page-hero {
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(113, 218, 250, .28), transparent 70%),
    linear-gradient(120deg, var(--logo-sky-darker), var(--logo-sky-deep));
}

.page-hero::before {
  background: radial-gradient(circle, rgba(252, 248, 185, .22), rgba(252, 248, 185, 0) 70%);
}

.legal {
  background: var(--bg-sky);
}

.legal-intro {
  background: var(--bg-cream);
}

.legal-nav a:hover {
  background: var(--bg-sky);
  color: var(--logo-sky-deep);
}

.legal-nav a.active {
  background: var(--logo-sky-deep);
  color: #fff;
}

.legal-contact {
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(113, 218, 250, .25), transparent 70%),
    linear-gradient(120deg, var(--logo-sky-darker), var(--logo-sky-deep));
}

/* ══ Front page backgrounds: the school's colours #66d1f3 (sky) and #fcf8bc (cream), alternating ══ */
:root,
.branch-page {
  --site-sky: #66d1f3;
  --site-cream: #fcf8bc;
  --logo-sky: #66d1f3;
  --logo-cream: #fcf8bc;
  --bg-sky: #66d1f3;
  --bg-cream: #fcf8bc;
  /* small pale details (chips, fields, pills) stay a light tint so they still show on both */
  --brand-cream: #eef9fd;
  --brand-cream-dark: #dcf2fb;
}

/* Header menu bar */
.site-header {
  background: var(--site-cream);
  border-bottom: 1px solid rgba(102, 209, 243, .55);
}

.site-header.scrolled {
  background: rgba(252, 248, 188, .97);
}

@media (max-width: 1199px) {
  .site-nav {
    background: var(--site-cream);
  }
}

/* Cream sections */
.branch-page .cms-welcome,
.branch-page .toppers-birthdays,
.branch-page .news-modern,
.branch-page .gallery,
.branch-page .cms-contact,
.legal {
  background: var(--site-cream);
}

.branch-page .toppers-birthdays {
  background:
    radial-gradient(circle at 8% 18%, rgba(102, 209, 243, .6) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 82%, rgba(250, 11, 16, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 10%, rgba(253, 163, 27, .4) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 88%, rgba(102, 209, 243, .55) 0 4px, transparent 5px),
    var(--site-cream);
}

/* Sky sections */
.branch-page .about-modern,
.branch-page .lead-section,
.branch-page .achievements,
.branch-page .videos {
  background: var(--site-sky);
}

.branch-page .lead-section {
  background:
    radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    var(--site-sky);
}

.branch-page .lead-glow-1 {
  background: rgba(252, 248, 188, .55);
}

.branch-page .lead-glow-2 {
  background: rgba(255, 255, 255, .35);
}

/* Readable text on sky: darker body text, dark taglines with the orange underline, light divider */
.branch-page .about-modern,
.branch-page .lead-section,
.branch-page .achievements,
.branch-page .videos {
  --brand-muted: #1f4253;
}

.branch-page .about-modern .eyebrow,
.branch-page .lead-section .eyebrow,
.branch-page .achievements .eyebrow,
.branch-page .videos .eyebrow,
.branch-page .lead-kicker {
  color: #0b2f40;
}

.branch-page .about-modern .about-lead,
.branch-page .lead-signature {
  color: #0b3a50;
}

.branch-page .about-modern .heading-underline,
.branch-page .lead-section .heading-underline,
.branch-page .achievements .heading-underline,
.branch-page .videos .heading-underline {
  background: rgba(11, 47, 64, .2);
}

.branch-page .lead-message {
  color: #173847;
}

.branch-page .lead-bigquote {
  color: rgba(255, 255, 255, .35);
}

.branch-page .lead-message,
.branch-page .lead-row:not(.is-expanded) .lead-message {
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.branch-page .lead-row:has(.lead-more[hidden]) .lead-message,
.branch-page .lead-row.is-expanded .lead-message {
  -webkit-mask-image: none;
  mask-image: none;
}

.branch-page .lead-more {
  color: #0b2f40;
}

/* Panels inside the cream / sky sections */
.branch-page .about-tabs {
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.branch-page .about-tab:not(.active):hover {
  background: #fff;
}

.branch-page .tb-card-toppers,
.branch-page .tb-card-toppers:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .45) 100%);
  box-shadow: inset 0 0 0 1px rgba(230, 210, 90, .45);
}

.branch-page .tb-card-birthdays,
.branch-page .tb-card-birthdays:hover {
  background: linear-gradient(160deg, rgba(102, 209, 243, .3) 0%, rgba(255, 255, 255, .6) 100%);
  box-shadow: inset 0 0 0 1px rgba(102, 209, 243, .45);
}

.branch-page .tb-col-notices .notice-board-subtitle {
  background: rgba(17, 110, 99, .12);
}

/* ══ Buttons, location and Online Registration in the school colours ═══════════════════════
   Main buttons: sky #66d1f3 with dark-blue text (cream inside the sky sections so they never
   disappear); secondary: cream #fcf8bc with a sky border; hover: deep logo blue with white text. */
:root {
  --btn-text: #0b2f40;
  --btn-hover: #0e4f6b;
}

.btn::before,
.branch-page .btn::before {
  background: var(--btn-hover);
}

/* Main buttons */
.btn-accent,
.branch-page .btn-accent,
.branch-page .btn-primary,
.branch-page .banner-btn-primary,
.branch-page .cf-submit,
.branch-page .tb-flip-btn,
.branch-page .tb-face-back .tb-flip-btn,
.branch-page .floating-registration-btn,
.back-to-top,
.registration-shell .btn-primary,
.registration-shell .landing-btn-register {
  background: var(--site-sky);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(102, 209, 243, .45);
}

.btn-accent:hover,
.branch-page .btn-accent:hover,
.branch-page .btn-primary:hover,
.branch-page .banner-btn-primary:hover,
.branch-page .cf-submit:hover,
.branch-page .tb-flip-btn:hover,
.branch-page .floating-registration-btn:hover,
.back-to-top:hover,
.registration-shell .btn-primary:hover:not(:disabled),
.registration-shell .landing-btn-register:hover:not(:disabled) {
  background: var(--btn-hover);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14, 79, 107, .35);
}

/* Inside the sky sections the main buttons turn cream so they stand out */
.branch-page .about-modern .btn-accent,
.branch-page .lead-section .btn-accent,
.branch-page .achievements .btn-accent,
.branch-page .videos .btn-accent {
  background: var(--site-cream);
  color: var(--btn-text);
  box-shadow: 0 8px 22px rgba(11, 47, 64, .18);
}

.branch-page .about-modern .btn-accent:hover,
.branch-page .lead-section .btn-accent:hover,
.branch-page .achievements .btn-accent:hover,
.branch-page .videos .btn-accent:hover {
  color: #fff;
}

/* Secondary buttons */
.branch-page .btn-ghost,
.branch-page .banner-btn-secondary,
.branch-page .about-contact-btn,
.registration-shell .btn-secondary,
.registration-shell .landing-btn-instructions {
  background: var(--site-cream);
  color: var(--btn-text);
  border: 1.5px solid var(--site-sky);
}

.branch-page .btn-ghost:hover,
.branch-page .banner-btn-secondary:hover,
.branch-page .about-contact-btn:hover,
.registration-shell .btn-secondary:hover:not(:disabled),
.registration-shell .landing-btn-instructions:hover:not(:disabled) {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: #fff;
}

.registration-shell .btn-link {
  color: var(--btn-hover);
}

/* Tabs, filters and toggles that act as buttons */
.branch-page .about-tab.active,
.branch-page .news-filter.active {
  background: var(--site-sky);
  border-color: var(--site-sky);
  color: var(--btn-text);
  box-shadow: 0 8px 18px rgba(102, 209, 243, .45);
}

.branch-page .about-modern .about-tab.active {
  background: var(--site-cream);
  box-shadow: 0 8px 18px rgba(11, 47, 64, .15);
}

.branch-page .about-tab.active i {
  background: var(--btn-hover);
  color: #fff;
}

.branch-page .news-filter.active span {
  background: rgba(11, 47, 64, .12);
  color: var(--btn-text);
}

.branch-page .notice-more,
.branch-page .leader-more,
.branch-page .lead-more {
  border-color: var(--site-sky);
  color: var(--btn-text);
}

.branch-page .notice-more:hover,
.branch-page .leader-more:hover {
  border-color: var(--btn-hover);
  background: var(--btn-hover);
  color: #fff;
}

/* Online Registration floating tab */
.branch-page .floating-registration-btn {
  font-weight: 800;
}

.branch-page .floating-registration-btn i {
  color: var(--btn-text);
  transition: color .3s var(--ease);
}

.branch-page .floating-registration-btn:hover i {
  color: #fff;
}

/* Location: map-pin icons and the address card */
.branch-page .banner-location i,
.site-footer .ph-map-pin,
.footer-contact .ph-map-pin {
  color: var(--site-sky);
}

.branch-page .banner-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 50px 50px 50px 0;
  background: rgba(102, 209, 243, .2);
  border: 1px solid rgba(102, 209, 243, .55);
}

.branch-page .about-feature-icon {
  background: var(--site-cream);
  color: var(--btn-text);
  box-shadow: -5px 5px 0 rgba(11, 47, 64, .15);
}

.branch-page .about-feature:hover .about-feature-icon {
  background: var(--btn-hover);
  color: #fff;
}

/* ══ Top strip in both school colours: sky strip, cream angled block; dark-blue text ═════════ */
.topbar {
  background: var(--site-sky);
  color: var(--btn-text);
  border-bottom: 1px solid rgba(11, 47, 64, .08);
}

.topbar::before {
  background: var(--site-cream);
}

.topbar a,
.topbar-contact a,
.topbar-contact a:hover,
.topbar-contact a:focus-visible {
  color: var(--btn-text);
}

.topbar-contact a i {
  color: var(--btn-hover);
}

.topbar-contact a:hover,
.topbar-contact a:focus-visible {
  background: rgba(11, 47, 64, .1);
}

.topbar-social a:not(.topbar-disclosure) {
  background: rgba(11, 47, 64, .12);
  color: var(--btn-text);
}

.topbar-social a:not(.topbar-disclosure):hover {
  background: var(--btn-hover);
  color: #fff;
}

.topbar a.topbar-disclosure {
  border-color: rgba(11, 47, 64, .55);
  background: rgba(255, 255, 255, .35);
  color: var(--btn-text);
}

.topbar a.topbar-disclosure:hover,
.topbar a.topbar-disclosure:focus-visible,
.topbar a.topbar-disclosure.active {
  border-color: var(--btn-hover);
  background: var(--btn-hover);
  color: #fff;
}

.topbar-sep {
  background: rgba(11, 47, 64, .25);
}

/* ══ Online Registration page header: sky #66d1f3 with dark-blue text ══════════════════════ */
.registration-shell .registration-header {
  background: #66d1f3;
  color: var(--btn-text);
  border-bottom: 1px solid rgba(11, 47, 64, .1);
}

.registration-shell .registration-header h1 {
  color: var(--btn-text);
  font-family: var(--font-heading);
  font-weight: 800;
}

.registration-shell .registration-back {
  color: var(--btn-text);
}

.registration-shell .registration-back:hover {
  color: var(--btn-hover);
}

/* ══ Footer: sky #66d1f3, copyright bar cream #fcf8bc — dark-blue text so everything reads ══ */
.site-footer {
  background: #66d1f3;
  color: var(--btn-text);
}

.site-footer h4,
.footer-col h4,
.footer-brand-name {
  color: var(--btn-text);
}

.site-footer h4::after,
.footer-col h4::after {
  background: var(--btn-hover);
}

.footer-about p,
.footer-values li,
.footer-muted,
.footer-city,
.footer-cta p,
.footer-contact li,
.footer-contact a,
.footer-links a,
.site-footer a {
  color: #12384a;
}

.footer-values i,
.footer-links a i,
.footer-contact i,
.site-footer .ph-map-pin,
.footer-contact .ph-map-pin {
  color: var(--btn-hover);
}

.site-footer a:hover,
.footer-links a:hover,
.site-footer .footer-links a:hover,
.footer-contact a:hover {
  color: #062433;
}

.footer-social a {
  background: rgba(11, 47, 64, .12);
  color: var(--btn-text);
}

.footer-social a:hover {
  background: var(--btn-hover);
  color: #fff;
}

/* "Enquire Now" in the footer: cream so it stands out on the sky background */
.site-footer .btn-accent,
.site-footer .footer-enquire {
  background: #fcf8bc;
  color: var(--btn-text);
  box-shadow: 0 8px 22px rgba(11, 47, 64, .18);
}

.site-footer .btn-accent:hover,
.site-footer .footer-enquire:hover {
  color: #fff;
}

/* Copyright bar */
.footer-bottom {
  background: #fcf8bc;
  color: var(--btn-text);
  border-top: 1px solid rgba(11, 47, 64, .1);
}

.footer-bottom-row,
.footer-bottom-row span,
.footer-legal a,
.footer-legal-sep {
  color: var(--btn-text);
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--btn-hover);
}

/* Header menu bar (logo + menu): white */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(102, 209, 243, .45);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
}

@media (max-width: 1199px) {
  .site-nav {
    background: #fff;
  }
}

/* ══ Every hover background: cream #fcf8bc, with dark-blue text/icons on it ══════════════════
   Elements that are already cream get a dark-blue outline on hover instead, so hover still shows. */
:root {
  --hover-bg: #fcf8bc;
  --hover-ring: 0 0 0 2px rgba(11, 47, 64, .55);
}

/* Buttons: the growing fill is cream; text stays dark */
.btn::before,
.branch-page .btn::before {
  background: var(--hover-bg);
}

.btn-accent:hover,
.branch-page .btn-accent:hover,
.branch-page .btn-primary:hover,
.branch-page .banner-btn-primary:hover,
.branch-page .cf-submit:hover,
.branch-page .tb-flip-btn:hover,
.branch-page .floating-registration-btn:hover,
.back-to-top:hover,
.registration-shell .btn-primary:hover:not(:disabled),
.registration-shell .landing-btn-register:hover:not(:disabled),
.branch-page .btn-ghost:hover,
.branch-page .banner-btn-secondary:hover,
.branch-page .about-contact-btn:hover,
.registration-shell .btn-secondary:hover:not(:disabled),
.registration-shell .landing-btn-instructions:hover:not(:disabled),
.site-footer .btn-accent:hover,
.site-footer .footer-enquire:hover,
.branch-page .about-modern .btn-accent:hover,
.branch-page .lead-section .btn-accent:hover,
.branch-page .achievements .btn-accent:hover,
.branch-page .videos .btn-accent:hover {
  background: var(--hover-bg);
  border-color: rgba(11, 47, 64, .55);
  color: var(--btn-text);
  box-shadow: var(--hover-ring), 0 10px 24px rgba(11, 47, 64, .15);
}

.branch-page .floating-registration-btn:hover i {
  color: var(--btn-text);
}

/* Tabs, filters, toggles */
.branch-page .about-tab:not(.active):hover,
.branch-page .news-filter:hover,
.branch-page .notice-more:hover,
.branch-page .leader-more:hover {
  background: var(--hover-bg);
  border-color: rgba(11, 47, 64, .4);
  color: var(--btn-text);
}

.branch-page .about-feature:hover .about-feature-icon {
  background: var(--hover-bg);
  color: var(--btn-text);
  box-shadow: var(--hover-ring);
}

/* Top strip */
.topbar-contact a:hover,
.topbar-contact a:focus-visible,
.topbar-social a:not(.topbar-disclosure):hover,
.topbar a.topbar-disclosure:hover,
.topbar a.topbar-disclosure:focus-visible {
  background: var(--hover-bg);
  border-color: var(--hover-bg);
  color: var(--btn-text);
}

/* Footer */
.footer-social a:hover {
  background: var(--hover-bg);
  color: var(--btn-text);
}

/* Notice board rows, gallery and news */
.branch-page .tb-col-notices .notice-item:hover,
.branch-page .tb-col-notices .notice-item:focus-visible {
  background: var(--hover-bg);
}

.branch-page .tb-col-notices .notice-item:hover .notice-date span {
  background: var(--btn-hover);
}

.branch-page .tb-col-notices .notice-item:hover .notice-arrow {
  background: var(--hover-bg);
  color: var(--btn-text);
  box-shadow: var(--hover-ring);
}

.branch-page .gallery-nav:hover,
.branch-page .banner-nav:hover {
  background: var(--hover-bg);
  color: var(--btn-text);
}

.branch-page .gallery-item:hover .gallery-caption {
  background: var(--hover-bg);
  color: var(--btn-text);
}

/* Pop-ups (photo viewer, news details) */
.gallery-lightbox-btn:hover,
.news-modal-close:hover {
  background: #fcf8bc;
  color: #0b2f40;
}

/* Menu: dropdown items get the cream hover too */
.nav-sublink:hover,
.nav-sublink:focus-visible {
  background: #fcf8bc;
  color: #0b2f40;
}

/* Menu "Login" button: cream hover with black text */
.btn-outline-brand.nav-login:hover,
.btn-outline-brand.nav-login:focus-visible,
.btn-outline-brand.nav-login:hover i {
  background: #fcf8bc;
  border-color: #000;
  color: #000;
}

/* ══ Section backgrounds, refined: soft tints of #66d1f3 / #fcf8bc with white in between ════════ */
:root,
.branch-page {
  --sky-50: #f2fbfe;
  --sky-100: #e3f6fd;
  --sky-200: #c9eefb;
  --cream-50: #fffef4;
  --cream-100: #fefbe2;
}

/* White */
.branch-page .cms-welcome,
.branch-page .news-modern,
.branch-page .gallery {
  background: #fff;
}

/* About: white easing into light sky, with a soft sky glow behind the photos */
.branch-page .about-modern {
  background:
    radial-gradient(600px 360px at 0% 30%, rgba(102, 209, 243, .16), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--sky-50) 100%);
}

/* Toppers / Birthdays + Notice Board: very light cream with faint confetti */
.branch-page .toppers-birthdays {
  background:
    radial-gradient(circle at 8% 18%, rgba(102, 209, 243, .45) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 82%, rgba(250, 11, 16, .15) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 10%, rgba(253, 163, 27, .3) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 88%, rgba(102, 209, 243, .4) 0 4px, transparent 5px),
    linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
}

/* Leadership: light sky gradient */
.branch-page .lead-section {
  background:
    radial-gradient(rgba(102, 209, 243, .14) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 100%);
}

.branch-page .lead-glow-1 {
  background: rgba(252, 248, 188, .6);
}

.branch-page .lead-glow-2 {
  background: rgba(102, 209, 243, .25);
}

.branch-page .lead-bigquote {
  color: rgba(102, 209, 243, .2);
}

/* Achievements & Contact: very light cream; Videos: very light sky */
.branch-page .achievements,
.branch-page .cms-contact {
  background: var(--cream-50);
}

.branch-page .videos {
  background: var(--sky-50);
}

/* Testimonials: deep logo blue (was navy) */
.branch-page .cms-reviews {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(102, 209, 243, .25), transparent 70%),
    linear-gradient(135deg, #0a3a50 0%, #0e4f6b 100%);
}

/* Text back to the normal palette on these light backgrounds */
.branch-page .about-modern,
.branch-page .lead-section,
.branch-page .achievements,
.branch-page .videos {
  --brand-muted: #5b6676;
}

.branch-page .about-modern .eyebrow,
.branch-page .lead-section .eyebrow,
.branch-page .achievements .eyebrow,
.branch-page .videos .eyebrow,
.branch-page .lead-kicker {
  color: #d9820a;
}

.branch-page .about-modern .about-lead {
  color: var(--theme);
}

.branch-page .lead-message {
  color: #3d4852;
}

.branch-page .about-modern .heading-underline,
.branch-page .lead-section .heading-underline,
.branch-page .achievements .heading-underline,
.branch-page .videos .heading-underline {
  background: var(--sky-200);
}

/* Panels inside: tab strip, toppers / birthdays */
.branch-page .about-tabs {
  background: var(--sky-100);
  box-shadow: inset 0 0 0 1px var(--sky-200);
}

.branch-page .tb-card-toppers,
.branch-page .tb-card-toppers:hover {
  background: linear-gradient(160deg, #ffffff 0%, rgba(252, 248, 188, .55) 100%);
  box-shadow: inset 0 0 0 1px rgba(230, 210, 90, .4);
}

.branch-page .tb-card-birthdays,
.branch-page .tb-card-birthdays:hover {
  background: linear-gradient(160deg, #ffffff 0%, var(--sky-100) 100%);
  box-shadow: inset 0 0 0 1px var(--sky-200);
}

/* Policy pages: very light sky */
.legal {
  background: var(--sky-50);
}

/* ══ CMS pages (Fee Structure, Admission Rules …): cream #fcf8bc hero with dark-blue text ═══ */
.page-hero.cms-page-hero {
  background: #fcf8bc;
  color: var(--btn-text);
  border-bottom: 1px solid rgba(11, 47, 64, .08);
}

.page-hero.cms-page-hero::before {
  background: radial-gradient(circle, rgba(102, 209, 243, .35), rgba(102, 209, 243, 0) 70%);
}

.page-hero.cms-page-hero h1 {
  color: var(--btn-text);
}

.page-hero.cms-page-hero .breadcrumb,
.page-hero.cms-page-hero .breadcrumb a,
.page-hero.cms-page-hero .breadcrumb span,
.page-hero.cms-page-hero .breadcrumb i {
  color: #2c4a5a;
}

.page-hero.cms-page-hero .breadcrumb a:hover {
  color: var(--btn-hover);
}

/* CMS page hero (Fee Structure …): sky #66d1f3 */
.page-hero.cms-page-hero {
  background: #66d1f3;
}

.page-hero.cms-page-hero::before {
  background: radial-gradient(circle, rgba(252, 248, 188, .45), rgba(252, 248, 188, 0) 70%);
}

.page-hero.cms-page-hero .breadcrumb,
.page-hero.cms-page-hero .breadcrumb a,
.page-hero.cms-page-hero .breadcrumb span,
.page-hero.cms-page-hero .breadcrumb i {
  color: #12384a;
}

/* About section "Call the School Office" badge: cream #fcf8bc with dark-blue text */
.branch-page .about-badge {
  background: #fcf8bc;
  color: var(--btn-text);
  box-shadow: 0 16px 34px rgba(11, 47, 64, .18);
}

.branch-page .about-badge-icon {
  background: var(--btn-hover);
  color: #fff;
}

.branch-page .about-badge:hover {
  background: #fcf8bc;
  box-shadow: var(--hover-ring), 0 18px 38px rgba(11, 47, 64, .22);
}

/* ══ Every inner-page banner like the rest of the site: sky #66d1f3, dark-blue text ══════════
   (Privacy / Terms / Refund, Mandatory Disclosure and CMS pages share one look) */
.page-hero {
  background: #66d1f3;
  color: var(--btn-text);
  border-bottom: 1px solid rgba(11, 47, 64, .08);
}

.page-hero::before {
  background: radial-gradient(circle, rgba(252, 248, 188, .45), rgba(252, 248, 188, 0) 70%);
}

.page-hero h1 {
  color: var(--btn-text);
}

.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb span,
.page-hero .breadcrumb i,
.page-hero-meta,
.page-hero-meta i {
  color: #12384a;
}

.page-hero .breadcrumb a:hover {
  color: var(--btn-hover);
}

/* Page body: the same light sky as the other inner pages */
.legal {
  background: var(--sky-50);
}

/* Policy side menu + "Questions?" box in the same palette */
.legal-nav a.active {
  background: #66d1f3;
  color: var(--btn-text);
}

.legal-nav a.active i {
  color: var(--btn-text);
}

.legal-nav a:hover {
  background: #fcf8bc;
  color: var(--btn-text);
}

.legal-contact {
  background: #fcf8bc;
  color: var(--btn-text);
  border: 1px solid rgba(11, 47, 64, .08);
}

.legal-contact h3,
.legal-contact p,
.legal-contact > i {
  color: var(--btn-text);
}

/* ══ Message Desk slider: one leader at a time (modern.js, every 10 seconds) ═══════════════ */
.branch-page .lead-list[data-lead-slider] {
  display: block;
}

.branch-page .lead-list[data-lead-slider] .lead-row {
  display: none;
}

.branch-page .lead-list[data-lead-slider] .lead-row.is-active {
  display: grid;
}

.branch-page .lead-list[data-lead-slider] .lead-row.is-active .lead-media {
  animation: lead-in-left .9s var(--ease) both;
}

.branch-page .lead-list[data-lead-slider] .lead-row.is-active .lead-content {
  animation: lead-in-right .9s var(--ease) .12s both;
}

.branch-page .lead-list[data-lead-slider] .lead-row.is-active.is-reversed .lead-media {
  animation-name: lead-in-right;
}

.branch-page .lead-list[data-lead-slider] .lead-row.is-active.is-reversed .lead-content {
  animation-name: lead-in-left;
}

@keyframes lead-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lead-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Arrows + dots under the slide */
.branch-page .lead-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}

.branch-page .lead-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #66d1f3;
  color: var(--btn-text);
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(102, 209, 243, .45);
  cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.branch-page .lead-nav:hover {
  background: #fcf8bc;
  box-shadow: var(--hover-ring), 0 10px 24px rgba(11, 47, 64, .15);
}

.branch-page .lead-dots {
  display: flex;
  gap: 8px;
}

.branch-page .lead-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 47, 64, .2);
  cursor: pointer;
  transition: width .35s var(--ease), background-color .35s var(--ease);
}

.branch-page .lead-dots button.active {
  width: 30px;
  background: var(--btn-hover);
}

@media (max-width: 600px) {
  .branch-page .lead-nav {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-page .lead-list[data-lead-slider] .lead-row.is-active .lead-media,
  .branch-page .lead-list[data-lead-slider] .lead-row.is-active .lead-content {
    animation: none;
  }
}

/* ══ Top strip on phones: everything fits on one line, nothing overlaps ═════════════════════
   Phone number stays (shortened with … if needed), email becomes an icon button, the Disclosure
   pill and social icons shrink and stay on the right. */
@media (max-width: 600px) {
  .topbar-row {
    gap: 8px;
  }

  .topbar-contact {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .topbar-contact a {
    min-width: 0;
    padding: 3px 6px;
    font-size: .8rem;
    white-space: nowrap;
  }

  .topbar-contact a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Email: icon only (tap to email) instead of hidden */
  .topbar-contact a:nth-child(2) {
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    gap: 0;
    font-size: 0;
    border-radius: 50%;
    background: rgba(11, 47, 64, .12);
  }

  .topbar-contact a:nth-child(2) i {
    font-size: .95rem;
  }

  .topbar-social {
    flex-shrink: 0;
    gap: 6px;
  }

  .topbar-social a:not(.topbar-disclosure) {
    width: 26px;
    height: 26px;
    font-size: .85rem;
  }

  .topbar a.topbar-disclosure {
    padding: 2px 9px;
    font-size: .72rem;
  }

  .topbar-sep {
    display: none;
  }
}

/* Very small phones: keep the first two social icons only */
@media (max-width: 380px) {
  .topbar-social a:not(.topbar-disclosure):nth-of-type(n+4) {
    display: none;
  }
}
