/* ============================================================
   Jubo - Sarkari Result — design.md design system
   Palette: orange header · green footer · white canvas · blue accents
   System rules: pill buttons only, thin display type, ss03 stylistic
   set, 8px spacing, layered shadows. Widescreen 1440px on desktop.
   ============================================================ */

:root {
  /* --- Brand palette --- */
  --orange: #F97316;
  --orange-deep: #EA580C;
  --orange-10: #FFF4EC;
  --green: #16A34A;
  --green-deep: #15803D;
  --green-10: #F0FDF4;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-10: #EFF6FF;
  --blue-900: #1E3A8A;      /* deep surface (error page, dark accents) */
  --white: #FFFFFF;
  --cream: #FFFBEB;         /* warm off-white */
  --ink: #111827;
  --on-primary: #FFFFFF;

  /* --- Shade ladder (design.md) --- */
  --shade-30: #E5E7EB;
  --shade-40: #9CA3AF;
  --shade-50: #6B7280;
  --shade-60: #4B5563;
  --shade-70: #374151;
  --hairline-light: #E5E7EB;
  --hairline-dark: rgba(255,255,255,.18);

  /* --- Link tones on dark canvases --- */
  --link-cool-1: rgba(255,255,255,.78);
  --link-cool-2: rgba(255,255,255,.6);
  --link-cool-3: rgba(255,255,255,.45);

  /* --- Functional status --- */
  --red: #DC2626;       --red-light: #FEF2F2;
  --teal: #0D9488;      --teal-light: #F0FDFA;
  --amber: #D97706;     --amber-light: #FFFBEB;
  --purple: #7C3AED;    --purple-light: #F5F3FF;

  /* --- Radius scale (design.md) --- */
  --r-xs: 4px; --r-sm: 5px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --r-pill: 9999px;

  /* --- Elevation (design.md) --- */
  --shadow-1: 0 1px 2px rgba(17,24,39,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
  --shadow-2: 0 0 0 1px rgba(17,24,39,0.05), 0 4px 10px rgba(17,24,39,0.08);
  --shadow-3: 0 1px 2px rgba(17,24,39,0.05), 0 8px 20px -6px rgba(17,24,39,0.12);
  --shadow-4: 0 25px 50px -12px rgba(17,24,39,0.25);

  /* --- Spacing (design.md, 8px base) --- */
  --sp-2: 2px; --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-24: 24px; --sp-32: 32px; --sp-64: 64px;

  /* --- Typography --- */
  --font-display: "Helvetica Now Display", "Helvetica Neue", "Noto Sans Devanagari", Helvetica, Arial, sans-serif;
  --font-ui: Inter, "Segoe UI", Roboto, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --track-hero: -0.02em;
  --track-head: -0.01em;
  --track-eyebrow: 0.08em;
}

/* Devanagari: taller line-height for the Hindi script */
:lang(hi) { line-height: 1.7; }
:lang(hi) .post-title { line-height: 1.45; }

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-feature-settings: "ss03";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 12px;
}
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }
::selection { background: var(--blue); color: var(--white); }
::-moz-selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 200; border-radius: 0 0 var(--r-md) 0; }
.skip-link:focus { left: 0; }

/* Widescreen container (design.md wide = 1440px) */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--sp-24); width: 100%; }
.site-wrap { flex: 1; padding: 40px 0 var(--sp-64); }

/* ============ Pill buttons (design.md — the ONLY button shape) ============ */
.btn, .search-form button, .page-link, .link-btn, .view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 550;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
  min-height: 44px;
}
.btn:hover, .search-form button:hover, .page-link:hover, .link-btn:hover { text-decoration: none; }

/* primary = blue pill (primary accent) */
.btn, .search-form button {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37,99,235,.35);
}
.btn:hover, .search-form button:hover { background: var(--blue-deep); }
.btn:active, .search-form button:active { transform: translateY(1px); box-shadow: none; }

/* outline on dark canvas */
.btn-outline-dark, .view-all-link {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-dark:hover, .view-all-link:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* outline on light canvas */
.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-10); color: var(--blue); }

