/*
Theme Name: TOWIS Theme
Theme URI: https://towis.edu.mm
Author: The One World International School
Author URI: https://towis.edu.mm
Description: Official theme for The One World International School, Yangon, Myanmar. Cambridge curriculum (CAIE) school serving EYFS to A Levels.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: towis
Tags: education, school, responsive, cambridge, international-school
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue: #003262;
  --blue-dark: #001f3f;
  --blue-light: #0057a8;
  --gold: #FDB515;
  --gold-dark: #e0a010;
  --gold-light: #ffd166;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --dark-gray: #333333;
  --text: #2c2c2c;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .15);
  --transition: all .25s ease;

  --max-width: 1200px;
  --header-h: 100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--blue);
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-blue {
  color: var(--blue) !important;
}

.bg-blue {
  background-color: var(--blue);
}

.bg-gold {
  background-color: var(--gold);
}

.bg-off-white {
  background-color: var(--off-white);
}

.bg-dark-blue {
  background-color: var(--blue-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--blue);
  margin-bottom: .5rem;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-gray);
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, .8);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 12px auto 24px;
  border-radius: 2px;
}

.section-divider.left {
  margin-left: 0;
}

/* ============================================================
   GOLD TOP BAR
   ============================================================ */
#top-bar {
  background: var(--blue);
  color: var(--white);
  font-size: .82rem;
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.top-bar-inner a {
  color: var(--gold);
}

.top-bar-inner a:hover {
  color: var(--white);
}

/* ============================================================
   HEADER & NAVIGATION — single unified sticky row
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* max-width: var(--max-width); */
  margin: 0 20px;
  padding: 0 20px;
  gap: 20px;
  min-height: var(--header-h);
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img,
.custom-logo-link img,
.custom-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

/* ── Desktop nav ── */
#main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu-h {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu-h>li>a {
  display: flex;
  align-items: center;
  padding: 0 11px;
  height: var(--header-h);
  color: var(--blue);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-menu-h>li>a:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* Dropdown trigger buttons */
.nav-h-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  height: var(--header-h);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color .2s, border-color .2s;
}

.nav-h-btn:hover,
.nav-h-btn[aria-expanded="true"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.nav-arrow {
  font-size: .6rem;
  color: var(--gold);
  transition: transform .2s;
}

.nav-h-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.has-dropdown {
  position: relative;
}

.nav-h-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  z-index: 1100;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.nav-h-dropdown.open,
.has-dropdown:hover .nav-h-dropdown {
  display: block;
}

.nav-h-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: .88rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, padding-left .15s, color .15s;
}

.nav-h-dropdown a:hover {
  background: var(--off-white);
  color: var(--blue);
  padding-left: 26px;
}

/* ── Apply CTA button ── */
.nav-apply-cta {
  display: inline-block;
  flex-shrink: 0;
  margin-left: auto;
  background: var(--gold);
  color: var(--blue-dark) !important;
  font-weight: 700;
  font-size: .84rem;
  padding: 10px 20px;
  margin-right: 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.nav-apply-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ── Hamburger — hidden on desktop ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Mobile drawer ── */
#mobile-nav {
  display: none;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

#mobile-nav.open {
  display: block;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.mobile-menu>li {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-menu>li>a,
.mob-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color .2s;
}

.mobile-menu>li>a:hover,
.mob-parent-btn:hover {
  color: var(--gold);
}

.mob-arrow {
  font-size: .7rem;
  color: var(--gold);
  transition: transform .25s;
}

.mob-parent-btn.open .mob-arrow {
  transform: rotate(180deg);
}

.mob-dropdown {
  display: none;
  background: rgba(0, 0, 0, .2);
  list-style: none;
  padding: 4px 0;
}

.mob-dropdown.open {
  display: block;
}

.mob-dropdown a {
  display: block;
  padding: 9px 20px 9px 38px;
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}

.mob-dropdown a:hover {
  color: var(--gold);
}

.mob-apply a {
  display: block;
  margin: 12px 16px 4px;
  padding: 12px;
  background: var(--gold);
  color: var(--blue-dark) !important;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius);
  font-size: .95rem;
  text-decoration: none;
}

/* Kill old slide-nav */
#nav-overlay,
#side-nav {
  display: none !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 120vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 50, 98, 0.82) 0%,
      rgba(0, 50, 98, 0.60) 30%,
      rgba(0, 50, 98, 0.25) 65%,
      rgba(0, 50, 98, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 0 150px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-width: 180px;
}

