/* ============================================
   THAIWORKINTER.COM — DESIGN SYSTEM
   Bright blue + berry purple + soft pink
   ============================================ */

:root {
  /* Brand colors — primary: bright blue */
  --navy-900: #1A4FC4;
  --navy-700: #2E7BFC;
  --navy-500: #5B97FD;
  --navy-100: #E7EFFF;
  --navy-50: #F2F6FF;

  /* Brand colors — secondary: berry purple (was gold) */
  --gold-600: #7C3E78;
  --gold-500: #9B5296;
  --gold-400: #C677C0;
  --gold-100: #F6E4F3;
  --gold-50: #FBF1FA;

  /* Brand colors — accent: soft pink (was terracotta) */
  --terracotta-600: #C2549D;
  --terracotta-500: #E89DD7;
  --terracotta-100: #FBE9F6;

  /* Vivid magenta — primary CTA accent from new mockup */
  --magenta-700: #9A0850;
  --magenta-600: #BA0A64;
  --magenta-100: #FBE0EE;

  --cream: #FAFAFD;
  --cream-deep: #F3EFF9;
  --white: #FFFFFF;

  --ink-900: #221C35;
  --ink-700: #4A4364;
  --ink-500: #7C758F;
  --ink-300: #B3ACC4;
  --ink-100: #E9E6F0;

  --success: #2F7D5E;
  --success-bg: #E5F2EC;
  --danger: #B5482F;
  --danger-bg: #FBE9E3;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 79, 196, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 79, 196, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 79, 196, 0.12);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.35s ease; }

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

/* ============ Layout helpers ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .section { padding: 56px 0; }
}
@media (min-width: 980px) {
  .container { padding: 0 32px; }
  .section { padding: 72px 0; }
}

/* ============ Kanok divider — signature element ============ */
.kanok-divider {
  width: 100%;
  height: 22px;
  display: block;
}

/* ============ Top nav ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.topnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy-900);
  flex-shrink: 0;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: none;
}
.nav-links a, .nav-links button.navlink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links button.navlink:hover { color: var(--navy-900); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--navy-900);
  flex-shrink: 0;
}
.nav-text-actions { display: none; }

@media (min-width: 980px) {
  .topnav-inner { padding: 0 32px; height: 72px; }
  .logo { gap: 10px; font-size: 21px; }
  .logo-mark { width: 34px; height: 34px; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-700);
  }
  .nav-actions { gap: 12px; }
  .nav-menu-toggle { display: none; }
  .nav-text-actions { display: flex; align-items: center; gap: 12px; }
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
  padding: 16px 18px 20px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu button.navlink {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}
.mobile-menu .mobile-actions { display: flex; gap: 10px; margin-top: 14px; }
@media (min-width: 980px) {
  .mobile-menu { display: none !important; }
}

.audience-toggle {
  display: flex;
  background: var(--navy-50);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}
.audience-toggle button {
  border: none;
  background: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--navy-700);
  transition: all 0.15s;
}
.audience-toggle button.active {
  background: var(--navy-900);
  color: var(--white);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  min-height: 44px;
}
.btn-gold {
  background: var(--gold-400);
  color: var(--white);
}
.btn-magenta {
  background: var(--magenta-600);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-blue {
  background: var(--navy-700);
  color: var(--white);
}
.btn-blue:hover { background: var(--navy-900); transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--white);
}
.btn-white:hover { background: var(--ink-100); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--ink-300);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-50); }
.btn-ghost {
  background: transparent;
  color: var(--navy-700);
}
.btn-ghost:hover { background: var(--navy-50); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: visible;
}
.hero-photo {
  position: relative;
  min-height: 360px;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(180deg, rgba(10, 10, 14, 0.85) 0%, rgba(10, 10, 14, 0.6) 45%, rgba(10, 10, 14, 0.35) 100%),
    url('images/hero_bg2.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-bottom: 28px;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 18px 0;
  width: 100%;
}
.hero-text { max-width: 540px; }
.hero-eyebrow { display: none; }
.hero h1 {
  color: var(--white);
  font-size: 28px;
  line-height: 1.18;
  margin-bottom: 6px;
  font-weight: 600;
}
.hero h1 .accent {
  display: block;
  font-family: 'Caveat', cursive;
  color: var(--magenta-600);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  position: relative;
  margin-top: 2px;
}
.hero h1 .accent::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--magenta-600);
  border-radius: 2px;
  margin-top: 2px;
}
.hero p.lead {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 14px 0 0;
  max-width: 460px;
  line-height: 1.6;
}
.hero p.lead b { color: var(--white); font-weight: 600; }
.hero-ctas { display: none; }
.hero-trust { display: none; }
.hero-visual { display: none; }

.hero-search {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 18px;
  position: relative;
  z-index: 5;
  width: 100%;
}
.hero-search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}
.hero-search-field i { color: var(--ink-500); font-size: 18px; flex-shrink: 0; }
.hero-search-field input, .hero-search-field select {
  border: none;
  background: none;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink-900);
  width: 100%;
}
.hero-search-field input:focus, .hero-search-field select:focus { outline: none; }
.hero-search-bar .btn-blue-search {
  padding: 13px 28px;
  width: 100%;
}

.btn-magenta {
  background: var(--magenta-600);
  color: var(--white);
}
.btn-magenta:hover { background: var(--magenta-700); transform: translateY(-1px); }

.btn-blue-search {
  background: var(--navy-700);
  color: var(--white);
}
.btn-blue-search:hover { background: var(--navy-900); transform: translateY(-1px); }

@media (min-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero h1 .accent { font-size: 52px; }
  .hero p.lead { font-size: 16px; }
}

@media (min-width: 980px) {
  .hero-photo {
    min-height: 520px;
    padding-bottom: 64px;
  }
  .hero-photo {
    background-image:
      linear-gradient(100deg, rgba(10,10,14,0.88) 0%, rgba(10,10,14,0.65) 28%, rgba(10,10,14,0.3) 55%, rgba(10,10,14,0) 70%),
      url('images/hero_bg2.jpg');
  }
  .hero-inner { padding: 64px 32px 0; }
  .hero h1 { font-size: 44px; }
  .hero h1 .accent { font-size: 64px; }
  .hero h1 .accent::after { width: 150px; }
  .hero p.lead { font-size: 17px; margin-top: 18px; }
  .hero-search { margin-top: 40px; padding: 0 32px; }
  .hero-search-bar {
    flex-direction: row;
    padding: 12px;
    align-items: stretch;
    max-width: 760px;
  }
  .hero-search-field { flex: 1; border: none; }
  .hero-search-field:not(:last-child) { border-right: 1px solid var(--ink-100); border-radius: 0; }
  .hero-search-bar .btn-blue-search { width: auto; }
}

/* ============ Stat strip ============ */
.stat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.stat-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-900);
}
.stat-label { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }

@media (min-width: 640px) {
  .stat-strip-inner { padding: 28px 24px; gap: 24px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 13px; }
}
@media (min-width: 980px) {
  .stat-strip-inner { grid-template-columns: repeat(4, 1fr); padding: 28px 32px; }
  .stat-num { font-size: 28px; }
}

/* ============ Section headers ============ */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 24px; margin-bottom: 12px; }
.section-head p { color: var(--ink-500); font-size: 14.5px; line-height: 1.65; }
.section-head.left { text-align: left; margin: 0 0 28px; }

@media (min-width: 640px) {
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 15.5px; }
}
@media (min-width: 980px) {
  .section-head { margin-bottom: 48px; }
  .section-head h2 { font-size: 32px; }
  .section-head p { font-size: 16px; }
}

/* ============ Cards ============ */
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
}
.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.step-card p { color: var(--ink-500); font-size: 14px; line-height: 1.6; }

@media (min-width: 640px) {
  .step-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 980px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-card { padding: 28px 24px; }
  .step-badge { width: 46px; height: 46px; font-size: 18px; margin-bottom: 18px; }
  .step-card h3 { font-size: 18px; margin-bottom: 8px; }
  .step-card p { font-size: 14.5px; }
}

/* ============ Job cards ============ */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .job-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 980px) {
  .job-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.job-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.18s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card:hover {
  border-color: var(--navy-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-save-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  font-size: 17px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.job-save-icon:hover { color: var(--magenta-600); }
.job-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-school-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-terra { background: var(--terracotta-100); color: var(--terracotta-600); }
.badge-navy { background: var(--navy-100); color: var(--navy-700); }
.badge-success { background: var(--success-bg); color: var(--success); }

.job-card h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.job-card .school-name { font-size: 13.5px; color: var(--ink-500); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-500); }
.job-meta span { display: flex; align-items: center; gap: 4px; }
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
  margin-top: auto;
}
.salary { font-weight: 600; color: var(--navy-900); font-size: 15px; }
.salary span { font-size: 12px; color: var(--ink-500); font-weight: 400; }

/* ============ Testimonial ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 980px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-900);
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.person-name { font-weight: 600; font-size: 14.5px; }
.person-sub { font-size: 12.5px; color: var(--ink-500); }

/* ============ Dual path (school vs teacher) ============ */
.dual-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.path-card {
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 980px) {
  .dual-path { grid-template-columns: 1fr 1fr; gap: 24px; }
  .path-card { padding: 36px 32px; }
}
.path-teacher { background: var(--navy-700); color: var(--white); }
.path-school { background: var(--navy-50); color: var(--navy-900); border: 1px solid var(--navy-100); }
.path-card h3 { font-size: 22px; margin-bottom: 10px; }
.path-teacher h3 { color: var(--white); }
.path-card p { font-size: 14.5px; margin-bottom: 22px; line-height: 1.6; }
.path-teacher p { color: rgba(255,255,255,0.85); }
.path-school p { color: var(--ink-700); }

/* ============ Why Thailand icons ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  text-align: center;
}
.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--terracotta-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.why-icon i {
  font-size: 24px;
  background: linear-gradient(135deg, var(--navy-700), var(--magenta-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--navy-700);
}
.why-grid h4 { font-size: 14.5px; margin-bottom: 5px; }
.why-grid p { font-size: 12.5px; color: var(--ink-500); line-height: 1.55; }

@media (min-width: 640px) {
  .why-grid { gap: 26px; }
  .why-icon { width: 66px; height: 66px; }
  .why-icon i { font-size: 27px; }
  .why-grid h4 { font-size: 15.5px; }
  .why-grid p { font-size: 13px; }
}
@media (min-width: 980px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .why-icon { width: 72px; height: 72px; margin-bottom: 16px; }
  .why-icon i { font-size: 30px; }
  .why-grid h4 { font-size: 16px; margin-bottom: 6px; }
  .why-grid p { font-size: 13.5px; line-height: 1.6; }
}

/* ============ Explore Thailand grid ============ */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.explore-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-300, var(--navy-500)), var(--terracotta-500));
  cursor: pointer;
}
.explore-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-card:nth-child(1) { background: linear-gradient(135deg, #2E7BFC, #5DA9E8); }
.explore-card:nth-child(2) { background: linear-gradient(135deg, #1A4FC4, #9B5296); }
.explore-card:nth-child(3) { background: linear-gradient(135deg, #C2549D, #E89DD7); }
.explore-card:nth-child(4) { background: linear-gradient(135deg, #BA0A64, #E89DD7); }
.explore-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}
.explore-label .icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--magenta-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

@media (min-width: 980px) {
  .explore-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .explore-card { border-radius: var(--radius-lg); }
  .explore-label { left: 12px; bottom: 12px; gap: 10px; font-size: 14.5px; }
  .explore-label .icon-circle { width: 32px; height: 32px; font-size: 15px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 980px) {
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 40px; }
  .footer-bottom { padding-top: 24px; font-size: 13px; }
}

/* ============ Sub-page header bar ============ */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  padding: 28px 0;
}
.breadcrumb { font-size: 13.5px; color: var(--ink-500); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--navy-700); cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header h1 { font-size: 26px; }

/* ============ Filter bar ============ */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}
.filter-bar .search-input {
  flex: 1 1 240px;
  position: relative;
}
.search-input input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--cream);
}
.search-input input:focus { outline: 2px solid var(--navy-500); outline-offset: -1px; }
.search-input i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-500); font-size: 16px; }
select.filter-select {
  padding: 11px 14px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink-700);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink-500);
}