/* green filled (apply / featured) */
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(22,163,74,.35);
}
.btn-green:hover { background: var(--green-deep); color: var(--white); }

/* link-btn variants (Important Links partial) */
.link-btn { font-size: 15px; padding: 10px 20px; text-align: center; }
.link-btn-apply, .link-btn-download { background: var(--green); color: var(--white); }
.link-btn-apply:hover, .link-btn-download:hover { background: var(--green-deep); color: var(--white); }
.link-btn-official, .link-btn-website, .link-btn-notification { background: var(--blue); color: var(--white); }
.link-btn-official:hover, .link-btn-website:hover, .link-btn-notification:hover { background: var(--blue-deep); color: var(--white); }
.link-btn { background: var(--blue); color: var(--white); }
.link-btn:hover { background: var(--blue-deep); color: var(--white); }
.link-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ============ Header (orange) ============ */
.site-header {
  background: linear-gradient(135deg, rgba(249,115,22,.7) 0%, rgba(234,88,12,.78) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  color: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px -8px rgba(234,88,12,.45), inset 0 1px 0 rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 24px; }
.site-branding { display: flex; flex-direction: column; }
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.site-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: var(--track-head);
  color: var(--white);
  white-space: nowrap;
}
.site-title:hover { text-decoration: none; opacity: .9; }
.site-logo { display: block; height: 36px; width: auto; vertical-align: middle; }
.site-tagline { margin: 3px 0 0; font-size: .76rem; color: var(--link-cool-1); letter-spacing: .2px; }

.main-nav { position: relative; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav-item { position: relative; list-style: none; }
.nav-link {
  display: inline-block;
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 550;
  cursor: pointer;
  background: none;
  border: none;
  letter-spacing: .1px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,.2); text-decoration: none; color: var(--white); }
.nav-link.active { background: var(--white); color: var(--orange-deep); font-weight: 600; }
.caret { font-size: .65rem; opacity: .85; margin-left: 3px; }

/* ============ Language switcher (segmented glass pill) ============ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.14);
}
.lang-switch a {
  color: rgba(255,255,255,.92);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 5px 17px;
  border-radius: var(--r-pill);
  line-height: 1.25;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.lang-switch a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.lang-switch a[aria-current="true"] {
  background: var(--white);
  color: var(--orange-deep);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.3), inset 0 .5px 0 rgba(255,255,255,.9);
}
.lang-switch a[aria-current="true"]:hover { background: var(--white); color: var(--orange-deep); }
.lang-short { display: none; }
@media (max-width: 860px) {
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch a { padding: 4px 11px; font-size: .74rem; }
}
@media (max-width: 767px) {
  .lang-switch { padding: 2px;   .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .map-frame iframe { height: 280px; }
}
  .lang-switch a { padding: 3px 9px; font-size: .7rem; }
}

/* Dropdown (white surface, modern) */
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::marker { display: none; content: ""; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 225px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 8px 0;
  box-shadow: var(--shadow-3);
  z-index: 110;
}
.submenu li { list-style: none; margin: 0; }
.submenu a { display: block; padding: 10px 20px; color: var(--shade-60); font-size: .9rem; }
.submenu a:hover { background: var(--orange-10); text-decoration: none; color: var(--orange-deep); }
.submenu a.active { background: var(--orange-10); color: var(--orange-deep); font-weight: 600; }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.6);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 8px 12px;
  cursor: pointer;
  min-height: 40px;
}
.nav-bar { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px 0; }

/* ============ Hero (white, soft orange→blue wash) ============ */
.hero {
  background:
    radial-gradient(900px 320px at 15% -20%, rgba(249,115,22,.10), transparent 60%),
    radial-gradient(800px 300px at 90% -10%, rgba(37,99,235,.08), transparent 55%),
    var(--white);
  color: var(--ink);
  padding: 30px 24px 26px;
  text-align: center;
  border-bottom: 1px solid var(--hairline-light);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--blue);
  margin: 0 0 8px;
}
.hero h1 {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: var(--track-hero);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 10px;
}
.hero p { margin: 0 auto 16px; font-size: 15px; font-weight: 500; color: var(--shade-50); max-width: 620px; }
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 18px;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  min-height: 44px;
  box-shadow: var(--shadow-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form input::placeholder { color: var(--shade-40); }
.search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-10); }
.search-results {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  max-height: 420px;
  overflow-y: auto;
  color: var(--ink);
}
.search-results a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--hairline-light); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--blue-10); text-decoration: none; }
.search-results .s-title { font-weight: 600; color: var(--ink); }
.search-results .s-meta { font-size: .78rem; color: var(--shade-50); }
.search-empty { padding: 12px 18px; color: var(--shade-50); }

