/* ==========================================================================
   ThAssignmentMentor — redesigned stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
  --ink: #101c2e;
  --body: #42536b;
  --muted: #73819a;
  --line: #e5ecf4;
  --paper: #f6f9fc;
  --white: #ffffff;
  --navy: #0d2b45;
  --navy-2: #14406b;
  --teal: #0e8f7a;
  --teal-soft: #e6f6f2;
  --gold: #c7952f;
  --gold-soft: #fbf3e1;
  --green: #06c755;
  --green-dark: #05a443;
  --red: #d4574f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(13, 43, 69, .06);
  --shadow-md: 0 12px 30px rgba(13, 43, 69, .10);
  --shadow-lg: 0 24px 60px rgba(13, 43, 69, .16);
  --font: 'IBM Plex Sans Thai', 'Segoe UI', 'Tahoma', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}

a { color: var(--teal); }
img { max-width: 100%; }

/* Grid/flex items default to min-width:auto, which lets deeply nested wide
   content (tables, long words, etc.) force the whole column wider than the
   screen. Reset that everywhere inside main so containers can shrink to
   their track width; specific elements that intentionally need to scroll
   (e.g. .table-wrap table's min-width) still win via higher specificity. */
main * { min-width: 0; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(14, 143, 122, .35);
}

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

.nav > a:not(.nav-cta) {
  text-decoration: none;
  color: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 11px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}

.nav > a:not(.nav-cta):hover {
  color: var(--navy);
  background: var(--teal-soft);
}

.nav-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  margin-left: 8px;
  box-shadow: 0 6px 16px rgba(6, 199, 85, .28);
  transition: background .15s ease, transform .15s ease;
}

.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: .2s ease;
}

@media (max-width: 980px) {
  /* backdrop-filter on .site-header creates a CSS containing block for
     position:fixed descendants, which traps .nav inside the header's own
     box instead of the viewport. Disable it on mobile so .nav below is
     positioned (and sized) against the real viewport. */
  .site-header {
    backdrop-filter: none;
    background: #fff;
  }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    max-width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    padding: 84px 22px 30px;
    box-shadow: -18px 0 50px rgba(13, 43, 69, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    z-index: 150;
  }
  .nav.open { transform: translateX(0); }
  .nav > a:not(.nav-cta) { padding: 12px 14px; font-size: 16px; }
  .nav-cta { justify-content: center; margin: 14px 0 0; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6, 199, 85, .30);
}

.button.primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.button.secondary {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}

.button.secondary:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }

.button.ghost {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button.ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(820px 420px at 85% -10%, rgba(14, 143, 122, .55), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(199, 149, 47, .28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0e5f68 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--gold);
}

.hero .eyebrow { color: #f2cf7e; }

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  color: #fff;
  margin: 8px 0 22px;
  max-width: 860px;
}

.hero .lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: rgba(255, 255, 255, .85);
  max-width: 760px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 44px);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-stats b {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
}

.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* Hero contact card */
.hero-card {
  background: rgba(255, 255, 255, .97);
  color: var(--body);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .6);
}

.hero-card h2 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.hero-card > p { margin: 0 0 16px; font-size: 15px; }

.check-list { list-style: none; padding: 0; margin: 0; }

.check-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15.5px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230e8f7a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hero-card .button { width: 100%; margin-top: 12px; }
.hero-card .card-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
}

.trust-list .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 7vw, 96px) 0; }
.soft { background: var(--white); }
.section + .section.soft { border-top: 1px solid var(--line); }

.center { text-align: center; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 auto 16px;
  max-width: 820px;
}

.section-title.left { text-align: left; margin-left: 0; }

.section-intro {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: block;
  position: relative;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }
.card:hover::after { transform: scaleX(1); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 16px;
}

.card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gold);
  margin-bottom: 4px;
}

.card h3 { font-size: 21px; margin: 0 0 8px; color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Split & feature list ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.feature-list { display: grid; gap: 14px; }

.feature-list div {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.feature-list strong { display: block; color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.feature-list span { color: var(--body); font-size: 15.5px; }

/* ---------- Sample cards ---------- */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sample-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.sample-card h3 { font-size: 20px; color: var(--navy); margin: 10px 0 8px; }
.sample-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }

.sample-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 16px;
  border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}

.sample-link:hover { background: var(--navy-2); transform: translateY(-1px); }

.sample-note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 14.5px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps div {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}

.steps b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(14, 143, 122, .3);
  margin-bottom: 14px;
}

