/* ==========================================================================
   OneAsia Global Education - Modern, Smooth, Responsive Design System
   Brand Palette:
     Navy:       #102747 (Dark: #0A192E, Surface: #152E52, Border: rgba(255,255,255,0.1))
     Satin Gold: #D6AC60 (Light: #FBF6EC, Dark: #B88A3C, Gradient: linear-gradient(135deg, #F0CF87, #D6AC60, #B88A3C))
     Royal Blue: #2D4F76 (Accent: #1E3A5F)
     Off-White:  #F8FAFC & #F3F6FA
     Text Dark:  #0F1E36 & #1E293B
   Typography: Outfit (Headings) & Plus Jakarta Sans (Body)
   ========================================================================== */

:root {
  /* Colors */
  --navy: #102747;
  --navy-dark: #0A192E;
  --navy-surface: #142F54;
  --navy-light: #1C3F70;
  
  --royal-blue: #2D4F76;
  --royal-light: #3D6494;

  --gold: #D6AC60;
  --gold-hover: #C59B4E;
  --gold-dark: #B88A3C;
  --gold-light: #FBF6EC;
  --gold-glow: rgba(214, 172, 96, 0.35);
  --gold-gradient: linear-gradient(135deg, #F0CF87 0%, #D6AC60 55%, #B88A3C 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F5D998 0%, #E0BA72 55%, #C99846 100%);

  --light-bg: #F8FAFC;
  --light-bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --border-light: #E2E8F0;
  --border-card: rgba(226, 232, 240, 0.85);

  --text-title: #102747;
  --text-main: #1E293B;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(16, 39, 71, 0.04);
  --shadow-md: 0 10px 25px -4px rgba(16, 39, 71, 0.07);
  --shadow-lg: 0 20px 45px -8px rgba(16, 39, 71, 0.12);
  --shadow-gold: 0 10px 26px -4px rgba(214, 172, 96, 0.4);
  --shadow-card-hover: 0 18px 40px -6px rgba(16, 39, 71, 0.12);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden; /* fallback for browsers without overflow: clip */
  overflow-x: clip;   /* clips stray overflow WITHOUT creating a scroll container, so the pinned header works */
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screen Reader Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fluid Page Banner Typography (Responsive across all devices) */
.page-banner-title {
  font-size: clamp(1.75rem, 5.5vw, 2.85rem);
  color: #FFFFFF;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  word-break: break-word;
}

.page-banner-desc {
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  color: #CBD5E1;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Inner-page banner shell (About / Programs / Services / Contact) */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(44px, 8vw, 65px) 0 clamp(50px, 9vw, 75px) 0;
}

/* Closing CTA banners */
.cta-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #CBD5E1;
  margin-bottom: clamp(24px, 4vw, 32px);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* About page blocks */
.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}

/* About story: photo column stretches so its top meets the eyebrow and the
   registration chip's bottom meets the CTA, instead of floating mid-column */
.hero-grid.about-story-grid {
  align-items: stretch;
  gap: clamp(32px, 5vw, 50px);
}

.about-story-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story-photo {
  flex: 1;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--gold);
}

.about-story-photo picture {
  display: block;
  height: 100%;
}

.about-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .about-story-photo {
    flex: none;
    height: clamp(240px, 50vw, 380px);
  }
}

.liaison-card {
  padding: clamp(20px, 3vw, 24px) clamp(18px, 3.5vw, 30px);
}

/* Contact page blocks */
.contact-info-panel {
  padding: clamp(28px, 5vw, 42px) clamp(20px, 4.5vw, 34px);
}

.map-embed {
  width: 100%;
  height: clamp(280px, 45vw, 380px);
}

@media (min-width: 1025px) {
  .hero-grid.contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  /* Desktop hero: three trust points as an even row instead of a 2 + 1 wrap */
  .hero-oneasia .hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  .hero-trust-bar .trust-item {
    white-space: normal;
    line-height: 1.35;
  }
}

/* Grid children must be allowed to shrink below their content's intrinsic width
   (long emails / URLs otherwise force columns wider than the viewport) */
.hero-grid > *,
.services-grid-4 > *,
.journey-grid > *,
.programs-grid > *,
.principles-grid > *,
.footer-grid > *,
.form-grid > * {
  min-width: 0;
}

a[href^="mailto:"],
.footer-contact-item span,
.drawer-contact p {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance; /* avoid single-word orphan lines in headings */
}

.nowrap {
  white-space: nowrap;
}

