/* ===== OnlineTesolJob.com — Design System v1 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors — Slate Gray + Brick Red */
  --clr-primary: #2B2D42;
  --clr-primary-mid: #4A4E69;
  --clr-primary-dark: #1D1E2C;
  --clr-accent: #D62828;
  --clr-accent-hover: #B71C1C;
  --clr-accent-pale: #FDEAEA;
  --clr-ok: #1A7D5A;
  --clr-ok-pale: #E4F5EE;
  --clr-warn: #D97706;
  --clr-err: #C1121F;
  --clr-err-pale: #FDE8E8;

  /* Backgrounds */
  --bg-body: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-muted: #EDEBE6;
  --bg-dark: #2B2D42;
  --bg-row-alt: #FAFAF7;

  /* Text */
  --txt-heading: #1D1E2C;
  --txt-body: #3D3F54;
  --txt-dim: #6E7085;
  --txt-faint: #9B9DB3;
  --txt-white: #FFFFFF;
  --txt-link: #2B2D42;
  --txt-link-hover: #D62828;

  /* Borders */
  --bdr: #D8D6D0;
  --bdr-light: #E8E6E1;
  --bdr-focus: #2B2D42;

  /* Fonts — Merriweather + Work Sans */
  --ff-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --ff-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  /* Shadows — minimal, tight */
  --sh-sm: 0 1px 2px rgba(43,45,66,0.06);
  --sh-md: 0 3px 8px rgba(43,45,66,0.08);

  /* Radius — sharp, editorial */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Timing */
  --t-fast: 120ms;
  --t-base: 220ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--ff-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--ff-body); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV — sticky, clean ===== */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--bg-card); border-bottom: 1px solid var(--bdr); transition: box-shadow var(--t-fast) var(--ease); }
.topbar.scrolled { box-shadow: 0 2px 6px rgba(43,45,66,0.07); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* Logo */
.topbar-brand { font-family: var(--ff-body); font-size: 21px; color: var(--clr-primary); display: inline-flex; align-items: baseline; letter-spacing: -0.02em; }
.brand-light { font-weight: 300; font-size: 16px; }
.brand-heavy { font-weight: 800; font-size: 23px; position: relative; padding-bottom: 2px; }
.brand-heavy::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px; background: var(--clr-accent); border-radius: 1px; }
.brand-tld { font-weight: 400; font-size: 15px; color: var(--clr-accent); }

.topbar-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.topbar-menu a { font-size: 13.5px; font-weight: 600; color: var(--txt-heading); letter-spacing: 0.01em; transition: color var(--t-fast) var(--ease); }
.topbar-menu a:hover { color: var(--txt-link-hover); }
.topbar-menu .menu-cta { color: var(--clr-accent); }

.topbar-burger { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.topbar-burger:hover { background: var(--bg-muted); }
.topbar-burger svg { width: 20px; height: 20px; stroke: var(--txt-heading); }

/* Mobile drawer */
.drawer-mask { display: none; position: fixed; inset: 0; background: rgba(43,45,66,0.5); z-index: 200; opacity: 0; transition: opacity var(--t-base) var(--ease); }
.drawer-mask.open { opacity: 1; }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 270px; background: var(--bg-card); z-index: 201; transform: translateX(100%); transition: transform var(--t-base) var(--ease); padding: 20px; }
.drawer-panel.open { transform: translateX(0); }
.drawer-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; margin-left: auto; margin-bottom: 20px; border-radius: var(--r-sm); }
.drawer-close:hover { background: var(--bg-muted); }
.drawer-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { display: block; padding: 11px 14px; font-size: 15px; font-weight: 600; color: var(--txt-heading); border-radius: var(--r-sm); transition: background var(--t-fast) var(--ease); }
.drawer-nav a:hover { background: var(--bg-muted); }
.drawer-nav .drawer-cta { color: var(--clr-accent); font-weight: 700; margin-top: 8px; border-top: 1px solid var(--bdr); padding-top: 14px; }