/* ============ Two column layouts ============ */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 980px) {
  .layout-2col { grid-template-columns: 2fr 1fr; gap: 32px; }
}

/* ============ Job detail ============ */
.jd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.jd-title-row { display: flex; gap: 16px; }
.jd-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}
.jd-title-row h1 { font-size: 24px; margin-bottom: 4px; }
.jd-school { font-size: 14.5px; color: var(--ink-500); }
.jd-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.jd-section { margin-bottom: 28px; }
.jd-section h3 { font-size: 17px; margin-bottom: 12px; }
.jd-section p, .jd-section li { color: var(--ink-700); font-size: 15px; line-height: 1.75; }
.jd-section ul li { display: flex; gap: 10px; margin-bottom: 8px; }
.jd-section ul li i { color: var(--gold-600); margin-top: 3px; flex-shrink: 0; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-card h4 { font-size: 14px; color: var(--ink-500); font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row .label { color: var(--ink-500); }
.sidebar-row .value { font-weight: 600; color: var(--navy-900); text-align: right; }

.salary-highlight {
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}
.salary-highlight .amount { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold-600); }
.salary-highlight .period { font-size: 12.5px; color: var(--ink-500); }

/* ============ Profile page ============ */
.profile-header {
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  padding: 40px 0;
}
.profile-top { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  flex-shrink: 0;
  border: 4px solid var(--gold-400);
}
.profile-info h1 { font-size: 26px; margin-bottom: 6px; }
.profile-info .role { font-size: 15.5px; color: var(--ink-500); margin-bottom: 10px; }
.profile-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-500); margin-bottom: 14px; }
.profile-meta span { display: flex; align-items: center; gap: 6px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.completeness-bar-wrap { margin-left: auto; min-width: 220px; }
.completeness-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-500); margin-bottom: 6px; }
.completeness-track { height: 8px; background: var(--ink-100); border-radius: var(--radius-pill); overflow: hidden; }
.completeness-fill { height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--terracotta-500)); border-radius: var(--radius-pill); }

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ink-100);
  margin-top: 28px;
}
.profile-tab {
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
}
.profile-tab.active { color: var(--navy-900); border-bottom-color: var(--gold-500); }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.info-item { padding: 16px; background: var(--cream); border-radius: var(--radius-md); }
.info-item .label { font-size: 12.5px; color: var(--ink-500); margin-bottom: 4px; }
.info-item .value { font-size: 15px; font-weight: 600; color: var(--navy-900); }

