/* ============================================
   CORE.CSS — Combined from:
   variables.css + reset.css + global.css + header.css + footer.css
   ============================================ */

/* ===== DESIGN TOKENS (variables.css) ===== */
:root {
  /* ===== PRIMARY COLORS (Ocean Breeze) ===== */
  --color-primary: #2160B5;
  --color-primary-light: #4a8ae0;
  --color-primary-dark: #1a4d94;
  --color-secondary: #0ea5e9;
  --color-secondary-light: #38bdf8;
  --color-accent: #f43f5e;
  --color-accent-warm: #eab308;

  /* ===== BRAND TOKENS ===== */
  --brand: #2160B5;
  --brand-dark: #1a4d94;
  --brand-light: #4a8ae0;
  --brand-wash: #e8f0fb;

  /* ===== SEMANTIC COLORS ===== */
  --navy: #0f2744;
  --navy-mid: #1a3a5c;
  --ink: #1a2d3d;
  --gray: #6b8a9e;
  --gray-light: #94afc2;
  --sky: #e6f4f8;
  --cream: #f0f7fa;
  --paper: #f8fafb;
  --teal: #0d9488;
  --aqua: #0ea5e9;
  --coral: #f43f5e;
  --gold: #eab308;

  /* ===== GRADIENTS ===== */
  --gradient-primary: linear-gradient(135deg, #4a8ae0 0%, #0ea5e9 100%);
  --gradient-cta: linear-gradient(135deg, #2160B5 0%, #0ea5e9 100%);
  --gradient-cta-hover: linear-gradient(135deg, #1a4d94 0%, #0284c7 100%);
  --gradient-warm: linear-gradient(135deg, #f43f5e 0%, #eab308 100%);
  --gradient-dark: linear-gradient(180deg, #0f2744 0%, #1a3a5c 100%);
  --gradient-hero: linear-gradient(180deg, #e6f4f8 0%, #f0f7fa 40%, #ffffff 100%);
  --gradient-brand: linear-gradient(135deg, #2160B5 0%, #0ea5e9 100%);

  /* ===== ACCENT COLORS ===== */
  --emerald: #10B981;
  --purple: #7c3aed;

  /* ===== NEUTRALS ===== */
  --color-white: #FFFFFF;
  --color-bg: #f8fafb;
  --color-bg-alt: #f0f7fa;
  --color-bg-section: #e6f4f8;
  --color-text: #1a2d3d;
  --color-text-secondary: #6b8a9e;
  --color-text-light: #94afc2;
  --color-border: #d1e3ed;
  --color-dark-bg: #0f2744;
  --color-dark-surface: #1a3a5c;

  /* ===== TYPOGRAPHY ===== */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-kr: 'Noto Sans KR', sans-serif;

  --text-xs: 0.7rem;      /* 11.2px — min accessible size */
  --text-sm: 0.8125rem;   /* 13px — comfortable for small labels */
  --text-base: 0.9375rem;  /* 15px — accessible body text */
  --text-md: 1.05rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.7rem, 3vw, 2.3rem);
  --text-2xl: clamp(2.5rem, 5vw, 4rem);
  --text-3xl: 2.1rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ===== SPACING (8px base) ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-section: clamp(4rem, 8vw, 6rem);

  /* ===== LAYOUT ===== */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* ===== ICON SIZES ===== */
  --icon-sm: 18px;
  --icon-md: 24px;
  --icon-lg: 32px;
  --icon-xl: 48px;

  /* ===== BORDERS & RADII ===== */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 100px;
  --radius-btn: 14px;

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(33, 96, 181, 0.25);
  --shadow-brand: 0 8px 24px rgba(33, 96, 181, 0.2);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Z-INDEX ===== */
  --z-header: 100;
  --z-menu-overlay: 101;
  --z-menu: 102;
  --z-menu-toggle: 103;
  --z-urgency: 105;
  --z-floating: 150;
  --z-modal: 200;
  --z-tooltip: 300;

  /* ===== LAYOUT METRICS — keep in sync with JS if changed ===== */
  --urgency-bar-height: 0px;
}

body:has(.urgency-bar) {
  --urgency-bar-height: 44px;
}

/* ===== RESET (reset.css) ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
}

/* ===== BASE STYLES (global.css) ===== */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  padding-top: var(--urgency-bar-height);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
}

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: var(--weight-bold);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h6 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-20) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-24) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-text-light);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--gray {
  background: var(--color-bg-section);
}

/* ===== PAGE HERO — shared across about, contact, courses, services, program ===== */
.page-hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--color-white) 100%);
}

/* ===== GRADIENT TEXT — Blue to cyan premium effect ===== */
.gradient-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TAG / LABEL ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
}

.tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header p {
  margin-top: var(--space-4);
  font-size: var(--text-md);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-btn);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--brand);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--navy);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

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

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--gradient-warm);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid rgba(33, 96, 181, 0.15);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-btn);
}

.btn--ghost:hover {
  border-color: var(--brand);
  background: rgba(33, 96, 181, 0.04);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn--ghost .arrow {
  transition: transform var(--transition-normal);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  min-height: 44px;
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-md);
}

/* ===== CARDS ===== */
.card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.card:hover {
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Focus-visible for interactive cards */
.card:focus-visible,
.service-card:focus-visible,
.course-card:focus-visible,
.cta-card:focus-visible,
.quick-link-card:focus-visible,
.step-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

/* ===== GRID UTILITIES ===== */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== FLEX UTILITIES ===== */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--gap-sm { gap: var(--space-3); }
.flex--gap { gap: var(--space-6); }
.flex--gap-lg { gap: var(--space-10); }
.flex--wrap { flex-wrap: wrap; }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }

