/* ==========================================================================
   HEART STUDIO & HEART ACADEMY - MODERN PREMIUM DESIGN SYSTEM
   Fonts: Fredoka (Headings) + Nunito (Body)
   Brand Colors: Pink (#FF5C8A) & Teal (#06B6B6)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
  /* Brand Accents */
  --pink: #FF5C8A;
  --pink-light: #FFF0F5;
  --pink-soft: #FFE4EC;
  --pink-hover: #E84674;
  --pink-gradient: linear-gradient(135deg, #FF5C8A 0%, #FFA1BC 100%);
  --pink-glow: rgba(255, 92, 138, 0.25);

  --teal: #06B6B6;
  --teal-light: #E6F9F9;
  --teal-soft: #CCF2F2;
  --teal-hover: #049696;
  --teal-gradient: linear-gradient(135deg, #06B6B6 0%, #3AD4D4 100%);
  --teal-glow: rgba(6, 182, 182, 0.25);

  --yellow: #FFB703;
  --yellow-light: #FFF8E6;
  --purple: #8B5CF6;
  --purple-light: #F3EDFF;
  --coral: #FF7B54;
  --coral-light: #FFF1EC;
  --green: #10B981;
  --green-light: #ECFDF5;

  /* Neutral Tones */
  --dark: #1E293B;
  --dark-heading: #0F172A;
  --text: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --bg-body: #FAF9F6;
  --bg-warm: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-soft-pink: #FFF6F8;
  --bg-soft-teal: #F2FCFC;
  
  --border: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-pink: #FFD4E2;
  --border-teal: #B2EBEB;

  /* Typography */
  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 22px 50px rgba(255, 92, 138, 0.18);
  --shadow-teal-hover: 0 22px 50px rgba(6, 182, 182, 0.18);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Announcement tickers have been retired across Heart Studio and Academy. */
.top-announcement-bar {
  display: none;
}

/* Header markup is normalized in main.js; never expose its pre-normalized links. */
body:not(.navigation-ready) .desktop-nav,
body:not(.navigation-ready) .nav-actions {
  visibility: hidden;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
}

/* Sleek fade in / out page transition */
html.page-transition-exiting body {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

@keyframes sleekPageEnter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body.page-entering {
  animation: sleekPageEnter 0.24s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none !important;
  }
  html.page-transition-exiting body,
  body.page-entering {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-heading);
  font-weight: 600;
  line-height: 1.25;
}

/* Created by the reusable GSAP heading entrance. Word wrappers preserve normal line breaks. */
.heading-word {
  display: inline-block;
  white-space: nowrap;
}

.heading-char {
  display: inline-block;
  transform-origin: center center;
}

/* All section titles and headings default to font-weight 600 */
.section-title, .portal-title, .programme-card-title, .stat-counter-number, .studio-title, .academy-block-title, .footer-brand-title, .footer-col-title {
  font-weight: 600;
}

/* Homepage Hero H1 exception */
.hero-home h1, .hero-home .hero-title {
  font-weight: 700;
}

.studio-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: var(--dark-heading);
  margin-bottom: 1rem;
  line-height: 1.15;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Programme metadata cards shared by Heart Studio and Heart Academy. */
.meta-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 92px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.meta-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.meta-chip-icon,
.meta-chip > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--pink-light);
  border-radius: 12px;
  font-size: 1.1rem;
}

.meta-chip-copy {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-align: center;
}