.steps h3 { font-size: 18px; margin: 0 0 8px; color: var(--navy); }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Process / content grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.content-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.content-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Service hero ---------- */
.service-hero {
  position: relative;
  color: #fff;
  padding: clamp(58px, 7vw, 92px) 0;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(14, 143, 122, .5), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0e5f68 100%);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

.service-hero .wrap { position: relative; z-index: 1; }

.service-hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.18;
  color: #fff;
  max-width: 840px;
  margin: 10px 0 18px;
}

.service-hero p {
  color: rgba(255, 255, 255, .88);
  max-width: 780px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}

.breadcrumb a { color: #fff; font-weight: 700; text-decoration: none; }
.breadcrumb a::after { content: "·"; margin-left: 8px; color: rgba(255, 255, 255, .5); }

/* ---------- Article / service layout ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.article-main h2 { color: var(--navy); font-size: 27px; margin-top: 40px; }
.article-main h2:first-child { margin-top: 0; }
.article-main h3 { color: var(--ink); font-size: 20px; margin-top: 26px; }
.article-main ul, .article-main ol { padding-left: 24px; }
.article-main p { margin: 0 0 18px; }

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.side-card h2 { font-size: 17px; color: var(--navy); margin: 0 0 12px; }

.side-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px 0;
  color: var(--body);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}

.side-card a::after { content: "→"; color: var(--teal); }
.side-card a:last-child { border-bottom: 0; }
.side-card a:hover { color: var(--teal); }
.side-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 2; }

.side-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff !important;
  justify-content: center !important;
  padding: 13px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background-color: var(--green) !important;
}

.side-cta::after { content: none !important; }
.side-cta:hover { background: var(--green-dark) !important; color: #fff !important; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(14, 143, 122, .45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #0e5f68 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 42px;
}

.cta-band h2 { color: #fff; font-size: 24px; margin-top: 0; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }

/* ---------- Footer ---------- */
.footer {
  background: #0a1c30;
  color: rgba(255, 255, 255, .68);
  padding: 52px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer strong { color: #fff; }
.footer .brand { color: #fff; }

.footer p { font-size: 15px; }
.footer a { display: block; color: rgba(255, 255, 255, .68); text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a { display: inline; font-size: 13.5px; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
}

@media (max-width: 760px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
  }
  .sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(6, 199, 85, .4);
  }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 96px; }
}

/* ==========================================================================
   Knowledge library & article pages
   ========================================================================== */

.library-hero, .knowledge-hero {
  position: relative;
  color: #fff;
  padding: clamp(58px, 8vw, 104px) 0;
  overflow: hidden;
}

.library-hero { background: linear-gradient(135deg, #0a1c30, var(--navy-2) 60%, #0e5f68); }
.knowledge-hero, .layout-0 { background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0e5f68); }
.layout-1 { background: linear-gradient(135deg, #0d2b45, #103a46 60%, #0e5f68); }
.layout-2 { background: linear-gradient(135deg, #122a3a, #173a52 60%, #0b5c66); }

.process { position: relative; }

.library-hero::before, .knowledge-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 80%);
}

.library-hero .wrap, .knowledge-hero .wrap { position: relative; z-index: 1; }

.library-hero h1, .knowledge-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  color: #fff;
  max-width: 900px;
  margin: 12px 0 20px;
}

.library-hero p, .knowledge-hero p {
  max-width: 800px;
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
}

.article-kicker {
  display: inline-block;
  color: #f2cf7e;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  font-size: 13px;
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.path-actions a {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}

.path-actions a:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }

.path-section { scroll-margin-top: 90px; }

.path-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.path-heading > span {
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
  color: var(--gold);
}

.path-heading h2 { color: var(--navy); font-size: clamp(26px, 3.4vw, 38px); margin: 2px 0 8px; }
.path-heading p { max-width: 760px; color: var(--muted); margin: 0; }

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

.knowledge-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.knowledge-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }

.knowledge-card > img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .4s ease;
}

.knowledge-card:hover > img { transform: scale(1.04); }

.knowledge-card-body { padding: 26px 30px 30px; }

.knowledge-card span, .next-links span { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }

.knowledge-card h2 { font-size: 23px; line-height: 1.3; color: var(--navy); margin: 8px 0 8px; }
.knowledge-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.knowledge-card b { color: var(--teal); font-weight: 700; }

/* Article body */
.rich-article { border-radius: var(--radius); }

.article-figure { margin: -26px -26px 34px; }

@media (min-width: 641px) {
  .article-figure { margin: -48px -48px 36px; }
}

.article-figure img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .article-figure img { height: 280px; }
}

.article-figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 18px; background: #f5f8fb; }

.article-lead {
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--navy-2);
  border-left: 5px solid var(--gold);
  padding-left: 22px;
  margin: 30px 0;
  font-weight: 600;
}