/* Hero Statistics */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 181, 21, 0.95);
  z-index: 3;
}

.hero-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 20px;
  text-align: center;
  border-right: 1px solid rgba(0, 50, 98, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.5px;
}

/* ============================================================
   WELCOME / INTRO SECTION
   ============================================================ */
.welcome-section {
  padding: 90px 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-image-wrap {
  position: relative;
}

.welcome-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.welcome-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 18px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.welcome-image-badge .badge-number {
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.welcome-image-badge .badge-text {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.welcome-text h2 {
  margin-bottom: 12px;
}

.welcome-text p {
  color: #555;
  margin-bottom: 1rem;
}

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}

.welcome-feature::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   SCHOOL VIDEO SECTION
   ============================================================ */
.school-video-section {
  padding: 90px 0;
  background: var(--light-gray);
}

.school-video-player {
  max-width: 960px;
  margin: 0 auto;
}

#home-video-thumb:hover img {
  transform: scale(1.02);
  opacity: .85;
}

#home-video-thumb:hover #home-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 0 22px rgba(253, 181, 21, .12), 0 8px 30px rgba(0, 0, 0, .35);
}

/* ============================================================
   FEATURES CARDS
   ============================================================ */
.features-section {
  background: var(--blue);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 36px 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: rgba(255, 255, 255, .75);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   ACADEMICS SECTION
   ============================================================ */
.academics-section {
  padding: 90px 0;
  background: var(--off-white);
}

.academics-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.acad-tab-btn {
  padding: 10px 22px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.acad-tab-btn:hover,
.acad-tab-btn.active {
  background: var(--blue);
  color: var(--white);
}

.acad-panel {
  display: none;
}

.acad-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.acad-panel-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.acad-panel-content h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.acad-panel-content .acad-sub {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.acad-panel-content p {
  color: #555;
  margin-bottom: 1rem;
}

.acad-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.acad-subject-tag {
  background: var(--blue);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: 90px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
}

.news-card-cat {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blue);
  line-height: 1.4;
}

.news-card-meta {
  font-size: .82rem;
  color: var(--mid-gray);
  margin-bottom: 12px;
}

.news-card p {
  font-size: .9rem;
  color: #555;
  margin-bottom: 14px;
}

.news-read-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-read-more:hover {
  color: var(--gold-dark);
}

/* ============================================================
   ACCREDITATIONS / CAIE BAR
   ============================================================ */
.accreditations-section {
  background: var(--blue);
  padding: 60px 0;
}

.accred-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.accred-logo-item {
  text-align: center;
}

.accred-logo-item img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: var(--transition);
}

.accred-logo-item img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.accred-logo-item.caie-main img {
  height: 90px;
  opacity: 1;
  filter: none;
}

.caie-main-logo-wrapper {
  background: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  display: inline-block;
  border: 3px solid var(--gold);
}

/* ============================================================
   HEAD OF SCHOOL STRIP
   ============================================================ */
.hs-strip {
  background: var(--gold);
  padding: 60px 0;
}

.hs-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.hs-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.hs-quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--blue-dark);
  font-style: italic;
  line-height: 1.5;
}

.hs-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  margin-top: 8px;
  font-style: normal;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--blue);
  padding: 90px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LIFE AT TOWIS — SCHOOL VIDEOS SECTION
   ============================================================ */
.school-videos-section {
  padding: 90px 0;
  background: var(--blue);
}

.school-videos-section .section-title {
  color: var(--white);
}

.school-videos-section .section-subtitle {
  color: rgba(255, 255, 255, .7);
}

.sv-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
}

.sv-featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
}

.sv-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, opacity .4s ease;
}

.sv-featured:hover img {
  transform: scale(1.03);
  opacity: .8;
}

.sv-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 50, .7) 0%, rgba(0, 20, 50, .1) 50%, transparent 100%);
}

.sv-featured::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px;
  height: 72px;
  background: rgba(253, 181, 21, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(253, 181, 21, .15);
  z-index: 2;
  transition: transform .3s, box-shadow .3s;
}

.sv-featured:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 24px rgba(253, 181, 21, .1);
}

.sv-featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.sv-featured-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.sv-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sv-info {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 24px 20px;
}

.sv-info-label {
  color: var(--gold) !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}

.sv-info-title {
  color: var(--white) !important;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sv-info-desc {
  color: rgba(255, 255, 255, .7) !important;
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 16px !important;
}

.sv-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--blue-dark);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.sv-watch-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.sv-watch-icon {
  width: 24px;
  height: 24px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.sv-thumb.active {
  border-color: var(--gold);
}

.sv-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}

