:root {
  --brand-navy: #003366;
  --brand-navy-hover: #001f3d;
  --brand-gradient: linear-gradient(to right bottom, #4f46e5, #604be9, #7051ed, #7e57f2, #8b5df6);
  --brand-gradient-soft: linear-gradient(135deg, #4f46e5 0%, #6d53ee 55%, #8b5df6 100%);
  --brand-dark: #1f1b4d;
  --ink-soft: #4b5563;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border-soft: #e2e8f0;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-padding-top: 5.5rem;
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 4.25rem;
  }
}

@media (max-width: 575.98px) {
  html {
    /* Match sticky navbar height on phones (anchor scroll uses JS; this helps hash-only loads) */
    scroll-padding-top: 4.5rem;
  }
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.12);
  z-index: 1030;
}

.site-navbar-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-right: auto;
}

.site-navbar .navbar-brand,
.site-navbar-logo-link {
  color: #000;
  font-weight: 700;
  flex-shrink: 0;
}

.site-navbar-collapse {
  flex-grow: 1;
  min-width: 0;
  overflow: visible !important;
}

.site-navbar .navbar-nav {
  flex-wrap: wrap;
  row-gap: 0.35rem;
  justify-content: flex-end;
}

.site-navbar .nav-link {
  color: #000;
  font-weight: 500;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-navbar-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.site-navbar-divider {
  width: 1px;
  height: 1.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.site-navbar-tagline {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #5f60ee;
  max-width: 22rem;
  min-width: 0;
}

@media (min-width: 1200px) {
  .site-navbar-tagline {
    font-size: 1.1rem;
  }
}

.site-navbar-toggler {
  border-color: rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.55rem;
}

.site-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

.site-navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar-cta {
  border: 2px solid #000;
  color: #000 !important;
  border-radius: 999px;
  padding: 0.35rem 1rem !important;
  margin-left: 0.25rem;
  font-weight: 600;
  text-decoration: none !important;
}

.site-navbar-cta:hover,
.site-navbar-cta:focus {
  background-color: #000;
  color: #fff !important;
  text-decoration: none !important;
}

.hero-section {
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -6rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  left: -4rem;
  bottom: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.form-glass {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.form-glass .form-control,
.form-glass .form-select {
  border-radius: 0.8rem;
  border-color: #dbe2ea;
}

.form-glass .form-control:focus,
.form-glass .form-select:focus {
  border-color: #6d53ee;
  box-shadow: 0 0 0 0.2rem rgba(109, 83, 238, 0.14);
}

/* Slightly smaller enquiry card (~10%) */
.form-glass--compact {
  zoom: 0.9;
}

/* Anchor scroll: reserve space under sticky navbar (native + visual alignment with JS scroll) */
#enquiry {
  scroll-margin-top: 6rem;
}

@media (max-width: 991.98px) {
  #enquiry {
    scroll-margin-top: 5.25rem;
  }
}

@media (max-width: 575.98px) {
  #enquiry {
    scroll-margin-top: 5rem;
  }
}

.form-glass--compact .mb-3 {
  margin-bottom: 0.65rem !important;
}

.btn-submit-enquiry {
  --enquiry-btn: #5f60ee;
  --enquiry-btn-hover: #4a4bd8;
  --enquiry-btn-active: #3f40c4;
  background-color: var(--enquiry-btn);
  border: 2px solid var(--enquiry-btn);
  color: #fff;
  font-weight: 600;
  border-radius: 0.65rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-submit-enquiry:hover {
  background-color: var(--enquiry-btn-hover);
  border-color: var(--enquiry-btn-hover);
  color: #fff;
  box-shadow: 0 8px 22px rgba(95, 96, 238, 0.45);
}

.btn-submit-enquiry:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(95, 96, 238, 0.45);
}

.btn-submit-enquiry:focus-visible:hover {
  box-shadow: 0 8px 22px rgba(95, 96, 238, 0.45), 0 0 0 0.2rem rgba(95, 96, 238, 0.35);
}

.btn-submit-enquiry:active {
  background-color: var(--enquiry-btn-active);
  border-color: var(--enquiry-btn-active);
  color: #fff;
  transform: translateY(1px);
  box-shadow: none;
}

.hero-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.hero-image-main {
  width: 100%;
  display: block;
}

.section-title {
  letter-spacing: -0.02em;
  margin-top: 20px;
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  line-height: 1.25;
  padding-inline: 0.25rem;
}

.hero-admissions-badge {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.45rem 1rem !important;
}

.hero-lead {
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-sub {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
}

.cta-strip-title {
  font-size: clamp(1.05rem, 3.2vw, 1.75rem);
  line-height: 1.35;
}

/* #programmes {
  position: relative;
  margin-top: 40px;
  margin-bottom: 40px;
} */

#programmes::before {
  content: "";
  position: absolute;
  inset: 2.2rem 0 auto;
  height: 13rem;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08), rgba(139, 93, 246, 0.06));
  z-index: 0;
}