.toc {
  display: grid;
  gap: 8px;
  background: var(--teal-soft);
  border: 1px solid #cfeae4;
  padding: 24px;
  border-radius: 12px;
  margin: 32px 0;
}

.toc strong { color: var(--navy); margin-bottom: 4px; }
.toc a { color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.toc a:hover { color: var(--teal); }

.rich-article section { scroll-margin-top: 100px; }
.rich-article section > h2 { font-size: 27px; margin-top: 8px; }

.section-no { color: var(--gold); font-weight: 800; letter-spacing: .1em; display: block; margin-top: 46px; font-size: 14px; }

.rich-article p { font-size: 17px; }

.insight {
  background: var(--gold-soft);
  border: 1px solid #ecd49e;
  padding: 22px 24px;
  border-radius: 12px;
  margin: 24px 0;
}

.insight p { margin-bottom: 0; }
.insight strong { color: #8a6419; }

.workbench {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 32px;
  border-radius: 14px;
  margin-top: 46px;
}

.workbench h2 { color: #fff; margin-top: 4px; }
.workbench p.eyebrow { color: #f2cf7e; margin-bottom: 4px; }
.workbench li { margin: 9px 0; }

.references {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 14px;
}

.references a { color: var(--teal); font-weight: 600; }
.references li { margin: 8px 0; }

.source-note { font-size: 14px !important; color: var(--muted) !important; }

.next-links { display: grid; gap: 12px; margin-top: 44px; }

.next-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 11px;
  color: var(--navy);
  font-weight: 700;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}

.next-links a::after { content: "→"; color: var(--teal); }
.next-links a:hover { border-color: var(--teal); transform: translateX(4px); }
.next-links span { display: block; margin-bottom: 3px; }

.service-guides { margin-top: 44px; }
.service-guides p { color: var(--muted) !important; }

.service-bridge {
  background: var(--teal-soft);
  border: 1px solid #cfeae4;
  border-radius: 12px;
  padding: 30px;
  margin-top: 44px;
}

.service-bridge span { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.service-bridge h2 { margin-top: 8px !important; }
.service-bridge a.button { display: inline-flex; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .article { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .content-grid { grid-template-columns: repeat(2, 1fr); }
  .knowledge-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .sample-grid, .steps, .content-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .path-heading { grid-template-columns: 1fr; gap: 10px; }
  .path-heading > span { font-size: 44px; }
  .knowledge-card > img { height: 200px; }
}

/* ---------- Nav dropdown ---------- */
.nav-drop { position: relative; }

.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--body);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 11px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}

.drop-btn:hover { color: var(--navy); background: var(--teal-soft); }

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.drop-menu {
  display: grid;
  gap: 2px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(13, 43, 69, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
  z-index: 220;
}

.nav-drop:hover .drop-menu,
.nav-drop.open .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.drop-menu a {
  display: block;
  text-decoration: none;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 9px;
  white-space: nowrap;
}

.drop-menu a:hover { background: var(--teal-soft); color: var(--navy); }

.drop-menu .drop-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 2px;
}

/* ---------- Country hub ---------- */
.country-hero {
  position: relative;
  color: #fff;
  padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 80px);
  overflow: hidden;
}

.country-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

.country-hero .wrap { position: relative; z-index: 1; }

.country-hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.18; color: #fff; max-width: 840px; margin: 10px 0 18px; }
.country-hero p { color: rgba(255, 255, 255, .9); max-width: 780px; font-size: 18px; }

.hero-uk { background-image: linear-gradient(90deg, rgba(10, 34, 71, .92) 0%, rgba(10, 34, 71, .55) 60%, rgba(10, 34, 71, .4)), linear-gradient(rgba(10, 34, 71, .75), rgba(10, 34, 71, .45)), url("/assets/countries/uk-london.webp"); }
.hero-au { background-image: linear-gradient(90deg, rgba(10, 47, 42, .92) 0%, rgba(10, 47, 42, .55) 60%, rgba(10, 47, 42, .4)), linear-gradient(rgba(10, 47, 42, .75), rgba(10, 47, 42, .45)), url("/assets/countries/au-city.webp"); }
.hero-nz { background-image: linear-gradient(90deg, rgba(17, 24, 39, .92) 0%, rgba(17, 24, 39, .55) 60%, rgba(17, 24, 39, .4)), linear-gradient(rgba(17, 24, 39, .75), rgba(17, 24, 39, .45)), url("/assets/countries/nz-landscape.webp"); }
.hero-us { background-image: linear-gradient(90deg, rgba(4, 30, 66, .92) 0%, rgba(4, 30, 66, .55) 60%, rgba(4, 30, 66, .4)), linear-gradient(rgba(4, 30, 66, .75), rgba(4, 30, 66, .45)), url("/assets/countries/us-city.webp"); }
.hero-ca { background-image: linear-gradient(90deg, rgba(13, 27, 61, .92) 0%, rgba(13, 27, 61, .55) 60%, rgba(13, 27, 61, .4)), linear-gradient(rgba(13, 27, 61, .75), rgba(13, 27, 61, .45)), url("/assets/countries/ca-campus.webp"); }
.hero-uk, .hero-au, .hero-nz, .hero-us, .hero-ca { background-size: cover; background-position: center; }
.hero-uk.hero-sub { background-image: linear-gradient(90deg, rgba(10, 34, 71, .92) 0%, rgba(10, 34, 71, .55) 60%, rgba(10, 34, 71, .4)), linear-gradient(rgba(10, 34, 71, .75), rgba(10, 34, 71, .45)), url("/assets/countries/uk-study.webp"); }
.hero-au.hero-sub { background-image: linear-gradient(90deg, rgba(10, 47, 42, .92) 0%, rgba(10, 47, 42, .55) 60%, rgba(10, 47, 42, .4)), linear-gradient(rgba(10, 47, 42, .75), rgba(10, 47, 42, .45)), url("/assets/countries/au-study.webp"); }
.hero-nz.hero-sub { background-image: linear-gradient(90deg, rgba(17, 24, 39, .92) 0%, rgba(17, 24, 39, .55) 60%, rgba(17, 24, 39, .4)), linear-gradient(rgba(17, 24, 39, .75), rgba(17, 24, 39, .45)), url("/assets/countries/nz-city.webp"); }
.hero-us.hero-sub { background-image: linear-gradient(90deg, rgba(4, 30, 66, .92) 0%, rgba(4, 30, 66, .55) 60%, rgba(4, 30, 66, .4)), linear-gradient(rgba(4, 30, 66, .75), rgba(4, 30, 66, .45)), url("/assets/countries/us-campus.webp"); }
.hero-ca.hero-sub { background-image: linear-gradient(90deg, rgba(13, 27, 61, .92) 0%, rgba(13, 27, 61, .55) 60%, rgba(13, 27, 61, .4)), linear-gradient(rgba(13, 27, 61, .75), rgba(13, 27, 61, .45)), url("/assets/countries/ca-study.webp"); }

.country-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.country-badges span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(6px);
}

.hub-lead h2 { max-width: 820px; }

.hub-figure {
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hub-figure img { display: block; width: 100%; height: auto; }
.hub-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.quick-fact {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(6px);
}

.quick-fact b { display: block; color: #fff; font-size: 16px; margin-bottom: 3px; }
.quick-fact span { color: rgba(255, 255, 255, .78); font-size: 13.5px; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.category-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }
.category-card .tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--gold); margin-bottom: 6px; }
.category-card h3 { font-size: 21px; color: var(--navy); margin: 0 0 8px; }
.category-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.category-card .cat-links { display: grid; gap: 6px; }
.category-card .cat-links a { color: var(--teal); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.category-card .cat-links a:hover { text-decoration: underline; }
.category-card .cat-links a span { color: var(--muted); font-weight: 500; }

.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }

.table-wrap th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 14.5px;
}

.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: var(--paper); }
.table-wrap td b, .table-wrap td strong { color: var(--navy); }

.hub-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

@media (max-width: 900px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .hub-split { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .quick-facts { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Homepage photos ---------- */
.home-photo-wrap { margin-top: 40px; }
.home-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  object-fit: cover;
}

/* ---------- Nav dropdown: mobile ---------- */
@media (max-width: 980px) {
  .nav-drop { width: 100%; }
  .drop-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
  .drop-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 2px 0 6px 16px;
    min-width: 0;
    background: transparent;
  }
  .nav-drop.open .drop-menu { display: grid; }
  .drop-menu a { white-space: normal; padding: 10px 12px; font-size: 15px; }
}