/* ===== HERO — single column, centered ===== */
.hero-banner { background: var(--bg-dark); position: relative; overflow: hidden; }
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(214,40,40,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(74,78,105,0.2) 0%, transparent 55%);
  pointer-events: none;
}
/* Fine dot pattern */
.hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 80px; text-align: center; max-width: 680px; margin: 0 auto; }
.hero-inner h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 1.1rem + 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--txt-white);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.hero-lead {
  font-size: clamp(0.9rem, 0.82rem + 0.4vw, 1.05rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-bottom: 32px; }
.hero-stat-val { font-family: var(--ff-display); font-size: 24px; font-weight: 700; color: var(--clr-accent); }
.hero-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; letter-spacing: 0.03em; text-transform: uppercase; }
.hero-cta {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: var(--clr-accent);
  color: var(--txt-white);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  letter-spacing: 0.01em;
}
.hero-cta:hover { background: var(--clr-accent-hover); transform: translateY(-1px); }
.hero-cta svg { width: 16px; height: 16px; }

/* ===== SECTIONS ===== */
.block { padding: 64px 0; }
.block-header { margin-bottom: 32px; }
.block-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 6px; }
.block-title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.6rem);
  font-weight: 700;
  color: var(--txt-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.block-subtitle { color: var(--txt-dim); margin-top: 6px; font-size: 14px; }
.block-header-row { display: flex; align-items: baseline; justify-content: space-between; }
.block-more { font-size: 13px; font-weight: 700; color: var(--clr-accent); display: flex; align-items: center; gap: 4px; transition: gap var(--t-fast) var(--ease); }
.block-more:hover { gap: 8px; }
.block-more svg { width: 14px; height: 14px; }

/* ===== JOB LIST — single-column rows ===== */
.job-list { display: flex; flex-direction: column; }
.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bdr-light);
  position: relative;
  transition: background var(--t-fast) var(--ease);
  color: inherit;
  text-decoration: none;
}
.job-row::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--clr-primary);
  border-radius: 0 2px 2px 0;
  transition: background var(--t-fast) var(--ease);
}
.job-row.partner-row::before { background: var(--clr-accent); }
.job-row:hover { background: var(--bg-row-alt); }
.job-row:hover::before { background: var(--clr-accent); }
.job-row:nth-child(even) { background: var(--bg-row-alt); }
.job-row:nth-child(even):hover { background: #F5F3EE; }

.job-row-top { display: flex; align-items: baseline; justify-content: space-between; width: 100%; gap: 12px; }
.job-row-title { font-size: 16px; font-weight: 700; color: var(--txt-heading); line-height: 1.3; transition: color var(--t-fast) var(--ease); }
.job-row:hover .job-row-title { color: var(--clr-accent); }
.job-row-pay { font-size: 14px; font-weight: 700; color: var(--clr-accent); white-space: nowrap; flex-shrink: 0; }

.job-row-mid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--txt-dim); width: 100%; }
.job-row-company { font-weight: 600; }
.job-row-dot { color: var(--txt-faint); }
.job-row-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-xs); letter-spacing: 0.02em; }
.tag-fulltime { background: var(--clr-ok-pale); color: var(--clr-ok); }
.tag-parttime { background: #EDE9FE; color: #7C3AED; }
.tag-online { background: #E0F2F1; color: #00796B; }
.tag-contract { background: var(--clr-accent-pale); color: var(--clr-accent); }

.job-row-desc { font-size: 13px; color: var(--txt-dim); line-height: 1.5; width: 100%; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.job-row-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 2px; }
.job-row-date { font-size: 11px; color: var(--txt-faint); }
.job-row-go { font-size: 12px; font-weight: 700; color: var(--clr-accent); display: flex; align-items: center; gap: 3px; transition: gap var(--t-fast) var(--ease); }
.job-row:hover .job-row-go { gap: 7px; }
.job-row-go svg { width: 13px; height: 13px; }
.job-row-source { font-size: 10px; color: var(--txt-faint); display: flex; align-items: center; gap: 3px; }
.job-row-source svg { width: 11px; height: 11px; stroke: var(--txt-faint); }

/* ===== CTA BANNER — dark full-width ===== */
.cta-band { background: var(--bg-dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(214,40,40,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; padding: 52px 0; text-align: center; }
.cta-band h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.55rem);
  font-weight: 700;
  color: var(--txt-white);
  margin-bottom: 8px;
}
.cta-band p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 460px; margin: 0 auto 24px; }

/* Buttons */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clr-accent);
  color: var(--txt-white);
  font-weight: 700; font-size: 15px;
  padding: 13px 32px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  border: none;
  letter-spacing: 0.01em;
}
.btn-accent:hover { background: var(--clr-accent-hover); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--txt-white);
  font-weight: 700; font-size: 14px;
  padding: 11px 26px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.btn-outline:hover { border-color: var(--txt-white); background: rgba(255,255,255,0.05); }