/* Icon-led list items: wrapped lines align with the text, not under the icon */
li:has(> i.fa-solid:first-child) {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

li:has(> i.fa-solid:first-child) > i:first-child {
  flex-shrink: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Fluid Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.section-padding {
  padding-top: clamp(60px, 8vw, 95px);
  padding-bottom: clamp(60px, 8vw, 95px);
}

/* ==========================================================================
   Section Header & Eyebrow Typography (Apple & Editorial Luxury Standards)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(40px, 6vw, 56px) auto;
}

/* Architectural Luxury Eyebrow (Replaces generic AI bordered pill) */
.section-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--gold-dark);
  font-size: clamp(0.72rem, 1.2vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 16px;
  position: relative;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.section-badge::before,
.section-badge::after,
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: clamp(26px, 4vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.75;
}

.section-badge::after,
.section-eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-badge .eyebrow-icon,
.section-badge i,
.section-eyebrow .eyebrow-icon,
.section-eyebrow i {
  color: var(--gold-dark);
  font-size: 0.88em;
  opacity: 0.9;
}

/* On Dark Backgrounds (Page Banners, Footer, Dark CTAs) */
.section-badge.on-dark,
.section-eyebrow.on-dark,
section[style*="var(--navy)"] .section-badge,
section[style*="var(--navy-dark)"] .section-badge,
div[style*="var(--navy-dark)"] .section-badge,
.site-footer .section-badge {
  color: var(--gold);
}

.section-badge.on-dark .eyebrow-icon,
.section-badge.on-dark i,
.section-eyebrow.on-dark .eyebrow-icon,
.section-eyebrow.on-dark i,
section[style*="var(--navy)"] .section-badge i,
section[style*="var(--navy-dark)"] .section-badge i,
div[style*="var(--navy-dark)"] .section-badge i {
  color: var(--gold);
}

/* Left-Aligned Eyebrow (Cards, Form headers, Asymmetrical sections) */
.section-badge.left-aligned,
.section-eyebrow.left-aligned {
  justify-content: flex-start;
}

.section-badge.left-aligned::before,
.section-eyebrow.left-aligned::before {
  display: none;
}

.section-badge.left-aligned::after,
.section-eyebrow.left-aligned::after {
  width: clamp(34px, 5vw, 50px);
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Primary Gold Button (as seen in Mockup: Apply Now ->) */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(214, 172, 96, 0.55);
  color: var(--navy-dark);
}

/* Navy Button */
.btn-navy {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background: var(--royal-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outlined Buttons */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  color: var(--gold);
  font-size: 0.9rem;
}

.top-bar-item a {
  color: inherit;
}

.top-bar-item a:hover {
  color: var(--gold);
}

.site-header {
  position: relative;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--navy);
  transition: padding var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 20px rgba(10, 25, 46, 0.15);
}

.site-header.scrolled {
  background-color: rgba(16, 39, 71, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(10, 25, 46, 0.28);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-normal);
}

.site-header.scrolled .nav-container {
  height: 70px;
}

/* Pinned state: header leaves the flow, slides down from the top (same keyframes as reference site) */
.site-header.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  animation: menuSticky 1s ease;
}

.site-header.measuring,
.site-header.measuring * {
  transition: none !important;
}

.header-spacer {
  display: none;
}

.header-spacer.active {
  display: block;
}

@keyframes menuSticky {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0%); }
}

.brand-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

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

.brand-logo img {
  height: clamp(38px, 4.5vw, 46px);
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #E2E8F0;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 4px;
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast);
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--navy-dark);
  z-index: 2000;
  box-shadow: -10px 0 35px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  padding: 28px;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  /* transform keeps the closed drawer out of layout, so it can never cause horizontal scroll on iOS */
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--transition-normal), visibility 0s linear 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-normal), visibility 0s;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 46, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-close {
  background: transparent;
  font-size: 1.5rem;
  color: var(--gold);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.drawer-menu a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2E8F0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-menu a.active, .drawer-menu a:hover {
  background: rgba(214, 172, 96, 0.15);
  color: var(--gold);
  transform: translateX(4px);
}

.drawer-contact {
  margin-top: auto;
  font-size: 0.88rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ==========================================================================
   Hero Section (Styled after Client Approved Mockup)
   ========================================================================== */
.hero-oneasia {
  background-color: var(--navy);
  color: #FFFFFF;
  padding: clamp(40px, 6vw, 75px) 0 clamp(60px, 8vw, 95px) 0;
  position: relative;
  overflow: hidden;
}

.hero-oneasia::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, rgba(214, 172, 96, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Hero Announcement Chip (single line, clickable, status dot + intake + label)
   ========================================================================== */
.hero-live-dock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 14px 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 172, 96, 0.28);
  border-radius: var(--radius-full);
  color: #E2E8F0;
  margin-bottom: 24px;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  animation: fadeIn 0.6s ease forwards;
}

.hero-live-dock:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(214, 172, 96, 0.55);
  color: #FFFFFF;
}