#programmes .container {
  position: relative;
  z-index: 1;
}

.programme-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.98) 100%);
  border: 1px solid rgba(95, 96, 238, 0.14);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.programme-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 96, 238, 0.24);
  box-shadow: 0 24px 54px rgba(31, 27, 77, 0.14);
}

.programme-card .card-header {
  background: var(--brand-gradient-soft);
  color: #fff;
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.programme-card .card-header::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3.5rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.programme-card .card-header h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.programme-card .table {
  margin-bottom: 0;
  font-size: 0.95rem;
  background: transparent;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.programme-card .table thead th {
  background: linear-gradient(180deg, #f1eeff 0%, #e5ddff 100%);
  color: #47338f;
  border-bottom: 1px solid #d8ccff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.9rem 1rem;
}

.programme-card .table tbody td {
  background: rgba(255, 255, 255, 0.96);
  border-color: #e6defa;
  color: #2d3748;
  padding: 0.82rem 1rem;
  word-break: break-word;
  hyphens: auto;
  vertical-align: top;
}

.programme-card .table > :not(caption) > * > * {
  background-color: transparent !important;
}

.programme-card .table th:first-child,
.programme-card .table td:first-child {
  width: 36%;
}

.programme-card .table tbody td:first-child {
  color: #4a3896;
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(109, 83, 238, 0.12) 0%, rgba(139, 93, 246, 0.05) 100%);
}

.programme-card .table th:nth-child(2),
.programme-card .table td:nth-child(2) {
  width: 64%;
}

.programme-card .table tbody tr:nth-child(even) td {
  background-color: rgba(248, 245, 255, 0.98) !important;
}

.programme-card .table tbody tr:nth-child(even) td:first-child {
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.12) 0%, rgba(139, 93, 246, 0.045) 100%) !important;
}

.programme-card .table tbody tr:hover td {
  background-color: rgba(238, 232, 255, 0.98) !important;
}

.programme-card .table tbody tr:hover td:first-child {
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.18) 0%, rgba(139, 93, 246, 0.08) 100%) !important;
}

.programme-card .card-footer {
  border-top: 1px solid rgba(95, 96, 238, 0.12) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%) !important;
  padding-bottom: 15px !important;
}

.programme-card .card-footer p {
  color: #42526b !important;
  font-size: 0.94rem;
  line-height: 1.65;
}

.programme-enquire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  width: fit-content;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f1b4d;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.programme-enquire-btn:hover,
.programme-enquire-btn:focus {
  transform: translateY(-2px);
}

.programme-grid > [class*="col-"] {
  display: flex;
}

.programme-grid .programme-card {
  width: 100%;
}

.repeater-highlight {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--brand-gradient-soft);
  border: 1px solid rgba(95, 96, 238, 0.24);
  box-shadow: 0 24px 58px rgba(19, 30, 78, 0.2);
  color: #fff;
}

.repeater-highlight::before {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.repeater-highlight__head,
.repeater-highlight__body {
  position: relative;
  z-index: 1;
}

.repeater-highlight__head {
  padding: 1.4rem 1.5rem 1rem;
}

.repeater-highlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #ffc107;
  border: 1px solid #ffc107;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b2100;
}