/* ===== TRUST STRIP — horizontal data bar ===== */
.trust-strip { background: var(--bg-card); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.trust-strip-inner { display: flex; justify-content: center; gap: 48px; padding: 32px 0; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-family: var(--ff-display); font-size: 26px; font-weight: 700; color: var(--txt-heading); }
.trust-lbl { font-size: 11px; color: var(--txt-dim); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== STORIES CARDS ===== */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 24px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.story-card:hover { border-color: var(--clr-primary-mid); box-shadow: var(--sh-md); }
.story-card-author { display: flex; align-items: center; gap: 10px; }
.story-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.avatar-1 { background: #4A4E69; }
.avatar-2 { background: #D62828; }
.avatar-3 { background: #1A7D5A; }
.avatar-4 { background: #00796B; }
.avatar-5 { background: #7C3AED; }
.story-author-name { font-size: 13px; font-weight: 700; color: var(--txt-heading); }
.story-author-loc { font-size: 11px; color: var(--txt-dim); }
.story-card-title { font-size: 15px; font-weight: 700; color: var(--txt-heading); line-height: 1.35; }
.story-card-body { font-size: 13px; color: var(--txt-dim); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.story-card-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-xs); background: var(--bg-muted); color: var(--txt-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.story-card-link { font-size: 12px; font-weight: 700; color: var(--clr-accent); display: flex; align-items: center; gap: 3px; transition: gap var(--t-fast) var(--ease); }
.story-card-link:hover { gap: 7px; }
.story-card-link svg { width: 13px; height: 13px; }

/* ===== SALARY SNAPSHOT ===== */
.salary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.salary-table th { background: var(--bg-dark); color: var(--txt-white); padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.salary-table td { padding: 10px 16px; border-bottom: 1px solid var(--bdr-light); color: var(--txt-body); }
.salary-table tr:nth-child(even) td { background: var(--bg-row-alt); }
.salary-table .salary-highlight { font-weight: 700; color: var(--clr-accent); }

/* ===== FOOTER — dark, 4-column, left-aligned ===== */
.site-foot { background: var(--bg-dark); color: rgba(255,255,255,0.65); padding: 56px 0 0; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-brand-block .foot-logo { font-family: var(--ff-body); font-size: 19px; color: var(--txt-white); display: inline-flex; align-items: baseline; margin-bottom: 10px; }
.foot-brand-block .foot-logo .brand-light { font-weight: 300; font-size: 14px; color: rgba(255,255,255,0.7); }
.foot-brand-block .foot-logo .brand-heavy { font-weight: 800; font-size: 20px; color: var(--txt-white); }
.foot-brand-block .foot-logo .brand-heavy::after { background: var(--clr-accent); }
.foot-brand-block .foot-logo .brand-tld { font-weight: 400; font-size: 14px; color: var(--clr-accent); }
.foot-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 280px; }
.foot-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color var(--t-fast) var(--ease); }
.foot-links a:hover { color: var(--clr-accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 11px; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-banner {
  background: var(--bg-dark);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 80%, rgba(214,40,40,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-banner h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
  color: var(--txt-white);
  position: relative; z-index: 1;
}
.page-banner p { color: rgba(255,255,255,0.5); margin-top: 6px; font-size: 14px; position: relative; z-index: 1; }

/* ===== ARTICLE CONTENT (for guides, about, stories) ===== */
.article-body { max-width: 740px; margin: 0 auto; padding: 48px 24px; }
.article-body h2 { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--txt-heading); margin-top: 36px; margin-bottom: 10px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--txt-heading); margin-top: 28px; margin-bottom: 8px; }
.article-body p { color: var(--txt-body); line-height: 1.75; margin-bottom: 16px; font-size: 15px; }
.article-body ul, .article-body ol { color: var(--txt-body); line-height: 1.75; margin-bottom: 16px; padding-left: 24px; font-size: 15px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body th { background: var(--bg-muted); padding: 10px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--bdr); font-size: 13px; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--bdr-light); color: var(--txt-body); }
.article-body tr:hover td { background: var(--bg-row-alt); }
.article-body blockquote { border-left: 3px solid var(--clr-accent); padding: 12px 20px; margin: 20px 0; background: var(--bg-row-alt); font-style: italic; color: var(--txt-dim); }

/* ===== BREADCRUMB ===== */
.crumb { font-size: 12px; color: var(--txt-faint); margin-bottom: 16px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 14px 0 0; }
.crumb a { color: var(--txt-dim); transition: color var(--t-fast) var(--ease); }
.crumb a:hover { color: var(--txt-link-hover); }
.crumb svg { width: 11px; height: 11px; stroke: var(--txt-faint); }

/* ===== JOB DETAIL — single-column article layout ===== */
.detail-article { max-width: 780px; margin: 0 auto; padding: 0 24px 48px; }
.detail-h1 { font-family: var(--ff-display); font-size: 26px; font-weight: 700; color: var(--txt-heading); line-height: 1.25; margin-bottom: 6px; }
.detail-org { font-size: 15px; color: var(--txt-dim); font-weight: 600; margin-bottom: 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.detail-tag-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--txt-dim); }
.detail-tag-item svg { width: 14px; height: 14px; stroke: var(--txt-faint); }

/* Apply bar — horizontal, inline */
.apply-bar {
  background: var(--bg-muted);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.apply-bar-text { flex: 1; min-width: 200px; }
.apply-bar-title { font-size: 14px; font-weight: 700; color: var(--txt-heading); margin-bottom: 2px; }
.apply-bar-desc { font-size: 12px; color: var(--txt-dim); line-height: 1.5; }
.apply-bar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--clr-accent);
  color: var(--txt-white);
  font-weight: 700; font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--r-md);
  border: none;
  transition: background var(--t-fast) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.apply-bar-btn:hover { background: var(--clr-accent-hover); }
.apply-bar-btn svg { width: 14px; height: 14px; }

/* Partner badge */
.partner-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-muted); border: 1px solid var(--bdr); border-radius: var(--r-sm); padding: 6px 12px; font-size: 12px; color: var(--txt-dim); margin-bottom: 20px; }
.partner-pill svg { width: 13px; height: 13px; }

/* Section dividers */
.detail-sect { margin-bottom: 32px; }
.detail-sect-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 4px; }
.detail-sect h2 { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--txt-heading); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--bdr-light); }
.detail-sect p, .detail-sect li { font-size: 14.5px; color: var(--txt-body); line-height: 1.75; margin-bottom: 8px; }
.detail-sect ul { padding-left: 20px; }

/* Prev/Next navigation */
.detail-nav { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--bdr); padding-top: 20px; margin-top: 32px; gap: 16px; }
.detail-nav a { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--txt-dim); padding: 8px 14px; border: 1px solid var(--bdr); border-radius: var(--r-sm); transition: all var(--t-fast) var(--ease); max-width: 48%; }
.detail-nav a:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.detail-nav .dn-label { font-size: 10px; color: var(--txt-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-nav .dn-title { font-weight: 700; color: var(--txt-heading); font-size: 13px; }
.detail-nav .dn-arrow { font-size: 16px; color: var(--txt-faint); flex-shrink: 0; }

/* Related jobs — horizontal scroll */
.related-strip { padding: 40px 0 48px; border-top: 1px solid var(--bdr); }
.related-scroll { display: flex; gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.related-card { min-width: 260px; max-width: 280px; background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-sm); padding: 18px; flex-shrink: 0; transition: border-color var(--t-fast) var(--ease); }
.related-card:hover { border-color: var(--clr-primary-mid); }
.related-card-title { font-size: 14px; font-weight: 700; color: var(--txt-heading); margin-bottom: 4px; line-height: 1.3; }
.related-card-org { font-size: 12px; color: var(--txt-dim); margin-bottom: 6px; }
.related-card-meta { font-size: 11px; color: var(--txt-faint); }

/* ===== FILTER BAR (jobs page) ===== */
.job-filters { background: var(--bg-card); border-bottom: 1px solid var(--bdr); padding: 12px 0; position: sticky; top: 60px; z-index: 50; }
.job-filters-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-select {
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-body);
  background: var(--bg-card);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%236E7085' stroke-width='2'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--bdr-focus); }
.filter-count { font-size: 13px; color: var(--txt-dim); margin-left: auto; white-space: nowrap; }

/* ===== PAGINATION ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 32px 0; }
.pager a, .pager span {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: var(--r-sm);
  color: var(--txt-dim);
  border: 1px solid var(--bdr);
  transition: all var(--t-fast) var(--ease);
}
.pager a:hover { background: var(--bg-muted); color: var(--txt-heading); border-color: var(--clr-primary-mid); }
.pager .pg-active { background: var(--clr-primary); color: var(--txt-white); border-color: var(--clr-primary); font-weight: 700; }
.pager .pg-disabled { color: var(--txt-faint); border-color: var(--bdr-light); pointer-events: none; }

/* ===== MODAL (Post a Job + general) ===== */
.modal-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(43,45,66,0.6);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.modal-mask.open { display: flex; animation: maskFadeIn var(--t-base) var(--ease) forwards; animation-delay: 0.02s; }
@keyframes maskFadeIn { to { opacity: 1; } }
.modal-box {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform var(--t-base) var(--ease);
}
.modal-mask.open .modal-box { transform: scale(1) translateY(0); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.modal-x:hover { background: var(--bg-muted); }
.modal-x svg { width: 16px; height: 16px; stroke: var(--txt-dim); }
.modal-heading { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--txt-heading); margin-bottom: 20px; }

/* Forms */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--txt-heading); margin-bottom: 5px; }
.field-label .req { color: var(--clr-err); margin-left: 2px; }
.field-opt { font-size: 11px; color: var(--txt-faint); font-weight: 400; margin-left: 4px; }
.field-hint { font-size: 11px; color: var(--txt-dim); margin-top: 3px; }
.field-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  background: var(--bg-card);
}
.field-input:focus { border-color: var(--bdr-focus); box-shadow: 0 0 0 2px rgba(43,45,66,0.06); }
.field-input::placeholder { color: var(--txt-faint); }
textarea.field-input { min-height: 140px; resize: vertical; line-height: 1.6; }
.field-warn { display: flex; align-items: flex-start; gap: 8px; background: var(--clr-accent-pale); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; }
.field-warn-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.field-warn p { font-size: 12px; color: var(--clr-accent-hover); line-height: 1.5; }
.field-submit {
  width: 100%;
  background: var(--clr-accent);
  color: var(--txt-white);
  font-weight: 700; font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease);
  border: none;
  letter-spacing: 0.01em;
}
.field-submit:hover { background: var(--clr-accent-hover); }
.field-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.field-note { text-align: center; font-size: 12px; color: var(--txt-dim); margin-top: 10px; }
.field-sep { border: none; border-top: 1px dashed var(--bdr); margin: 20px 0 16px; }
.field-intro { font-size: 13px; color: var(--txt-body); line-height: 1.6; margin-bottom: 14px; font-weight: 500; }

