@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

/*
 * KMA Education — Multikid-Inspired High-Energy Redesign Layer
 * Warm palette, Montserrat typography, generous 24px/32px rounded cards,
 * energetic accent orange CTAs, friendly pill buttons, and soft elevation.
 */

:root {
  color-scheme: light;
  --primary: #1F5AE0;
  --primary-dk: #163F9E;
  --primary-light: #E8EFFF;
  --accent: #FF7A00;
  --accent-dk: #E56A00;
  --bg: #FFFFFF;
  --bg-dark: #0d1e3a;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F7FA;
  --text: #14161A;
  --text-muted: #4A5058;
  --border: #E4E8ED;
  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(20, 22, 26, 0.06);
  --shadow-lg: 0 16px 40px rgba(20, 22, 26, 0.10);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --page-width: 1200px;
}

html {
  scroll-padding-top: 88px;
  scrollbar-color: rgba(29, 29, 31, 0.28) transparent;
}

body {
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-optical-sizing: auto;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(10, 132, 255, 0.2);
}

:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.45);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--page-width) + 48px);
  margin-inline: auto;
  padding-inline: clamp(14px, 4.5vw, 24px);
  box-sizing: border-box;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.nav-apply-btn,
.filter-btn,
.faq-header,
.country-back-btn,
.chat-toggle-btn,
.chat-social-btn {
  touch-action: manipulation;
}

.btn:active,
.nav-apply-btn:active,
.filter-btn:active,
.btn-card-apply:active,
.btn-pricing-cta:active,
.btn-prog-apply:active,
.btn-wz-apply:active,
.btn-submit-main:active,
.btn-uni-apply:active,
.btn-cal-action:active,
.team-tg-btn:active,
.chat-toggle-btn:active,
.chat-social-btn:active {
  transform: scale(0.97) !important;
  transition-duration: 90ms !important;
}