.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.doc-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-row .name { font-weight: 600; font-size: 14px; }
.doc-row .status { font-size: 12.5px; color: var(--success); }
.doc-row .status.pending { color: var(--gold-600); }

/* ============ Apply flow ============ */
.apply-progress {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  max-width: 640px;
}
.apply-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.apply-step .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.apply-step.done .dot { background: var(--success); color: var(--white); }
.apply-step.active .dot { background: var(--navy-900); color: var(--white); }
.apply-step .step-label { font-size: 13.5px; font-weight: 600; color: var(--ink-500); }
.apply-step.active .step-label { color: var(--navy-900); }
.apply-step .connector { flex: 1; height: 2px; background: var(--ink-100); margin: 0 6px; }
.apply-step.done .connector { background: var(--success); }

.apply-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 640px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.form-group .hint { font-size: 12.5px; color: var(--ink-500); margin-top: 5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--cream);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.upload-zone {
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  background: var(--cream);
  color: var(--ink-500);
  font-size: 14px;
}
.upload-zone i { font-size: 26px; color: var(--navy-500); margin-bottom: 8px; display: block; }

.success-state { text-align: center; padding: 60px 32px; max-width: 480px; margin: 0 auto; }
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

/* ============ School landing ============ */
.school-hero {
  background: var(--cream-deep);
  padding: 40px 0;
}
.school-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.school-hero h1 { font-size: 28px; line-height: 1.22; margin-bottom: 14px; }
.school-hero p.lead { font-size: 15px; color: var(--ink-700); margin-bottom: 22px; max-width: 460px; }

.teacher-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.teacher-mini-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
}
.teacher-mini-card .avatar { width: 44px; height: 44px; margin: 0 auto 8px; font-size: 15px; }
.teacher-mini-card h4 { font-size: 13px; margin-bottom: 2px; }
.teacher-mini-card .sub { font-size: 10.5px; color: var(--ink-500); margin-bottom: 6px; }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}
.pricing-card.featured { border: 2px solid var(--gold-500); }
.pricing-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.pricing-card h3 { font-size: 18px; margin-bottom: 6px; }
.pricing-card .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.pricing-card .price span { font-size: 13px; color: var(--ink-500); font-weight: 400; }
.pricing-card .desc { font-size: 13.5px; color: var(--ink-500); margin-bottom: 20px; }
.pricing-card ul li { display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 10px; color: var(--ink-700); }
.pricing-card ul li i { color: var(--success); margin-top: 2px; }

@media (min-width: 640px) {
  .school-hero { padding: 56px 0; }
  .school-hero h1 { font-size: 32px; }
  .school-hero p.lead { font-size: 16px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .school-hero { padding: 64px 0; }
  .school-hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .school-hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 18px; }
  .school-hero p.lead { font-size: 17px; margin-bottom: 28px; }
  .teacher-mini-grid { gap: 16px; }
  .teacher-mini-card { padding: 18px; }
  .teacher-mini-card .avatar { width: 56px; height: 56px; font-size: 18px; }
  .teacher-mini-card h4 { font-size: 14.5px; }
  .teacher-mini-card .sub { font-size: 12px; margin-bottom: 10px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .pricing-card { padding: 30px 26px; }
}

/* ============ Responsive — see component-level min-width queries above ============ */