/* Private fields block */
.priv-block {
  background: #F7F9F8;
  border: 1px dashed var(--clr-ok);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.priv-header { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--clr-ok); margin-bottom: 10px; }
.priv-header svg { width: 14px; height: 14px; }
.priv-note { font-size: 11px; color: var(--txt-dim); line-height: 1.5; margin-bottom: 12px; }
.phone-row { display: flex; gap: 6px; }
.phone-code {
  width: 80px; padding: 10px 8px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  background: var(--bg-card);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%236E7085' stroke-width='2'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}
.phone-num {
  flex: 1; padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  outline: none;
  background: var(--bg-card);
  transition: border-color var(--t-fast) var(--ease);
}
.phone-num:focus { border-color: var(--bdr-focus); }
.im-options { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.im-option { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--txt-body); cursor: pointer; }
.im-option input[type="radio"] { accent-color: var(--clr-primary); }
.im-account {
  width: 100%; padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  outline: none;
  background: var(--bg-card);
  transition: border-color var(--t-fast) var(--ease);
}
.im-account:focus { border-color: var(--bdr-focus); }

/* Salary row */
.pay-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-row input[type="number"] {
  width: 120px; padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading); outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.pay-row input[type="number"]:focus { border-color: var(--bdr-focus); box-shadow: 0 0 0 2px rgba(43,45,66,0.06); }
.pay-row select {
  padding: 10px 30px 10px 12px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  background: var(--bg-card);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%236E7085' stroke-width='2'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer; outline: none;
}
.pay-row select:focus { border-color: var(--bdr-focus); }

/* Modal success */
.modal-done { display: none; text-align: center; padding: 20px 0; }
.modal-done.show { display: block; }
.modal-form.hide { display: none; }
.done-icon { width: 48px; height: 48px; background: var(--clr-ok-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 24px; color: var(--clr-ok); }

/* ===== CONTACT REVEAL MODAL ===== */
.reveal-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(43,45,66,0.65);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.reveal-mask.open { display: flex; animation: maskFadeIn var(--t-base) var(--ease) forwards; animation-delay: 0.02s; }
.reveal-box {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform var(--t-base) var(--ease);
}
.reveal-mask.open .reveal-box { transform: scale(1) translateY(0); }
.reveal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.reveal-x:hover { background: var(--bg-muted); }
.reveal-x svg { width: 16px; height: 16px; stroke: var(--txt-dim); }
.reveal-title { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--txt-heading); margin-bottom: 4px; }
.reveal-sub { font-size: 13px; color: var(--txt-dim); margin-bottom: 20px; line-height: 1.5; }
.reveal-box .field-submit { margin-top: 6px; }

/* Revealed state */
.revealed-result { display: none; text-align: center; padding: 14px 0; }
.revealed-result.show { display: block; }
.revealed-icon { font-size: 40px; margin-bottom: 10px; }
.revealed-heading { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--clr-ok); margin-bottom: 14px; }
.revealed-info {
  background: var(--clr-ok-pale);
  border-radius: var(--r-sm);
  padding: 14px;
  text-align: left;
  margin-bottom: 14px;
}
.revealed-info p { font-size: 13px; color: var(--txt-body); line-height: 1.6; margin-bottom: 4px; }
.revealed-info strong { color: var(--txt-heading); }
.revealed-info a { color: var(--clr-primary); font-weight: 700; text-decoration: underline; }
.revealed-luck { font-size: 13px; color: var(--txt-dim); font-style: italic; }

