/* ==========================================================================
   The Learning Loft® - Luxury Education Design System (2026 Direct Edition)
   Absolute Contrast, Zero Layout Shifts, High-Converting Hero Stages
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --brand-blue: #1A66D2;
  --brand-blue-hover: #104fa8;
  --brand-blue-light: #EBF3FE;
  
  --brand-yellow: #F6B800;
  --brand-yellow-light: #FEF9E7;
  --brand-yellow-hover: #dba400;
  
  --brand-red: #E52E2D;
  --brand-red-light: #FDE8E8;
  --brand-red-dark: #B91C1C;
  
  --brand-green: #2EA843;
  --brand-green-light: #E8F7EC;
  --brand-green-hover: #228434;
  
  /* Modern Neutral Palette */
  --bg-main: #F8FAFD;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --white: #FFFFFF;

  /* Sophisticated Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Layered Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 25px -4px rgba(26, 102, 210, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -8px rgba(26, 102, 210, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Guard flex and grid items against WebKit Safari blowout */
.hero-grid > *, .page-hero-grid > *, .inquiry-grid > *, .track-grid > *, .programs-grid > *, .responsive-3-grid > *, .responsive-4-grid > *, .footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

p {
  color: var(--text-muted);
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(14px, 1.8vw, 24px);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0c4ba6 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(26, 102, 210, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 102, 210, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

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

.btn-outline {
  background: var(--white);
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}

.btn-outline:hover {
  background: var(--brand-blue-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-blue { background: var(--brand-blue-light); color: var(--brand-blue); border: 1px solid rgba(26,102,210,0.2); }
.badge-yellow { background: var(--brand-yellow-light); color: #9B6F00; border: 1px solid rgba(246,184,0,0.3); }
.badge-red { background: var(--brand-red-light); color: var(--brand-red); border: 1px solid rgba(229,46,45,0.2); }
.badge-green { background: var(--brand-green-light); color: var(--brand-green); border: 1px solid rgba(46,168,67,0.2); }

/* ==========================================================================
   Header & Clean Fixed Single-Line Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transform: translateZ(0);
}

.header-topbar {
  background: linear-gradient(90deg, #09377a, var(--brand-blue) 45%, #228a36 100%);
  color: var(--white);
  padding-top: max(7px, env(safe-area-inset-top));
  padding-bottom: 7px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: clamp(10px, 1.4vw, 20px);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-wrap:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: clamp(52px, 4.4vw, 62px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  text-align: left;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.24rem, 1.45vw, 1.48rem);
  font-weight: 900;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.brand-word-the {
  color: #2EA843;
}

.brand-word-learning {
  color: #1A66D2;
}

.brand-word-loft {
  color: #F6B800;
  position: relative;
}

.brand-reg {
  font-size: 0.58em;
  color: #E52E2D;
  font-weight: 800;
  margin-left: 2px;
  vertical-align: super;
}

.brand-tagline {
  font-size: clamp(0.66rem, 0.72vw, 0.74rem);
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(6px, 0.85vw, 14px);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-weight: 700;
  font-size: clamp(0.78rem, 0.81vw, 0.86rem);
  color: var(--text-dark);
  position: relative;
  white-space: nowrap;
  padding: 6px 2px;
  display: block;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--brand-blue);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   Page Hero Stages (HIGH CONTRAST & CLEAR VISUALS)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(35px, 4vh, 50px) 0 clamp(28px, 3.5vh, 45px) !important;
  background: linear-gradient(135deg, #09377a 0%, #1A66D2 65%, #186b30 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.page-hero h1 {
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  color: #FFFFFF !important;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  color: #F1F5F9 !important;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 18px;
}

.page-hero-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  height: clamp(240px, 26vh, 310px);
  object-fit: cover;
  background: #0F172A;
}

/* Hero Section on Home Page */
.hero-section {
  position: relative;
  padding: clamp(24px, 3.2vh, 42px) 0 clamp(28px, 4vh, 50px);
  background: radial-gradient(circle at 85% 15%, rgba(246, 184, 0, 0.15) 0%, rgba(26, 102, 210, 0.06) 45%, transparent 80%),
              radial-gradient(circle at 15% 85%, rgba(46, 168, 67, 0.1) 0%, transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.hero-title {
  font-size: clamp(2.1rem, 2.7vw, 2.9rem);
  margin-bottom: 14px;
  line-height: 1.15;
}

.hero-title-dark { color: #0F172A; }
.hero-title .highlight-blue, .hero-title-blue { color: #1A66D2; }
.hero-title .highlight-yellow, .hero-title-yellow { color: #F6B800; }
.hero-title .highlight-green, .hero-title-green { color: #2EA843; }
.hero-title .highlight-red, .hero-title-red { color: #E52E2D; }

.hero-description {
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-visual-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}

.banner-desktop-view {
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: clamp(260px, 29vh, 350px);
  object-fit: cover;
}

.banner-mobile-view {
  display: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: clamp(260px, 29vh, 350px);
  object-fit: cover;
}

.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 800;
  animation: floatPill 5s ease-in-out infinite;
  z-index: 10;
  white-space: nowrap;
}

.floating-pill.pill-cctv { top: 14px; left: 14px; color: var(--brand-red); }
.floating-pill.pill-coding { bottom: 45px; right: 14px; color: var(--brand-blue); animation-delay: 2.5s; }

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

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */
.section {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.card-early::before { background: var(--brand-yellow); }
.card-found::before { background: var(--brand-blue); }
.card-skill::before { background: var(--brand-green); }

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

.program-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.age-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.card-early .age-pill { background: var(--brand-yellow-light); color: #9B6F00; }
.card-found .age-pill { background: var(--brand-blue-light); color: var(--brand-blue); }
.card-skill .age-pill { background: var(--brand-green-light); color: var(--brand-green); }

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.program-intro {
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.program-list {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.program-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

/* ==========================================================================
   Trust Banner
   ========================================================================== */
.trust-banner {
  background: var(--white);
  padding: 35px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  transition: all 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.icon-blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.icon-yellow { background: var(--brand-yellow-light); color: #B48400; }
.icon-red { background: var(--brand-red-light); color: var(--brand-red); }
.icon-green { background: var(--brand-green-light); color: var(--brand-green); }

.trust-info h4 { font-size: 1rem; margin-bottom: 2px; }
.trust-info p { font-size: 0.82rem; line-height: 1.4; }

/* ==========================================================================
   CCTV Live Streaming Showcase
   ========================================================================== */
.cctv-feature-section {
  background: linear-gradient(135deg, #071E3D 0%, #0F3B73 55%, #1A66D2 100%);
  border-radius: 28px;
  padding: 48px 44px;
  color: #FFFFFF;
  box-shadow: 0 20px 45px -10px rgba(15, 59, 115, 0.4);
  position: relative;
  overflow: hidden;
  margin: 35px 0 60px;
}

.cctv-feature-section::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cctv-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cctv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.cctv-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.25;
  margin-bottom: 16px;
}

.cctv-desc {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: 24px;
}

.cctv-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.cctv-benefit-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cctv-visual-col {
  display: flex;
  justify-content: center;
}

.cctv-card-visual {
  background: rgba(11, 23, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cctv-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.cctv-screen-mockup {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
  background: #000;
}

.cctv-screen-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.cctv-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.7) 100%);
}

.cctv-overlay-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
}

.cctv-overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.9);
}

.cctv-channel-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.cctv-channel-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cctv-channel-pill.active {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22C55E;
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   Inquiry & Contact
   ========================================================================== */
.inquiry-wrapper {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 45px;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
}

.inquiry-info h3 { font-size: 2rem; margin-bottom: 14px; }

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-item h5 { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-card-item p { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3.5px rgba(26, 102, 210, 0.14);
}

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

/* ==========================================================================
   Schedule Matrix & Responsive Tables
   ========================================================================== */
.schedule-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: 10px;
}

.schedule-header-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.schedule-header-tabs::-webkit-scrollbar {
  display: none;
}

.schedule-tab {
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #F8FAFC;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-tab:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(26, 102, 210, 0.3);
}

.schedule-tab.active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0c4ba6 100%);
  color: var(--white);
  border-color: var(--brand-blue);
  box-shadow: 0 6px 18px rgba(26, 102, 210, 0.3);
}

.table-scroll-hint {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  align-items: center;
  gap: 6px;
}

.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 620px;
}

.schedule-table thead {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--white);
}

.schedule-table th {
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
}

.schedule-table td {
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.schedule-table tbody tr:hover {
  background: #EFF6FF;
}

.timing-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(26, 102, 210, 0.2);
  white-space: nowrap;
}

.mobile-menu-cta-wrap {
  display: none;
}

/* ==========================================================================
   Lead Modal Overlay
   ========================================================================== */
.lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  padding-top: calc(20px + env(safe-area-inset-top));
}

.lead-modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 35px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  max-height: calc(88dvh - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0B1727;
  color: #94A3B8;
  padding: 65px 0 30px;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-brand h4 { color: var(--white); font-size: 1.35rem; margin-bottom: 12px; }
.footer-brand p { color: #94A3B8; font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.footer-col h5 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94A3B8; font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Enriched Content Components (Testimonials, Safety, Accordion, Nutrition)
   ========================================================================== */
.responsive-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.responsive-2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* Safety & Hygiene Showcase Card */
.safety-showcase-grid {
  margin-bottom: 28px;
}

.safety-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.safety-featured-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.safety-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Meal Routine Cards */
.meal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.meal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.meal-time-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Program Track Card & Responsive Track Grid */
.track-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  overflow: hidden;
}

.track-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  align-items: center;
}

.track-grid.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.track-img {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.feature-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.feature-pill-item {
  background: var(--bg-alt);
  padding: 14px;
  border-radius: 12px;
}

.pill-yellow { border-left: 3.5px solid var(--brand-yellow); }
.pill-blue { border-left: 3.5px solid var(--brand-blue); }
.pill-green { border-left: 3.5px solid var(--brand-green); }

.feature-pill-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.feature-pill-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* Feature & Activity Cards */
.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.activity-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.activity-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.activity-card-body h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.activity-card-body p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.96rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info h5 {
  font-size: 0.96rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Safety & Hygiene Feature Cards */
.safety-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.safety-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.safety-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Interactive Accordion */
.accordion-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: var(--bg-alt);
  color: var(--brand-blue);
}

.accordion-header.active {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.accordion-icon {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  color: var(--brand-blue);
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 20px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  border-top: 1px solid var(--border-color);
}

.accordion-body.open {
  display: block;
}

/* Nutrition & Meal Cards */
.meal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.meal-time-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.floating-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
}

.mobile-menu-backdrop.is-active {
  display: block;
}

.mobile-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--brand-blue);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-toggle:hover, .mobile-toggle:active {
  background: var(--brand-blue-light);
  transform: scale(1.05);
}

@media (max-width: 1366px) {
  .nav-menu { gap: 6px; }
  .nav-link { font-size: 0.77rem; padding: 4px 1px; }
  .header-actions { gap: 6px; }
  .btn-sm { padding: 6px 11px; font-size: 0.79rem; }
  .brand-logo { height: 48px; }
  .brand-title { font-size: 1.18rem; }
  .brand-tagline { font-size: 0.65rem; }
}

@media (max-width: 1200px) {
  .brand-logo { height: 48px; }
  .brand-title { font-size: 1.25rem; }
  
  .hero-grid, .page-hero-grid, .inquiry-grid, .track-grid, .track-grid.reverse, .cctv-grid, .about-grid { 
    grid-template-columns: 1fr; 
    gap: 28px; 
  }
  .programs-grid, .trust-grid, .footer-grid, .responsive-4-grid { grid-template-columns: 1fr 1fr; }
  .responsive-3-grid { grid-template-columns: 1fr 1fr; }
  
  .track-card {
    padding: 28px 20px;
  }

  .mobile-toggle { display: flex; }
  
  /* Mobile Slide-down Drawer */
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 16px 18px 24px;
    gap: 7px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
    border-bottom: 3px solid var(--brand-blue);
    border-radius: 0 0 20px 20px;
    animation: menuSlideDown 0.25s ease-out forwards;
    z-index: 1001;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu.is-active {
    display: flex !important;
  }
  
  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: #F8FAFC;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-align: left;
  }

  .nav-link:hover, .nav-link.active {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-color: rgba(26, 102, 210, 0.3);
    font-weight: 800;
    transform: none;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-cta-wrap {
    display: block !important;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
  }

  .mobile-menu-cta-wrap .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
  }

  .banner-desktop-view { display: none; }
  .banner-mobile-view { display: block; }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 14px;
  }

  .brand-logo-wrap { gap: 8px; }
  .brand-logo { height: 46px; }
  .brand-title { font-size: 1.15rem; }
  .brand-tagline { display: none; }
  
  .hero-section {
    padding: 35px 0 45px;
  }

  .hero-title, .page-hero h1 { 
    font-size: 1.85rem; 
    line-height: 1.2;
    word-break: break-word;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    font-size: 0.92rem;
    padding: 12px 16px;
    white-space: normal;
  }

  .hero-visual-card {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .banner-mobile-view {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .floating-pill {
    padding: 6px 12px;
    font-size: 0.74rem;
  }
  .floating-pill.pill-cctv { top: 8px; left: 8px; }
  .floating-pill.pill-coding { bottom: 40px; right: 8px; }

  .programs-grid, .trust-grid, .footer-grid, .form-row, .responsive-3-grid, .responsive-2-grid, .responsive-4-grid, .feature-pill-grid { 
    grid-template-columns: 1fr; 
  }

  .cctv-feature-section {
    padding: 26px 18px;
    border-radius: 20px;
    margin: 20px 0 40px;
  }

  .cctv-title {
    font-size: 1.6rem !important;
  }

  .cctv-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cctv-screen-img {
    height: 190px;
  }

  .safety-featured-img {
    height: 200px;
  }

  .safety-photo-badge {
    bottom: 10px;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 0.74rem;
    padding: 6px 12px;
  }
  
  .track-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
  }

  .track-card h2 {
    font-size: 1.6rem !important;
  }

  .track-img {
    height: 200px;
  }

  /* Keep title & info first, image second on mobile */
  .track-grid.reverse > div:first-child {
    order: 2;
  }
  .track-grid.reverse > div:last-child {
    order: 1;
  }

  .header-topbar {
    padding: 5px 0;
    font-size: 0.72rem;
  }
  
  .topbar-content { 
    flex-direction: column; 
    gap: 3px; 
    text-align: center;
    white-space: normal;
  }
  
  .topbar-left, .topbar-right {
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  /* Unclutter Mobile Header: Hide bulky desktop CTA in header; promote inside menu */
  .header-actions .btn-primary {
    display: none !important;
  }

  .header-actions .btn-whatsapp span {
    display: none;
  }
  
  .header-actions .btn-whatsapp {
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  /* Stop iOS Safari auto-zoom crop when tapping inputs */
  .form-control, input, select, textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--radius-sm);
  }

  .inquiry-wrapper { 
    padding: 22px 14px calc(34px + env(safe-area-inset-bottom)); 
  }
  
  .inquiry-form-card {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .lead-modal-content {
    padding: 26px 18px;
    border-radius: var(--radius-lg);
  }

  .schedule-container {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .table-scroll-hint {
    display: flex;
  }

  .schedule-table th, .schedule-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
  }
  
  .stat-item {
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
  }

  .stat-item h3 {
    font-size: 1.35rem;
  }

  .floating-wa-btn {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: calc(14px + env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .site-footer {
    padding-bottom: calc(35px + env(safe-area-inset-bottom));
  }
}