/* ============ Quick action cards ============ */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.action-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-top: 3px solid var(--blue);
  border-radius: var(--r-lg);
  color: var(--ink);
  box-shadow: var(--shadow-3);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-4); border-color: var(--shade-30); }
.action-icon { font-size: 1.15rem; line-height: 1.2; }
.action-name { font-weight: 600; font-size: .95rem; font-family: var(--font-ui); }
.action-desc { font-size: .75rem; color: var(--shade-50); }
.action-job { border-top-color: var(--orange); }
.action-result { border-top-color: var(--blue); }
.action-admit { border-top-color: var(--green); }
.action-answer { border-top-color: var(--blue); }
.action-calendar { border-top-color: var(--orange); }
.action-eligibility { border-top-color: var(--green); }

/* ============ Trust strip ============ */
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 4px; }
.trust-item {
  background: var(--blue-10);
  color: var(--blue-deep);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 10px 20px;
  text-align: center;
  min-width: 150px;
}
.trust-item strong { display: block; font-size: 1rem; font-weight: 600; }
.trust-item span { font-size: .8rem; opacity: .75; }

/* ============ Section heads ============ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0 10px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: var(--track-head); }
.view-all { font-size: .9rem; font-weight: 550; color: var(--blue); white-space: nowrap; }
.view-all:hover { color: var(--orange-deep); }

.latest-updates {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 6px 20px 10px;
}

/* ============ Tabs (pill vocabulary) ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.tab {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--shade-60);
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 550;
  cursor: pointer;
  min-height: 42px;
  transition: background .15s ease, color .15s ease;
}
.tab:hover { background: var(--blue-10); color: var(--blue); }
.tab.is-active { background: var(--blue); color: var(--white); }
.tab-panels { padding: 4px 20px 20px; }

/* ============ Compact search (archive pages) ============ */
.search-form-compact { max-width: 560px; margin: 0 0 22px; }
.search-form-compact input { min-height: 42px; padding: 9px 16px; font-size: 14.5px; }
.search-form-compact button { min-height: 42px; padding: 9px 20px; font-size: 14.5px; }
.search-form-compact + .search-results { max-width: 560px; margin: 10px 0 0; }

/* ============ Post lists ============ */
.post-list { list-style: none; margin: 8px 0 0; padding: 0; }
.post-item { border-bottom: 1px solid var(--hairline-light); }
.post-item:last-child { border-bottom: none; }
.post-link { display: block; padding: 10px 6px; color: var(--ink); }
.post-link:hover { text-decoration: none; }
.post-title { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; color: var(--ink); letter-spacing: .1px; transition: color .15s ease; }
.post-link:hover .post-title { color: var(--blue); }
.post-desc { display: block; font-size: .88rem; color: var(--shade-50); margin-top: 2px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--shade-50); margin-top: 6px; }
.post-cats { text-transform: capitalize; }

/* Pill tags / badges */
.badge, .cat-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.badge-result { background: var(--blue-10); color: var(--blue-deep); }
.badge-latest-job, .badge-sarkari-job { background: var(--orange-10); color: var(--orange-deep); }
.badge-admit-card { background: var(--green-10); color: var(--green-deep); }
.badge-answer-key { background: var(--blue-10); color: var(--blue-deep); }
.badge-syllabus { background: var(--green-10); color: var(--green-deep); }
.badge-admission { background: var(--orange-10); color: var(--orange-deep); }
.badge-documents, .badge-blog { background: var(--shade-30); color: var(--shade-60); }
.badge-state { background: var(--red-light); color: var(--red); }
.badge-qual { background: var(--teal-light); color: var(--teal); }