/* ===== CAPTCHA ===== */
.captcha { background: var(--bg-muted); border: 1px solid var(--bdr); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; }
.captcha-label { font-size: 12px; font-weight: 700; color: var(--txt-dim); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.captcha-label svg { width: 13px; height: 13px; }
.captcha-math { display: flex; align-items: center; gap: 8px; }
.captcha-q { font-size: 15px; font-weight: 700; color: var(--txt-heading); white-space: nowrap; }
.captcha-input {
  width: 70px; padding: 7px 10px;
  font-size: 15px; font-weight: 700;
  text-align: center;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading);
  outline: none;
  background: var(--bg-card);
}
.captcha-input:focus { border-color: var(--bdr-focus); }
.captcha-refresh {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs);
  color: var(--txt-dim);
  transition: background var(--t-fast) var(--ease);
}
.captcha-refresh:hover { background: var(--bdr-light); }
.captcha-refresh svg { width: 14px; height: 14px; }
.captcha-ok { display: none; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--clr-ok); }
.captcha-ok.show { display: flex; }

/* Submit cooldown */
.btn-wait { opacity: 0.5; pointer-events: none; position: relative; }
.btn-wait::after { content: attr(data-wait); position: absolute; right: 14px; font-size: 12px; font-weight: 600; }

