/* ═══════════════════════════════════════════════════════════
   LVGI UX Fixes — Mobile, Testimonials, Breadcrumbs, Search,
   Contrast, Logo, Banner speed, Announcements
   Loaded LAST (after glass-blue.css)
   ═══════════════════════════════════════════════════════════ */

/* Screen-reader only */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ─── Bigger School Logo ──────────────────────────────────── */
.site-logo-img,
.custom-logo,
.custom-logo-link img {
  max-height: 64px !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

.is-front-page .site-header:not(.scrolled) .site-logo-img,
.is-front-page .site-header:not(.scrolled) .custom-logo {
  max-height: 64px !important;
  height: 64px !important;
  padding: 5px !important;
}

.site-header {
  height: auto !important;
  min-height: 80px !important;
}

.header-container {
  min-height: 80px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  .site-logo-img,
  .custom-logo {
    max-height: 56px !important;
    height: 56px !important;
    width: 56px !important;
  }
  .site-header,
  .header-container {
    min-height: 72px !important;
  }
}

/* ─── Header Search ───────────────────────────────────────── */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-navy, rgba(26, 61, 99, 0.3));
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy, #1A3D63);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
  background: var(--navy, #1A3D63);
  color: #fff;
  border-color: var(--navy, #1A3D63);
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 80vw);
  padding: 0.75rem;
  background: rgba(246, 250, 253, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(179, 207, 229, 0.7);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(10, 25, 49, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  z-index: 100;
}

.header-search-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search-panel form {
  display: flex;
  gap: 0.4rem;
}

.header-search-panel input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(74, 127, 167, 0.45);
  border-radius: 8px;
  background: #fff;
  color: #0A1931;
  font-size: 0.9rem;
}

.header-search-panel input[type="search"]:focus {
  outline: none;
  border-color: #4A7FA7;
  box-shadow: 0 0 0 3px rgba(74, 127, 167, 0.2);
}

.header-search-panel button[type="submit"] {
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1A3D63, #4A7FA7);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.is-front-page .site-header:not(.scrolled) .header-search-toggle {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ─── Mobile Hamburger — high visibility ──────────────────── */
.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A3D63, #4A7FA7) !important;
  border: 2px solid #B3CFE5 !important;
  border-radius: 10px !important;
  cursor: pointer;
  padding: 0 !important;
  box-shadow: 0 4px 14px rgba(10, 25, 49, 0.3);
  z-index: 1002;
  flex-shrink: 0;
}

.mobile-toggle:focus-visible {
  outline: 3px solid #B3CFE5;
  outline-offset: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #FFFFFF !important;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.is-front-page .site-header:not(.scrolled) .mobile-toggle {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
  backdrop-filter: blur(8px);
}

@media (max-width: 960px) {
  .mobile-toggle { display: flex !important; }
  .main-nav { display: none !important; }
  .header-actions .btn-sm { display: none; }
}

/* ─── Mobile Menu Overlay — fixed & readable ──────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 25, 49, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 0;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, #F6FAFD 0%, #EAF2F9 100%);
  box-shadow: -8px 0 40px rgba(10, 25, 49, 0.25);
  padding: calc(var(--header-height, 72px) + var(--topbar-height, 32px) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  text-align: left;
  margin: 0 0 1.5rem;
  padding: 0;
}

.mobile-nav-list li { margin: 0; }

.mobile-nav-list > li > a {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A1931 !important;
  padding: 0.85rem 0.75rem;
  display: block;
  border-radius: 10px;
  border-bottom: 1px solid rgba(179, 207, 229, 0.5);
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list .current-menu-item > a {
  background: rgba(179, 207, 229, 0.4);
  color: #1A3D63 !important;
}

.mobile-nav-list .sub-menu {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
  margin: 0;
}

.mobile-nav-list .sub-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #3D5875 !important;
  padding: 0.5rem 0.75rem;
  display: block;
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mobile-menu-search {
  margin-bottom: 1.25rem;
}

.mobile-menu-search form {
  display: flex;
  gap: 0.4rem;
}

.mobile-menu-search input[type="search"] {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(74, 127, 167, 0.45);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #0A1931;
  background: #fff;
}

.mobile-menu-search button {
  padding: 0.7rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: #1A3D63;
  color: #fff;
  font-weight: 600;
}

/* ─── Slow Hero Banner Ken Burns ──────────────────────────── */
.hero-gwh-img {
  animation: heroKenBurnsSlow 40s ease-in-out infinite alternate !important;
}

@keyframes heroKenBurnsSlow {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.rankings-ticker-track {
  animation-duration: 70s !important;
}

/* ─── Testimonials — equal-height aligned cards ───────────── */
.testimonials-slider,
.testimonials-slider.grid-4-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
}

.testimonial-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100%;
  padding: 1.5rem 1.25rem !important;
}