.hero-live-dock:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* "Open" status: semantic green reads instantly as live/available */
.beacon-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.beacon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34D399;
  animation: beaconPulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.beacon-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18);
}

@keyframes beaconPulse {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.dock-badge {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.dock-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.dock-label {
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-arrow {
  font-size: 0.72rem;
  color: var(--gold);
  transition: transform var(--transition-fast);
}

.hero-live-dock:hover .dock-arrow {
  transform: translateX(3px);
}

.hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.hero-heading span {
  color: var(--gold);
  position: relative;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #CBD5E1;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 12px clamp(14px, 2vw, 22px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  white-space: nowrap;
  color: #E2E8F0;
  font-weight: 600;
}

.trust-item i {
  color: var(--gold);
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ambient soft halo glow behind hero showcase */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(214, 172, 96, 0.22) 0%, rgba(16, 39, 71, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(145deg, rgba(214, 172, 96, 0.45) 0%, rgba(16, 39, 71, 0.9) 50%, rgba(214, 172, 96, 0.25) 100%);
  box-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(214, 172, 96, 0.18);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.hero-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 75px -12px rgba(0, 0, 0, 0.75), 0 0 45px rgba(214, 172, 96, 0.25);
}

.hero-graduate-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover .hero-graduate-photo {
  transform: scale(1.02);
}

/* ==========================================================================
   Compliance Transparency Banner
   ========================================================================== */
.compliance-banner {
  background: var(--navy-dark);
  color: #CBD5E1;
  padding: 20px 0;
  border-top: 1px solid rgba(214, 172, 96, 0.25);
  border-bottom: 1px solid rgba(214, 172, 96, 0.25);
}

.compliance-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.compliance-icon {
  font-size: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
}

.compliance-text {
  font-size: clamp(0.82rem, 1.4vw, 0.88rem);
  line-height: 1.65;
}

.compliance-text strong {
  color: var(--gold);
}

/* ==========================================================================
   Education Services (Matching Mockup: Our Education Services)
   ========================================================================== */
.services-section {
  background-color: var(--surface);
}

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

.service-card-oneasia {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.5vw, 26px);
  border: 1px solid var(--border-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card-oneasia:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.service-card-oneasia:hover .service-icon-box {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08) rotate(3deg);
}

.service-card-title {
  font-size: clamp(1.15rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.service-card-link:hover {
  color: var(--gold-dark);
  gap: 10px;
}

/* ==========================================================================
   Student Journey Roadmap
   ========================================================================== */
.journey-section {
  background: linear-gradient(180deg, var(--light-bg) 0%, #FFFFFF 100%);
}

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

.journey-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px) clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

.journey-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid var(--gold);
  transition: transform var(--transition-fast);
}

.journey-card:hover .journey-num {
  transform: scale(1.1);
}

.journey-title {
  font-size: clamp(1.08rem, 2vw, 1.18rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-title);
}

.journey-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Filter Tabs & Product / Course Cards
   ========================================================================== */
.programs-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.filter-btn {
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

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

.program-card, .course-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.program-card:hover, .course-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

/* Stacked (badge, then meta) on every card so header bars are identical in height
   regardless of badge length */
.course-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 92px;
}

/* Institutional Academic Credential Chip (Replaces generic pill) */
.course-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 2.5px solid var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
}

.program-card-body, .course-body {
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-title, .course-title {
  font-size: clamp(1.15rem, 2vw, 1.28rem);
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 10px;
}

.program-desc, .course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-fee-panel {
  background: var(--light-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 0.9rem;
}

.fee-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

/* Explicit Delivery / Processing & Conditions Box (Editorial & Professional) */
.condition-note-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-size: 0.83rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(16, 39, 71, 0.04);
  position: relative;
  transition: all var(--transition-fast);
}

.condition-note-box:hover {
  background: #FFFFFF;
  border-left-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(16, 39, 71, 0.06);
}

.condition-note-box .note-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.condition-note-box .note-row:last-child {
  margin-bottom: 0;
}

.condition-note-box .note-icon {
  color: var(--gold-dark);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.condition-note-box strong {
  color: var(--navy);
  font-weight: 700;
}

.program-card-footer, .course-footer {
  padding: 16px 24px;
  background: #FAFBFD;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

/* ==========================================================================
   Forms, Modals & User Feedback
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end; /* fields in a row line up even when one label wraps */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-title);
}

.form-label span.req {
  color: #EF4444;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--light-bg);
  color: var(--text-main);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(214, 172, 96, 0.2);
}

.form-textarea {
  min-height: 105px;
  resize: vertical;
}

.form-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 46, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.98);
  transition: all var(--transition-normal);
  border: 1px solid var(--gold);
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #fff;
  border-color: #EF4444;
}

/* Floating Quick Action Dock: Left (Go Up) & Right (WhatsApp) */

/* Right: Floating WhatsApp with Subtle Elevation */
.floating-whatsapp {
  position: fixed;
  bottom: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.floating-whatsapp .tooltip {
  position: absolute;
  right: 66px;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  transform: translateX(6px);
  border: 1px solid rgba(214, 172, 96, 0.4);
  box-shadow: var(--shadow-md);
}

.floating-whatsapp:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Left: Go Up Button (Parallel to WhatsApp Icon on opposite side) */
.back-to-top {
  position: fixed;
  bottom: clamp(20px, 3vw, 30px);
  left: clamp(20px, 3vw, 30px);
  right: auto;
  z-index: 998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(214, 172, 96, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 39, 71, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 30px rgba(16, 39, 71, 0.4), 0 0 16px rgba(214, 172, 96, 0.25);
}

.back-to-top .tooltip {
  position: absolute;
  left: 66px;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  transform: translateX(-6px);
  border: 1px solid rgba(214, 172, 96, 0.4);
  box-shadow: var(--shadow-md);
}

.back-to-top:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  background: var(--navy-dark);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4000;
  border: 1px solid var(--gold);
  width: max-content;
  max-width: calc(100vw - 32px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* FAQ Accordion Styling */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background var(--transition-fast);
}

.faq-header:hover {
  background: var(--light-bg);
}

.faq-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-icon {
  color: var(--gold-dark);
  transition: transform var(--transition-fast);
  font-size: 0.95rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  background: #ffffff;
}

.faq-item.open .faq-body {
  max-height: 400px;
  padding: 0 24px 20px 24px;
}

.faq-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Smooth Scroll Animations (Lightweight IntersectionObserver)
   ========================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal-init.reveal-left {
  transform: translateX(-50px);
}

.reveal-init.reveal-right {
  transform: translateX(50px);
}

.reveal-init.reveal-scale {
  transform: scale(0.94);
}

.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Stagger Delays for Grid Children */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Subtle Shimmer for High-Priority CTA */
@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Custom Scrollbar for Sleek Desktop Browsing */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #0c1e38;
}
::-webkit-scrollbar-thumb {
  background: #2D4F76;
  border-radius: 6px;
  border: 2px solid #0c1e38;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  padding-top: clamp(55px, 7vw, 80px);
  border-top: 1px solid rgba(214, 172, 96, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: #CBD5E1;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: #CBD5E1;
}

/* ==========================================================================
   Responsive Architecture & Device Optimization (Senior SWE Standards)
   Breakpoints:
     - 1200px: Compact Desktops / Small Laptops
     - 1024px: Tablet Landscape & iPad Pro
     - 768px:  Tablet Portrait & Phablets
     - 640px:  Mobile Large (Plus / Max)
     - 480px:  Standard Mobile (iPhone / Galaxy)
     - 360px:  Ultra-Compact Mobile (iPhone SE)
   ========================================================================== */

/* 1. Touch & Hover Device Optimization (Avoid sticky tooltips on tap) */
@media (hover: none) {
  .floating-whatsapp .tooltip,
  .back-to-top .tooltip {
    display: none !important;
  }
}

/* 2. Compact Desktop / Laptop (<= 1200px) */
@media (max-width: 1200px) {
  .container {
    padding-left: clamp(20px, 3vw, 28px);
    padding-right: clamp(20px, 3vw, 28px);
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
  /* Keep the full desktop nav on one row on small laptops */
  .nav-menu {
    gap: 20px;
  }
  .nav-link {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .nav-actions .btn-gold {
    padding: 11px 20px;
  }
  .top-bar-left, .top-bar-right {
    gap: 16px;
  }
}

/* 3. Tablet Landscape & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  /* Off-canvas navigation from tablet down: 5 links + CTA need ~1000px to sit on one row */
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .nav-actions .btn-gold {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  .top-bar .top-bar-right .top-bar-item:last-child {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 720px;
    margin: 0 auto;
  }
  /* .hero-grid is reused for 2-col content sections (About story, Contact form); only the hero is centred */
  section:not(.hero-oneasia) .hero-grid {
    text-align: left;
  }
  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-trust-bar {
    justify-content: center;
  }
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-floating-card {
    position: static;
    margin: 16px auto 0 auto;
    max-width: 320px;
    animation: none;
  }
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 4. Tablet Portrait & Phablets (<= 768px) */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .site-header .nav-container {
    height: 68px;
  }
  .site-header.scrolled .nav-container {
    height: 60px;
  }
  .nav-menu, .nav-actions .btn-gold {
    display: none;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Touch-friendly single-row swipeable filter bar */
  .programs-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 18px 14px 18px;
    margin-left: -18px;
    margin-right: -18px;
    scrollbar-width: none;
  }
  .programs-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
  }

  .services-grid-4, 
  .journey-grid, 
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .faq-header {
    padding: 16px 18px;
    gap: 12px;
  }
  .faq-title {
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .faq-title i {
    margin-top: 4px;
  }
  .faq-item.open .faq-body {
    padding: 0 18px 18px 18px;
  }
  .faq-body {
    padding: 0 18px;
  }
  .faq-item.open .faq-body {
    max-height: 900px; /* answers wrap to many more lines on narrow screens */
  }
  .compliance-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Safe Area Aware Action Dock */
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.55rem;
    bottom: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-bottom, 0px));
    right: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-right, 0px));
  }
  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-bottom, 0px));
    left: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-left, 0px));
  }
}