/* ============ Breadcrumbs ============ */
.breadcrumbs { font-size: .82rem; color: var(--shade-50); margin: 0 0 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 4px; color: var(--shade-40); }
.breadcrumbs a { color: var(--blue); }

/* ============ Blocks (article sections) ============ */
.block { margin: 0 0 30px; }
.block-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: var(--track-head);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}
.block-note { font-size: .9rem; color: var(--shade-50); }

/* Dates / fees rows */
.dates-list, .fee-list { list-style: none; margin: 0; padding: 0; }
.date-item, .fee-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline-light);
  font-size: .94rem;
}
.date-item:last-child, .fee-item:last-child { border-bottom: none; }
.date-item.date-highlight { background: var(--orange-10); border-radius: var(--r-md); }
.date-label, .fee-cat { font-weight: 550; color: var(--ink); }
.date-value, .fee-amt { font-weight: 600; color: var(--blue); text-align: right; }
.fee-amt { color: var(--green-deep); }

/* Quick facts */
.quick-facts { background: var(--white); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 18px 22px; }
.qf-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qf-vac { font-size: .85rem; color: var(--shade-50); }
.qf-vac strong { color: var(--green-deep); font-weight: 700; }
.qf-list { margin: 0; }
.qf-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline-light); font-size: .94rem; }
.qf-item:last-child { border-bottom: none; }
.qf-item dt { flex: 0 0 150px; font-weight: 600; color: var(--shade-60); }
.qf-item dd { margin: 0; color: var(--ink); }
.qf-item dd a { color: var(--blue); }

/* Vacancies table */
.data-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.data-table th, .data-table td { border: 1px solid var(--hairline-light); padding: 10px 14px; text-align: left; }
.data-table th { background: var(--blue-10); color: var(--blue-deep); font-weight: 600; }
.data-table tr:nth-child(even) td { background: #F8FAFC; }

/* How to apply / check */
.howto-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.howto-steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 14px 44px;
  font-size: .95rem;
  color: var(--ink);
}
.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-list { margin: 0; }
.faq-item {
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-1); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 550;
  color: var(--ink);
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 600;
}
.faq-item[open] summary { border-bottom: 1px solid var(--hairline-light); color: var(--blue-deep); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 12px 18px 16px; font-size: .93rem; color: var(--shade-60); }