.text-white { color: var(--color-white); }
.text-white p { color: rgba(255, 255, 255, 0.8); }

/* ===== ANIMATION BASE ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-floating);
  transition: transform var(--transition-normal);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-floating);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal__content {
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.video-modal.active .video-modal__content {
  transform: scale(1);
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: -8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition-normal);
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal video {
  max-height: 85vh;
  max-width: 90vw;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .video-modal video {
    max-height: 80vh;
    border-radius: 12px;
  }
  .video-modal__close {
    top: -44px;
    right: 0;
  }
}

/* ===== PLAY BUTTON OVERLAY ===== */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-card:hover .play-overlay {
  opacity: 1;
}

@media (hover: none) {
  .testimonial-card[data-video] .play-overlay {
    opacity: 0.7;
  }
}

.play-overlay svg {
  width: 50px;
  height: 50px;
  fill: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
}

.testimonial-card:hover .play-overlay svg {
  transform: scale(1.1);
}

/* ===== SPACING UTILITIES ===== */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ===== BUTTON VARIANTS ===== */
.btn--secondary-inverted {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn--secondary-inverted:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ===== TAG VARIANTS ===== */
.tag--light { color: var(--color-primary-light); }
.tag--muted { color: rgba(255, 255, 255, 0.7); }

/* ===== VISIBILITY HELPERS ===== */
.faq-group--hidden { display: none; }
.course-panel--hidden { display: none; }

/* ===== URGENCY BAR ===== */
.urgency-bar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
  color: white;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--urgency-bar-height);
  display: flex;
  align-items: center;
  z-index: var(--z-urgency);
}
.urgency-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
}
.urgency-bar__link {
  color: white;
  text-decoration: underline;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}
@media (max-width: 640px) {
  body:has(.urgency-bar) { --urgency-bar-height: 64px; }
  .urgency-bar { font-size: 12px; padding: 6px var(--space-3); }
  .urgency-bar .container { gap: 2px var(--space-3); }
}
@media (max-width: 375px) {
  body:has(.urgency-bar) { --urgency-bar-height: 64px; }
  .urgency-bar { font-size: 11px; }
}

/* ===== SKIP TO CONTENT ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-urgency) + 1);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: calc(var(--urgency-bar-height) + var(--space-2));
}

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

/* ===== SITE HEADER (header.css) ===== */
.site-header {
  position: fixed;
  top: var(--urgency-bar-height);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-4) 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.header-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* ===== LOGO ===== */
.logo {
  flex-shrink: 0;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo .logo-light {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.logo .logo-dark {
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity var(--transition-normal);
}

.site-header.scrolled .logo .logo-light {
  opacity: 0;
}

.site-header.scrolled .logo .logo-dark {
  opacity: 1;
}

/* Inverted header — for pages with dark hero backgrounds (e.g. career.html) */
.site-header--inverted .logo .logo-light { opacity: 1; }
.site-header--inverted .logo .logo-dark  { opacity: 0; }
.site-header--inverted .main-nav a       { color: var(--color-white); }

/* ===== NAVIGATION ===== */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.main-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.site-header.scrolled .main-nav a {
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(33, 96, 181, 0.08);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  color: var(--color-primary);
  background: rgba(33, 96, 181, 0.08);
}

/* ===== HEADER CTA ===== */
.header-cta {
  display: none;
}

.header-cta .btn {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-6);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: var(--z-menu-toggle);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.site-header.scrolled .mobile-menu-toggle span {
  background: var(--color-text);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: calc(var(--urgency-bar-height) + var(--space-20)) var(--space-8) var(--space-8);
  transition: right var(--transition-normal);
  z-index: var(--z-menu);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-menu-overlay);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.mobile-menu .btn {
  margin-top: var(--space-6);
  width: 100%;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .header-cta {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== SITE FOOTER (footer.css) ===== */
.site-footer {
  background: var(--color-dark-bg);
  color: var(--color-white);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* ===== FOOTER BRAND ===== */
.footer-brand .logo img {
  height: 36px;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-light);
}

.footer-social a:hover svg {
  fill: white;
}

/* ===== FOOTER LINKS ===== */
.footer-col h4 {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

/* ===== FOOTER CONTACT ===== */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: var(--color-white);
}

/* ===== NEWSLETTER ===== */
.footer-newsletter {
  margin-top: var(--space-6);
}

.footer-newsletter p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: var(--text-sm);
}

.newsletter-form input::placeholder {
  color: var(--color-text-light);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

.newsletter-form button {
  padding: var(--space-3) var(--space-5);
  background: var(--brand);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--navy);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== SHARED: STEP CARDS (study-in-korea, career) ===== */
.step-card {
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  text-align: center;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-4);
}

.step-card h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== SHARED: QUICK LINK CARDS (contact) ===== */
.quick-link-card {
  display: block;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.quick-link-card h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.quick-link-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.quick-link-card span {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--brand);
}

/* ===== SHARED: WHO-JOIN / INFO CARDS (programs) ===== */
.who-card {
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  text-align: center;
}

.who-card:hover {
  box-shadow: var(--shadow-md);
}

.who-card h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.who-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== SHARED: CHECKBOX GROUP (career form) ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.checkbox-label:hover {
  border-color: var(--color-primary-light);
  background: var(--brand-wash);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* ===== PARTNER CAROUSEL (shared: homepage + about) ===== */
.partner-carousel {
  overflow: hidden;
  padding: var(--space-8) 0;
}

.partner-carousel__track {
  display: flex;
  gap: var(--space-10);
  animation: scroll-logos 30s linear infinite;
}

.partner-carousel__track img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.partner-carousel__track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 404 ERROR PAGE ===== */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.error-section h1 {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.error-section p {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-relaxed);
}

.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