.meta-chip-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-chip-value,
.meta-chip strong {
  display: block;
  color: var(--dark-heading);
  font-size: 0.95rem;
  line-height: 1.35;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ==========================================================================
   CONTAINER & LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

/* Add 5% viewport gutters on desktop while retaining the existing mobile layout. */
@media (min-width: 1025px) {
  .container {
    max-width: none;
    box-sizing: border-box;
    padding-left: 5%;
    padding-right: 5%;
  }
}

.section {
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
}

.section-sm {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-lg {
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.25rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.badge-pink {
  background: var(--pink-light);
  color: var(--pink);
  border: 1px solid var(--border-pink);
}

.badge-teal {
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}

.badge-yellow {
  background: var(--yellow-light);
  color: #B45309;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-heading);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   TOP NOTIFICATION BAR & DUAL BRAND BAR
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #FF5C8A 0%, #8B5CF6 50%, #06B6B6 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.top-announcement-bar a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.top-announcement-bar a:hover {
  opacity: 0.85;
}

.top-brand-switcher {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.brand-tabs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-switch-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.brand-switch-btn.active-studio, .brand-switch-btn:hover.is-studio {
  background: var(--pink-light);
  color: var(--pink);
}

.brand-switch-btn.active-academy, .brand-switch-btn:hover.is-academy {
  background: var(--teal-light);
  color: var(--teal);
}

.top-contact-direct {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.top-contact-direct a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-contact-direct a:hover {
  color: var(--pink);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 100vw;
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 100%;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-contact-link {
  color: var(--dark-heading);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-contact-link:hover {
  color: var(--pink);
}

.programme-section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
}

@media (min-width: 1025px) {
  .portal-section-subtitle {
    white-space: nowrap;
  }
}

.logo-fallback-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
}

.logo-fallback-text span.studio-pink {
  color: var(--pink);
}

.logo-fallback-text span.academy-teal {
  color: var(--teal);
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--pink);
  background: var(--pink-light);
}

.nav-link.academy-theme:hover, .nav-link.academy-theme.active {
  color: var(--teal);
  background: var(--teal-light);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.dropdown-link .dropdown-icon {
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.dropdown-link .dropdown-text {
  display: flex;
  flex-direction: column;
}

.dropdown-link .dropdown-title {
  font-weight: 700;
  color: var(--dark-heading);
}

.dropdown-link .dropdown-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dropdown-link[href="adults-corporate.html"] {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0.65rem !important;
}

@media (min-width: 769px) {
  .desktop-nav .dropdown-sub {
    display: none;
  }
}

.dropdown-link:hover {
  background: var(--bg-soft-pink);
  color: var(--pink);
  transform: translateX(4px);
}

.dropdown-link.academy-item:hover {
  background: var(--bg-soft-teal);
  color: var(--teal);
}

/* Header CTAs */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-trial-nav {
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--dark-heading);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-primary-pink {
  background: var(--pink);
  color: #FFFFFF;
  box-shadow: 0 8px 20px var(--pink-glow);
}

.btn-primary-pink:hover {
  background: var(--pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 92, 138, 0.35);
  color: #FFFFFF;
}

.btn-primary-teal {
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: 0 8px 20px var(--teal-glow);
}

.btn-primary-teal:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 182, 0.35);
  color: #FFFFFF;
}

.btn-outline-pink {
  background: #FFFFFF;
  color: var(--pink);
  border-color: var(--pink);
}

.btn-outline-pink:hover {
  background: var(--pink-light);
  transform: translateY(-2px);
}

.btn-outline-teal {
  background: #FFFFFF;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   ORGANIC BLOBS & DECORATIONS
   ========================================================================== */
.blob-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.blob-pink {
  background: radial-gradient(circle, #FF5C8A 0%, rgba(255, 92, 138, 0) 70%);
  width: 400px;
  height: 400px;
}

.blob-teal {
  background: radial-gradient(circle, #06B6B6 0%, rgba(6, 182, 182, 0) 70%);
  width: 380px;
  height: 380px;
}

.blob-yellow {
  background: radial-gradient(circle, #FFB703 0%, rgba(255, 183, 3, 0) 70%);
  width: 320px;
  height: 320px;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-pink-border:hover {
  border-color: var(--border-pink);
  box-shadow: var(--shadow-hover);
}

.card-teal-border:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-teal-hover);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* =====================================================================
   DSA SHOWCASE
   ===================================================================== */
.dsa-showcase {
  background: #FFFFFF;
}

.dsa-showcase__inner {
  position: relative;
}

.dsa-showcase__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 0;
}

.dsa-showcase__content .section-title {
  margin-bottom: 1rem;
}

.dsa-showcase__intro {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
}

.dsa-showcase__points {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.dsa-showcase__points li {
  position: relative;
  padding-left: 1.85rem;
}

.dsa-showcase__points li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.dsa-showcase__portrait {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.dsa-showcase__success {
  position: relative;
}

.dsa-showcase__success-content {
  position: relative;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2.25vw, 2.25rem);
  background: var(--bg-soft-pink);
  border: 3px solid var(--pink);
  border-radius: 0.2rem;
}

.dsa-showcase__success-content::before,
.dsa-showcase__success-content::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.dsa-showcase__success-content::before {
  inset: -0.42rem;
  border: 2px dashed rgba(219, 39, 119, 0.8);
  transform: rotate(-0.45deg);
}

.dsa-showcase__success-content::after {
  inset: -0.16rem;
  border: 1px solid rgba(219, 39, 119, 0.75);
  transform: rotate(0.3deg);
}

.dsa-showcase__success-content > * {
  position: relative;
  z-index: 1;
}

.dsa-showcase__stat {
  color: var(--pink);
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 4.4vw, 4.15rem);
  font-weight: 700;
  line-height: 1;
}

.dsa-showcase__stat-copy {
  margin: 0.6rem 0 1.5rem;
  color: var(--dark-heading);
  font-size: 1.03rem;
  font-weight: 700;
}

.dsa-showcase__school-title {
  margin-bottom: 0.8rem;
  color: var(--dark-heading);
  font-weight: 700;
}

.dsa-showcase__schools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.dsa-showcase__decor {
  position: absolute;
  z-index: 0;
  width: clamp(3.75rem, 6vw, 5.5rem);
  height: auto;
  pointer-events: none;
}

.dsa-showcase__decor--heart {
  top: -1.4rem;
  right: 0.5%;
  transform: rotate(10deg);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-home {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.studio-hero-banner::after,
.academy-hero-banner::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: clamp(3rem, 8vw, 7rem);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF);
  pointer-events: none;
}

.studio-hero-banner::before,
.academy-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #FFFFFF var(--hero-background-image) var(--hero-background-position, center) / cover no-repeat;
  pointer-events: none;
  animation: hero-background-circle-reveal 2.2s cubic-bezier(.4, 0, .2, 1) both;
}

/* Dedicated Parallax Hero Background Layer */
.studio-hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160%;
  z-index: 0;
  background: #FFFFFF var(--hero-background-image) var(--hero-background-position, top center) / cover no-repeat;
  pointer-events: none;
  will-change: transform;
  animation: hero-background-circle-reveal 2.2s cubic-bezier(.4, 0, .2, 1) both;
}

.academy-hero-banner-bg,
.hero-parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  z-index: 0;
  background: #FFFFFF var(--hero-background-image) var(--hero-background-position, center) / cover no-repeat;
  pointer-events: none;
  will-change: transform;
  animation: hero-background-circle-reveal 2.2s cubic-bezier(.4, 0, .2, 1) both;
}

/* Hide fallback ::before when parallax background layer is active */
.studio-hero-banner.has-parallax-bg::before,
.academy-hero-banner.has-parallax-bg::before {
  display: none !important;
}

@keyframes hero-background-circle-reveal {
  from {
    clip-path: circle(0% at 50% 50%);
    opacity: 0;
  }
  to {
    clip-path: circle(150% at 50% 50%);
    opacity: 1;
  }
}

.hero-home .hero-grid,
.studio-hero-banner .studio-page-header,
.academy-hero-banner .studio-page-header,
.academy-hero-banner .hero-grid {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .studio-hero-banner::before,
  .academy-hero-banner::before,
  .studio-hero-banner-bg,
  .academy-hero-banner-bg,
  .hero-parallax-bg {
    clip-path: none;
    opacity: 1;
    animation: none;
    top: 0;
    height: 100%;
    transform: none !important;
  }
}

.hero-home .blob-shape {
  display: none;
}

.hero-divider-art {
  display: flex;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: #FFFFFF;
  line-height: 0;
}

.hero-divider-art img {
  display: block;
  flex: 0 0 55%;
  width: 55%;
  height: auto;
  max-width: none;
}

.hero-divider-art img:nth-child(2) { margin-left: -12%; }

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 2.5rem;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--pink-light);
  color: var(--pink);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title .highlight-pink {
  color: var(--pink);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-teal {
  color: var(--teal);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 18.4px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.rating-stars {
  color: #FFB703;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.proof-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proof-stat-item .stat-icon {
  font-size: 2rem;
}

.proof-stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-heading);
  line-height: 1;
}

.proof-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero artwork container with brush stroke reveal mask */
.hero-image-reveal {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none !important;
  background: transparent;
}

.hero-brush-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: var(--radius-lg);
  z-index: 2;
}

/* Text and interactive content animate after entering the viewport. */
.content-enter {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22, .8, .32, 1), transform .65s cubic-bezier(.22, .8, .32, 1);
}

.content-enter.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Page-load entrance is replayed after Supabase replaces the fallback copy. */
.content-enter.page-load-enter {
  animation: contentPageEnter .7s cubic-bezier(.22, .8, .32, 1) both;
}

@keyframes contentPageEnter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-enter {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .content-enter.page-load-enter {
    animation: none;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.testimonial-avatar {
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-social-proof-image {
  margin-top: 1rem;
  margin-bottom: 0;
}

.skills-developed-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.skills-developed-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.skills-developed-list li::before {
  content: '🌟';
  flex: 0 0 auto;
}

.skills-developed-list li:last-child {
  margin-bottom: 0;
}

.programme-overview-paragraph {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.programme-overview-sentence {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1rem;
}

.floating-pill-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-subtle);
  animation: floatSlow 4s ease-in-out infinite;
}

.floating-pill-1 {
  top: 15px;
  left: 15px;
  animation-delay: 0s;
}

.floating-pill-2 {
  bottom: 20px;
  right: 15px;
  animation-delay: 2s;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   DUAL PORTAL CARDS (CHOOSE YOUR PATH)
   ========================================================================== */
.portal-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-card > :not(.portal-card-art) {
  position: relative;
  z-index: 1;
}

.portal-card-art {
  position: absolute;
  z-index: 0;
  right: -1.25rem;
  bottom: -1.5rem;
  width: 13rem;
  max-width: 42%;
  height: auto;
  pointer-events: none;
}

.portal-palette-art {
  transform: rotate(-8deg);
}

.portal-stationery-art {
  transform: rotate(5deg);
}

.portal-heading-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.portal-heading-art .section-title {
  margin-bottom: 1rem;
}

.portal-heading-art img {
  width: 4.5rem;
  height: auto;
  object-fit: contain;
}

.testimonial-heading-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.testimonial-heading-art .section-title {
  margin-bottom: 1rem;
}

.testimonial-heading-art img {
  width: 4.5rem;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .portal-heading-art {
    gap: 0.55rem;
  }

  .portal-heading-art img {
    width: 2.75rem;
  }

  .testimonial-heading-art {
    gap: 0.55rem;
  }

  .testimonial-heading-art img {
    width: 2.75rem;
  }

  .portal-card-art {
    width: 10rem;
  }

  .portal-card {
    padding: 2rem 1.5rem;
  }
}

.portal-studio {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF5F8 100%);
  border: 2px solid var(--border-pink);
}

.portal-studio:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(255, 92, 138, 0.18);
  border-color: var(--pink);
}

.portal-academy {
  background: linear-gradient(145deg, #FFFFFF 0%, #F0FAFA 100%);
  border: 2px solid var(--border-teal);
}

.portal-academy:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(6, 182, 182, 0.18);
  border-color: var(--teal);
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.portal-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portal-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.portal-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.portal-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.portal-card .btn-block {
  display: inline-flex;
  width: auto;
}

@media (min-width: 1025px) {
  .portal-card {
    min-height: 290px;
  }

  .portal-card .portal-desc,
  .portal-card .portal-features {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height .45s ease, margin .45s ease, opacity .3s ease, transform .45s ease;
  }

  .grid-2:has(.portal-card:hover) .portal-card .portal-desc,
  .grid-2:has(.portal-card:hover) .portal-card .portal-features {
    max-height: 16rem;
    opacity: 1;
    transform: translateY(0);
  }

  .grid-2:has(.portal-card:hover) .portal-card .portal-desc {
    margin-bottom: 1.25rem;
  }

  .grid-2:has(.portal-card:hover) .portal-card .portal-features {
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   PROGRAMME CARDS (ART & ACADEMY)
   ========================================================================== */
.schools-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5rem;
}

/* Gentle transitions soften the section into the white areas above and below. */
.schools-section::before,
.schools-section::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  z-index: 0;
  height: clamp(2.5rem, 5vw, 4.5rem);
  pointer-events: none;
}

.schools-section::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.schools-section::after {
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF);
}

.schools-section > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   PORTAL GRAND LOGOS REVEAL & TRANSFORM STAGE (2X SIZE)
   ========================================================================== */
.schools-logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 2rem auto 3.5rem;
  max-width: 1000px;
  position: relative;
  will-change: transform, opacity;
}

.schools-stage-circle {
  width: clamp(260px, 34vw, 380px);
  height: clamp(260px, 34vw, 380px);
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity;
  box-shadow: none;
  border: none;
}

.schools-stage-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .schools-logo-stage {
    flex-direction: row;
    gap: clamp(0.75rem, 3.5vw, 1.5rem);
    margin: 1.25rem auto 2rem;
  }
  .schools-stage-circle {
    width: clamp(120px, 38vw, 175px);
    height: clamp(120px, 38vw, 175px);
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
  }
}

