/* 
  M.A.T.I. Vanilla CSS System 
  Auto-generated from Antigravity Master Prompts
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;500;600&display=swap');

:root {
  /* Brand Tokens */
  --mati-blue-deep: #0a3d62;
  --mati-blue: #1a6fb5;
  --mati-blue-light: #4a9fd8;
  --mati-red: #c0392b;
  --mati-red-bright: #e74c3c;
  --mati-white: #ffffff;
  --mati-offwhite: #f4f7fa;
  --mati-ink: #1c2b36;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-body);
  color: var(--mati-ink);
  background-color: var(--mati-offwhite);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--mati-blue-deep);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  text-decoration: none;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

ul {
  list-style: none;
}

/* ==========================================================================
   MORPHISM SYSTEM
   ========================================================================== */

/* 1. Claymorphism */
.clay-surface {
  background: linear-gradient(145deg, var(--mati-blue-light), var(--mati-blue));
  border-radius: 24px;
  box-shadow:
    0 12px 24px -8px rgba(10, 61, 98, 0.35),
    inset 0 -4px 8px rgba(10, 61, 98, 0.25),
    inset 0 4px 6px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--mati-white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.clay-surface:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.clay-surface--red {
  background: linear-gradient(145deg, var(--mati-red-bright), var(--mati-red));
  box-shadow:
    0 12px 24px -8px rgba(192, 57, 43, 0.4),
    inset 0 -4px 8px rgba(192, 57, 43, 0.25),
    inset 0 4px 6px rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--mati-white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.clay-surface--red:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* 2. Neumorphism */
.neu-surface {
  background: var(--mati-offwhite);
  border-radius: 18px;
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.5),
    -8px -8px 16px rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.2s ease;
}

.neu-surface--pressed,
.neu-surface.interactive:active {
  box-shadow:
    inset 6px 6px 12px rgba(163, 177, 198, 0.5),
    inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* 3. Skeuomorphism */
.skeu-badge {
  background: linear-gradient(180deg, #f0d9a8, #c9a24a 45%, #a8802a);
  border-radius: 50%;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -3px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid #7a5f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mati-blue-deep);
  font-weight: 600;
}

/* 4. Glassmorphism */
.glass-nav {
  background: rgba(244, 247, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(10, 61, 98, 0.1);
}

/* ==========================================================================
   LAYOUT & COMPONENTS
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  max-width: 100vw;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--mati-blue-deep);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mati-blue);
}

.nav-cta {
  background: linear-gradient(145deg, var(--mati-red-bright), var(--mati-red));
  color: var(--mati-white) !important;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  box-shadow:
    0 8px 16px rgba(192, 57, 43, 0.3),
    inset 0 -2px 4px rgba(192, 57, 43, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--mati-blue-deep);
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-home {
  padding-top: 0;
  min-height: 100vh;
}

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

.hero-home .hero-content {
  padding-top: 104px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--mati-blue-deep);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
}

/* Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(244, 247, 250, 0.95) 0%, rgba(244, 247, 250, 0.8) 50%, rgba(244, 247, 250, 0.4) 100%);
}

.slide.active {
  opacity: 1;
}

/* Enquiry Widget */
.enquiry-widget {
  margin-top: 40px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.enquiry-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enquiry-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mati-blue-deep);
}

.enquiry-group select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 61, 98, 0.2);
  background: var(--mati-white);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

input, textarea, select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Programs at a glance */
.programs-glance {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.program-tile {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.program-tile h3 {
  font-size: 1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* About Section */
.circle-crop {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(10, 61, 98, 0.15);
}

.pull-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--mati-blue);
  text-align: center;
  max-width: 800px;
  margin: 64px auto 0;
  font-family: 'Times New Roman', serif;
}

.melda-values {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.value-pill {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Programs Accordion */
.program-card {
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
}

.program-header {
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
}

.program-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  font-size: 24px;
}

.program-header h3 {
  font-size: 1.5rem;
  flex-grow: 1;
  color: var(--mati-white);
}

.program-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.program-content.open {
  max-height: 2200px;
  margin-top: 24px;
}

.program-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
}

.detail-item h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.detail-item p {
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--mati-blue-deep);
  color: var(--mati-white);
  padding: 80px 0 40px;
  overflow: hidden;
}

footer iframe {
  max-width: 100%;
  height: auto;
  min-height: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--mati-white);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.875rem;
}

/* FAB */
.fab-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 900;
}

.fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.fab svg {
  width: 32px;
  height: 32px;
  fill: var(--mati-white);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  border-radius: 24px;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp {
  background: #25D366;
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.4), inset 0 -4px 8px rgba(18, 140, 126, 0.25), inset 0 4px 6px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: float 3s ease-in-out infinite;
}

.fab-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Routing (SPA Views) */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(12px);
}

.view.active {
  display: block;
}

.view.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loader Screen */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  max-width: 100%;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--mati-offwhite);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  padding: 24px 16px;
}

.loader-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.loader-logo {
  width: 120px;
  height: 120px;
  max-width: min(120px, 36vw);
  max-height: min(120px, 36vw);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  flex-shrink: 0;
  animation: pulse-ring 2s infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 4.4vw, 1.5rem);
  font-weight: 600;
  color: var(--mati-blue-deep);
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
}

.heartbeat-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.video-gallery video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mati-white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--mati-blue-light);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.gallery-item {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  background: var(--mati-offwhite);
  box-shadow: 0 4px 12px rgba(10, 61, 98, 0.1);
  border: 1px solid rgba(10, 61, 98, 0.1);
}

.gallery-item:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.15);
}

.gallery-item:focus {
  outline: 2px solid var(--mati-blue-light);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

video.lightbox-img {
  width: 100%;
}

.lightbox.visible .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 48px;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   HERO REFACTORED CLASSES
   ========================================================================== */

.hero-subheading {
  font-size: 1.75rem;
  color: var(--mati-blue-deep);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
}

.hero p.hero-motto {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--mati-blue);
  margin-bottom: 28px;
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.4;
}

.hero h1.hero-heading {
  color: var(--mati-blue-deep);
  font-size: 3.5rem;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.15;
}

.hero p.hero-description {
  color: var(--mati-blue-deep);
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 500;
}

.intake-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 40px;
  margin-bottom: 32px;
  border-radius: 16px;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 16px 32px rgba(192,57,43,0.3);
}

.intake-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  filter: contrast(1.2) brightness(0.8);
}

.intake-banner-content {
  position: relative;
  z-index: 1;
}