.repeater-highlight__title {
  margin-top: 0.95rem;
  font-size: clamp(3.0rem, 2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.repeater-highlight__intro {
  max-width: 54rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.repeater-highlight__body {
  padding: 0 1.5rem 1.5rem;
}

.repeater-metric {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.repeater-metric__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.repeater-metric__value {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.repeater-focus-card,
.repeater-pill-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 255, 0.92);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  color: #15315e;
}

.repeater-focus-card__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repeater-focus-card p,
.repeater-pill-card p {
  color: #4a5c7a;
  line-height: 1.7;
}

.repeater-pill-list {
  list-style: none;
  padding-left: 0;
}

.repeater-pill-list li {
  position: relative;
  padding-left: 1.55rem;
  color: #334155;
  line-height: 1.7;
}

.repeater-pill-list li + li {
  margin-top: 0.6rem;
}

.repeater-pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5f60ee 0%, #274fa6 100%);
  box-shadow: 0 0 0 0.22rem rgba(95, 96, 238, 0.14);
}

.features-section {
  background: var(--brand-gradient-soft);
}

.feature-item {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0.3;
  animation: featureGlow 3.8s ease-in-out infinite;
  pointer-events: none;
}

.feature-item > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 2.85rem;
  height: 2.85rem;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.18rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.45);
  animation: featureIconPulse 2.4s ease-in-out infinite;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.cta-strip {
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.26);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.video-testimonials-section .section-title {
  margin-bottom: 0.2rem;
}

.video-carousel {
  margin: 0 -0.55rem;
}

.testimonial-slide {
  margin: 0 0.55rem;
  background: #ffffff;
  border: 1px solid #e5eaf4;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: auto;
}

.testimonial-slide__media {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.9rem 0.9rem 0 0;
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.testimonial-slide__caption {
  flex: 0 0 auto;
  padding: 0 0.15rem 0.35rem;
}

.testimonial-slide iframe {
  border: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  touch-action: manipulation;
}

.testimonial-slide__name {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0.85rem 1rem 0.25rem;
  color: #0f172a;
  text-align: center;
}

.testimonial-slide__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 1rem 1rem;
  text-align: center;
}

.video-carousel .slick-track {
  display: flex !important;
}

.video-carousel .slick-slide {
  height: auto !important;
}

.video-carousel .slick-slide > div {
  height: auto;
  min-height: 0;
}

.video-carousel .slick-prev,
.video-carousel .slick-next {
  width: 38px;
  height: 38px;
  z-index: 2;
}

.video-carousel .slick-prev:before,
.video-carousel .slick-next:before {
  color: #312e81;
  font-size: 32px;
}

.video-carousel .slick-dots li button:before {
  color: #8b5df6;
}

.video-carousel .slick-dots li.slick-active button:before {
  color: #4f46e5;
}

.demo-section {
  background: var(--brand-gradient-soft);
}

.demo-video-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.demo-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-frame-wrap {
  background: #0f172a;
}

.demo-frame-wrap iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.demo-video-body {
  padding: 1rem 1.2rem 1.15rem;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.08), rgba(139, 93, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(79, 70, 229, 0.16);
  border-color: #d8dcff;
}

.about-stat:hover::before {
  opacity: 1;
}

.about-stat > * {
  position: relative;
  z-index: 1;
}

.about-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #fff;
  background: var(--brand-gradient-soft);
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.28);
  animation: iconFloat 3.6s ease-in-out infinite;
}

.about-stat h3 {
  color: var(--brand-dark);
}

.about-content-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08) !important;
}