.sv-thumb:hover img {
  opacity: .8;
}

.sv-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 20, 50, .75) 0%, rgba(0, 20, 50, .2) 100%);
}

.sv-thumb-play {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px;
  height: 22px;
  background: rgba(253, 181, 21, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-thumb-meta {
  position: absolute;
  top: 50%;
  left: 46px;
  transform: translateY(-50%);
  z-index: 2;
}

.sv-thumb-label {
  color: var(--gold) !important;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 2px !important;
}

.sv-thumb-title {
  color: #fff !important;
  font-size: .8rem;
  font-weight: 600;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Lightbox */
#sv-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#sv-lightbox.active {
  display: flex;
}

.sv-lightbox-inner {
  position: relative;
  width: 92%;
  max-width: 920px;
}

.sv-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.sv-iframe-wrap iframe,
.sv-iframe-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.sv-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .8);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .65);
}

.footer-col h4 {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, .65);
  font-size: .88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .5);
  font-size: .82rem;
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: var(--blue);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, .3);
}

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 70px 0;
}

.page-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  margin-top: 40px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  margin-top: 30px;
}

.page-content p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 1rem;
  color: #555;
}

.page-content li {
  margin-bottom: 6px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  align-items: start;
}

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
}

.sidebar-widget h4 {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-family: var(--font-body);
}

.sidebar-nav-list li {
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-nav-list li:last-child {
  border-bottom: none;
}

.sidebar-nav-list a {
  display: block;
  padding: 9px 0;
  font-size: .9rem;
  color: var(--text);
}

.sidebar-nav-list a:hover {
  color: var(--blue);
  padding-left: 4px;
}

.sidebar-nav-list a.active {
  color: var(--blue);
  font-weight: 600;
}

/* ============================================================
   PERSON CARDS
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.person-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.person-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.person-info {
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.person-name {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 4px;
}

.person-role {
  font-size: .85rem;
  color: var(--mid-gray);
}

.person-qual {
  font-size: .8rem;
  color: #888;
  margin-top: 4px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section {
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 50, 98, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: .82rem;
  color: var(--mid-gray);
  margin-top: 4px;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* ============================================================
   PLACEHOLDER STYLES
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .4);
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.img-placeholder.gold-ph {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: rgba(0, 50, 98, .5);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--off-white);
  padding: 90px 0;
}

.testimonials-mixed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testi-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.testi-text {
  background: var(--white);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-quote-icon {
  font-size: 5rem;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: .8;
  opacity: .25;
  position: absolute;
  top: 10px;
  left: 18px;
}

.testi-text-body {
  font-style: italic;
  color: #555;
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 24px;
  padding-top: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  margin: 0;
}

.testi-role {
  font-size: .8rem;
  color: var(--mid-gray);
  margin: 2px 0 0;
}

.testi-video {
  cursor: pointer;
}

.testi-video-thumb {
  position: relative;
  height: 100%;
  min-height: 240px;
  background: var(--blue-dark);
}

.testi-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, opacity .4s ease;
  min-height: 240px;
}

.testi-video:hover .testi-video-thumb img {
  transform: scale(1.05);
  opacity: .7;
}

.testi-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 50, .85) 0%, rgba(0, 20, 50, .2) 55%, transparent 100%);
}

.testi-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.testi-play-btn::before {
  content: '';
  width: 58px;
  height: 58px;
  background: rgba(253, 181, 21, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(253, 181, 21, .18);
  position: absolute;
  transition: transform .3s, box-shadow .3s;
}

.testi-video:hover .testi-play-btn::before {
  transform: scale(1.12);
  box-shadow: 0 0 0 16px rgba(253, 181, 21, .12);
}

.testi-play-btn svg {
  position: relative;
  z-index: 1;
}

.testi-video-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

.testi-video-tag {
  color: var(--gold) !important;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px !important;
}

.testi-video-name {
  color: #fff !important;
  font-size: .95rem;
  font-weight: 700;
  margin: 0 !important;
}

#testi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#testi-lightbox.active {
  display: flex;
}

.testi-lightbox-inner {
  position: relative;
  width: 92%;
  max-width: 860px;
}

.testi-lightbox-inner video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #000;
}

.testi-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   BOOK A TOUR — VIDEO GRID
   ============================================================ */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video-card-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.video-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, opacity .4s ease;
}