/* ============ Article ============ */
.post {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 36px 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.post-header h1 { margin: 6px 0 12px; font-size: 32px; font-weight: 300; letter-spacing: var(--track-head); line-height: 1.2; }
.cat-badge { margin: 0 6px 4px 0; text-transform: capitalize; letter-spacing: .2px; }
.cat-badge:hover { text-decoration: none; opacity: .88; }
.post-tax { font-size: .86rem; margin: 12px 0 0; }
.tax-label { font-weight: 600; color: var(--shade-50); margin-right: 4px; }
.post-intro { font-size: 1.05rem; color: var(--shade-60); }
.post-whats-new { margin-top: 20px; padding: 14px 16px; background: var(--blue-10); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); font-size: 1rem; color: var(--shade-60); }
.post-about { font-size: .9rem; color: var(--shade-50); margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--hairline-light); }
.post-content { margin-top: 24px; max-width: 820px; }
.post-content h2 { font-size: 25px; font-weight: 400; border-bottom: 1px solid var(--hairline-light); padding-bottom: 8px; margin: 34px 0 16px; }
.post-content h3 { font-size: 21px; font-weight: 400; margin: 28px 0 12px; }
.post-content h4, .post-content h5 { font-size: 17px; font-weight: 500; margin: 20px 0 10px; }
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: .92rem;
  display: block;
  overflow-x: auto;
}
.post-content th, .post-content td { border: 1px solid var(--hairline-light); padding: 9px 12px; text-align: left; vertical-align: top; }
.post-content th { background: var(--blue-10); color: var(--blue-deep); font-weight: 600; }
.post-content tr:nth-child(even) td { background: #F8FAFC; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.post-content ul, .post-content ol { padding-left: 24px; }
.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.source-note { font-size: .85rem; color: var(--shade-50); border-top: 1px solid var(--hairline-light); margin-top: 32px; padding-top: 14px; word-break: break-all; }
.source-note a { color: var(--shade-50); }

/* Related / exam links */
.exam-links { margin-top: 24px; border-top: 1px solid var(--hairline-light); padding-top: 14px; }
.exam-links h2, .related-posts h2 { font-size: 19px; font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.related-posts {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 18px 22px 8px;
  margin-top: 22px;
}

.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; border-top: 1px solid var(--hairline-light); padding-top: 16px; font-size: .9rem; }
.post-nav a { max-width: 46%; color: var(--blue); font-weight: 550; }
.post-nav a:hover { color: var(--orange-deep); }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ============ Share ============ */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
}
.share-label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9rem;
  color: var(--white);
  min-height: 42px;
  box-shadow: var(--shadow-1);
}
.share-btn:hover { text-decoration: none; opacity: .9; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.share-wa { background: #25D366; }
.share-tg { background: #229ED9; }
.share-fb { background: #1877F2; }

/* Floating share (bottom-left) */
.share-float { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; }
.share-float-details { position: relative; }
.share-float-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  width: 54px; height: 54px;
  border-radius: var(--r-pill);
  background: rgba(37,99,235,.82);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 16px -4px rgba(37,99,235,.5);
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.share-float-toggle::-webkit-details-marker { display: none; }
.share-float-toggle::marker { display: none; content: ""; }
.share-float-toggle:hover { background: var(--blue-deep); }
.share-float-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.share-float-toggle .ico-close { display: none; }
.share-float-details[open] .ico-share { display: none; }
.share-float-details[open] .ico-close { display: block; }
.share-float-menu { position: absolute; bottom: calc(100% + 10px); left: 0; display: flex; flex-direction: column; gap: 10px; }
.share-float-btn {
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(17,24,39,.22);
}
.share-float-btn:hover { opacity: .9; text-decoration: none; }
.share-float-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ============ List pages / terms ============ */
.list-header { margin-bottom: 26px; }
.list-header h1 { font-size: 36px; font-weight: 300; color: var(--ink); margin: 0 0 8px; }
.list-intro { color: var(--shade-50); font-size: .95rem; }
.list-seo { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline-light); }
.list-seo h2 { font-size: 1.15rem; font-weight: 550; color: var(--ink); margin: 20px 0 8px; }
.term-list { list-style: none; padding: 0; }
.term-list li { padding: 12px 14px; border-bottom: 1px solid var(--hairline-light); }
.term-list a { font-weight: 550; color: var(--blue); }
.term-count { color: var(--shade-50); font-size: .85rem; }

/* ============ Exam calendar ============ */
.cal-month { margin: 0 0 26px; }
.cal-month h2 {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding: 10px 18px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.cal-month .post-list {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 4px 18px;
}

/* ============ Eligibility ============ */
.elig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.elig-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 16px;
  background: var(--green-10);
  color: var(--green-deep);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
}
.elig-card:hover { text-decoration: none; border-color: var(--green); }
.elig-card strong { font-size: 1.02rem; font-weight: 600; }
.elig-card span { font-size: .8rem; opacity: .8; }
.elig-card.elig-soon { background: #F8FAFC; color: var(--shade-50); cursor: default; }
.elig-card.elig-soon:hover { border-color: var(--hairline-light); }
.elig-list { list-style: none; margin: 0; padding: 0; }
.elig-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-light);
  font-size: .94rem;
}
.elig-item:last-child { border-bottom: none; }
.elig-post { font-weight: 550; color: var(--ink); }
.elig-crit { font-weight: 600; color: var(--green-deep); text-align: right; }

/* ============ Selection process ============ */
.sel-list { margin: 0; padding-left: 22px; }
.sel-list li { padding: 6px 0; font-size: .95rem; }

/* ============ Footer columns ============ */
.footer-col { min-width: 0; }
.links-box { margin-top: 4px; }

/* ============ Pagination (pills) ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.page-link { padding: 10px 20px; background: var(--white); border: 1px solid var(--blue); color: var(--blue); }
.page-link:hover { background: var(--blue-10); color: var(--blue); }
.page-link.disabled { opacity: .45; pointer-events: none; border-color: var(--hairline-light); color: var(--shade-50); }
.page-info { color: var(--shade-50); font-size: .88rem; padding: 0 6px; }

/* ============ Footer (green) ============ */
.site-footer {
  background: linear-gradient(135deg, rgba(22,163,74,.78) 0%, rgba(21,128,61,.88) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  color: var(--white);
  padding: 44px 24px 22px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer h3 {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--link-cool-3);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer li.footer-sub { padding-left: 12px; font-size: .88rem; }
.site-footer a { color: var(--link-cool-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: var(--white); }
.social-links { margin-top: 14px !important; }
.copyright {
  text-align: center;
  font-size: .8rem;
  color: var(--link-cool-2);
  margin: 30px 0 0;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 16px;
}

/* ============ Error page (blue deep) ============ */
.error-page {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  margin-top: 20px;
}
.error-page h1 {
  font-size: 96px;
  font-weight: 300;
  letter-spacing: 2.4px;
  color: var(--white);
  margin: 0;
  line-height: 1;
}
.error-page p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: 14px auto 22px; max-width: 460px; }

/* ============ Static pages ============ */
.static-page { max-width: 920px; }

/* ============ Post image (above FAQ) ============ */
.post-figure { margin: 4px auto 0; }
.post-figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 6px 18px -8px rgba(17,24,39,.2);
  background: #fff;
}

/* ============ Contact page ============ */
.contact-page { max-width: 1020px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  margin-top: 6px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--shade-30);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px 24px;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--shade-70);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--shade-30);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.email-big {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  word-break: break-all;
}
.email-big:hover { color: var(--blue-deep); text-decoration: underline; }
.map-block { margin-top: 26px; }
.map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--shade-30);
  box-shadow: var(--shadow-2);
}
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ============ Sitemap page ============ */
.sitemap-page { max-width: 1080px; }
.sitemap-group { margin: 20px 0 4px; }
.sitemap-cols {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  columns: 3;
  column-gap: 28px;
  font-size: .92rem;
}
.sitemap-cols li { break-inside: avoid; padding: 3px 0; }
.sitemap-cols a { color: var(--blue); }
.sitemap-cols a:hover { color: var(--blue-deep); text-decoration: underline; }
.sitemap-posts { font-size: .86rem; }