/* Floating navigation material */
.navbar,
.navbar.scrolled {
  top: 0;
  background: rgba(250, 250, 252, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background 0.3s var(--ease-spring), border-color 0.3s ease;
}

.navbar:not(.scrolled):has(.top-bar) {
  background: rgba(5, 14, 27, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.top-bar {
  height: 34px;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
}

.top-bar-container {
  width: min(100%, calc(var(--page-width) + 48px));
  margin-inline: auto;
  height: 100%;
  padding-inline: 24px;
  font-size: 0.71rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  height: 100%;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.32);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.25;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.top-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
  line-height: 1;
  user-select: none;
}

.top-tg-link {
  color: #79bdff;
  transition: color 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.top-tg-link:hover {
  color: #93c5fd;
}

.nav-container {
  width: min(100%, calc(var(--page-width) + 48px));
  max-width: none;
  margin-inline: auto;
  height: 64px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar:has(.top-bar) .nav-container {
  height: 62px;
}

.nav-logo {
  flex: 0 0 auto;
}

.nav-logo img,
.navbar.scrolled .nav-logo img {
  width: 150px;
  max-width: 150px;
  height: 39px;
  object-fit: contain;
  filter: none;
  transition: transform 0.32s var(--ease-spring);
}

.navbar:not(.scrolled):has(.top-bar) .nav-logo img {
  filter: none;
}

.nav-logo:active img {
  transform: scale(0.96);
}

.nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a,
.nav-dropdown-btn,
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-dropdown-btn {
  color: rgba(29, 29, 31, 0.75);
  font-size: 0.78rem;
  font-weight: 520;
  letter-spacing: -0.005em;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.navbar:not(.scrolled):has(.top-bar) .nav-links a,
.navbar:not(.scrolled):has(.top-bar) .nav-dropdown-btn {
  color: #14161A;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active-nav,
.nav-dropdown-btn:hover,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-dropdown-btn:hover {
  color: var(--primary);
}

.navbar:not(.scrolled):has(.top-bar) .nav-links a:hover,
.navbar:not(.scrolled):has(.top-bar) .nav-dropdown-btn:hover {
  color: var(--primary);
}

.nav-apply-btn {
  min-height: 42px;
  padding: 9px 20px;
  border-radius: var(--radius-pill) !important;
  background: var(--accent) !important;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28) !important;
  color: #FFFFFF !important;
  font-family: var(--font) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  transition: background 0.18s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease !important;
}

.nav-apply-btn:hover {
  background: var(--accent-dk) !important;
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.42) !important;
  transform: translateY(-2px);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-dropdown-btn {
  border-radius: 999px;
  padding: 7px 12px;
}

.nav-dropdown-menu {
  top: calc(100% + 4px);
  padding: 8px;
  min-width: 226px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(248, 248, 250, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transform-origin: 50% 0;
  transform: translateX(-50%) translateY(-6px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease 0.12s, transform 0.28s var(--ease-spring), visibility 0.18s ease 0.12s;
}

/* Invisible hover bridge to eliminate gap between button and menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.hovered .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  transition-delay: 0s !important;
}

.nav-dropdown-menu a,
.navbar:not(.scrolled):has(.top-bar) .nav-dropdown-menu a {
  min-height: 40px;
  border-radius: 12px;
  color: #2d2d30 !important;
  font-size: 0.84rem !important;
  position: relative;
  z-index: 2;
}

.nav-dropdown-menu a:hover {
  background: rgba(10, 132, 255, 0.1) !important;
  color: var(--primary) !important;
  transform: none;
}

.lang-switcher,
.nav-right[style] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 3px;
}

.navbar:not(.scrolled):has(.top-bar) .lang-switcher {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.lang-btn,
.navbar.scrolled .lang-btn {
  min-width: 30px;
  min-height: 29px;
  padding: 5px 7px;
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.58);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.lang-btn:hover,
.lang-btn.active,
.navbar.scrolled .lang-btn:hover,
.navbar.scrolled .lang-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09);
}

.navbar:not(.scrolled):has(.top-bar) .lang-btn {
  color: #4A5058;
}

.navbar:not(.scrolled):has(.top-bar) .lang-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09);
}

.lang-sep {
  display: none;
}

/* Home hero — Multikid Warm Gradient & High-Energy Style */
.hero {
  min-height: max(720px, 95svh);
  background: linear-gradient(196.79deg, rgba(204, 167, 214, 0.95) 12.998%, rgba(0, 109, 188, 0.96) 89.596%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-bg {
  background:
    linear-gradient(196.79deg, rgba(204, 167, 214, 0.92) 12.998%, rgba(0, 109, 188, 0.95) 89.596%),
    url('assets/photos/singapore-skyline-diego-allen.jpg') center 35% / cover no-repeat;
  transform: scale(1.01);
}

.hero-particles,
.hero-scroll-hint {
  display: none;
}

.hero-container {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(42px, 6vw, 82px);
  padding-top: 146px;
  padding-bottom: 78px;
}

.hero-badge,
.section-label,
.section-label.light,
.accred-section .section-label,
.calendar-section .section-label,
.section-dark .section-label {
  padding: 6px 14px;
  border: 0 !important;
  border-radius: var(--radius-pill);
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  text-transform: none;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.hero-title {
  max-width: 730px;
  margin-bottom: 22px;
  color: #FFFFFF;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.gradient-text {
  background: none;
  color: #FFD166;
  -webkit-text-fill-color: #FFD166;
}

.hero-sub {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.hero-btns {
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  min-height: 52px;
  justify-content: center;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.btn-primary,
.btn-gold {
  background: var(--accent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.32);
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--accent-dk) !important;
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.hero-stats-row {
  max-width: 680px;
  gap: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stat-item {
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item:first-child {
  padding-left: 0;
}

.hero-stat-item:last-child {
  border-right: 0;
}

.hero-stat-item .stat-num,
.hero-stat-item.highlight .stat-num {
  margin: 0 0 5px;
  color: #FFD166;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.hero-stat-item.highlight .stat-num {
  color: var(--accent);
}

.hero-stat-item .stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.academic-3d-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease;
}

.academic-3d-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.academic-3d-tag {
  position: absolute;
  top: 27px;
  left: 27px;
  z-index: 2;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 14, 27, 0.55);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  letter-spacing: 0.06em;
}

.academic-3d-img-box {
  margin-bottom: 0;
  border-radius: 20px;
  box-shadow: none;
}

.academic-3d-img {
  height: 258px;
  transition: transform 0.55s var(--ease-spring);
}

.academic-3d-card:hover .academic-3d-img {
  transform: scale(1.015);
}

.academic-3d-body {
  padding: 18px 8px 6px;
}

.package-pill {
  border: 0;
  background: rgba(48, 209, 88, 0.13);
  color: #7ee995;
  font-weight: 600;
}

.package-rating {
  color: #ffd60a;
  letter-spacing: 0.03em;
}

.academic-package-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.academic-package-desc,
.academic-price-sub {
  color: rgba(255, 255, 255, 0.58);
}

.academic-price-row {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.academic-price-val[style] {
  color: #8dcaff !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
}

.btn-card-apply,
.btn-pricing-cta,
.btn-prog-apply,
.btn-wz-apply,
.btn-submit-main,
.btn-uni-apply,
.btn-cal-action,
.team-tg-btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  font-family: var(--font);
  font-weight: 600;
  transition: background 0.18s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.btn-card-apply:hover,
.btn-pricing-cta:hover,
.btn-prog-apply:hover,
.btn-wz-apply:hover,
.btn-submit-main:hover,
.btn-uni-apply:hover,
.btn-cal-action:hover,
.team-tg-btn:hover {
  background: var(--primary-dk);
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* Content rhythm and typography */
.section,
.accred-section,
.pricing-section,
.wizard-section,
.calendar-section,
.docs-section,
.team-section,
.calc-section,
.edu-section,
.lead-form-section,
.faq-section {
  padding-block: clamp(76px, 9vw, 124px);
}

.section-title,
.country-section-title,
.wizard-title,
.country-cta h2 {
  color: var(--text);
  font-weight: 680;
  letter-spacing: -0.042em;
  line-height: 1.07;
}

.section-title {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
}

.section-sub {
  max-width: 720px;
  margin-bottom: 54px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.section-dark,
.calendar-section,
.pricing-section {
  background: #07111f;
  color: #f5f5f7;
}

.section-accent,
.accred-section,
.wizard-section,
.lead-form-section {
  background: #f5f5f7;
  color: var(--text);
}

.section-dark .section-title,
.calendar-section .section-title,
.pricing-section .section-title,
.section-title.light {
  color: #f5f5f7 !important;
}

.accred-section .section-title,
.wizard-section .section-title,
.lead-form-section .section-title,
.section-accent .section-title {
  color: var(--text) !important;
}

.section-dark .section-sub,
.calendar-section .section-sub,
.pricing-section .section-sub,
.section-sub.light {
  color: rgba(245, 245, 247, 0.64) !important;
}

.accred-section .section-sub,
.wizard-section .section-sub,
.lead-form-section .section-sub {
  color: var(--text-muted) !important;
}

.pricing-section::before {
  opacity: 0.12;
  background: radial-gradient(circle at 70% 20%, rgba(10, 132, 255, 0.55), transparent 42%);
}

/* Reusable surfaces */
.about-card,
.service-card,
.uni-card,
.why-item,
.contact-card,
.step-card,
.comparison-card,
.calc-box,
.accred-card,
.prog-card,
.case-card,
.doc-card,
.team-card,
.cost-card,
.country-uni-card,
.pros-box,
.cons-box,
.faq-item,
.lead-form-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  transition: transform 0.38s var(--ease-spring), border-color 0.2s ease, box-shadow 0.38s ease;
}

.about-card:hover,
.service-card:hover,
.uni-card:hover,
.why-item:hover,
.contact-card:hover,
.step-card:hover,
.accred-card:hover,
.prog-card:hover,
.case-card:hover,
.doc-card:hover,
.team-card:hover,
.cost-card:hover,
.country-uni-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.floating,
.delay-1,
.delay-2 {
  animation: none;
}

.about-grid {
  gap: clamp(44px, 7vw, 90px);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-stats {
  gap: 12px;
}

.about-stats .stat {
  min-width: 124px;
  padding: 17px 18px;
  border-radius: 18px;
  background: #f5f5f7;
}

.stat-num {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: 2.35rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.about-card {
  padding: 22px;
}

.about-card-icon,
.service-icon,
.why-icon,
.contact-icon,
.team-avatar-box {
  border-radius: 16px;
  background: #eef6ff;
}

.service-card,
.why-item {
  min-height: 220px;
  padding: 28px;
}

.section-dark .service-card,
.section-accent .why-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: #f5f5f7;
}

.section-accent .why-item {
  border-color: rgba(0, 0, 0, 0.07);
  background: #fff;
  color: var(--text);
}

.section-accent .why-item h3,
.section-accent .why-item p {
  color: inherit;
}

.section-accent .why-item p {
  color: var(--text-muted);
}

.accred-grid,
.prog-cat-grid,
.docs-grid,
.team-grid,
.cases-grid,
.cal-grid,
.cost-grid,
.country-uni-grid {
  gap: 18px;
}

.accred-card {
  padding: 26px;
  text-align: left;
}

.accred-card.highlight,
.prog-card.highlight-card,
.doc-card.highlight-doc {
  border-color: rgba(10, 132, 255, 0.35);
  background: #eef6ff;
}

.accred-badge-icon,
.prog-icon,
.cost-icon,
.team-avatar-icon,
.service-icon,
.why-icon,
.contact-icon {
  filter: saturate(0.82);
}

.pricing-grid {
  gap: 20px;
}

.pricing-hero-card {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pricing-pill,
.wizard-badge,
.uni-tag,
.case-badge-pill,
.cal-status-badge,
.package-pill {
  border-radius: 999px;
}

.pricing-amount {
  font-weight: 700;
  letter-spacing: -0.055em;
}

.payment-split-box,
.why-trust-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.payment-refund-notice {
  border: 0;
  border-radius: 12px;
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.payment-refund-notice > .inline-ui-icon {
  margin-right: 6px;
  vertical-align: -4px;
}

.inline-ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.btn .inline-ui-icon,
.mobile-sticky-btn .inline-ui-icon {
  width: 20px;
  height: 20px;
}

.about-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.why-trust-box strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-card {
  overflow: hidden;
}

.uni-controls {
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: #f5f5f7;
}

.filter-btn {
  min-height: 39px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.filter-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.uni-search-input,
.calc-select,
.wizard-select,
.form-input-modern,
.form-select-modern,
.auth-input {
  min-height: 50px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.uni-search-input:focus,
.calc-select:focus,
.wizard-select:focus,
.form-input-modern:focus,
.form-select-modern:focus,
.auth-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
  outline: none;
}

.calendar-section .cal-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.calendar-section .cal-card.current {
  border-color: rgba(10, 132, 255, 0.58);
  background: rgba(10, 132, 255, 0.11);
}

.cal-dates {
  background: rgba(0, 0, 0, 0.18);
}

.calc-section,
.faq-section,
.docs-section {
  background: #f5f5f7;
}

.calc-box,
.lead-form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 32px;
  background: #fff;
}

.lead-form-card {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.faq-wrapper {
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border-radius: 18px;
}

.faq-header {
  min-height: 62px;
  padding: 18px 20px;
}

.faq-chevron {
  border-radius: 50%;
  transition: transform 0.32s var(--ease-spring), background 0.2s ease;
}

.faq-item.active .faq-chevron {
  background: #eef6ff;
}

/* Country detail pages */
.country-hero {
  height: min(680px, 76svh);
  min-height: 560px;
  padding-top: 64px !important;
  background: #07111f;
}

.country-hero-bg {
  transform: scale(1.015);
}

.country-hero-overlay {
  background: linear-gradient(180deg, rgba(5, 14, 27, 0.27) 0%, rgba(5, 14, 27, 0.78) 100%);
}

.country-hero-content {
  width: min(100%, 960px);
  padding-inline: 24px;
}

.country-back-btn {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.country-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.country-flag {
  margin: 22px 0 10px;
  font-size: 2.5rem;
}

.country-hero-title {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.country-hero-sub {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.country-body {
  padding: clamp(76px, 9vw, 118px) 0;
  background: #fff;
}

.country-body .container {
  gap: clamp(72px, 9vw, 116px);
}

.country-section-title {
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.cost-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cost-card {
  min-height: 202px;
  padding: 26px;
  text-align: left;
}

.cost-icon {
  font-size: 1.55rem;
}

.cost-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cost-amount {
  margin-top: 12px;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.pros-cons-grid {
  gap: 18px;
}

.pros-box,
.cons-box {
  padding: clamp(24px, 4vw, 38px);
}

.pros-box {
  background: #f2fbf4;
  border-color: rgba(52, 199, 89, 0.17);
}

.cons-box {
  background: #fff8f5;
  border-color: rgba(255, 159, 10, 0.18);
}

.cons-box h3 {
  color: #b95000;
}

.country-uni-card {
  padding: 30px;
}

.country-uni-card img {
  height: 74px;
}

.country-cta {
  padding: clamp(36px, 7vw, 72px);
  border-radius: 34px;
  background: #07111f;
  box-shadow: none;
  text-align: left;
}

.country-cta h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.country-cta p {
  max-width: 700px;
  margin-inline: 0;
  color: rgba(255, 255, 255, 0.64);
}

.cta-btns {
  justify-content: flex-start;
}

/* Materialized dialogs and utility UI */
.kma-modal {
  padding: 20px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.2s ease, backdrop-filter 0.3s ease;
}

.kma-modal.open {
  opacity: 1;
}

.kma-modal-box,
.uni-modal-box {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(252, 252, 253, 0.9);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  animation: none;
  transition: opacity 0.22s ease, transform 0.42s var(--ease-spring);
}

.kma-modal-box {
  color: var(--text);
}

.kma-modal-box h3,
.kma-modal-box h3[style] {
  color: var(--text) !important;
  font-weight: 680 !important;
  letter-spacing: -0.025em;
}

.kma-modal-box > p,
.kma-modal-box > p[style] {
  color: var(--text-muted) !important;
}

.kma-modal-box .form-label-modern {
  color: #3a3a3c;
}

.kma-modal.open .kma-modal-box,
.kma-modal.open .uni-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.kma-modal-close,
.btn-uni-modal-close {
  border: 0;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  color: #3a3a3c;
}

.kma-modal-close:hover,
.btn-uni-modal-close:hover {
  background: rgba(118, 118, 128, 0.2);
}

.uni-stat-box,
.uni-info-highlight-box,
.uni-faculty-pill {
  border-color: rgba(0, 0, 0, 0.07);
  background: #f5f5f7;
}

.kma-toast {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(25, 25, 28, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.chat-widget {
  right: 20px;
  bottom: 22px;
}

.chat-toggle-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(10, 132, 255, 0.88);
  box-shadow: 0 12px 35px rgba(10, 132, 255, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chat-toggle-btn::before {
  display: none;
}

.chat-social-btn {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(248, 248, 250, 0.86);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.mobile-sticky-btn {
  border-radius: 14px;
  background: var(--primary);
}

/* Footer */
.footer {
  padding: 32px 0 22px;
  background: #07111f;
  color: #f5f5f7;
}

.footer-inner {
  gap: 16px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-logo img {
  height: 32px !important;
  filter: brightness(0) invert(1) !important;
}

.footer-logo p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52) !important;
}

.footer-copy,
.footer-links a,
.footer-links a[style],
.photo-attribution {
  color: rgba(255, 255, 255, 0.52) !important;
}

.footer-links {
  gap: 8px 22px;
}

.footer-links a:hover,
.footer-links a[style]:hover {
  color: #fff !important;
}

.footer-copy {
  font-size: 0.76rem;
  line-height: 1.4;
}

/* Admin system alignment */
/* ==========================================================================
   Admin System — Apple Design System Alignment & Mobile UI
   ========================================================================== */
body.admin-body {
  background: #f5f5f7 !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 60px;
}

.admin-container {
  width: 100%;
  max-width: 1300px;
  margin: 28px auto;
  padding-inline: clamp(14px, 4vw, 24px);
  box-sizing: border-box;
}

/* Navbar */
.admin-navbar {
  background: rgba(250, 250, 252, 0.88) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(14px, 4vw, 24px);
}

.admin-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-nav-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text) !important;
}

.admin-brand img,
.admin-brand-logo {
  height: 34px !important;
  width: auto !important;
  object-fit: contain;
  filter: none !important;
}

.admin-brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.admin-badge {
  background: rgba(10, 132, 255, 0.12) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(10, 132, 255, 0.22) !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(118, 118, 128, 0.12) !important;
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  box-shadow: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-admin:hover {
  background: rgba(118, 118, 128, 0.18) !important;
  transform: translateY(-1px);
}

.btn-admin:active {
  transform: scale(0.97);
}

.btn-admin-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.btn-admin-primary:hover {
  background: #0071e3 !important;
  color: #fff !important;
}

.btn-admin-success {
  background: #34c759 !important;
  color: #fff !important;
  border-color: #34c759 !important;
}

.btn-admin-success:hover {
  background: #28a745 !important;
  color: #fff !important;
}

.btn-admin-danger {
  color: #ff3b30 !important;
  background: rgba(255, 59, 48, 0.1) !important;
  border-color: rgba(255, 59, 48, 0.2) !important;
}

.btn-admin-danger:hover {
  background: rgba(255, 59, 48, 0.16) !important;
}

.btn-admin-logout-compact {
  display: none !important;
}

/* Tabs: Apple-Style Segmented Control */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: rgba(118, 118, 128, 0.1);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tab-btn {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.tab-btn:hover {
  color: var(--text) !important;
}

.tab-btn.active {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  font-weight: 700;
}

/* Cards & Surface Harmonization */
.stat-card,
.breakdown-card,
.table-section,
.settings-panel,
.auth-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: var(--text) !important;
  box-sizing: border-box;
}

.stat-card::before {
  display: none !important;
}

.stat-label {
  color: var(--text-muted) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-value {
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-sub {
  color: var(--text-muted) !important;
  font-size: 0.76rem;
}

.breakdown-title {
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 700;
}

.bar-track {
  background: rgba(118, 118, 128, 0.12) !important;
}

.bar-header {
  color: var(--text-muted) !important;
}

/* Table Section & Toolbar */
.table-section {
  padding: 24px !important;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15) !important;
}

.filter-select {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  padding: 10px 12px !important;
  font-size: 0.86rem !important;
  outline: none;
}

.filter-select:focus {
  border-color: var(--primary) !important;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

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

table.leads-table th {
  background: #f8f8fa !important;
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  white-space: nowrap;
}

table.leads-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: var(--text) !important;
  font-size: 0.86rem;
  vertical-align: middle;
}

table.leads-table tr:last-child td {
  border-bottom: 0 !important;
}

table.leads-table tr:hover td {
  background: rgba(10, 132, 255, 0.03) !important;
}

.lead-name {
  color: var(--text) !important;
  font-weight: 600;
}

.contact-badge.wa {
  background: rgba(52, 199, 89, 0.15) !important;
  color: #248a3d !important;
  border: 1px solid rgba(52, 199, 89, 0.3) !important;
}

.contact-badge.tg {
  background: rgba(10, 132, 255, 0.12) !important;
  color: #0066cc !important;
  border: 1px solid rgba(10, 132, 255, 0.25) !important;
}

.status-select {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px;
  color: var(--text) !important;
  padding: 5px 8px;
  font-size: 0.8rem;
}

/* Analytics Controls */
.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.period-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.period-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.period-buttons {
  display: inline-flex;
  background: rgba(118, 118, 128, 0.1);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.btn-period {
  background: transparent !important;
  border: 0 !important;
  color: var(--text-muted) !important;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-period:hover {
  color: var(--text) !important;
}

.btn-period.active {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Modals & Dialogs */
#authOverlay {
  background: rgba(245, 245, 247, 0.94) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-card {
  padding: 36px 32px;
}

.auth-card h2 {
  color: var(--text) !important;
}

.auth-input {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text) !important;
}

.auth-input:focus {
  border-color: var(--primary) !important;
}

.admin-modal {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2) !important;
  color: var(--text) !important;
  border-radius: 24px !important;
}

.modal-box h2,
.modal-box h3,
#modalLeadName {
  color: var(--text) !important;
}

.modal-close {
  background: rgba(118, 118, 128, 0.12) !important;
  color: var(--text) !important;
}

.modal-close:hover {
  background: rgba(118, 118, 128, 0.2) !important;
}

.lead-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

#modalLeadMessage {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text) !important;
  border-radius: 14px;
}

.form-control-admin {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--text) !important;
  border-radius: 12px;
}

.form-control-admin:focus {
  border-color: var(--primary) !important;
}

.lead-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.settings-config-box {
  background: #f8f8fa !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text) !important;
}

.settings-config-box,
.settings-config-box div {
  color: var(--text-muted) !important;
}

.settings-config-box strong {
  color: var(--text) !important;
}

.settings-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   Admin Responsive Breakpoints: Tablets & Smartphones
   ========================================================================== */

@media (max-width: 850px) {
  .analytics-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .admin-navbar {
    padding: 10px clamp(12px, 3.5vw, 18px) !important;
  }

  .admin-nav-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-nav-brand-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .admin-brand-title {
    display: none !important;
  }

  .btn-admin-logout-compact {
    display: inline-flex !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    min-height: 36px !important;
  }

  .btn-admin-logout-desktop {
    display: none !important;
  }

  .admin-nav-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .admin-nav-actions .btn-admin {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .toolbar-left {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .search-input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
  }

  .filter-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .filter-select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 8px !important;
  }

  .toolbar-right,
  .toolbar-right .btn-admin-refresh {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
  }

  .analytics-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .period-selector-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .period-buttons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
  }

  .btn-period {
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 2px !important;
    font-size: 0.75rem !important;
  }

  .analytics-refresh-wrapper,
  .analytics-refresh-wrapper .btn-admin-refresh {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
}

@media (max-width: 600px) {
  .admin-container {
    margin: 18px auto !important;
    padding-inline: 14px !important;
  }

  .tab-sub {
    display: none !important;
  }

  .tab-btn {
    font-size: 0.82rem !important;
    padding: 10px 6px !important;
    min-height: 44px !important;
  }

  /* 2x2 Metric Grids */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .stats-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
  }

  .stat-value {
    font-size: 1.55rem !important;
  }

  .stat-sub {
    font-size: 0.68rem !important;
    margin-top: 2px !important;
  }

  .table-section {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  .breakdown-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  /* Modals */
  .admin-modal {
    padding: 12px !important;
  }

  .modal-box {
    padding: 22px 16px !important;
    border-radius: 20px !important;
    max-height: 88svh !important;
  }

  .lead-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .lead-modal-actions {
    flex-direction: column-reverse !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .lead-modal-actions .btn-admin {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  .settings-modal-actions {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .settings-modal-actions .btn-admin {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }
}

/* Micro-tuning for narrow smartphones (<= 380px) */
@media (max-width: 380px) {
  .admin-container {
    padding-inline: 10px !important;
  }

  .admin-brand-title {
    font-size: 0.98rem !important;
  }

  .admin-badge {
    display: none !important;
  }

  .btn-label-mobile {
    display: none !important;
  }

  .auth-card {
    padding: 24px 16px !important;
  }

  .auth-input {
    padding: 10px 12px !important;
    font-size: 1rem !important;
  }

  .auth-card h2 {
    font-size: 1.22rem !important;
  }

  .stat-value {
    font-size: 1.4rem !important;
  }
}

/* Responsive behavior */
@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links > a:not(.nav-apply-btn):nth-child(5),
  .nav-links > a:not(.nav-apply-btn):nth-child(6) {
    display: none;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.68fr);
    gap: 38px;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .desktop-apply-btn,
  .nav-right > .nav-apply-btn {
    display: none !important;
  }

  .navbar:has(.top-bar) .nav-container {
    height: 64px;
  }

  .navbar:not(.scrolled):has(.top-bar) {
    background: rgba(5, 14, 27, 0.72);
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    max-height: calc(100svh - 78px);
    padding: 12px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(248, 248, 250, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.18s ease, transform 0.35s var(--ease-spring), visibility 0.18s;
  }

  .nav-links.open {
    background: rgba(248, 248, 250, 0.94) !important;
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > a,
  .nav-links > a:not(.nav-apply-btn):nth-child(5),
  .nav-links > a:not(.nav-apply-btn):nth-child(6),
  .navbar:not(.scrolled):has(.top-bar) .nav-links > a {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 13px;
    color: var(--text) !important;
    font-size: 0.94rem;
  }

  .nav-links > a:hover {
    background: rgba(10, 132, 255, 0.09);
  }

  .nav-links.open > a {
    border-bottom-color: rgba(0, 0, 0, 0.07);
    color: var(--text) !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn,
  .navbar:not(.scrolled):has(.top-bar) .nav-dropdown-btn {
    width: 100%;
    min-height: 45px;
    justify-content: flex-start;
    color: var(--text);
    font-size: 0.94rem;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    border: 0;
    background: #f0f0f2 !important;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.active .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown-menu a,
  .nav-links.open .nav-dropdown-menu a,
  .navbar:not(.scrolled):has(.top-bar) .nav-links.open .nav-dropdown-menu a,
  .navbar.scrolled .nav-links.open .nav-dropdown-menu a {
    min-height: 42px;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
    color: var(--text) !important;
  }

  .nav-dropdown-menu a:hover,
  .nav-links.open .nav-dropdown-menu a:hover {
    background: rgba(10, 132, 255, 0.09) !important;
    color: var(--primary) !important;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 50%;
    background: rgba(118, 118, 128, 0.12);
  }

  .hamburger span,
  .navbar.scrolled .hamburger span {
    width: 18px;
    background: var(--text);
  }

  .navbar:not(.scrolled):has(.top-bar) .hamburger span {
    background: #fff;
  }

  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 124px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title,
  .hero-sub,
  .hero-stats-row {
    margin-inline: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-showcase {
    width: min(100%, 520px);
    margin-inline: auto;
  }

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

@media (max-width: 640px) {
  .container,
  .nav-container,
  .top-bar-container,
  .country-hero-content {
    padding-inline: clamp(14px, 4.5vw, 18px);
  }

  .nav-container {
    gap: 8px;
  }

  .nav-logo img,
  .navbar.scrolled .nav-logo img {
    width: clamp(102px, 30vw, 126px);
    height: auto;
    max-height: 34px;
    object-fit: contain;
  }

  .desktop-apply-btn,
  .nav-right > .nav-apply-btn {
    display: none !important;
  }

  .lang-switcher,
  .nav-right[style] {
    padding: 2px;
    gap: 2px;
  }

  .lang-btn,
  .navbar.scrolled .lang-btn {
    min-width: 25px;
    min-height: 27px;
    padding: 3px 5px;
    font-size: 0.65rem;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(4, 12, 24, 0.88) 0%, rgba(4, 12, 24, 0.96) 76%),
      url('campus_hero_bg.jpg') 57% center / cover no-repeat;
  }

  .hero-container {
    gap: 34px;
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .hero-badge {
    max-width: 100%;
    text-align: left;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .hero-btns,
  .hero-btns .btn {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .hero-stat-item,
  .hero-stat-item:first-child {
    padding: 0 12px;
    border-right: 0;
  }

  .academic-3d-img {
    height: 210px;
  }

  .academic-price-row {
    align-items: flex-start;
    gap: 14px;
  }

  .btn-card-apply {
    padding-inline: 13px;
  }

  .section,
  .accred-section,
  .pricing-section,
  .wizard-section,
  .calendar-section,
  .docs-section,
  .team-section,
  .calc-section,
  .edu-section,
  .lead-form-section,
  .faq-section {
    padding-block: 72px;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .about-grid {
    gap: 34px;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats .stat {
    min-width: 0;
    padding: 14px 10px;
  }

  .about-stats .stat-num {
    font-size: 1.75rem;
  }

  .services-grid,
  .why-grid,
  .prog-cat-grid,
  .docs-grid,
  .team-grid,
  .cases-grid,
  .cal-grid,
  .cost-grid,
  .country-uni-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(n),
  .why-item,
  .why-item:nth-child(n) {
    grid-column: auto;
    min-height: 0;
  }

  .uni-controls {
    align-items: stretch;
    padding: 8px;
  }

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

  .filter-btn {
    padding-inline: 10px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .country-hero {
    min-height: 520px;
    height: 70svh;
  }

  .country-hero-title {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .country-body .container {
    gap: 74px;
  }

  .country-cta {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .cta-btns,
  .cta-btns .btn {
    width: 100%;
  }

  .kma-modal {
    align-items: flex-end;
    padding: 8px;
  }

  .kma-modal-box,
  .uni-modal-box {
    width: 100%;
    max-height: calc(100svh - 16px);
    border-radius: 26px;
    transform: translateY(28px) scale(0.99);
  }

  .footer {
    padding-top: 24px;
    padding-bottom: 74px;
  }
}

@media (hover: none) {
  .about-card:hover,
  .service-card:hover,
  .uni-card:hover,
  .why-item:hover,
  .contact-card:hover,
  .step-card:hover,
  .accred-card:hover,
  .prog-card:hover,
  .case-card:hover,
  .doc-card:hover,
  .team-card:hover,
  .cost-card:hover,
  .country-uni-card:hover,
  .academic-3d-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .kma-modal-box,
  .uni-modal-box,
  .nav-links,
  .nav-dropdown-menu {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar,
  .navbar.scrolled,
  .nav-dropdown-menu,
  .nav-links,
  .kma-modal-box,
  .uni-modal-box,
  .mobile-sticky-bar {
    background: #fafafa !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .navbar:not(.scrolled):has(.top-bar) {
    background: #07111f !important;
  }
}

@media (prefers-contrast: more) {
  .navbar,
  .nav-dropdown-menu,
  .nav-links,
  .kma-modal-box,
  .uni-modal-box,
  .about-card,
  .service-card,
  .uni-card,
  .why-item,
  .contact-card,
  .step-card,
  .accred-card,
  .prog-card,
  .case-card,
  .doc-card,
  .team-card,
  .cost-card,
  .country-uni-card,
  .faq-item {
    border-color: currentColor !important;
  }
}

/* =========================================================
   Content QA pass — contrast, balanced grids, media and icons
   ========================================================= */

.hero-container,
.pricing-grid,
.wizard-grid,
.services-grid,
.accred-grid,
.cases-grid,
.country-body .container,
.contact-grid,
.team-grid,
.prog-cat-grid {
  min-width: 0;
}

.hero-container > *,
.pricing-grid > *,
.wizard-grid > *,
.services-grid > *,
.accred-grid > *,
.cases-grid > *,
.contact-grid > *,
.team-grid > *,
.prog-cat-grid > * {
  min-width: 0;
}

.accred-card,
.pricing-hero-card,
.comparison-card,
.wizard-form-card,
.wizard-result-card,
.service-card,
.case-card,
.contact-card,
.prog-card,
.team-card,
.cost-card {
  overflow: hidden;
  overflow-wrap: anywhere;
}

.accred-badge-icon img,
.service-icon img,
.prog-icon img,
.why-icon img,
.team-avatar-icon img,
.case-uni-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.accred-badge-icon,
.service-icon,
.why-icon,
.team-avatar-box {
  display: grid;
  place-items: center;
}

.accred-badge-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  padding: 7px;
  border-radius: 14px;
  background: #f2f7ff;
}

.accred-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.accred-card {
  grid-column: span 4;
  min-height: 250px;
  padding: 30px;
}

.accred-card:nth-child(4),
.accred-card:nth-child(5) {
  grid-column: span 6;
}

.accred-card-title,
.accred-card.highlight .accred-card-title {
  color: #1d1d1f !important;
  font-size: 1.08rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.accred-card-desc,
.accred-card.highlight .accred-card-desc {
  color: #5f6065 !important;
  font-size: 0.94rem;
  line-height: 1.58;
}

.pricing-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px;
}

.pricing-hero-card,
.comparison-card {
  width: 100%;
}

.comparison-card {
  padding: clamp(28px, 4vw, 52px);
  color: #1d1d1f;
  background: #fff !important;
}

.comparison-card h3,
.comparison-card h3[style],
.comparison-card .why-trust-box strong {
  color: #1d1d1f !important;
}

.comparison-card > div:first-child {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  table-layout: fixed;
  border-collapse: collapse;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 25%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 32%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 43%;
}

.comparison-table th {
  color: #5f6065 !important;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.comparison-table td,
.comparison-table td[style],
.comparison-table td:first-child {
  padding: 20px 18px;
  color: #3a3a3c !important;
  font-size: 0.92rem;
  line-height: 1.48;
  vertical-align: top;
}

.comparison-table td:first-child {
  color: #6e6e73 !important;
  font-weight: 550;
}

.comparison-table strong,
.comp-price-kma {
  color: #168a47 !important;
}

.comp-price-other {
  color: #c9342f !important;
}

.comparison-card .why-trust-box {
  margin-top: 26px;
  border-color: rgba(10, 132, 255, 0.14);
  background: #f5f9ff;
}

.comparison-card .why-trust-box p {
  color: #5f6065 !important;
}

/* =========================================================
   Apple Bento-Style Smart Match Wizard Section
   ========================================================= */
.wizard-section {
  padding: clamp(64px, 7vw, 96px) 0;
  background: #f5f5f7;
  color: var(--text);
}

.wizard-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 28px !important;
  padding: clamp(32px, 4.5vw, 48px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.wizard-header {
  text-align: center;
  margin-bottom: clamp(28px, 3.5vw, 38px);
}

.wizard-header .pricing-pill {
  margin-bottom: 12px;
}

.wizard-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  color: #1d1d1f !important;
  margin: 12px 0 10px !important;
  line-height: 1.2 !important;
}

.wizard-sub {
  color: #6e6e73 !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

.wizard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(20px, 2.5vw, 32px) !important;
  align-items: stretch !important;
  min-width: 0;
}

.wizard-form-card {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 22px !important;
  padding: clamp(24px, 3vw, 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  height: 100% !important;
  box-shadow: none !important;
}

.wizard-group {
  margin-bottom: 0 !important;
}

.wizard-label {
  display: block;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  color: #1d1d1f !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em;
}

.wizard-select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  color: #1d1d1f !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  cursor: pointer !important;
  appearance: auto;
}

.wizard-select:focus {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15) !important;
}

.wizard-result-card {
  background: #07111f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 22px !important;
  padding: clamp(24px, 3vw, 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  height: 100% !important;
  box-shadow: 0 12px 36px rgba(7, 17, 31, 0.22) !important;
}

.wizard-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(52, 211, 153, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  width: fit-content !important;
  margin-bottom: 2px !important;
}

.wz-res-title {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 4px !important;
}

.wz-match-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 2px !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wz-uni-name {
  font-size: 1.22rem !important;
  font-weight: 750 !important;
  color: #60a5fa !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

.wz-prog-name {
  font-size: 0.9rem !important;
  color: #e2e8f0 !important;
  line-height: 1.35 !important;
}

.wz-metrics {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 2px !important;
}

.wz-metric-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.85rem !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 6px !important;
}

.wz-m-label {
  color: #94a3b8 !important;
}

.wz-m-val {
  color: #f8fafc !important;
  font-weight: 600 !important;
}

.wz-service-tag {
  background: rgba(96, 165, 250, 0.1) !important;
  border: 1px solid rgba(96, 165, 250, 0.22) !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 0.84rem !important;
  color: #bae6fd !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.btn-wz-apply {
  width: 100% !important;
  background: #0071e3 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35) !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
  text-align: center !important;
}

.btn-wz-apply:hover {
  background: #0077ed !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45) !important;
}

.btn-wz-apply:active {
  transform: translateY(0) !important;
}

@media (max-width: 860px) {
  .wizard-wrapper {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .wizard-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .wizard-form-card,
  .wizard-result-card {
    height: auto !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 480px) {
  .wizard-wrapper {
    padding: 20px 14px !important;
    border-radius: 18px !important;
  }

  .wizard-form-card,
  .wizard-result-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .wz-uni-name {
    font-size: 1.05rem !important;
  }

  .btn-wz-apply {
    font-size: 0.88rem !important;
    padding: 12px 16px !important;
  }
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.service-card:nth-child(n) {
  grid-column: auto !important;
  min-height: 270px;
  padding: 28px;
}

.service-icon,
.service-card:nth-child(n) .service-icon {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09) !important;
}

.service-card h3,
.service-card:nth-child(n) h3 {
  color: #f5f5f7 !important;
  font-size: 1.02rem;
  line-height: 1.28;
}

.service-card p {
  color: #a7adb8 !important;
  line-height: 1.56;
}

.cases-section .section-title {
  max-width: 860px;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
}

.case-photo-note {
  display: inline-flex;
  align-items: center;
  margin: -30px 0 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 0.73rem;
  line-height: 1.35;
}

.cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  padding: 30px;
}

.case-header {
  align-items: center;
  min-width: 0;
}

.case-header > div:last-child {
  min-width: 0;
}

.case-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-image: none;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.case-avatar.portrait-1 { background-position: 0 0; }
.case-avatar.portrait-2 { background-position: 100% 0; }
.case-avatar.portrait-3 { background-position: 0 100%; }
.case-avatar.portrait-4 { background-position: 100% 100%; }

.case-name {
  overflow-wrap: anywhere;
}

.case-uni-badge {
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.case-uni-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.case-quote {
  color: #48484a;
  font-size: 0.94rem;
  line-height: 1.64;
}

.case-footer {
  align-items: flex-start;
}

.case-badge-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prog-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.team-avatar-icon {
  width: 42px;
  height: 42px;
}

.contact-icon svg {
  display: none;
}

.contact-icon {
  background-color: #f5f5f7 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 32px 32px !important;
}

.contact-card:nth-child(1) .contact-icon,
.contact-card:nth-child(2) .contact-icon {
  background-image: url('assets/icons8/whatsapp.png') !important;
}

.contact-card:nth-child(3) .contact-icon {
  background-image: url('assets/icons8/telegram-app.png') !important;
}

.contact-card:nth-child(4) .contact-icon {
  background-image: url('assets/icons8/gmail-new.png') !important;
}

.contact-card:nth-child(5) .contact-icon {
  background-image: url('assets/icons8/instagram-new.png') !important;
}

.cost-icon {
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 14px;
  background-color: #f2f7ff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 36px 36px;
  color: transparent;
  font-size: 0 !important;
}

.cost-card:nth-child(1) .cost-icon { background-image: url('assets/icons8/home.png'); }
.cost-card:nth-child(2) .cost-icon { background-image: url('assets/icons8/restaurant.png'); }
.cost-card:nth-child(3) .cost-icon { background-image: url('assets/icons8/bus.png'); }
.cost-card:nth-child(4) .cost-icon { background-image: url('assets/icons8/graduation-cap.png'); }
.cost-card:nth-child(5) .cost-icon { background-image: url('assets/icons8/shield.png'); }
.cost-card:nth-child(6) .cost-icon { background-image: url('assets/icons8/combo-chart.png'); }

.footer-icons8-credit {
  color: rgba(255, 255, 255, 0.52) !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
}

@media (min-width: 901px) {
  .hero-container {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  }

  html[lang="ru"] .hero-title,
  html[lang="tj"] .hero-title {
    font-size: clamp(3rem, 4.2vw, 4.25rem);
    line-height: 1.02;
  }
}

@media (max-width: 1000px) {
  .accred-card,
  .accred-card:nth-child(4),
  .accred-card:nth-child(5) {
    grid-column: span 6;
  }

  .accred-card:last-child {
    grid-column: 4 / span 6;
  }

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

@media (max-width: 760px) {
  .accred-grid,
  .wizard-grid,
  .cases-grid,
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .accred-card,
  .accred-card:nth-child(4),
  .accred-card:nth-child(5),
  .accred-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .service-card,
  .service-card:nth-child(n) {
    min-height: 0;
  }

  .comparison-card {
    padding-inline: 18px;
  }

  .comparison-table {
    min-width: 620px;
  }

  .case-photo-note {
    margin-top: -24px;
  }
}

@media (max-width: 480px) {
  .case-card {
    padding: 22px;
  }

  .case-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .case-name {
    font-size: 1rem;
  }
}

/* ===== Trust-first compact pass (2026-09) ===== */
[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: 92px;
}

/* Use a real destination photograph above the fold; the image element reserves its ratio. */
.hero {
  min-height: 660px !important;
  height: auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 12, 26, 0.94) 0%, rgba(3, 12, 26, 0.82) 48%, rgba(3, 12, 26, 0.48) 100%);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  background: none !important;
  filter: saturate(0.86) contrast(1.03);
  transform: scale(1.01);
}

@media (min-width: 901px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.hero-container {
  min-height: 660px;
  padding-top: 124px;
  padding-bottom: 54px;
}

.hero-content {
  width: min(100%, 760px);
}

.hero-title,
html[lang="ru"] .hero-title,
html[lang="tj"] .hero-title {
  max-width: 720px;
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}

.hero-sub {
  max-width: 680px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.58;
}

.hero-stats-row {
  max-width: 720px;
  margin-top: 34px;
}

.hero-stat-item .stat-num {
  font-size: 1.7rem;
}

/* Fewer, denser sections make the page easier to scan. */
.accred-section,
.pricing-section,
.prog-cat-section,
.wizard-section,
#universities,
.calc-section,
.edu-section,
.lead-form-section,
.faq-section,
#contact {
  padding-block: clamp(46px, 5vw, 68px) !important;
}

.section-title,
.wizard-section .section-title,
.lead-form-section .section-title {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  line-height: 1.04;
}

.section-sub {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.accred-grid,
.prog-cat-grid,
.uni-grid,
.edu-cards {
  gap: 14px;
  margin-top: 24px;
}

.accred-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.accred-card,
.accred-card:nth-child(4),
.accred-card:nth-child(5),
.accred-card:last-child {
  grid-column: auto;
}

.accred-card,
.prog-card,
.uni-card {
  padding: 20px;
  border-radius: 18px;
}

.accred-card {
  min-height: 176px;
}

/* ---- PRICING SECTION: Clean Header, Balanced 2-Col Card & Proportions ---- */
#pricing,
.pricing-section {
  scroll-margin-top: 96px;
  position: relative;
  background: radial-gradient(ellipse at 50% 15%, #0c1832 0%, #050b16 100%) !important;
  padding-block: clamp(48px, 5.2vw, 68px) !important;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
  pointer-events: none;
  opacity: 1;
}

/* Centered, balanced section header */
.pricing-header-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(26px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pricing-header-wrap .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.28) !important;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-header-wrap .section-title {
  color: #f8fafc !important;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem) !important;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 10px 0;
  text-wrap: balance;
  text-align: center;
  max-width: 760px;
}

.pricing-header-wrap .section-sub {
  color: rgba(226, 232, 240, 0.78) !important;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

/* Pricing Grid & Card Structure */
.pricing-grid {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.pricing-hero-card {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(24px, 3.2vw, 42px);
  align-items: stretch;
  background: linear-gradient(155deg, rgba(17, 28, 54, 0.72) 0%, rgba(8, 15, 30, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

/* Left Column: Commercial Terms & Action */
.pricing-col-terms {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pricing-terms-top {
  display: flex;
  flex-direction: column;
}

.pricing-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  background: rgba(212, 175, 55, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pricing-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px 0;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.pricing-period {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.35;
  max-width: 220px;
}

.payment-split-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 15px;
  margin: 0 0 18px 0;
  text-align: left;
}

.payment-split-heading {
  font-size: 0.86rem;
  font-weight: 650;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.payment-split-heading .inline-ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.payment-split-step {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.42;
  margin-bottom: 5px;
  padding-left: 16px;
  position: relative;
}

.payment-split-step::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
  font-size: 0.82rem;
}

.payment-refund-notice {
  font-size: 0.77rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.payment-refund-notice .inline-ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}

.pricing-hero-card .btn-pricing-cta {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff !important;
  font-family: var(--font);
  font-weight: 650;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: background 0.18s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
  margin-top: auto;
  text-decoration: none;
}

.pricing-hero-card .btn-pricing-cta:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.48);
}

.pricing-hero-card .btn-pricing-cta:active {
  transform: scale(0.98);
}

/* Right Column: Included Services Checklist */
.pricing-col-services {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: clamp(20px, 3vw, 36px);
}

.pricing-services-heading {
  margin-bottom: 12px;
}

.pricing-services-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #e2e8f0;
  letter-spacing: -0.01em;
  display: block;
}

.pricing-features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.pricing-features-list li {
  font-size: 0.81rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.38;
}

.pricing-features-list li svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: #34d399;
  margin-top: 2px;
}

.pricing-support-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.83rem;
  color: #34d399;
  font-weight: 650;
  line-height: 1.35;
  margin-top: auto;
}

.pricing-support-highlight svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: #34d399;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comparison-card > div:first-child {
  overflow: visible;
}

.comparison-table {
  min-width: 0;
}

.comparison-table th,
.comparison-table td,
.comparison-table td[style] {
  padding: 13px 8px;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 29%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 31%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 40%;
}

.prog-cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prog-card {
  min-height: 0;
}

.prog-desc {
  display: none;
}

#universities .uni-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.uni-card {
  min-height: 0;
}

.uni-card img {
  max-height: 48px;
}

#universities .uni-card-tags {
  display: none;
}

#universities .btn-uni-apply {
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 0.72rem;
}

.edu-card {
  height: 260px;
  border-radius: 20px;
}

.edu-card-bg,
.edu-sg .edu-card-bg,
.edu-my .edu-card-bg,
.edu-uk .edu-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: none !important;
}

.edu-card-content {
  padding: 22px;
}

.edu-card-title {
  font-size: 1.3rem;
}

/* The application form is a light surface, so every text role uses dark contrast. */
.lead-form-section {
  background: #f5f5f7 !important;
  background-attachment: initial !important;
}

.lead-form-card {
  max-width: 1040px;
  padding: 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: #fff !important;
  color: #1d1d1f !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}

.lead-form-card > div:first-child {
  margin-bottom: 24px !important;
}

.lead-form-card h2,
.lead-form-card h2[style] {
  margin-top: 10px !important;
  color: #1d1d1f !important;
  background: none !important;
  font-size: clamp(1.8rem, 3vw, 2.45rem) !important;
  line-height: 1.08;
}

.lead-form-card > div:first-child p,
.lead-form-card > div:first-child p[style] {
  color: #5f6065 !important;
  font-size: 0.94rem !important;
  line-height: 1.5;
}

.form-grid-2 {
  gap: 12px 16px;
}

.form-group-modern {
  margin-bottom: 8px;
}

.lead-form-card .form-label-modern {
  color: #3a3a3c !important;
  font-size: 0.8rem;
  font-weight: 650;
}

.lead-form-card .form-input-modern,
.lead-form-card .form-select-modern {
  min-height: 48px;
  border-color: rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #1d1d1f;
}

.lead-form-card .form-input-modern::placeholder {
  color: #85858b;
  opacity: 1;
}

.lead-form-card .form-select-modern option {
  background: #fff;
  color: #1d1d1f;
}

.lead-form-card textarea.form-input-modern {
  min-height: 86px;
}

.lead-form-card .btn-submit-main {
  min-height: 50px;
  margin-top: 8px;
  font-size: 0.98rem;
}

.lead-form-card form > p[style] {
  color: #6e6e73 !important;
}

.faq-wrapper {
  margin-top: 26px;
}

.faq-header {
  min-height: 56px;
  padding: 15px 18px;
  font-size: 0.94rem;
}

.faq-body {
  padding: 0 18px 18px;
  line-height: 1.55;
}

/* Country pages: photographic hero, responsive rhythm, denser cards. */
.country-hero {
  height: auto !important;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(96px, 12vh, 124px) !important;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.country-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: none !important;
}

.country-hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
}

.country-body {
  padding-block: 54px;
}

.country-body .container {
  gap: 54px;
}

.country-section-title {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.cost-grid {
  gap: 14px;
}

.cost-card {
  min-height: 166px;
  padding: 20px;
}

@media (max-width: 960px) {
  .pricing-hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
  }

  .pricing-col-services {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 20px;
  }

  .pricing-features-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  #universities .uni-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .accred-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .prog-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .desktop-apply-btn,
  .nav-right > .nav-apply-btn {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .pricing-header {
    flex-direction: column;
    gap: 2px;
  }

  .pricing-amount {
    font-size: 2.6rem;
  }

  .pricing-period {
    max-width: 100%;
  }

  .pricing-features-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .pricing-hero-card {
    padding: 20px 16px;
  }

  .hero {
    min-height: auto !important;
  }

  .hero-container {
    min-height: auto;
    padding-top: clamp(84px, 12vh, 104px);
    padding-bottom: 32px;
    gap: 22px;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .hero-title,
  html[lang="ru"] .hero-title,
  html[lang="tj"] .hero-title {
    font-size: clamp(2rem, 8.8vw, 2.9rem);
    line-height: 1.08;
    text-wrap: balance;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: clamp(0.92rem, 3.8vw, 1.02rem);
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-btns .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.94rem;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    padding-top: 18px;
    box-sizing: border-box;
  }

  .hero-stat-item,
  .hero-stat-item:first-child {
    padding: 10px 6px;
    border-right: 0 !important;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-stat-item .stat-num {
    font-size: clamp(1.4rem, 5.5vw, 1.7rem);
    margin-bottom: 3px;
  }

  .hero-stat-item .stat-label {
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .accred-section,
  .pricing-section,
  .prog-cat-section,
  .wizard-section,
  #universities,
  .calc-section,
  .edu-section,
  .lead-form-section,
  .faq-section,
  #contact {
    padding-block: clamp(36px, 6vw, 48px) !important;
  }

  .section-title,
  .pricing-section .section-title,
  .wizard-section .section-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 1.15;
    text-wrap: balance;
  }

  .section-sub {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.5;
  }

  /* 3. Accreditation: Clean stacked 1-column cards */
  .accred-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 12px;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
  }

  .accred-card {
    width: 100%;
    min-height: auto;
    padding: 18px 16px;
    border-radius: 16px;
    text-align: center;
    box-sizing: border-box;
  }

  .accred-card-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .accred-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
  }

  /* 4. International Study Pathways: Clean stacked cards */
  .prog-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 16px;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
  }

  .prog-card {
    width: 100%;
    min-height: auto;
    padding: 22px 18px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .prog-desc {
    display: block !important;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 8px 0 16px;
  }

  .btn-prog-apply {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* 5 & 7. Universities: Responsive 1-col grid & controls */
  .uni-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px;
    box-sizing: border-box;
  }

  .uni-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-start;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
    box-sizing: border-box;
  }

  .filter-btn:first-child {
    flex: 1 1 100%;
  }

  .uni-search-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .uni-search-input {
    width: 100% !important;
    min-height: 46px;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  #universities .uni-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 14px;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
  }

  #universities .uni-card {
    width: 100%;
    min-height: auto;
    padding: 20px 16px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  #universities .uni-card-tags {
    display: flex !important;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0;
  }

  #universities .uni-card img {
    max-height: 48px;
    width: auto;
    max-width: min(160px, 100%);
    object-fit: contain;
  }

  .btn-uni-apply {
    width: 100%;
    min-height: 44px;
    font-size: 0.86rem;
    border-radius: 10px;
    box-sizing: border-box;
  }

  /* 6. Wizard: Form & Result Cards */
  .wizard-wrapper {
    padding: 20px 14px !important;
    border-radius: 18px !important;
    box-sizing: border-box;
  }

  .wizard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    box-sizing: border-box;
  }

  .wizard-form-card,
  .wizard-result-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box;
  }

  .wizard-select {
    width: 100% !important;
    min-height: 48px;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  .wz-metric-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 4px 8px !important;
  }

  .wz-m-label {
    font-size: 0.82rem !important;
  }

  .wz-m-val {
    font-size: 0.84rem !important;
  }

  .btn-wz-apply {
    width: 100% !important;
    min-height: 48px;
    font-size: 0.92rem;
    box-sizing: border-box;
  }

  .comparison-card {
    display: none;
  }

  /* 8. Destination Country Cards */
  .edu-cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 16px;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
  }

  .edu-card {
    width: 100%;
    height: clamp(200px, 48vw, 240px);
    border-radius: 18px;
    box-sizing: border-box;
  }

  /* 9. Apply Form: Single column layout on phone */
  .lead-form-card {
    padding: 22px 16px !important;
    border-radius: 20px !important;
    box-sizing: border-box;
  }

  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-group-modern,
  .form-grid-full {
    grid-column: 1 / -1 !important;
  }

  .form-input-modern,
  .form-select-modern {
    width: 100% !important;
    min-height: 48px;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  textarea.form-input-modern {
    min-height: 84px;
  }

  .kma-modal-box {
    padding: 24px 18px !important;
    border-radius: 20px !important;
    width: 95% !important;
    max-height: 90svh;
    box-sizing: border-box;
    margin: auto;
  }

  .lead-form-card .btn-submit-main {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    border-radius: 14px;
    box-sizing: border-box;
  }

  /* 10. FAQ */
  .faq-header {
    min-height: 50px;
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .faq-body {
    padding: 0 16px 16px;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  /* 11. Contact: Single column stacked cards */
  #contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  #contact .contact-card {
    padding: 16px 16px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-value {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 0.92rem;
  }

  /* 12. Footer & Controls */
  .footer {
    padding: 28px 0 20px;
  }

  .footer-inner {
    gap: 18px;
  }

  .footer-links {
    gap: 10px 18px;
    justify-content: center;
  }

  .footer-copy {
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
  }

  .country-hero {
    height: auto !important;
    min-height: 480px;
    padding-top: 96px !important;
  }

  .country-body,
  .country-body .container {
    gap: 40px;
  }
}

/* Specific micro-tuning for narrow smartphones (<= 380px) */
@media (max-width: 380px) {
  .container,
  .nav-container,
  .top-bar-container,
  .country-hero-content {
    padding-inline: 12px !important;
  }

  .nav-container {
    gap: 6px;
  }

  .nav-logo img,
  .navbar.scrolled .nav-logo img {
    width: 102px !important;
    height: auto;
    max-height: 30px;
  }

  .nav-right {
    gap: 4px;
  }

  .lang-switcher {
    padding: 1px;
    gap: 1px;
  }

  .lang-btn,
  .navbar.scrolled .lang-btn {
    min-width: 23px;
    min-height: 25px;
    padding: 2px 3px;
    font-size: 0.6rem;
  }

  .hamburger {
    width: 34px;
    height: 34px;
  }

  .hero-stats-row {
    gap: 8px;
  }

  .hero-stat-item {
    padding: 6px 4px;
  }

  .hero-stat-item .stat-num {
    font-size: 1.3rem;
  }

  .hero-stat-item .stat-label {
    font-size: 0.72rem;
  }

  .filter-btn {
    flex: 1 1 100%;
    font-size: 0.78rem;
  }

  .lead-form-card {
    padding: 18px 12px !important;
  }

  .wizard-wrapper,
  .wizard-form-card,
  .wizard-result-card {
    padding: 16px 12px !important;
  }
}

/* Fix mobile sticky bar & floating chat overlap */
@media (max-width: 850px) {
  .chat-widget {
    bottom: 82px !important;
    right: 16px !important;
  }

  .mobile-sticky-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   KMA Education — Singapore Hub Redesign Layer (Apple-Inspired)
   ============================================================ */
.country-hero.sg-hero,
.sg-hero,
.country-hero.my-hero,
.my-hero,
.country-hero.uk-hero,
.uk-hero {
  height: auto !important;
  min-height: 600px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding-top: clamp(104px, 13vh, 136px) !important;
  padding-bottom: clamp(44px, 6vh, 64px) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.country-hero.sg-hero .country-hero-bg,
.sg-hero .country-hero-bg,
.country-hero.my-hero .country-hero-bg,
.my-hero .country-hero-bg,
.country-hero.uk-hero .country-hero-bg,
.uk-hero .country-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  z-index: 0 !important;
}

.country-hero.sg-hero .country-hero-overlay,
.sg-hero .country-hero-overlay,
.country-hero.my-hero .country-hero-overlay,
.my-hero .country-hero-overlay,
.country-hero.uk-hero .country-hero-overlay,
.uk-hero .country-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.65) 0%, rgba(7, 17, 31, 0.88) 100%) !important;
  z-index: 1 !important;
}

.country-hero.sg-hero .country-hero-content,
.sg-hero-content,
.country-hero.my-hero .country-hero-content,
.my-hero-content,
.country-hero.uk-hero .country-hero-content,
.uk-hero-content {
  width: min(100%, calc(var(--page-width) + 48px)) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.sg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 0;
}

.sg-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.sg-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}

.sg-stat-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: left;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease;
}

.sg-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.sg-stat-num {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sg-stat-lbl {
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* Interactive Singapore Budget Simulator */
.sg-calc-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.sg-calc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sg-currency-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f1f2f6;
  border-radius: 14px;
}

.sg-curr-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sg-curr-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sg-calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.sg-slider-card {
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.sg-slider-card:hover {
  border-color: rgba(10, 132, 255, 0.3);
}

.sg-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sg-slider-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-slider-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a84ff;
}

.sg-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.sg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 2px 6px rgba(10, 132, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sg-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sg-slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 6px;
}

.sg-result-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sg-total-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.sg-total-amount {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sg-annual-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: #475569;
}

.sg-annual-val {
  font-weight: 750;
  color: #0f172a;
  font-size: 0.96rem;
}

.sg-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
  margin: 16px 0 10px;
}

.sg-bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.sg-bar-rent { background: #0a84ff; }
.sg-bar-food { background: #f59e0b; }
.sg-bar-trans { background: #10b981; }
.sg-bar-misc { background: #8b5cf6; }

.sg-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.73rem;
  color: #64748b;
}

.sg-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sg-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sg-fasttrack-callout {
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 132, 255, 0.07);
  border: 1px solid rgba(10, 132, 255, 0.16);
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.5;
  margin: 18px 0;
}

/* Enhanced Partner Universities Cards */
.sg-unis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Universities section rounded frame on destination pages */
.country-body #universities {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px;
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 36px) !important;
}

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

.my-apu-featured {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  transition: transform 0.28s var(--ease-spring), border-color 0.28s ease, box-shadow 0.28s ease;
}

.my-apu-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.09);
}

.my-apu-overview-box {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 26px;
  padding: 20px clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sg-uni-card-pro {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 26px;
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s var(--ease-spring), border-color 0.28s ease, box-shadow 0.28s ease;
}

.sg-uni-card-pro:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.09);
}

.sg-uni-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sg-uni-logo-frame {
  height: 64px;
  display: flex;
  align-items: center;
}

.sg-uni-logo-frame img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.sg-uni-edutrust-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sg-partner-degrees-box {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 14px 18px;
  margin: 16px 0;
}

.sg-partner-degrees-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 8px;
}

.sg-partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.77rem;
  font-weight: 600;
  color: #1e293b;
}

.sg-partner-pill img {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.sg-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.85rem;
  color: #475569;
}

.sg-features-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.sg-features-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #0a84ff;
  font-weight: bold;
}

.sg-uni-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sg-tuition-tag {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.sg-tuition-val {
  font-size: 1.12rem;
  font-weight: 750;
  color: #0f172a;
}

/* 6-Step Admission & Visa Roadmap */
.sg-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.sg-roadmap-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease;
}

.sg-roadmap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.3);
}

.sg-roadmap-card.highlight-step {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.sg-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sg-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0a84ff;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-roadmap-card.highlight-step .sg-step-badge {
  background: #10b981;
}

.sg-step-time {
  font-size: 0.74rem;
  font-weight: 650;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 9px;
  border-radius: 999px;
}

.sg-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.sg-step-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Strategic Office & CTA Section */
.sg-office-hero {
  background: linear-gradient(135deg, #07111f 0%, #0c2340 100%);
  border-radius: 30px;
  padding: clamp(32px, 6vw, 60px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.sg-office-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.sg-office-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sg-office-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sg-office-p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 1.6;
}

.sg-office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.sg-btn-wa-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 16px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.sg-btn-wa-direct:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* Responsive Rules */
@media (max-width: 1040px) {
  .uk-unis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .sg-calc-grid {
    grid-template-columns: 1fr;
  }
  .sg-unis-grid {
    grid-template-columns: 1fr;
  }
  .my-apu-featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sg-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sg-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .uk-unis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sg-roadmap-grid {
    grid-template-columns: 1fr;
  }
  .sg-hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sg-calc-card {
    padding: 20px 16px;
  }
  .country-body #universities {
    padding: 24px 14px !important;
    border-radius: 22px;
  }
  .sg-office-hero {
    padding: 28px 20px;
  }
}

/* =============================================================================
   MULTIKID-INSPIRED HIGH-ENERGY UI LAYER FOR KMA EDUCATION
   Design system principles:
   - Big, friendly, rounded (24px cards, 32px frames, 999px pills)
   - Warm, energetic palette (vibrant cobalt blue #1F5AE0 & accent orange #FF7A00)
   - Montserrat typography across headings and body
   - High-contrast card surfaces (#FFFFFF) on alternating soft gray (#F5F7FA)
   - Soft, modern shadows (0 8px 24px rgba(20, 22, 26, 0.06))
   - Smooth hover lift transitions
   ============================================================================= */

/* Universal font family application */
body, h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .prog-title, .uni-card-name,
.wizard-title, .about-card-title, .accred-card-title,
.service-card h3, .why-item h3, .calc-title, .contact-card-title,
button, .btn, input, select, textarea {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Base Headings & Titles across regular light sections */
h1, h2, h3, h4, h5, h6,
.section-title, .prog-title, .uni-card-name, .wizard-title, .calc-title,
.about-card-title, .service-card h3, .why-item h3, .contact-card-title {
  color: #14161A !important;
  font-weight: 700 !important;
}

/* =============================================================================
   1. TOP UTILITY BAR & NAVBAR (Fixes Invisible Logo & Language Text)
   ============================================================================= */
.top-bar {
  background: #09162e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.top-bar a,
.top-bar span,
.top-item {
  color: rgba(255, 255, 255, 0.9) !important;
}

.top-badge {
  background: #FF7A00 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

.top-divider {
  color: rgba(255, 255, 255, 0.25) !important;
}

.navbar,
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #E4E8ED !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px rgba(20, 22, 26, 0.05) !important;
}

/* Logo is ALWAYS sharp, crisp dark navy (never inverted white on white navbar) */
.nav-logo img,
.navbar.scrolled .nav-logo img,
.navbar:not(.scrolled):has(.top-bar) .nav-logo img {
  filter: none !important;
  opacity: 1 !important;
}

.nav-links a,
.nav-dropdown-btn,
.navbar:not(.scrolled):has(.top-bar) .nav-links a,
.navbar:not(.scrolled):has(.top-bar) .nav-dropdown-btn {
  color: #14161A !important;
  font-weight: 600 !important;
}

.nav-links a:hover,
.nav-links a.active-nav,
.nav-dropdown-btn:hover,
.navbar:not(.scrolled):has(.top-bar) .nav-links a:hover,
.navbar:not(.scrolled):has(.top-bar) .nav-dropdown-btn:hover {
  color: #1F5AE0 !important;
}

/* Language Switcher (Always crisp dark text on light pill) */
.lang-switcher,
.navbar:not(.scrolled):has(.top-bar) .lang-switcher {
  border-radius: 999px !important;
  background: #F0F3F7 !important;
  border: 1px solid #E4E8ED !important;
  padding: 3px !important;
}

.lang-btn,
.navbar:not(.scrolled):has(.top-bar) .lang-btn {
  border-radius: 999px !important;
  color: #4A5058 !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.18s ease !important;
}

.lang-btn.active,
.navbar:not(.scrolled):has(.top-bar) .lang-btn.active {
  background: #FFFFFF !important;
  color: #1F5AE0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.lang-btn:hover:not(.active),
.navbar:not(.scrolled):has(.top-bar) .lang-btn:hover:not(.active) {
  color: #1F5AE0 !important;
}

/* =============================================================================
   2. HERO SECTION (Fixes Washed-Out Lilac Gradient & Low Contrast)
   ============================================================================= */
.hero {
  background: linear-gradient(150deg, #091738 0%, #12347d 48%, #1f5ae0 100%) !important;
  border-radius: 0 0 36px 36px !important;
  overflow: hidden !important;
  position: relative !important;
}

.hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(150deg, rgba(9, 23, 56, 0.92) 0%, rgba(18, 52, 125, 0.86) 50%, rgba(31, 90, 224, 0.82) 100%) !important;
  border-radius: 0 0 36px 36px !important;
}

.hero-bg {
  object-fit: cover !important;
  object-position: center 35% !important;
  filter: saturate(0.9) contrast(1.05) !important;
  transform: scale(1.02) !important;
}

.hero-content {
  position: relative !important;
  z-index: 2 !important;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.hero-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

.hero-title .gradient-text {
  color: #FFD166 !important;
  -webkit-text-fill-color: #FFD166 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.hero-stat-item .stat-num {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 2.1rem !important;
}

.hero-stat-item.highlight .stat-num {
  color: #FF7A00 !important;
}

.hero-stat-item .stat-label {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #FFFFFF !important;
}

/* =============================================================================
   3. BUTTONS (Multikid High-Energy Accent Orange Pills)
   ============================================================================= */
.btn-gold,
.btn-primary,
.nav-apply-btn,
.btn-wz-apply,
.btn-submit-main,
.btn-pricing-cta,
.btn-uni-apply,
.btn-card-apply,
.btn-cal-action,
.btn-uni-modal-apply,
.mobile-sticky-btn {
  background: #FF7A00 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.32) !important;
  border: 0 !important;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-gold:hover,
.btn-primary:hover,
.nav-apply-btn:hover,
.btn-wz-apply:hover,
.btn-submit-main:hover,
.btn-pricing-cta:hover,
.btn-uni-apply:hover,
.btn-card-apply:hover,
.btn-cal-action:hover,
.btn-uni-modal-apply:hover,
.mobile-sticky-btn:hover {
  background: #E56A00 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.42) !important;
}

.btn-outline,
.btn-ghost {
  border-radius: 999px !important;
  border: 1.5px solid #1F5AE0 !important;
  color: #1F5AE0 !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-outline:hover,
.btn-ghost:hover {
  background: #E8EFFF !important;
  transform: translateY(-2px) !important;
}

.btn-prog-apply {
  background: #1F5AE0 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  border: 0 !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
}

.btn-prog-apply:hover {
  background: #163F9E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(31, 90, 224, 0.28) !important;
}

/* =============================================================================
   4. ACCREDITATION SECTION (Fixes White Text on Light Section)
   ============================================================================= */
.accred-section {
  background-color: #F5F7FA !important;
}

.accred-section .section-title,
.accred-section .section-title.light,
.accred-section h2 {
  color: #14161A !important;
}

.accred-section .section-sub,
.accred-section .section-sub.light,
.accred-section p {
  color: #4A5058 !important;
}

.accred-section .section-label,
.accred-section .section-label.light {
  background: #E8EFFF !important;
  color: #1F5AE0 !important;
  border: none !important;
}

.accred-card {
  background: #FFFFFF !important;
  border: 1px solid #E4E8ED !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06) !important;
}

.accred-card-title {
  color: #14161A !important;
  font-weight: 700 !important;
}

.accred-card-desc {
  color: #4A5058 !important;
}

/* =============================================================================
   5. STRATEGIC OFFICE CARDS (Fixes Black Text in Destination Pages, Image 3)
   ============================================================================= */
.sg-office-hero {
  background: linear-gradient(135deg, #07111f 0%, #0c2340 100%) !important;
  border-radius: 30px !important;
  color: #FFFFFF !important;
}

.sg-office-title,
.sg-office-hero .sg-office-title,
.sg-office-hero h2 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.sg-office-p,
.sg-office-hero .sg-office-p,
.sg-office-hero p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.sg-office-badge {
  background: rgba(56, 239, 125, 0.14) !important;
  border: 1px solid rgba(56, 239, 125, 0.32) !important;
  color: #38ef7d !important;
  border-radius: 999px !important;
}

/* Destination hero overlay */
.country-hero {
  border-radius: 0 0 36px 36px !important;
  overflow: hidden !important;
}

.country-hero-overlay {
  background: linear-gradient(150deg, rgba(9, 23, 56, 0.92) 0%, rgba(18, 52, 125, 0.86) 50%, rgba(31, 90, 224, 0.82) 100%) !important;
  border-radius: 0 0 36px 36px !important;
}

.country-hero-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.country-hero-sub {
  color: rgba(255, 255, 255, 0.92) !important;
}

.country-hero-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

.sg-stat-num {
  color: #FFD166 !important;
  font-weight: 800 !important;
}

.sg-stat-lbl {
  color: rgba(255, 255, 255, 0.82) !important;
}

.sg-stat-box {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 18px !important;
}

/* =============================================================================
   6. SMART MATCH WIZARD (High-Contrast Clean Multikid Design)
   ============================================================================= */
.wizard-section {
  background-color: #F5F7FA !important;
}

.wizard-section .wizard-title,
.wizard-section .section-title,
.wizard-section h2 {
  color: #14161A !important;
}

.wizard-section .wizard-sub,
.wizard-section .section-sub,
.wizard-section p {
  color: #4A5058 !important;
}

.wizard-form-card {
  background: #FFFFFF !important;
  border: 1px solid #E4E8ED !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.05) !important;
}

.wizard-label {
  color: #14161A !important;
  font-weight: 600 !important;
}

.wizard-select {
  background: #FFFFFF !important;
  border: 1.5px solid #E4E8ED !important;
  color: #14161A !important;
  border-radius: 14px !important;
}

.wizard-select option {
  background: #FFFFFF !important;
  color: #14161A !important;
}

.wizard-result-card {
  background: #E8EFFF !important;
  border: 1.5px solid #C7D9FE !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 24px rgba(31, 90, 224, 0.08) !important;
}

.wz-match-box {
  background: #FFFFFF !important;
  border: 1px solid #C7D9FE !important;
  border-radius: 16px !important;
}

.wz-uni-name {
  color: #1F5AE0 !important;
  font-weight: 800 !important;
}

.wz-prog-name {
  color: #14161A !important;
  font-weight: 600 !important;
}

.wz-m-label {
  color: #4A5058 !important;
}

.wz-m-val {
  color: #14161A !important;
  font-weight: 700 !important;
}

.wz-res-title {
  color: #1F5AE0 !important;
  font-weight: 700 !important;
}

.wz-service-tag {
  background: #FFFFFF !important;
  border-color: #C7D9FE !important;
  color: #14161A !important;
}

/* =============================================================================
   7. CONTACT SECTION & CARDS (Fixes Email Wrap on Tablets, Image 2)
   ============================================================================= */
.section#contact,
#contact {
  background-color: #FFFFFF !important;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
  gap: 18px !important;
}

.contact-card {
  background: #FFFFFF !important;
  border: 1px solid #E4E8ED !important;
  border-radius: 24px !important;
  padding: 18px 20px !important;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06) !important;
  min-width: 0 !important;
}

.contact-label {
  color: #8A9098 !important;
  font-weight: 700 !important;
}

.contact-value {
  color: #14161A !important;
  font-weight: 700 !important;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem) !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =============================================================================
   8. FOOTER (Fixes White-on-White Blank Void, Image 2)
   ============================================================================= */
.footer {
  background: #07111f !important;
  color: #FFFFFF !important;
  border-top: none !important;
  padding: 48px 0 32px !important;
}

.footer-logo img,
.footer .footer-logo img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.95 !important;
}

.footer-tagline,
.footer .footer-tagline,
.footer-copy,
.footer .footer-copy,
.footer-desc,
.footer .footer-desc,
.footer-meta,
.footer-legal,
.footer-bottom {
  color: rgba(255, 255, 255, 0.65) !important;
}

.footer .footer-links a,
.footer a {
  color: rgba(255, 255, 255, 0.78) !important;
  transition: color 0.18s ease !important;
}

.footer .footer-links a:hover,
.footer a:hover {
  color: #FFFFFF !important;
}

.footer-social-btn {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.2s ease !important;
}

.footer-social-btn:hover {
  background: #1F5AE0 !important;
  border-color: #1F5AE0 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
}

/* =============================================================================
   9. CARDS, FRAMES, INPUTS, AND ACCENTS
   ============================================================================= */
.prog-card,
.uni-card,
.step-card,
.service-card,
.faq-item,
.team-card,
.review-card,
.about-card,
.doc-card,
.pricing-card {
  border-radius: 24px !important;
  background: #FFFFFF !important;
  border: 1px solid #E4E8ED !important;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease !important;
}

.prog-card:hover,
.uni-card:hover,
.step-card:hover,
.service-card:hover,
.about-card:hover,
.team-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.10) !important;
  border-color: #C7D9FE !important;
}

.wizard-wrapper,
.calc-box,
.apply-box,
.modal-card,
.sg-calc-card,
.lead-form-card {
  border-radius: 32px !important;
  background: #FFFFFF !important;
  border: 1px solid #E4E8ED !important;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.08) !important;
}

/* Badges & Chips (Pill 999px) */
.section-label,
.top-badge,
.prog-meta,
.uni-badge,
.uni-tag,
.pricing-pill,
.wizard-badge,
.case-badge-pill,
.cal-status-badge {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.section-label {
  background: #E8EFFF !important;
  color: #1F5AE0 !important;
}

.prog-meta {
  background: #E8EFFF !important;
  color: #1F5AE0 !important;
}

/* Rounded Icon Containers */
.accred-badge-icon,
.prog-icon,
.service-icon,
.contact-row-icon,
.about-card-icon,
.why-icon,
.team-avatar-box {
  border-radius: 16px !important;
  background: #E8EFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Filter Buttons (Pill) */
.filter-btn {
  border-radius: 999px !important;
  min-height: 44px !important;
  padding: 8px 22px !important;
  font-weight: 700 !important;
  border: 1px solid #E4E8ED !important;
  background: #F5F7FA !important;
  color: #4A5058 !important;
  transition: all 0.18s ease !important;
}

.filter-btn:hover {
  background: #FFFFFF !important;
  color: #1F5AE0 !important;
}

.filter-btn.active {
  background: #1F5AE0 !important;
  color: #FFFFFF !important;
  border-color: #1F5AE0 !important;
  box-shadow: 0 4px 14px rgba(31, 90, 224, 0.28) !important;
}

/* Search Box & Form Inputs */
.uni-search-box input,
.search-input {
  border-radius: 999px !important;
  min-height: 48px !important;
  border: 1.5px solid #E4E8ED !important;
  padding: 0 22px !important;
  font-size: 0.95rem !important;
  background: #FFFFFF !important;
  color: #14161A !important;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea,
.form-input,
.form-select,
.form-input-modern,
.form-select-modern {
  border-radius: 14px !important;
  border: 1.5px solid #E4E8ED !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  font-size: 0.95rem !important;
  background: #FFFFFF !important;
  color: #14161A !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-input-modern:focus,
.form-select-modern:focus,
.wizard-select:focus,
.calc-select:focus {
  border-color: #1F5AE0 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(31, 90, 224, 0.18) !important;
}

/* Modals */
.modal-overlay,
.apply-modal {
  background: rgba(20, 22, 26, 0.65) !important;
  backdrop-filter: blur(10px) !important;
}

.modal-card {
  border-radius: 32px !important;
  box-shadow: 0 32px 80px rgba(20, 22, 26, 0.24) !important;
}

.modal-close {
  border-radius: 999px !important;
  background: #F5F7FA !important;
}

.modal-close:hover {
  background: #E2E8F0 !important;
}

/* Floating Chat Button */
.chat-toggle-btn {
  background: #1F5AE0 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(31, 90, 224, 0.35) !important;
  color: #FFFFFF !important;
}

/* Real student admissions */
.students-section {
  background:
    radial-gradient(circle at 88% 4%, rgba(31, 90, 224, 0.09), transparent 34%),
    linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
}

.students-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.students-intro .section-title {
  max-width: 770px;
}

.students-intro .section-sub {
  max-width: 760px;
  margin-bottom: 0;
}

.students-intro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: none;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(31, 90, 224, 0.19);
  border-radius: 999px;
  background: #fff;
  color: #163f9e;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 90, 224, 0.07);
  transition: transform 180ms var(--ease-spring), box-shadow 180ms ease;
}

.students-intro-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 90, 224, 0.13);
}

.students-intro-link:active {
  transform: scale(0.97);
}

.students-intro-link > span:last-child {
  font-size: 1.15rem;
  line-height: 1;
}

/* One horizontal row at every size: 3 per view on desktop, arrows to slide */
.students-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  align-items: stretch;
  /* room inside the scroller so card shadows and hover lift aren't clipped */
  margin: -12px -20px -44px;
  padding: 12px 20px 44px;
  scroll-padding-inline: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.students-grid::-webkit-scrollbar {
  display: none;
}

.student-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 26, 0.07);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28, 46, 80, 0.07);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms ease;
  scroll-snap-align: start;
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 52px rgba(28, 46, 80, 0.12);
}

.student-photo {
  position: relative;
  display: flex;
  height: clamp(280px, 30vw, 345px);
  overflow: hidden;
  background: #e2e9f1;
}

.student-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.student-card:first-child .student-photo > img {
  object-position: center 63%;
}

.student-card:last-child .student-photo > img {
  object-position: center 62%;
}

.student-photo-pair {
  gap: 3px;
}

.student-photo-pair > img:first-child {
  width: 59%;
  object-position: 52% 66%;
}

.student-photo-pair > img:nth-child(2) {
  width: 41%;
  object-position: center 54%;
}

.student-photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #172237;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(10, 25, 45, 0.12);
}

.student-content {
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 25px 26px 27px;
}

.student-meta {
  margin-bottom: 7px;
  color: #1f5ae0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.student-content h3 {
  margin: 0 0 5px;
  color: #152033;
  font-size: clamp(1.55rem, 2.3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.student-school {
  min-height: 2.75em;
  margin: 0;
  color: #454f5c;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
}

.student-school span {
  color: #667487;
  white-space: nowrap;
}

.student-program {
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid #e8edf4;
}

.student-field-label {
  display: block;
  margin-bottom: 5px;
  color: #6b7687;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.student-program p,
.student-journey-step p {
  margin: 0;
  color: #172237;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.48;
}

.student-journey {
  display: grid;
  gap: 13px;
  margin-top: auto;
  padding-top: 13px;
}

.student-journey-step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding-top: 13px;
  border-top: 1px solid #e8edf4;
}

.student-journey-date {
  color: #1f5ae0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
}

.student-journey-step strong {
  display: block;
  margin-bottom: 3px;
  color: #172237;
  font-size: 0.82rem;
  line-height: 1.35;
}

.student-journey-step p {
  color: #566172;
  font-size: 0.78rem;
}

.student-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.student-intake {
  color: #687386;
  font-size: 0.75rem;
  font-weight: 650;
}

.student-discount {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf6ee;
  color: #176038;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.students-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
}

.students-nav {
  display: flex;
  flex: none;
  gap: 10px;
}

.students-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(31, 90, 224, 0.19);
  border-radius: 50%;
  background: #fff;
  color: #163f9e;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 90, 224, 0.07);
  transition: opacity 180ms ease, transform 180ms var(--ease-spring);
}

.students-nav button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.students-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.students-note {
  margin: 0;
  color: #687386;
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .students-intro {
    align-items: start;
    flex-direction: column;
  }

  .students-grid {
    grid-auto-columns: calc((100% - 14px) / 2);
    gap: 14px;
  }

  .student-content {
    padding-inline: 19px;
  }
}

@media (max-width: 720px) {
  .students-intro {
    gap: 22px;
    margin-bottom: 27px;
  }

  /* Swipeable row: bleeds to screen edges, next card peeks in */
  .students-grid {
    grid-auto-columns: min(84%, 340px);
    margin: 0 calc(50% - 50vw);
    padding: 4px calc(50vw - 50%) 24px;
  }

  .student-card {
    scroll-snap-align: center;
  }

  .students-nav {
    display: none;
  }

  .student-photo {
    height: clamp(260px, 75vw, 340px);
  }

  .student-content {
    min-height: 0;
    padding: 23px;
  }

  .student-school {
    min-height: 0;
  }

  .student-program,
  .student-journey {
    margin-top: 20px;
  }

  .student-journey-step {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-card,
  .students-intro-link,
  .students-nav button {
    transition: none;
  }

  .student-card:hover,
  .students-intro-link:hover {
    transform: none;
  }
}