/* ===== MOBILE STICKY APPLY ===== */
.sticky-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--bdr); padding: 10px 16px; z-index: 90; box-shadow: 0 -2px 8px rgba(43,45,66,0.06); }
.sticky-bottom .apply-bar-btn { width: 100%; justify-content: center; }

/* ===== CONTACT FORM ===== */
.contact-wrap { max-width: 560px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; color: var(--txt-heading); margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--txt-heading); outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  background: var(--bg-card);
  font-family: var(--ff-body);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--bdr-focus); box-shadow: 0 0 0 2px rgba(43,45,66,0.06); }
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%236E7085' stroke-width='2'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.contact-form .btn-accent { width: 100%; justify-content: center; border: none; font-size: 15px; padding: 12px 20px; }
.contact-eta { text-align: center; font-size: 12px; color: var(--txt-dim); margin-top: 14px; }

/* ===== SALARY EXPLORER ===== */
.salary-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.salary-insight { background: var(--bg-muted); border-radius: var(--r-sm); padding: 16px 20px; margin-top: 20px; }
.salary-insight h3 { font-size: 14px; font-weight: 700; color: var(--txt-heading); margin-bottom: 8px; }
.salary-insight ul { list-style: none; padding: 0; }
.salary-insight li { font-size: 13px; color: var(--txt-body); line-height: 1.6; padding: 4px 0; padding-left: 14px; position: relative; }
.salary-insight li::before { content: '\2022'; position: absolute; left: 0; color: var(--clr-accent); font-weight: 700; }
.salary-source { font-size: 11px; color: var(--txt-faint); margin-top: 12px; font-style: italic; }