/* ============ Responsive (design.md breakpoints) ============ */
@media (max-width: 1280px) {
  .post { max-width: none; }
}
@media (max-width: 1023px) {
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .container { padding: 0 var(--sp-16); }
  .site-logo { height: 28px; }
  .site-name { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
  }
  .nav-menu.open { display: flex; }
  .nav-link, .nav-dropdown { width: 100%; text-align: left; }
  .submenu { position: static; box-shadow: none; border-radius: var(--r-md); margin-top: 6px; }
  .hero { padding: 24px 16px 20px; }
  .hero h1 { font-size: 30px; }
  .search-form input { min-height: 46px; }
  .post { padding: 24px 20px; }
  .post-header h1 { font-size: 27px; }
  .error-page h1 { font-size: 64px; }
}
@media (max-width: 767px) {
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .action-card { padding: 10px 6px; align-items: center; text-align: center; }
  .action-name { font-size: .78rem; }
  .action-icon { font-size: 1rem; }
  .action-desc { display: none; }
  .hero { padding: 10px 12px 12px; }
  .hero-eyebrow { font-size: 10px; margin: 0 0 4px; }
  .hero h1 { font-size: 20px; margin: 0 0 6px; }
  .hero p { display: none; }
  .search-form { flex-direction: row; }
  .search-form input { min-height: 40px; padding: 9px 14px; font-size: 14px; }
  .search-form button { min-height: 40px; padding: 10px 16px; width: auto; }
  .search-results { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media print {
  .site-header, .site-footer, .search-form, .post-nav, .share-bar, .share-float { display: none; }
}