.video-card-thumb:hover img {
  transform: scale(1.05);
  opacity: .7;
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 50, .88) 0%, rgba(0, 20, 50, .2) 60%, transparent 100%);
}

.video-card-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
}

.video-card-label {
  color: var(--gold) !important;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 4px !important;
}

.video-card-title {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 !important;
}

.video-card-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 56px;
  height: 56px;
  background: rgba(253, 181, 21, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(253, 181, 21, .2);
  z-index: 2;
  transition: transform .3s ease, box-shadow .3s ease;
}

.video-card-thumb:hover::before {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 16px rgba(253, 181, 21, .15);
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.video-card-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 3;
}

#video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#video-lightbox.active {
  display: flex;
}

.video-lightbox-inner {
  position: relative;
  width: 92%;
  max-width: 860px;
}

.video-lightbox-inner video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #000;
}

.video-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   TEACHER CARD — clickable
   ============================================================ */
a.person-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.person-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

a.person-card:hover .person-name {
  color: var(--gold-dark);
}

.person-view-profile {
  display: inline-block;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}

a.person-card:hover .person-view-profile {
  color: var(--gold-dark);
}

/* ============================================================
   SINGLE TEACHER PROFILE PAGE
   ============================================================ */
.teacher-profile {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  align-items: start;
}

.teacher-profile-sidebar {
  position: sticky;
  top: 100px;
}