.intake-banner-title {
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.intake-banner-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.btn-enroll {
  font-size: 1.2rem;
  padding: 16px 36px;
  border-radius: 32px;
}

.btn-whatsapp-hero {
  font-size: 1.2rem;
  padding: 16px 36px;
  border-radius: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-hero svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   HAMBURGER MENU
   ========================================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101; /* Above overlay */
  position: relative;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: var(--mati-blue-deep);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* When hamburger is active (menu open), ensure it's above overlay */
.hamburger.active {
  z-index: 200 !important;
}

/* ==========================================================================
   MOBILE FULL-SCREEN OVERLAY
   ========================================================================== */

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 61, 98, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.mobile-overlay.active {
  visibility: visible;
}

.mobile-overlay.visible {
  opacity: 1;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
}

.overlay-close .bar {
  width: 30px;
  height: 3px;
  background-color: var(--mati-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.overlay-close .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.overlay-close .bar:nth-child(2) {
  transform: translateY(-9px) rotate(-45deg);
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

.overlay-nav-item {
  font-size: 2rem;
  font-weight: 600;
  color: var(--mati-white);
  text-align: center;
  padding: 16px 32px;
  border-radius: 16px;
  transition: all 0.2s ease;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-overlay.visible .overlay-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.visible .overlay-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(4) { transition-delay: 0.2s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(6) { transition-delay: 0.3s; }
.mobile-overlay.visible .overlay-nav-item:nth-child(7) { transition-delay: 0.35s; }

.overlay-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.overlay-nav-item:focus {
  outline: 2px solid var(--mati-blue-light);
  outline-offset: 4px;
}

.overlay-nav-cta {
  background: linear-gradient(145deg, var(--mati-red-bright), var(--mati-red));
  margin-top: 24px;
  box-shadow:
    0 8px 16px rgba(192, 57, 43, 0.4),
    inset 0 -2px 4px rgba(192, 57, 43, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay-nav-cta:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.overlay-contact {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-overlay.visible .overlay-contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.overlay-phone {
  font-size: 1.25rem;
  color: var(--mati-white);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.overlay-phone:hover {
  background: rgba(255, 255, 255, 0.2);
}

.overlay-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  text-decoration: none;
}

.overlay-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.overlay-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 992px) {
  /* Navigation */
  .hamburger {
    display: flex;
    z-index: 101;
  }
  
  .nav-links {
    display: none;
  }
  
  /* Layout Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .programs-glance {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Hero section adjustments — match .hero h1 / .hero p specificity */
  .hero h1.hero-heading {
    font-size: 2.15rem;
    margin-bottom: 14px;
  }
  
  .hero-subheading {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .hero p.hero-motto {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
  
  .hero p.hero-description {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-home {
    min-height: auto;
    padding: 108px 0 64px;
  }

  .hero-home .hero-content {
    padding-top: 0;
  }
  
  /* Program details grid */
  .program-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .programs-glance {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero h1.hero-heading {
    font-size: 1.55rem;
    line-height: 1.2;
  }
  
  .hero-subheading {
    font-size: 1.28rem;
    line-height: 1.3;
  }
  
  .hero p.hero-motto {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }
  
  .intake-banner {
    padding: 24px;
  }
  
  .intake-banner-title {
    font-size: 1.5rem;
  }
  
  .intake-banner-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .program-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .program-header h3 {
    font-size: 1.25rem;
  }
  
  .program-image-placeholder {
    width: 100%;
    height: auto;
  }

  /* Mobile overlay adjustments */
  .overlay-nav-item {
    font-size: 1.5rem;
    padding: 12px 24px;
    min-height: 56px;
  }

  .overlay-contact {
    margin-top: 32px;
  }

  .overlay-phone {
    font-size: 1.1rem;
  }
}

/* Extra small devices (320px-430px) */
@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  .hero h1.hero-heading {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }
  
  .hero-subheading {
    font-size: 1.18rem;
    line-height: 1.35;
  }

  .hero p.hero-motto {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  
  .hero p.hero-description {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .intake-banner {
    padding: 20px 16px;
  }
  
  .intake-banner-title {
    font-size: 1.3rem;
  }
  
  .intake-banner-subtitle {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .btn-enroll, .btn-whatsapp-hero {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .overlay-nav-item {
    font-size: 1.3rem;
    padding: 10px 20px;
    min-height: 50px;
  }
  
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .fab {
    width: 56px;
    height: 56px;
  }
  
  .chatbot-drawer {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 100px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .nav-container {
    padding: 0 12px;
  }
  
  .hero h1.hero-heading {
    font-size: 1.28rem;
  }
  
  .hero-subheading {
    font-size: 1.12rem;
  }

  .hero p.hero-motto {
    font-size: 0.98rem;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-container img {
    width: 40px;
    height: 40px;
  }
  
  .nav-container {
    height: 70px;
  }
  
  .overlay-nav-item {
    font-size: 1.2rem;
    padding: 8px 16px;
    min-height: 48px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  
  .nav-container {
    padding: 0 10px;
  }
  
  .hero h1.hero-heading {
    font-size: 1.2rem;
  }
  
  .hero-subheading {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .hero p.hero-motto {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Program Image Placeholder */
.program-image-placeholder {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 24px;
}

.program-card .program-image-placeholder:hover {
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* About Circular Logo */
.about-circular-logo {
  border-radius: 50%;
  width: 240px;
  height: 240px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(10, 61, 98, 0.2);
  border: 4px solid var(--mati-offwhite);
}

/* Chatbot Drawer */
.chatbot-drawer {
  position: fixed;
  bottom: 120px;
  right: 32px;
  width: 340px;
  background: var(--mati-white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 98, 0.1);
}

.chatbot-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chatbot-body {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--mati-offwhite);
}

.chat-message {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.bot-message {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-message {
  align-self: flex-end;
  background: var(--mati-blue-light);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-footer {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-footer input {
  flex-grow: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-family: var(--font-body);
}

.chatbot-send {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .programs-glance {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

/* Chatbot Drawer */
.chatbot-drawer {
  position: fixed;
  bottom: 120px;
  right: 32px;
  width: 340px;
  background: var(--mati-white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 98, 0.1);
}

.chatbot-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chatbot-body {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--mati-offwhite);
}

.chat-message {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.bot-message {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-message {
  align-self: flex-end;
  background: var(--mati-blue-light);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-footer {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-footer input {
  flex-grow: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-family: var(--font-body);
}

.chatbot-send {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}