/* ===== TEFL/TESOL PROVIDERS ===== */
.provider-list { display: flex; flex-direction: column; gap: 14px; }
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
}
.provider-card.featured { border-color: var(--clr-accent); border-width: 2px; }
.provider-rank {
  width: 40px; height: 40px;
  background: var(--bg-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--txt-dim);
}
.provider-card.featured .provider-rank { background: var(--clr-accent-pale); color: var(--clr-accent); }
.provider-info h3 { font-size: 16px; font-weight: 700; color: var(--txt-heading); margin-bottom: 3px; }
.provider-score { font-size: 12px; font-weight: 700; color: var(--clr-accent); margin-bottom: 6px; }
.provider-desc { font-size: 13px; color: var(--txt-body); line-height: 1.55; margin-bottom: 8px; }
.provider-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.provider-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-xs); background: var(--bg-muted); color: var(--txt-dim); letter-spacing: 0.02em; }
.provider-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.provider-visit {
  font-size: 12px; font-weight: 700;
  color: var(--clr-accent);
  padding: 7px 16px;
  border: 1.5px solid var(--clr-accent);
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.provider-visit:hover { background: var(--clr-accent); color: var(--txt-white); }

/* ===== Q&A CONTENT FILTER WARNING ===== */
.content-alert {
  display: none;
  align-items: flex-start;
  gap: 6px;
  background: #FEF9E7;
  border: 1px solid #F5C518;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #7A6200;
  line-height: 1.5;
}
.content-alert.show { display: flex; }
.content-alert svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; stroke: #B45309; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .topbar-menu { display: none; }
  .topbar-burger { display: flex; }
  .hero-stats { gap: 24px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .detail-article { padding: 0 20px 40px; }
  .apply-bar { flex-direction: column; align-items: stretch; }
  .apply-bar-btn { text-align: center; justify-content: center; }
  .sticky-bottom { display: block; }
  .related-scroll { gap: 12px; }
}
@media (max-width: 767px) {
  .hero-inner { padding: 52px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .block { padding: 48px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .job-filters-inner { gap: 6px; overflow-x: auto; }
  .salary-table { font-size: 13px; }
  .salary-table th, .salary-table td { padding: 8px 10px; }
  .detail-h1 { font-size: 22px; }
  .detail-nav { flex-direction: column; }
  .detail-nav a { max-width: 100%; }
  .provider-card { grid-template-columns: 1fr; }
  .provider-rank { width: auto; height: auto; background: none; font-size: 12px; }
  .provider-action { flex-direction: row; align-items: center; }
  .modal-box { padding: 24px 18px; }
  .reveal-box { padding: 24px 18px; }
  .cta-band-inner { padding: 40px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-inner h1 { font-size: 1.45rem; }
  .job-row { padding: 14px 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: slideUp 0.4s var(--ease) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