.teacher-photo-wrap {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.teacher-profile-photo {
  width: 100%;
  height: 500px;
  object-fit: contain;      /* was: cover */
  object-position: top center;
  background: var(--off-white); /* fills empty space instead of leaving it transparent */
  display: block;
}

.teacher-info-card {
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  border-top: 4px solid var(--gold);
}

.teacher-info-name {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.teacher-info-role {
  font-size: .9rem;
  color: var(--mid-gray);
  margin-bottom: 10px;
}

.teacher-dept-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.teacher-info-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 14px 0;
}

.teacher-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.teacher-info-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.teacher-info-text {
  font-size: .85rem;
  color: var(--dark-gray);
  line-height: 1.5;
}

.teacher-profile-main {
  padding-top: 10px;
}

.teacher-bio {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 30px;
}

.teacher-bio h3 {
  font-family: var(--font-heading);
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
}

.teacher-bio p {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.teacher-bio p:last-child {
  margin-bottom: 0;
}

.teacher-bio h2,
.teacher-bio h4 {
  color: var(--blue);
  margin: 20px 0 10px;
}

.teacher-bio ul,
.teacher-bio ol {
  margin: 10px 0 16px 20px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.teacher-profile-cta {
  background: var(--blue);
  border-radius: 12px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.teacher-profile-cta p {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  flex: 1;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — TABLET nav tighten (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {

  .nav-h-btn,
  .nav-menu-h>li>a {
    font-size: .78rem;
    padding: 0 8px;
  }

  .nav-apply-cta {
    padding: 8px 12px;
    font-size: .78rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE NAV (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  #main-nav {
    display: none;
  }

  .nav-apply-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 70px;
    justify-content: space-between;
  }

  .site-logo {
    margin-right: 0;
  }

  .site-logo img,
  .custom-logo-link img,
  .custom-logo {
    height: 70px;
  }
}

/* ============================================================
   RESPONSIVE — TABLET layout (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

  .welcome-grid,
  .acad-panel.active,
  .content-with-sidebar,
  .teacher-profile {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .news-grid,
  .testimonials-mixed-grid,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hs-strip-inner {
    grid-template-columns: auto 1fr;
  }

  .hs-strip-inner .btn {
    grid-column: 1 / -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .acad-panel-image {
    height: 260px;
  }

  .welcome-image-badge {
    bottom: -10px;
    right: -10px;
  }

  .teacher-profile-sidebar {
    position: static;
  }

  /* Videos section */
  .sv-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sv-right {
    width: 100%;
  }

  .sv-featured {
    width: 100%;
  }

  .sv-featured img {
    height: 320px;
  }

  .sv-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sv-thumbs::-webkit-scrollbar {
    display: none;
  }

  .sv-thumb {
    min-width: 220px;
    flex-shrink: 0;
  }

  .sv-thumb img {
    height: 90px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  .section-padding {
    padding: 44px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Top bar hidden on mobile */
  #top-bar {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: 40px 0 180px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

  .stat-item {
    padding: 12px 8px;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  /* School video */
  .school-video-section {
    padding: 50px 0;
  }

  #home-video-thumb img {
    height: 240px !important;
  }

  /* Page banner */
  .page-banner {
    padding: 50px 0 36px;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: .9rem;
  }

  /* All grids → 1 col */
  .features-grid,
  .news-grid,
  .testimonials-mixed-grid,
  .gallery-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  /* Teachers grid stays 2 col on mobile */
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Welcome */
  .welcome-grid {
    gap: 24px;
  }

  .welcome-image-wrap img {
    height: 240px;
  }

  .welcome-image-badge {
    position: static;
    margin-top: 12px;
    display: inline-flex;
  }

  .welcome-features {
    grid-template-columns: 1fr 1fr;
  }

  /* Academics tabs */
  .academics-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .academics-tabs::-webkit-scrollbar {
    display: none;
  }

  .acad-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .acad-panel.active {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .acad-panel-image {
    height: 220px;
    border-radius: 10px;
  }

  /* Head of school */
  .hs-strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .hs-photo {
    margin: 0 auto;
  }

  .hs-quote {
    font-size: .95rem;
  }

  /* Sidebar */
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  aside {
    order: 0;
  }

  .sidebar-widget {
    padding: 18px 16px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-section {
    max-width: 100%;
  }

  /* News */
  .news-card-image {
    height: 180px;
  }

  /* Person photo */
  .person-photo {
    height: 200px;
  }

  /* Teacher profile */
  .teacher-profile {
    gap: 20px;
  }

  .teacher-profile-photo {
    height: 280px;
  }

  .teacher-bio {
    padding: 20px 16px;
  }

  .teacher-profile-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: center;
    gap: 8px;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-buttons .btn {
    text-align: center;
  }

  /* Accreditations */
  .accred-logos {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* Buttons */
  .btn {
    padding: 11px 20px;
    font-size: .88rem;
  }

  /* Videos section */
  .school-videos-section {
    padding: 50px 0;
  }

  .sv-featured {
    border-radius: 12px;
  }

  .sv-featured img {
    height: 220px;
  }

  .sv-featured::before {
    width: 56px;
    height: 56px;
    box-shadow: 0 0 0 10px rgba(253, 181, 21, .15);
  }

  .sv-info {
    padding: 20px 16px;
  }

  .sv-info-title {
    font-size: 1.1rem;
  }

  .sv-watch-btn {
    width: 100%;
    justify-content: center;
  }

  .sv-thumbs {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .sv-thumbs::-webkit-scrollbar {
    display: none;
  }

  .sv-thumb {
    min-width: 180px;
    flex-shrink: 0;
  }

  .sv-thumb img {
    height: 80px;
  }

  .sv-thumb-title {
    max-width: 110px;
    font-size: .72rem;
  }
}

/* ============================================================
   VERY SMALL SCREENS (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {

  .hero h1 {
    font-size: 1.65rem;
  }

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

  .stat-number {
    font-size: 1.1rem;
  }

  .site-logo img,
  .custom-logo-link img,
  .custom-logo {
    height: 55px;
  }
}

/* ============================================================
   GALLERY CAROUSEL SECTION — White background version
   Performance notes:
   - CSS scroll-snap: native, GPU-accelerated scrolling, no JS animation loop
   - aspect-ratio reserves space => zero Cumulative Layout Shift
   - object-fit: cover keeps images cropped nicely at any size
   ============================================================ */

.gallery-slider-section {
  padding: 4rem 0;
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .2);
  border-radius: 3px;
}

.gallery-slide {
  position: relative;
  flex: 0 0 auto;
  width: 380px;
  aspect-ratio: 4/5;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  appearance: none;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.gallery-slide:hover img,
.gallery-slide:focus-visible img {
  transform: scale(1.05);
}

.gallery-slide:focus-visible {
  outline: 3px solid var(--gold, #c9a227);
  outline-offset: 2px;
}

.gallery-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  color: var(--blue-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  z-index: 2;
}

.gallery-arrow:hover {
  background: var(--gold);
  color: #fff;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
  transition: width .2s;
}

@media (max-width: 600px) {
  .gallery-slide {
    width: 68vw;
  }

  .gallery-arrow {
    display: none; /* rely on native touch swipe on mobile */
  }
}

/* ==== Gallery Lightbox (matches #sv-lightbox / #testi-lightbox pattern) ==== */

#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  align-items: center;
  justify-content: center;
}

#gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

#gallery-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.gallery-lightbox-caption {
  color: #fff;
  margin-top: .75rem;
  font-size: .95rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

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

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

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(0, 0, 0, .8);
}

@media (max-width: 600px) {
  .gallery-lightbox-close,
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}