.school-toggle {
  width: min(100%, 44rem);
  margin: 0 auto 2.75rem;
  padding: 0.4rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.school-toggle::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.4rem;
  width: calc(50% - 0.6rem);
  border-radius: var(--radius-full);
  background: var(--pink);
  box-shadow: 0 8px 18px rgba(255, 92, 138, 0.25);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), background var(--transition-normal), box-shadow var(--transition-normal);
}

.school-toggle-button {
  position: relative;
  z-index: 1;
  min-height: 3.75rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: color var(--transition-fast), background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.tab-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  overflow: hidden;
  will-change: transform, opacity;
}

.tab-logo-img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
}

.tab-label {
  display: inline-block;
  line-height: 1.2;
}

.school-toggle-button:hover .tab-logo-circle {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.school-toggle-button:hover { color: var(--pink); }

.school-toggle-button.is-active {
  background: transparent;
  color: #FFFFFF;
  box-shadow: none;
}

.schools-stage-morph-clone {
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 100;
  pointer-events: none;
  transform-origin: center center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  will-change: transform, opacity;
}

.schools-stage-morph-clone img {
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.school-toggle.is-academy .school-toggle-button:not(.is-active):hover { color: var(--teal); }

.school-toggle.is-academy::before {
  transform: translateX(calc(100% + 0.4rem));
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(6, 182, 182, 0.24);
}

.school-tab-panel[hidden] { display: none; }

.school-tab-panel.is-active {
  animation: school-panel-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes school-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.school-content-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 3fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.school-details {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.school-details-studio {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF5F8 100%);
  border-color: var(--border-pink);
}

.school-details-academy {
  background: linear-gradient(145deg, #FFFFFF 0%, #F0FAFA 100%);
  border-color: var(--border-teal);
}

.school-details .portal-badge { margin-bottom: 0.8rem; }
.school-details .portal-title { font-size: clamp(1.8rem, 2.4vw, 2.2rem); }
.school-details .portal-desc { font-size: 1rem; }
.school-details .portal-features { gap: 0.65rem; }
.school-details .portal-feature-item { align-items: flex-start; font-size: 0.91rem; }
.school-details .portal-feature-item > span { color: currentColor; }

.school-carousel-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.school-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.school-carousel-heading h3 {
  margin: 0;
  color: var(--dark-heading);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.carousel-controls { flex-shrink: 0; display: flex; gap: 0.5rem; }

.carousel-control {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--border-pink);
  border-radius: 50%;
  color: var(--pink);
  background: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 900;
  -webkit-text-stroke: 1px currentColor;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-control:hover { color: #FFFFFF; background: var(--pink); transform: translateY(-2px); }
.carousel-controls-academy .carousel-control { border-color: var(--border-teal); color: var(--teal); }
.carousel-controls-academy .carousel-control:hover { background: var(--teal); }

.school-card-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-pink) transparent;
}

.school-card-track::-webkit-scrollbar { height: 0.45rem; }
.school-card-track::-webkit-scrollbar-thumb { border-radius: var(--radius-full); background: var(--border-pink); }
.academy-card-track { scrollbar-color: var(--border-teal) transparent; }
.academy-card-track::-webkit-scrollbar-thumb { background: var(--border-teal); }

.school-card-track > .programme-card,
.school-card-track > .card {
  flex: 0 0 min(22rem, 82%);
  scroll-snap-align: start;
}

.school-card-track > .programme-card { min-height: 100%; }

.academy-card-track > .card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 17.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.academy-card-track > .card h3 { margin: 0 0 0.75rem; font-size: 1.5rem; color: var(--dark-heading); }
.academy-card-track > .card p { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.academy-card-track .learn-more-link { margin-top: auto; }

.school-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .school-content-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 992px) {
  .school-card-track {
    gap: 1.25rem;
  }
  .school-card-track > .programme-card,
  .school-card-track > .card {
    flex: 0 0 min(22rem, 70%);
  }
}

@media (max-width: 640px) {
  .school-toggle { margin-bottom: 1.75rem; }
  .school-toggle-button { min-height: 3.25rem; padding: 0.5rem 0.65rem; font-size: 0.95rem; gap: 0.45rem; }
  .tab-logo-circle { width: 28px; height: 28px; padding: 2.5px; }
  .school-carousel-heading { align-items: flex-start; gap: 0.5rem; }
  .school-carousel-heading h3 { line-height: 1.25; font-size: 1.25rem; }

  .school-card-track {
    gap: 0.85rem;
    padding: 0.25rem 0.25rem 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* First card fully visible, with a clear ~22% peek of the second card */
  .school-card-track > .programme-card,
  .school-card-track > .card {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: start;
  }

  /* Academy cards on mobile */
  .academy-card-track > .card {
    padding: 1.35rem 1.15rem;
    min-height: auto;
  }

  .academy-card-track .school-card-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.65rem;
  }

  .academy-card-track > .card h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .academy-card-track > .card p {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-toggle::before,
  .school-tab-panel.is-active {
    animation: none;
    transition: none;
  }
}

/* ==========================================================================
   PROGRAMME CARD COMPONENT (MODERN, TACTILE, ARTISTIC)
   ========================================================================== */
.programme-card {
  border-radius: 24px;
  border: 1px solid var(--theme-card-border, #FFE2EC);
  background: var(--theme-card-bg, #FFF5F8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}

.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

/* Large Course Image Wrap & Badge */
.programme-card-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
}

.programme-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.programme-card:hover .programme-card-image {
  transform: scale(1.035);
}

/* Number Badge */
.programme-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 50%;
  background: var(--theme-badge-bg, #FF5C8A);
  color: #FFFFFF;
  font-family: var(--font-heading, 'Nunito', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Card Body */
.programme-card-body {
  padding: 1.35rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.programme-card-title {
  font-family: var(--font-heading, 'Nunito', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Course Details */
.programme-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0;
  border: none;
  font-size: 0.9rem;
  color: #475569;
}

.programme-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
}

.programme-meta-item span:first-child {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
}

.programme-meta-item strong {
  color: #1E293B;
  font-weight: 700;
}

/* CTA Button */
.programme-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.programme-card .learn-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  background: var(--theme-cta-bg, #FFE9F0);
  color: var(--theme-cta-color, #E11D48);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.programme-card:hover .learn-more-link {
  background: var(--theme-cta-hover-bg, #FFD4E2);
  transform: translateY(-2px);
}

.programme-card .cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.programme-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* THEME 01 & 06 — Dali Foundation & Portfolio Building (Pink / Coral) */
.programme-card--pink {
  --theme-card-bg: #FFF5F8;
  --theme-card-border: #FFE2EC;
  --theme-badge-bg: #FF5C8A;
  --theme-cta-bg: #FFE9F0;
  --theme-cta-color: #E11D48;
  --theme-cta-hover-bg: #FFD4E2;
}

/* THEME 02 — Dali Advanced (Amber / Warm Yellow) */
.programme-card--yellow {
  --theme-card-bg: #FFFDF5;
  --theme-card-border: #FEF3C7;
  --theme-badge-bg: #F59E0B;
  --theme-cta-bg: #FEF3C7;
  --theme-cta-color: #B45309;
  --theme-cta-hover-bg: #FDE68A;
}

/* THEME 03 — Van Gogh Foundation (Sky Blue) */
.programme-card--blue {
  --theme-card-bg: #F4F9FD;
  --theme-card-border: #E0F2FE;
  --theme-badge-bg: #0284C7;
  --theme-cta-bg: #E0F2FE;
  --theme-cta-color: #0369A1;
  --theme-cta-hover-bg: #BAE6FD;
}

/* THEME 04 — Van Gogh Advanced (Mint / Teal) */
.programme-card--teal {
  --theme-card-bg: #F2FAF8;
  --theme-card-border: #CCFBF1;
  --theme-badge-bg: #0D9488;
  --theme-cta-bg: #CCFBF1;
  --theme-cta-color: #0F766E;
  --theme-cta-hover-bg: #99F6E4;
}

/* THEME 05 — Young Turner (Purple / Lavender) */
.programme-card--purple {
  --theme-card-bg: #FAF7FF;
  --theme-card-border: #EDE9FE;
  --theme-badge-bg: #7C3AED;
  --theme-cta-bg: #EDE9FE;
  --theme-cta-color: #6D28D9;
  --theme-cta-hover-bg: #DDD6FE;
}

.learn-more-link.academy {
  color: var(--teal);
}

/* ==========================================================================
   21ST CENTURY COMPETENCY SKILLS CHART & STATS
   ========================================================================== */
.skills-progress-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.skill-bar-group {
  margin-bottom: 1.25rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-heading);
}

.skill-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.skill-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.skill-icon-pink { background: #FFE4EC; }
.skill-icon-yellow { background: #FEF3C7; }
.skill-icon-purple { background: #EDE9FE; }
.skill-icon-teal { background: #CCFBF1; }
.skill-icon-blue { background: #DBEAFE; }
.skill-icon-green { background: #DCFCE7; }
.skill-icon-orange { background: #FFEDD5; }
.skill-icon-rose { background: #FCE7F3; }

.skill-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #FF5C8A 0%, #FFA1BC 100%);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Why Enrol Section with Subtle Background */
.why-enrol-section {
  position: relative;
  background-color: #FFFFFF;
  overflow: hidden;
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.why-enrol-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/background.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.why-enrol-section > .container {
  position: relative;
  z-index: 1;
}

.why-enrol-grid {
  align-items: center;
  gap: 3.5rem;
}

.why-enrol-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.why-enrol-text-content {
  margin-bottom: 0;
}

.why-enrol-text-content .section-badge {
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.why-enrol-text-content .section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.why-enrol-text-content p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.why-enrol-text-content p:last-child {
  margin-bottom: 0 !important;
}

/* Compact Skills Card */
.why-enrol-section .skills-progress-card {
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.why-enrol-section .skills-progress-card h3 {
  font-size: 1.15rem !important;
  margin-bottom: 0.75rem !important;
}

.why-enrol-section .skill-bar-group {
  margin-bottom: 0.5rem;
}

.why-enrol-section .skill-bar-group:last-child {
  margin-bottom: 0;
}

.why-enrol-section .skill-bar-header {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.why-enrol-section .skill-icon-circle {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
}

.why-enrol-section .skill-title-wrap {
  gap: 0.45rem;
}

.why-enrol-section .skill-bar-track {
  height: 7px;
}

@media (max-width: 991px) {
  .why-enrol-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .why-enrol-grid {
    align-items: stretch;
    gap: 2rem;
  }
  .why-enrol-left {
    align-items: flex-start;
    text-align: left;
  }
  .why-enrol-section .skills-progress-card {
    padding: 1.25rem;
    margin-bottom: 0;
  }
}

.skill-bar-fill.teal {
  background: linear-gradient(90deg, #06B6B6 0%, #3AD4D4 100%);
}

/* Give each competency its own colour while retaining the shared bar style. */
.skills-progress-card .skill-bar-group:nth-of-type(1) .skill-bar-fill {
  background: linear-gradient(90deg, #FF5C8A 0%, #FFA1BC 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(2) .skill-bar-fill {
  background: linear-gradient(90deg, #F59E0B 0%, #FCD34D 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(3) .skill-bar-fill {
  background: linear-gradient(90deg, #8B5CF6 0%, #C4B5FD 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(4) .skill-bar-fill {
  background: linear-gradient(90deg, #06B6B6 0%, #5EEAD4 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(5) .skill-bar-fill {
  background: linear-gradient(90deg, #3B82F6 0%, #93C5FD 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(6) .skill-bar-fill {
  background: linear-gradient(90deg, #22C55E 0%, #86EFAC 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(7) .skill-bar-fill {
  background: linear-gradient(90deg, #F97316 0%, #FDBA74 100%);
}

.skills-progress-card .skill-bar-group:nth-of-type(8) .skill-bar-fill {
  background: linear-gradient(90deg, #EC4899 0%, #F9A8D4 100%);
}

.stats-counter-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FF5C8A;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-counter-number.teal {
  color: #06B6B6;
}

.stat-counter-number.yellow {
  color: #FFB703;
}

.stat-counter-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* ==========================================================================
   FUTURE READY™ HeART CARD WITH RESPONSIVE BACKGROUND IMAGE
   ========================================================================== */
.future-ready-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1947 / 808;
  border-radius: var(--radius-lg, 16px);
  background-color: #FFFFFF;
  background-image: url('../images/Future%20Ready%E2%84%A2%20HeART%20desktop_converted.avif');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  color: #111827;
  padding: clamp(1.25rem, 2.6vw, 2.35rem) clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.85rem);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 14px 35px -10px rgba(255, 92, 138, 0.16), 0 4px 14px rgba(255, 92, 138, 0.08) !important;
  border: 1px solid rgba(255, 92, 138, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.future-ready-header {
  max-width: 460px;
  margin: 0 auto;
}

.future-ready-badge {
  font-size: clamp(0.72rem, 0.9vw, 0.8rem);
  padding: 0.2rem 0.65rem;
  margin-bottom: clamp(0.3rem, 0.6vw, 0.5rem);
  display: inline-block;
}

.future-ready-title {
  color: #111827 !important;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto clamp(0.3rem, 0.6vw, 0.5rem);
  max-width: 440px;
  letter-spacing: -0.02em;
}

.future-ready-desc {
  color: #1f2937 !important;
  font-weight: 500;
  margin: 0 auto;
}

.future-ready-desc-desktop {
  display: block;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  max-width: 420px;
}

.future-ready-desc-mobile {
  display: none;
}

/* Stats Row at bottom of card */
.future-ready-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding-top: clamp(0.75rem, 1.4vw, 1.35rem);
  border-top: 1.5px solid rgba(0, 0, 0, 0.12);
  position: relative;
}

.future-ready-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.future-ready-card .stat-counter-number {
  color: #FF5C8A;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.future-ready-card .stat-counter-number.yellow {
  color: #FFB703;
}

.future-ready-card .stat-counter-number.teal {
  color: #06B6B6;
}

.future-ready-card .stat-counter-label {
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  font-weight: 700;
  color: #374151;
}

.future-ready-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.65rem;
  top: 15%;
  height: 70%;
  width: 1.5px;
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .future-ready-card {
    aspect-ratio: 941 / 1672;
    background-image: url('../images/Future%20Ready%E2%84%A2%20HeART%20mobile_converted.avif');
    background-size: 100% 100%;
    background-position: center top;
    padding: clamp(1.5rem, 4.5vw, 2.25rem) clamp(0.75rem, 3vw, 1.25rem) clamp(4.5rem, 15vw, 7.5rem);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 10px 25px -8px rgba(255, 92, 138, 0.14) !important;
  }

  .future-ready-header {
    margin-bottom: 0.5rem;
    max-width: 100%;
  }

  .future-ready-title {
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
    line-height: 1.25;
    max-width: 100%;
    margin-bottom: 0.25rem;
  }

  .future-ready-desc-desktop {
    display: none !important;
  }

  /* Shorter, smaller description on mobile (normal weight) */
  .future-ready-desc-mobile {
    display: block !important;
    font-size: clamp(0.6rem, 2.4vw, 0.72rem) !important;
    line-height: 1.35;
    max-width: 86%;
    margin: 0 auto;
    font-weight: 400 !important;
  }

  /* 3-column stats grid moved significantly higher up on mobile */
  .future-ready-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    max-width: 100%;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .future-ready-card .stat-counter-number {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem) !important;
    line-height: 1;
    margin-bottom: 0.2rem;
  }

  .future-ready-card .stat-counter-label {
    font-size: clamp(0.58rem, 2.1vw, 0.72rem);
    line-height: 1.18;
    text-align: center;
  }

  .future-ready-stat-item:not(:last-child)::after {
    right: -0.15rem;
  }
}

/* ==========================================================================
   OUR 6 POPULAR ART PROGRAMS FLOW SECTION (STUDIO PROGRAMMES)
   ========================================================================== */
.studio-all-programmes-section {
  background: #FCF9F7;
  padding: 4.5rem 0;
}

.studio-programmes-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Programme Card Flow Layout Sizing */
.studio-programmes-flow > .programme-card {
  width: 255px;
  flex: 0 0 255px;
}

/* Arrows */
.programme-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex: 0 0 44px;
}

.flow-arrow-img {
  width: 100%;
  height: auto;
  max-width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

@media (max-width: 1200px) {
  .studio-programmes-flow {
    gap: 1.25rem 0.5rem;
  }
  .studio-programmes-flow > .programme-card {
    width: 220px;
    flex: 0 0 220px;
  }
  .programme-flow-arrow {
    width: 32px;
    flex: 0 0 32px;
  }
}

@media (max-width: 900px) {
  .studio-programmes-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .studio-programmes-flow > .programme-card {
    width: 100%;
    max-width: 320px;
    flex: 0 0 auto;
  }
  .programme-flow-arrow {
    width: 28px;
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }
}

/* ==========================================================================
   TESTIMONIALS SECTION (SHARED COMPONENT)
   ========================================================================== */
.testimonials-section {
  background: var(--bg-soft-pink);
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  column-count: 3;
  column-gap: 1.75rem;
}

@media (max-width: 992px) {
  .testimonials-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    column-count: 1;
    column-gap: 0;
  }
}

.testimonial-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1.75rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-pink);
}

.testimonial-stars {
  color: #FFB703;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}

.testimonial-author-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-heading);
}

.testimonial-author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TRIAL BOOKING EMBED / BANNER
   ========================================================================== */
.trial-cta-banner {
  background: linear-gradient(135deg, #FF5C8A 0%, #FF85A6 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(255, 92, 138, 0.28);
}

.trial-cta-banner.teal-theme {
  background: linear-gradient(135deg, #06B6B6 0%, #30D4D4 100%);
  box-shadow: 0 20px 45px rgba(6, 182, 182, 0.28);
}

.trial-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.trial-cta-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-family: var(--font-heading);
  color: #FFFFFF;
  line-height: 1.15;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.trial-cta-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.trial-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.trial-form-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  color: var(--dark);
  box-shadow: var(--shadow-lg);
}

.trial-form-header {
  margin-bottom: 1.25rem;
}

.trial-form-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--dark-heading);
}

.trial-form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-body);
  color: var(--dark);
  font-size: 16px; /* Prevents auto-zoom on mobile safari */
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--pink);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--pink-glow);
}

.form-control.teal-focus:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

/* Responsive adjustments for Trial CTA section on Mobile & Tablet */
@media (max-width: 900px) {
  .trial-cta-banner {
    padding: 2.5rem 2rem;
  }
  .trial-cta-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 600px) {
  .trial-cta-banner {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .trial-cta-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .trial-cta-desc {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .trial-cta-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .trial-cta-actions .btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .trial-form-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-sm);
  }

  .trial-form-card h3 {
    font-size: 1.25rem !important;
  }

  .trial-form-header h3 {
    font-size: 1.25rem;
  }

  .trial-form-header p {
    font-size: 0.82rem;
  }

  .form-group {
    margin-bottom: 0.85rem;
  }

  .form-label {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }

  .form-control {
    padding: 0.7rem 0.85rem;
    font-size: 16px;
    min-height: 44px;
  }

  .trial-form-card .btn-block {
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
  }
}

/* ==========================================================================
   GALLERY GRID & FILTER
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--pink);
  color: #FFFFFF;
  border-color: var(--pink);
  box-shadow: 0 6px 18px var(--pink-glow);
}

@media (max-width: 600px) {
  .gallery-filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -1.5rem;
    margin-left: -1.5rem;
    padding: 0.2rem 1.5rem 0.8rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-tabs .filter-btn {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 1.5rem;
}

.gallery-item-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item-card:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item-card:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--pink);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  align-self: flex-start;
}

.gallery-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
}

/* ==========================================================================
   ACADEMY SPECIFIC COMPONENTS (LESSON BLOCKS & PATHWAY)
   ========================================================================== */
.lesson-blocks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.lesson-block-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.lesson-block-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.lesson-block-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-heading);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--text);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checklist-item .check-icon {
  color: var(--teal);
  font-weight: 800;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.pathway-table-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.pathway-col {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-subtle);
}

.pathway-col:last-child {
  border-right: none;
}

.pathway-col.highlight-bridge {
  background: var(--bg-soft-teal);
}

/* ==========================================================================
   CONTACT MODAL & WHATSAPP INTEGRATION
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: all var(--transition-normal);
  position: relative;
  padding: 2.5rem;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--pink-light);
  color: var(--pink);
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.floating-whatsapp-btn svg {
  display: block;
  width: 29px;
  height: 29px;
  fill: #FFFFFF;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #111827;
  color: #E2E8F0;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #1F2937;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 62px;
}

.footer-logo-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-brand-title span.pink { color: var(--pink); }
.footer-brand-title span.teal { color: var(--teal); }

.footer-desc {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  color: #94A3B8;
  font-size: 0.93rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.footer-link.teal-link:hover {
  color: var(--teal);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #94A3B8;
  font-size: 0.93rem;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1F2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-reveal {
    max-width: 620px;
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .pathway-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .pathway-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Keep body copy comfortably readable and consistent on small screens. */
  .section p {
    font-size: 1rem !important;
  }

  .hero-home .hero-desc {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero-cta-group .btn {
    flex: 1 1 0;
    justify-content: center;
    white-space: nowrap;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
  }

  .schools-section {
    overflow: visible;
  }

  .schools-section .school-toggle {
    position: sticky;
    top: calc(80px + 0.75rem);
    z-index: 20;
  }

  .desktop-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .top-brand-switcher {
    display: none;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .trial-cta-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .floating-whatsapp-btn svg {
    width: 25px;
    height: 25px;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

#galleryLightbox {
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
}

.gallery-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(96vw, 1600px);
  padding: 2rem 5rem 4rem;
}

.gallery-lightbox-image {
  width: auto;
  max-width: min(65vw, 920px);
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.gallery-lightbox-adjacent {
  flex: 0 0 min(18vw, 230px);
  width: min(18vw, 230px);
  height: min(48vh, 420px);
  opacity: .35;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
  filter: blur(1px);
}

.gallery-lightbox-adjacent:first-child {
  margin-right: -0.2rem;
}

.gallery-lightbox-adjacent:last-child {
  margin-left: -0.2rem;
}

.gallery-lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--dark-heading);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-previous { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }

.gallery-lightbox-details {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 1;
  min-width: 16rem;
  transform: translateX(-50%);
  text-align: center;
  color: #FFFFFF;
}

.gallery-lightbox-details .gallery-badge { margin-bottom: .5rem; }
.gallery-lightbox-details h3 { color: #FFFFFF; font-size: 1.15rem; }

@media (max-width: 768px) {
  .gallery-lightbox-stage {
    padding: 1rem 3.5rem 5rem;
  }

  .gallery-lightbox-adjacent { display: none; }
  .gallery-lightbox-image { max-height: 72vh; }
  .gallery-lightbox-arrow { width: 2.75rem; height: 2.75rem; }
  .gallery-lightbox-previous { left: .5rem; }
  .gallery-lightbox-next { right: .5rem; }
  .gallery-lightbox-close { top: .75rem; right: .75rem; }
}

.mobile-drawer-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-brand-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mobile-brand-tab {
  height: 70px;
  padding: 0.5rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-brand-tab.active {
  border-color: var(--pink);
  background: var(--pink-light);
}

.mobile-brand-tab:has(img[alt="Heart Academy"]).active {
  border-color: var(--teal);
  background: var(--teal-light);
}

.mobile-brand-tab img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-brand-panel {
  display: none;
}

.mobile-brand-panel.active {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-drawer-general {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 0.35rem;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
  background: var(--pink-light);
  color: var(--pink);
}

.mobile-link.academy-theme:hover {
  background: var(--teal-light);
  color: var(--teal);
}

@media (max-width: 1050px) and (min-width: 769px) {
  .dsa-showcase__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1fr);
  }

  .dsa-showcase__content {
    grid-column: 1 / -1;
    max-width: 48rem;
  }

  .dsa-showcase__portrait {
    align-self: center;
  }

}

@media (max-width: 768px) {
  .dsa-showcase__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dsa-showcase__portrait {
    width: min(100%, 25rem);
    margin: 0 auto;
  }

  .dsa-showcase__success {
    width: min(100%, 28rem);
    margin: 0 auto;
  }

  .dsa-showcase__decor--heart {
    top: -0.4rem;
    right: 0.25rem;
    width: 3.25rem;
  }
}

/* Holiday Programmes Multi-Slot Badges & Modal Schedule Selectors */
.holiday-slots-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.holiday-slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

#modalScheduleSlotsSection {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.4rem;
  margin-bottom: 1rem;
}

#modalScheduleSlotsSection label.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.25rem;
}