.contact-chip {
  background: var(--surface-muted);
  border-radius: 0.75rem;
  color: var(--ink-soft);
  border: 1px solid #e8edf4;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  min-width: 0;
  word-break: break-word;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-chip i {
  color: #5b4eed;
  font-size: 1rem;
}

.contact-chip:hover {
  transform: translateY(-3px);
  border-color: #d8dcff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.12);
}

@keyframes iconFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes featureGlow {
  0%,
  100% { transform: translateX(-8%) translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateX(10%) translateY(-2%) scale(1.08); opacity: 0.45; }
}

@keyframes featureIconPulse {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.footer-gradient {
  background: #ddd8f9;
  color: var(--brand-navy);
}

.footer-container {
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 576px) {
  .footer-container {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 992px) {
  .footer-container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

.footer-top {
  margin-bottom: 0;
}

.footer-top .footer-copy {
  line-height: 1.45;
  margin-bottom: 0;
}

.footer-logo-link {
  line-height: 0;
}

.footer-logo {
  height: auto;
  max-height: 3.35rem;
  width: auto;
  max-width: min(300px, 100%);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .footer-logo {
    max-height: 4rem;
    max-width: min(320px, 100%);
  }
}

@media (min-width: 992px) {
  .footer-logo {
    max-height: 4.25rem;
    max-width: min(340px, 100%);
  }
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #5e60f2 0%, #6f73ff 100%);
  box-shadow: 0 8px 20px rgba(95, 96, 238, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(95, 96, 238, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: brightness(1.06);
}

.footer-social-link:focus-visible {
  outline: 2px solid #5f60ee;
  outline-offset: 3px;
}

.footer-social-link i {
  transform: translateY(1px);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(0, 51, 102, 0.62) !important;
}

.enquire-float {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  font-weight: 600;
  border: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  max-width: calc(100vw - 1.5rem);
  white-space: nowrap;
}

.enquire-float:hover {
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .enquire-float {
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
  }
}

/* —— Mobile & tablet layout —— */
@media (max-width: 991.98px) {
  .site-navbar-logo {
    height: 2.1rem;
  }

  .site-navbar .navbar-collapse {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .site-navbar .navbar-nav {
    width: 100%;
    justify-content: stretch;
  }

  .site-navbar .nav-item {
    width: 100%;
    text-align: center;
  }

  .site-navbar .nav-link {
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
  }

  .site-navbar .nav-link.site-navbar-cta {
    margin-top: 0.35rem;
    display: inline-block;
    width: auto;
  }

  .hero-section .display-5 {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }

  .hero-section .container {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 767.98px) {
  .programme-card .table {
    font-size: 0.85rem;
  }

  .programme-card .table thead th,
  .programme-card .table tbody td {
    padding: 0.55rem 0.65rem;
  }

  .programme-card .card-footer {
    padding: 1rem !important;
  }

  .programme-enquire-btn {
    min-width: 9.5rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.875rem;
  }

  .programme-card .card-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .repeater-highlight__head {
    padding: 1.15rem 1rem 0.9rem;
  }

  .repeater-highlight__body {
    padding: 0 1rem 1rem;
  }

  .repeater-focus-card,
  .repeater-pill-card,
  .repeater-metric {
    padding: 1rem;
  }

  .feature-item {
    padding: 1.15rem !important;
  }

  .video-carousel {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0.25rem;
  }

  .video-carousel .slick-prev,
  .video-carousel .slick-next {
    width: 32px;
    height: 32px;
  }

  .video-carousel .slick-prev {
    left: 0;
  }

  .video-carousel .slick-next {
    right: 0;
  }

  .video-carousel .slick-prev:before,
  .video-carousel .slick-next:before {
    font-size: 26px;
  }

  .testimonial-slide__name {
    font-size: 0.95rem;
    margin-left: 0.65rem;
    margin-right: 0.65rem;
    margin-top: 0.75rem;
  }

  .testimonial-slide__text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-left: 0.65rem;
    margin-right: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .testimonial-slide__caption {
    padding: 0 0.1rem 0.15rem;
  }

  .demo-video-body {
    padding: 0.85rem 1rem 1rem;
  }

  .about-content-card .card-body {
    padding: 1.15rem !important;
  }

  .footer-social-link {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  #programmes .text-center.mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .form-glass .card-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .form-glass .form-control-lg,
  .form-glass .form-select-lg {
    font-size: 1rem;
    min-height: calc(1.5em + 0.75rem + 2px);
  }
}