.testimonial-card blockquote {
  flex: 1 1 auto;
  margin: 0.75rem 0 1.25rem;
}

.testimonial-card blockquote p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #3D5875;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(179, 207, 229, 0.55);
}

.testimonial-author strong {
  display: block;
  color: #0A1931;
  font-size: 0.9rem;
}

.testimonial-author span {
  display: block;
  color: #3D5875;
  font-size: 0.78rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .testimonials-slider,
  .testimonials-slider.grid-4-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .testimonials-slider,
  .testimonials-slider.grid-4-row {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Breadcrumbs — consistent & high contrast ────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover { color: #B3CFE5 !important; }

.breadcrumb-sep { color: rgba(255, 255, 255, 0.45); }
.breadcrumb-current { color: #FFFFFF !important; font-weight: 600; }

.lvgi-breadcrumbs-bar {
  background: rgba(179, 207, 229, 0.25);
  border-bottom: 1px solid rgba(74, 127, 167, 0.2);
  padding: 0.65rem 0;
}

.lvgi-breadcrumbs-bar .breadcrumb a { color: #1A3D63 !important; }
.lvgi-breadcrumbs-bar .breadcrumb-current { color: #0A1931 !important; }
.lvgi-breadcrumbs-bar .breadcrumb-sep { color: #64809C; }

/* ─── Announcements & Upcoming Events ─────────────────────── */
.section-announcements {
  padding: clamp(2rem, 4vw, 3rem) 0 !important;
}

.announce-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.announce-panel,
.events-panel {
  padding: 1.5rem;
}

.announce-panel h3,
.events-panel h3 {
  font-size: 1.15rem !important;
  margin: 0 0 1.15rem !important;
  color: #0A1931 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.announce-list,
.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.announce-item,
.event-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(179, 207, 229, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.announce-item:hover,
.event-item:hover {
  border-color: rgba(74, 127, 167, 0.55);
  box-shadow: 0 6px 20px rgba(26, 61, 99, 0.1);
}

.announce-date,
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1A3D63, #4A7FA7);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.3rem;
  text-align: center;
  line-height: 1.15;
}

.announce-date .day,
.event-date .day {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading, 'Sora', sans-serif);
}

.announce-date .month,
.event-date .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.announce-body h4,
.event-body h4 {
  font-size: 0.95rem !important;
  margin: 0 0 0.3rem !important;
  color: #0A1931 !important;
  line-height: 1.35;
}

.announce-body p,
.event-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #3D5875;
  line-height: 1.5;
}

.announce-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1A3D63;
  background: rgba(179, 207, 229, 0.45);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

@media (max-width: 800px) {
  .announce-events-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Colour Contrast Improvements ────────────────────────── */
body {
  color: #2C4460 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #0A1931 !important;
}

.section-subtitle,
.overview-text,
.why-card p,
.program-card-compact p,
.news-card p,
.blog-card p,
.feature-item p {
  color: #3D5875 !important;
}

.section-eyebrow {
  color: #1A3D63 !important;
  font-weight: 700;
}

.stat-label,
.gwh-stat-label {
  color: rgba(255, 255, 255, 0.88) !important;
}

.content-stats .stat-label {
  color: #3D5875 !important;
}

.nav-list a {
  color: #0A1931 !important;
  font-weight: 600 !important;
}

.school-top-bar {
  color: #F6FAFD !important;
}

.school-top-bar a {
  color: #B3CFE5 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form labels contrast */
.floating-label label,
.form-group label {
  color: #3D5875 !important;
}

/* Button disabled / submitting state */
.lvgi-btn.is-submitting,
.lvgi-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Grade dropdown readable */
select#modal-grade,
select#modal-program,
select#qe-program,
select[name="grade"],
select[name="program"] {
  color: #0A1931 !important;
  background: #fff !important;
  min-height: 48px;
  appearance: auto;
  -webkit-appearance: menulist;
}

select option {
  color: #0A1931;
  background: #fff;
}

/* ─── Heading hierarchy helpers ───────────────────────────── */
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem) !important; }
.why-card h3,
.program-card-compact h3,
.news-card h3,
.blog-card h3,
.announce-body h4,
.event-body h4 {
  font-weight: 700;
}

/* ─── Performance helpers ─────────────────────────────────── */
img {
  content-visibility: auto;
}

.hero-gwh-img {
  content-visibility: visible;
}

/* Reduce heavy glass blur on mobile for speed */
@media (max-width: 768px) {
  .glass-card,
  .holo-card,
  .site-header {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  .page-bg-pattern::before,
  .page-bg-pattern::after {
    display: none;
  }

  /* Disable 3D tilt transforms conflicting with layout on small screens */
  .glass-card,
  .holo-card,
  .testimonial-card {
    transform: none !important;
  }

  .hero-gwh-img {
    animation: none !important;
  }

  [data-lvgi-float],
  .floating-card,
  .school-float-icon {
    transform: none !important;
  }

  .lvgi-btn,
  .gallery-item img,
  .campus-collage-item img {
    transition-duration: 0.2s !important;
  }
}

/* Keep testimonial cards from floating / tilting into a zig-zag */
.testimonials-slider .testimonial-card,
.testimonials-slider .glass-card {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gwh-img {
    animation: none !important;
  }
  .rankings-ticker-track {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Desktop feedback fixes — Jul 2026
   ═══════════════════════════════════════════════════════════ */

/* 1. Enquiry form — keep select labels above fields on load */
.floating-label select ~ label {
  top: -0.55rem !important;
  left: 0.75rem !important;
  font-size: 0.7rem !important;
  color: #1A3D63 !important;
  background: #fff !important;
  padding: 0 0.35rem !important;
  font-weight: 600 !important;
  transform: none !important;
}

.floating-label select {
  padding-top: 0.65rem !important;
  color: #0A1931 !important;
}

/* 4. Home hero — center "Knowledge Is Wealth" badge */
.hero-gwh-content {
  text-align: center;
  margin-inline: auto;
}

.hero-gwh-badge {
  margin-inline: auto;
}

.hero-gwh-actions {
  justify-content: center;
}

.hero-gwh-scroll {
  display: none !important;
}

/* 2 & 5. Facilities / News — stable grid alignment on load */
.facilities-grid-v2.grid-4-row,
.facilities-grid.grid-4-row,
.news-grid.grid-4-row {
  align-items: stretch !important;
}

.facility-card-v2,
.news-card,
.blog-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transform: none !important;
}

.facility-card-v2 .facility-img-wrap,
.news-card-image,
.blog-card-image {
  flex-shrink: 0;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.facility-card-v2 .facility-card-body,
.news-card-content,
.blog-card-content {
  flex: 1 1 auto;
}

[data-lvgi-float].facility-card-v2,
[data-lvgi-float].news-card,
[data-lvgi-float].blog-card {
  transform: none !important;
}

/* 8. Blog hover — maintain image size and aspect ratio */
.blog-card-image img,
.news-card-image img {
  transform: none !important;
  transition: opacity 0.3s ease !important;
}

.blog-card:hover .blog-card-image img,
.news-card:hover .news-card-image img {
  transform: none !important;
  opacity: 0.92;
}

.blog-card:hover,
.news-card:hover,
.facility-card-v2:hover {
  transform: none !important;
}

/* 3. Timeline navigation arrows */
.section-timeline {
  position: relative;
}

.timeline-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #1A3D63;
  background: #fff;
  color: #1A3D63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.timeline-nav-btn:hover:not(:disabled) {
  background: #1A3D63;
  color: #fff;
}

.timeline-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.timeline-wrapper {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.timeline-track {
  transform: none !important;
}

/* 7. Leadership portraits — show full face, not half-cropped */
.leadership-photo,
.leadership-photo-inline {
  aspect-ratio: 4 / 5 !important;
  max-height: none !important;
  overflow: hidden;
  border-radius: 14px;
}

.leadership-photo img,
.leadership-photo-inline img,
.leadership-img {
  max-height: none !important;
  object-position: center center !important;
}

/* 10. Academics — prevent overlapping level tags */
.academic-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.program-card-v2 .academic-levels .level-tag {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .timeline-controls {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   Header refresh — bigger logo + contact columns + mobile
   ═══════════════════════════════════════════════════════════ */

:root {
  --topbar-height: 42px;
  --header-height: 80px;
}

.school-top-bar {
  min-height: var(--topbar-height);
  display: block !important;
  background: #0A1931 !important;
  color: #E8F1F8 !important;
  font-size: 0.78rem;
  z-index: 1001;
  position: relative;
}

.school-top-bar-cols {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 0.75rem 1.5rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  width: 100%;
}

.top-bar-col {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #E8F1F8;
}

.top-bar-col svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.top-bar-col a {
  color: #B3CFE5 !important;
  font-weight: 600;
  text-decoration: none;
}

.top-bar-col a:hover {
  color: #fff !important;
}

.top-bar-phone {
  justify-content: center;
}

.top-bar-email {
  justify-content: flex-end;
}

.site-header {
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  z-index: 1000;
}

.header-container {
  min-height: var(--header-height) !important;
  height: 100% !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

/* Bigger logo — overridden by final alignment block below */
.site-logo {
  flex: 0 0 auto !important;
}

.site-logo-img,
.custom-logo,
.custom-logo-link img {
  width: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

.is-front-page .site-header:not(.scrolled) .site-logo-img,
.is-front-page .site-header:not(.scrolled) .custom-logo,
.is-front-page .site-header.scrolled .site-logo-img,
.is-front-page .site-header.scrolled .custom-logo {
  height: 64px !important;
  max-height: 64px !important;
}

.header-whatsapp {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.header-phone {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
}

.leadership-grid-profiles {
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  max-width: 980px !important;
  margin-inline: auto;
}

.leadership-grid-profiles .leadership-content {
  text-align: center;
  align-items: center;
  padding: 1.5rem;
}

.leadership-grid-profiles .leadership-photo-inline {
  width: min(260px, 100%);
  margin: 0 auto 1.1rem;
}

@media (max-width: 1100px) {
  .site-logo-img,
  .custom-logo,
  .custom-logo-link img {
    height: 58px !important;
    max-height: 58px !important;
  }
}

@media (max-width: 960px) {
  .header-whatsapp {
    display: inline-flex !important;
  }

  .header-enquire-desktop,
  .header-actions .header-enquire-desktop {
    display: none !important;
  }

  .header-search {
    display: none !important;
  }

  .header-actions {
    gap: 0.4rem !important;
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-flex !important;
    width: 48px !important;
    height: 48px !important;
    margin-left: 0.15rem;
  }
}

@media (max-width: 900px) {
  .school-top-bar-cols {
    grid-template-columns: 1fr;
  }
  .top-bar-phone,
  .top-bar-email {
    justify-content: flex-start;
  }
  .leadership-grid-profiles {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Mobile header & site polish ───────────────────────── */
@media (max-width: 768px) {
  :root {
    --topbar-height: 34px;
    --header-height: 78px;
  }

  /* Keep top bar visible but compact: phone + email only */
  .school-top-bar {
    display: block !important;
    font-size: 0.72rem !important;
  }

  .school-top-bar-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem 0.75rem !important;
    padding: 0.4rem 0.85rem !important;
  }

  .top-bar-address {
    display: none !important;
  }

  .top-bar-phone,
  .top-bar-email {
    justify-content: center !important;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .top-bar-email span,
  .top-bar-email a {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(26, 61, 99, 0.12) !important;
    box-shadow: 0 4px 18px rgba(10, 25, 49, 0.08);
  }

  .is-front-page .site-header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .is-front-page .site-header:not(.scrolled) .header-phone,
  .is-front-page .site-header:not(.scrolled) .mobile-toggle {
    color: #1A3D63;
  }

  .header-container {
    min-height: var(--header-height) !important;
    padding: 0 0.75rem !important;
    gap: 0.45rem !important;
  }

  /* Logo size on phone — final block below may refine */
  .site-logo-img,
  .custom-logo,
  .custom-logo-link img,
  .is-front-page .site-header:not(.scrolled) .site-logo-img,
  .is-front-page .site-header:not(.scrolled) .custom-logo,
  .is-front-page .site-header.scrolled .site-logo-img {
    height: 56px !important;
    max-height: 56px !important;
    width: 56px !important;
  }

  .header-phone,
  .header-whatsapp {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .mobile-toggle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
  }

  /* Full-screen mobile drawer */
  .mobile-menu {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    background: rgba(10, 25, 49, 0.45) !important;
    z-index: 1100 !important;
  }

  .mobile-menu-inner {
    width: min(100%, 420px) !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-left: auto !important;
    background: #fff !important;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.15rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(10, 25, 49, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.active .mobile-menu-inner {
    transform: translateX(0);
  }

  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(26, 61, 99, 0.12);
  }

  .mobile-menu-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }

  .mobile-menu-brand strong {
    display: block;
    color: #0A1931;
    font-size: 1rem;
    line-height: 1.2;
  }

  .mobile-menu-brand span {
    display: block;
    color: #4A7FA7;
    font-size: 0.8rem;
  }

  .mobile-nav-list {
    text-align: left !important;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav-list a {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #0A1931 !important;
    padding: 0.85rem 0.35rem !important;
    border-bottom: 1px solid rgba(26, 61, 99, 0.08);
    border-radius: 0 !important;
  }

  .mobile-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.85rem;
  }

  .mobile-nav-list .sub-menu a {
    font-size: 0.92rem !important;
    color: #3D5875 !important;
    padding: 0.55rem 0.35rem !important;
  }

  .mobile-menu-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .mobile-contact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.4rem;
    border-radius: 10px;
    background: #F0F6FB;
    color: #1A3D63 !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(74, 127, 167, 0.25);
  }

  .mobile-contact-wa {
    background: #E8F8EF !important;
    color: #128C7E !important;
    border-color: rgba(37, 211, 102, 0.35) !important;
  }

  .mobile-menu-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    margin-top: 0.25rem !important;
    width: 100%;
  }

  .mobile-menu-cta .lvgi-btn {
    width: 100% !important;
    justify-content: center;
    min-height: 48px;
  }

  .mobile-menu-address {
    margin: 0.25rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #5A7390;
    line-height: 1.4;
  }

  /* General mobile content polish */
  .hero-gwh-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem) !important;
  }

  .hero-gwh-actions {
    flex-direction: column !important;
    width: 100%;
  }

  .hero-gwh-actions .lvgi-btn {
    width: 100%;
    justify-content: center;
  }

  .programs-grid-compact .program-card-compact,
  .facility-card-v2,
  .news-card,
  .blog-card {
    max-width: none !important;
  }

  .enquire-sticky {
    display: none !important;
  }

  .whatsapp-float {
    bottom: 1.1rem !important;
    right: 1rem !important;
  }

  .back-to-top {
    bottom: 4.6rem !important;
    right: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 74px;
  }

  .site-logo-img,
  .custom-logo,
  .custom-logo-link img {
    height: 52px !important;
    width: 52px !important;
    max-height: 52px !important;
  }

  .school-top-bar-cols {
    grid-template-columns: 1fr !important;
  }

  .top-bar-email {
    display: none !important;
  }

  .top-bar-phone {
    justify-content: center !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Logo alignment fix — keep crest fully inside header
   ═══════════════════════════════════════════════════════════ */

:root {
  --header-height: 80px;
}

.school-top-bar {
  position: relative;
  z-index: 1002;
  overflow: hidden;
}

.site-header {
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  max-height: var(--header-height) !important;
  overflow: visible !important;
  z-index: 1000;
}

.header-container {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  min-height: var(--header-height) !important;
  max-height: var(--header-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--header-height) !important;
  max-height: var(--header-height) !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

.site-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: 0 !important;
}

.site-logo-img,
.custom-logo,
.custom-logo-link img,
.is-front-page .site-header:not(.scrolled) .site-logo-img,
.is-front-page .site-header:not(.scrolled) .custom-logo,
.is-front-page .site-header.scrolled .site-logo-img,
.is-front-page .site-header.scrolled .custom-logo {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(10, 25, 49, 0.14);
  vertical-align: middle !important;
  position: relative !important;
  top: 0 !important;
  transform: none !important;
}

.is-front-page .site-header {
  top: var(--topbar-height) !important;
}

.is-front-page .site-header.scrolled {
  top: 0 !important;
}

@media (max-width: 1100px) {
  .site-logo-img,
  .custom-logo,
  .custom-logo-link img,
  .is-front-page .site-header:not(.scrolled) .site-logo-img,
  .is-front-page .site-header.scrolled .site-logo-img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }
}

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

  .site-logo {
    height: var(--header-height) !important;
  }

  .site-logo-img,
  .custom-logo,
  .custom-logo-link img,
  .is-front-page .site-header:not(.scrolled) .site-logo-img,
  .is-front-page .site-header.scrolled .site-logo-img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    padding: 4px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Solid fully-visible header on ALL pages + bigger logo
   ═══════════════════════════════════════════════════════════ */

:root {
  --topbar-height: 42px;
  --header-height: 96px;
}

.school-top-bar {
  position: relative !important;
  z-index: 1003 !important;
}

/* Always solid white header — never transparent / half-visible */
.site-header,
.is-front-page .site-header,
.is-front-page .site-header:not(.scrolled),
.is-front-page .site-header.scrolled,
body.blog .site-header,
body.single .site-header,
body.archive .site-header,
body.page .site-header {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  max-height: var(--header-height) !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(26, 61, 99, 0.14) !important;
  box-shadow: 0 4px 18px rgba(10, 25, 49, 0.08) !important;
  z-index: 1002 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Keep nav text dark & readable on every page */
.site-header .nav-list a,
.is-front-page .site-header:not(.scrolled) .nav-list a,
.is-front-page .site-header.scrolled .nav-list a {
  color: #0A1931 !important;
}

.site-header .nav-list a:hover,
.site-header .nav-list .current-menu-item a,
.is-front-page .site-header:not(.scrolled) .nav-list a:hover,
.is-front-page .site-header:not(.scrolled) .nav-list .current-menu-item a {
  background: rgba(26, 61, 99, 0.08) !important;
  color: #1A3D63 !important;
}

.site-header .header-phone,
.is-front-page .site-header:not(.scrolled) .header-phone {
  color: #1A3D63 !important;
  border-color: rgba(26, 61, 99, 0.3) !important;
  background: #fff !important;
}

.site-header .header-search-toggle,
.is-front-page .site-header:not(.scrolled) .header-search-toggle {
  color: #1A3D63 !important;
  border-color: rgba(26, 61, 99, 0.3) !important;
  background: #fff !important;
}

/* Bigger centered logo */
.site-logo-img,
.custom-logo,
.custom-logo-link img,
.is-front-page .site-header:not(.scrolled) .site-logo-img,
.is-front-page .site-header:not(.scrolled) .custom-logo,
.is-front-page .site-header.scrolled .site-logo-img,
.is-front-page .site-header.scrolled .custom-logo {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(10, 25, 49, 0.16) !important;
  top: 0 !important;
  transform: none !important;
}

/* Hero sits BELOW solid header (no underlap / half-cut header) */
.hero-gwh,
.is-front-page .hero-gwh {
  margin-top: 0 !important;
  padding-top: 2.5rem !important;
}

.page-hero {
  margin-top: 0 !important;
}

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

  .site-logo-img,
  .custom-logo,
  .custom-logo-link img,
  .is-front-page .site-header:not(.scrolled) .site-logo-img,
  .is-front-page .site-header.scrolled .site-logo-img {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 78px; }

  .site-logo-img,
  .custom-logo,
  .custom-logo-link img,
  .is-front-page .site-header:not(.scrolled) .site-logo-img,
  .is-front-page .site-header.scrolled .site-logo-img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
  }

  .is-front-page .site-header:not(.scrolled) {
    background: #ffffff !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   New hero layout
   ═══════════════════════════════════════════════════════════ */

.hero-gwh-v2 {
  min-height: clamp(520px, 78vh, 760px) !important;
}

.hero-gwh-v2 .hero-gwh-media {
  min-height: 100%;
}

.hero-gwh-v2 .hero-gwh-img {
  object-position: center 28% !important;
}

.hero-gwh-v2 .hero-gwh-overlay {
  background:
    linear-gradient(180deg, rgba(10, 25, 49, 0.55) 0%, rgba(10, 25, 49, 0.72) 55%, rgba(10, 25, 49, 0.88) 100%) !important;
}

.hero-gwh-v2 .hero-gwh-content {
  max-width: 820px !important;
  margin-inline: auto !important;
  text-align: center !important;
  padding-top: 3.5rem !important;
  padding-bottom: 7rem !important;
}

.hero-gwh-v2 .hero-gwh-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem) !important;
  line-height: 1.12 !important;
}

.hero-gwh-v2 .hero-gwh-actions {
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-gwh-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-gwh-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Gallery grid — clear 20+ photo layout */
.gallery-masonry {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}

.gallery-item {
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1100px) {
  .gallery-masonry { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr) !important; }

  .hero-gwh-v2 .hero-gwh-content {
    padding-top: 2rem !important;
    padding-bottom: 6rem !important;
  }

  .hero-gwh-v2 .hero-gwh-actions .lvgi-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr !important; }
}