/* 5. Mobile Large & Small (<= 640px) */
@media (max-width: 640px) {
  .section-padding {
    padding-top: clamp(45px, 7vw, 65px);
    padding-bottom: clamp(45px, 7vw, 65px);
  }
  /* Modal becomes a flush bottom sheet */
  .modal-overlay {
    padding: 10px 0 0 0;
    align-items: flex-end;
  }
  .modal-container {
    max-height: 94vh;
    max-height: 94dvh;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)) 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }
  /* iOS zooms the page when focusing inputs under 16px */
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
  }
  .toast-msg {
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    padding: 12px 18px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
}

/* 6. Mobile Standard & Ultra-Compact (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header .nav-container {
    height: 62px;
  }
  .brand-logo img {
    height: 34px;
  }
  /* Long CTA labels wrap instead of being clipped */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-panel a[href^="mailto:"] {
    font-size: 0.84rem;
  }
  .programs-filter-bar {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
  }
  .hero-live-dock {
    gap: 8px;
    padding: 6px 12px 6px 10px;
  }
  .dock-label-extra {
    display: none;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-oneasia .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding-top: 18px;
  }
  .section-eyebrow {
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .section-eyebrow::before,
  .section-eyebrow::after {
    width: 18px;
  }
  .course-header {
    padding: 14px 18px;
    min-height: 84px;
  }
  .course-body, .program-card-body {
    padding: 18px 16px;
  }
  .condition-note-box {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .floating-whatsapp {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .back-to-top {
    width: 46px;
    height: 46px;
    font-size: 1rem;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
  }
}

/* 7. Ultra-Compact Phones (<= 360px - iPhone SE, Galaxy Fold outer screen) */
@media (max-width: 360px) {
  .hero-heading {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .page-banner-title {
    font-size: 1.65rem;
  }
  .fee-amount {
    font-size: 1rem;
  }
}

/* 8. Touch devices: no sticky "lifted" hover states after a tap */
@media (hover: none) {
  .service-card-oneasia:hover,
  .journey-card:hover,
  .program-card:hover,
  .course-card:hover,
  .hero-campus-photo:hover,
  .filter-btn:hover {
    transform: none;
  }
  .drawer-menu a:hover {
    transform: none;
  }
}

/* 9. Short landscape phones: keep hero, drawer and modal usable */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-oneasia {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .drawer-menu {
    gap: 6px;
    margin-bottom: 16px;
  }
  .drawer-header {
    margin-bottom: 14px;
  }
  .modal-container {
    max-height: 100vh;
    max-height: 100dvh;
  }
}

/* 10. Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-init,
  .reveal-init.reveal-left,
  .reveal-init.reveal-right,
  .reveal-init.reveal-scale {
    opacity: 1;
    transform: none;
  }
}
