/* ==========================================================================
   งานรัฐ.com — หน้าแรก
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-soft: #080b14;
  --navy: #0b1220;
  --navy-2: #101a2e;
  --gold: #f2b23d;
  --gold-2: #d99a2b;
  --gold-dark: #8a6416;
  --red: #e6273f;
  --red-2: #c81c34;
  --red-dark: #5c0f1c;
  --red-darker: #2a0810;
  --blue: #2f6fed;
  --blue-2: #1e4fd8;
  --blue-dark: #0f1e38;
  --blue-darker: #0a1526;
  --panel: #eef1f6;
  --panel-2: #e3e8f0;
  --ink: #0e1420;
  --muted: #8b93a3;
  --muted-2: #aab0bd;
  --white: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 25px rgba(0,0,0,.35);
  --font: 'TH Sarabun New', 'Sarabun', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18.9px;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p { margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.filled { fill: currentColor; stroke: none; }

/* ---------------------------------- Top nav ---------------------------------- */
.topnav {
  background: linear-gradient(180deg, #0a0d16, #070911);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23.1px;
  font-weight: 700;
  letter-spacing: .3px;
}
.logo .th { color: var(--gold); }
.logo-badge {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  color: #2a1a00;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15.75px;
  font-weight: 500;
  color: #cfd4de;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cfd4de;
  font-size: 19.95px;
}
.nav-actions .icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(230,39,63,.35), transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(47,111,237,.25), transparent 40%),
    linear-gradient(180deg, #0a0d18 0%, #070a12 100%);
  padding: 34px 0 26px;
}
.hero-bolt {
  position: absolute;
  opacity: .85;
  pointer-events: none;
}
.hero-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-decor .star { position: absolute; color: #ffd76e; opacity: .8; }

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  position: relative;
}
.hero-title-wrap { text-align: center; padding-top: 4px; }
.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.1;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--gold), #ffdd8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 6px;
  font-size: 15.75px;
  font-weight: 600;
  color: #ffb84d;
  background: rgba(230,39,63,.18);
  border: 1px solid rgba(230,39,63,.4);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
}

.hero-badge {
  flex-shrink: 0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14.18px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.hero-badge--red {
  background: linear-gradient(145deg, #e6273f, #a01526);
  border: 1px solid rgba(255,255,255,.15);
  margin-top: 6px;
}
.hero-badge--gold {
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  color: #3a2400;
  margin-top: 6px;
}
.hero-badge span { display: block; }

.hero-code-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 360px;
  max-height: 510px;
  margin: 22px auto -26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px 28px 0 0;
  background: #070b14;
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 5px rgba(44,104,230,.08);
}
.hero-code-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,6,15,.02) 52%, rgba(3,7,16,.34) 100%),
    linear-gradient(90deg, rgba(225,29,62,.08), transparent 42%, rgba(38,96,220,.08));
  pointer-events: none;
}
.hero-code-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(1.06) contrast(1.04);
  transition: transform .5s ease, filter .5s ease;
}
.hero-code-banner:hover img { transform: scale(1.018); filter: saturate(1.12) contrast(1.06); }

/* ---------------------------------- Stats bar ---------------------------------- */
.stats-bar {
  max-width: 1180px;
  margin: -18px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}
.stats-bar-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,.45);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 18px 10px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  position: relative;
  color: var(--ink);
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: #e3e6ec;
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18.9px;
  flex-shrink: 0;
}
.stat-num { font-size: 19.95px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12.08px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.stat--red .stat-icon { background: #fde6e8; color: var(--red); }
.stat--red .stat-num { color: var(--red); }
.stat--orange .stat-icon { background: #fdead3; color: #d9822a; }
.stat--orange .stat-num { color: #d9822a; }
.stat--purple .stat-icon { background: #efe4fb; color: #8a4fdb; }
.stat--purple .stat-num { color: #8a4fdb; }
.stat--blue .stat-icon { background: #e2ecfd; color: var(--blue); }
.stat--blue .stat-num { color: var(--blue); }
.stat--gray .stat-icon { background: #eaecef; color: #5b6472; }
.stat--gray .stat-num { color: var(--ink); font-size: 15.75px; }

/* ---------------------------------- Sections ---------------------------------- */
.job-section { padding-top: 34px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19.95px;
  font-weight: 700;
}
.section-title .icon { font-size: 21px; }
.section-title--red .icon { color: var(--red); }
.section-title--blue .icon { color: var(--blue); }
.section-title--gold .icon { color: var(--gold); }

.see-all {
  font-size: 13.65px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  color: #dfe3ea;
}
.see-all--red { border-color: rgba(230,39,63,.55); color: #ff8a97; }
.see-all--blue { border-color: rgba(47,111,237,.55); color: #8fb2ff; }
.see-all--gold { border-color: rgba(242,178,61,.55); color: #f4c569; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------------------------------- Job card ---------------------------------- */
.job-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  border: 1px solid;
}
.job-card--red   { background: linear-gradient(180deg, #2c060d, #170307); border-color: rgba(230,39,63,.55); box-shadow: 0 0 0 1px rgba(230,39,63,.15), 0 8px 24px rgba(230,39,63,.35), 0 2px 10px rgba(0,0,0,.5); }
.job-card--blue  { background: linear-gradient(180deg, #0d1730, #08101f); border-color: rgba(47,111,237,.5); box-shadow: 0 0 0 1px rgba(47,111,237,.15), 0 8px 24px rgba(47,111,237,.35), 0 2px 10px rgba(0,0,0,.5); }
.job-card--gold  { background: linear-gradient(180deg, #241705, #150d02); border-color: rgba(242,178,61,.5); box-shadow: 0 0 0 1px rgba(242,178,61,.15), 0 8px 24px rgba(242,178,61,.3), 0 2px 10px rgba(0,0,0,.5); }

.job-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 10px;
}
.job-badge-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  background: #fff;
  padding: 5px;
}
.job-badge-icon img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.job-card-name { font-size: 15.23px; font-weight: 700; line-height: 1.3; }
.job-card-meta { font-size: 12.6px; color: #cfd3db; margin-top: 3px; line-height: 1.5; }
.job-card-meta b { color: var(--white); font-weight: 600; }

.job-card-photo { position: relative; margin: 0 14px; border-radius: 10px; overflow: hidden; height: 92px; }
.job-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.job-card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.job-card-list-label { font-size: 11.55px; color: var(--muted-2); }
.job-card-list { display: flex; flex-direction: column; gap: 4px; }
.job-card-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.6px;
  color: #e7e9ee;
}
.job-card-list .icon { color: #4ade80; font-size: 13.65px; }

.job-card-more {
  align-self: flex-start;
  font-size: 11.03px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.job-card--red .job-card-more { background: rgba(230,39,63,.25); color: #ff97a2; }
.job-card--blue .job-card-more { background: rgba(47,111,237,.25); color: #9bbcff; }
.job-card--gold .job-card-more { background: rgba(242,178,61,.25); color: #ffd27a; }

.job-card-footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.55px;
  color: var(--muted-2);
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.job-card-footer-meta span { display: flex; align-items: center; gap: 4px; }
.job-card-footer-meta .icon { font-size: 12.6px; }

.job-card-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13.65px;
  font-weight: 700;
  color: var(--white);
}
.job-card--red .job-card-btn { background: linear-gradient(90deg, #e6273f, #b91c2c); }
.job-card--blue .job-card-btn { background: linear-gradient(90deg, #2f6fed, #1d4ed8); }
.job-card--gold .job-card-btn { background: linear-gradient(90deg, #f2b23d, #c07f1e); color: #2a1a00; }

/* small pulse badge top-right of photo (เหลืออีก N วัน) */
.job-card-days {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; gap: 3px;
}

/* ---------------------------------- Active list panel ---------------------------------- */
.active-panel {
  margin-top: 36px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--ink);
}
.active-panel .section-head { margin-bottom: 16px; }
.active-panel .section-title { color: var(--ink); }
.active-panel .section-title .icon { color: #2f6fed; }
.active-panel .see-all { border-color: #c9d0dd; color: #47506a; background: var(--white); }

.active-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.active-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid #e2e6ee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.active-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 62px;
}
.active-item-top > div { min-width: 0; }
.active-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--white);
}
.active-item-name { font-size: 13.65px; font-weight: 700; line-height: 1.3; }
.active-item-count {
  position: absolute;
  top: 76px;
  left: 16px;
  right: 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c9d9f5;
  border-radius: 12px;
  color: #173f7c;
  background: linear-gradient(135deg, #f4f8ff, #e5eeff);
  box-shadow: inset 4px 0 0 #2f6fed, 0 5px 12px rgba(47,111,237,.1);
  font-size: clamp(18.9px, 1.52vw, 23.1px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.active-item-degree { display: none; }
.active-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed #dde1ea;
}
.active-item-date { font-size: 11.03px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.active-item-views { font-size: 11.03px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.active-item-cta {
  font-size: 11.55px;
  font-weight: 700;
  color: #2f6fed;
  background: #e6edfd;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  margin-top: 2px;
}

/* ---------------------------------- Ad banner ---------------------------------- */
.ad-banner {
  margin-top: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(180,20,40,.35);
}
.ad-banner img { width: 100%; display: block; }

/* ---------------------------------- Articles ---------------------------------- */
.articles { margin-top: 30px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article-card {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.08);
}
.article-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 25.2px;
  color: #fff;
}
.article-title { font-size: 15.23px; font-weight: 700; }
.article-desc { font-size: 12.08px; color: var(--muted-2); margin-top: 3px; line-height: 1.5; }
.article-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.08px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  color: #fff;
}
.article-card--blue .article-icon { background: linear-gradient(145deg,#3a6cf0,#1d3fa8); }
.article-card--blue .article-cta { background: linear-gradient(90deg,#2f6fed,#1d4ed8); }
.article-card--teal .article-icon { background: linear-gradient(145deg,#2bb3a3,#127566); }
.article-card--teal .article-cta { background: linear-gradient(90deg,#22b8a6,#0e8f80); }
.article-card--green .article-icon { background: linear-gradient(145deg,#4cc25f,#1f8a34); }
.article-card--green .article-cta { background: linear-gradient(90deg,#3fbf55,#1f9a3a); }

/* ---------------------------------- Agencies ---------------------------------- */
.agencies { margin-top: 30px; }
.agencies-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15.75px; font-weight: 700; color: #cfd4de;
  margin-bottom: 14px;
}
.agencies-head .icon { color: var(--gold); }
.agencies-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  text-align: center;
}
.agency-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.agency-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1c2740, #0c1220);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 23.1px;
  color: #cfe0ff;
}
.agency-name { font-size: 11.03px; color: #dfe3ea; font-weight: 500; line-height: 1.3; }
.agency-count { font-size: 10.5px; color: var(--muted); }

/* ---------------------------------- Verify footer ---------------------------------- */
.verify-footer {
  margin: 30px 0 40px;
  background: linear-gradient(90deg, #10306b, #0a1830);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.1);
}
.verify-left { display: flex; align-items: center; gap: 12px; }
.verify-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}
.verify-title { font-size: 14.7px; font-weight: 700; }
.verify-desc { font-size: 11.55px; color: #b7c2d6; margin-top: 2px; }
.verify-cta {
  display: flex; align-items: center; gap: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 980px) {
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .active-grid { grid-template-columns: repeat(3, 1fr); }
  .agencies-grid { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero-top { flex-direction: column; align-items: center; }
  .hero-title { font-size: 31.5px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stat + .stat::before { display: none; }
  .job-grid { grid-template-columns: 1fr; }
  .active-grid { grid-template-columns: repeat(2, 1fr); }
  .agencies-grid { grid-template-columns: repeat(3, 1fr); }
  .verify-footer { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Desktop homepage refinements */
.container,
.hero-inner,
.stats-bar { max-width: 1280px; }

.topnav .container { height: 72px; }
.logo { font-size: 29.4px; }
.nav-links { font-size: 17.85px; gap: 32px; }
.hero { padding-top: 28px; border-bottom: 1px solid rgba(66, 132, 255, .18); }
.hero-title { font-size: 56.7px; text-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.hero-title-wrap { position: relative; z-index: 2; }

.update-signal {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 88px minmax(330px, 1fr) 180px;
  align-items: center;
  gap: 20px;
  width: min(880px, 90vw);
  min-width: 0;
  margin-top: 14px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 99, 123, .78);
  border-radius: 24px;
  background:
    linear-gradient(112deg, rgba(153, 6, 32, .98) 0 26%, rgba(49, 16, 51, .98) 48%, rgba(12, 31, 68, .98) 100%);
  box-shadow:
    0 0 0 4px rgba(238, 40, 71, .12),
    0 16px 38px rgba(238, 40, 71, .3),
    inset 0 1px 0 rgba(255,255,255,.18);
  text-align: left;
}
.update-signal::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  bottom: -70%;
  width: 68px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-20deg);
  animation: updateShine 5.5s ease-in-out infinite;
}
.update-mark {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 32% 25%, #ff6c7f, #ed1e43 48%, #98051f 100%);
  box-shadow: 0 0 0 6px rgba(255,48,82,.17), 0 0 34px rgba(255,48,82,.78);
  line-height: .8;
}
.update-mark::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: #ffd25a;
  border-right-color: rgba(255,210,90,.35);
  border-radius: 50%;
  animation: updateOrbit 4s linear infinite;
}
.update-mark strong { font-size: 46.2px; font-weight: 800; letter-spacing: -2px; }
.update-mark small { margin-top: 7px; color: #fff6ca; font-size: 14.7px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.update-copy { display: grid; gap: 5px; min-width: 0; }
.update-copy > b { color: #fff; font-size: 29.4px; font-weight: 800; line-height: 1.05; letter-spacing: .01em; text-shadow: 0 3px 16px rgba(0,0,0,.55), 0 0 22px rgba(255,255,255,.14); animation: updateTextGlow 2.8s ease-in-out infinite; }
.update-copy > b em { color: #ffd75f; font-size: 1.12em; font-style: normal; white-space: nowrap; text-shadow: 0 0 20px rgba(255,199,49,.52); }
.update-live { display: inline-flex; align-items: center; gap: 10px; color: #ffe080; font-size: 14.7px; font-weight: 800; letter-spacing: .07em; }
.update-live i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #54f29a;
  box-shadow: 0 0 0 5px rgba(84,242,154,.15), 0 0 16px #54f29a;
  animation: livePulse 1.5s ease-in-out infinite;
}
.update-next {
  min-width: 174px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 16px;
  color: #243047;
  background: linear-gradient(160deg, #fff, #eaf0fb);
  box-shadow: 0 8px 22px rgba(0,0,0,.22), inset 0 1px 0 #fff;
}
.update-next small { color: #5d697d; font-size: 14.7px; font-weight: 800; }
.update-next strong { color: #df173a; font-size: 30.45px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .1em; line-height: 1.1; text-shadow: 0 0 14px rgba(223,23,58,.18); }
@keyframes livePulse { 50% { opacity: .55; transform: scale(.86); } }
@keyframes updateOrbit { to { transform: rotate(360deg); } }
@keyframes updateShine { 0%, 62% { left: -18%; } 92%, 100% { left: 112%; } }
@keyframes updateTextGlow { 50% { text-shadow: 0 3px 16px rgba(0,0,0,.55), 0 0 26px rgba(255,216,111,.24); } }

.stats-bar { margin-top: -8px; }
.stats-bar-inner { padding: 20px 12px; }
.stat-num { font-size: 26.25px; }
.stat-label { font-size: 14.7px; }
.stat--gray .stat-num { font-size: 17.85px; }

.job-section { padding-top: 44px; scroll-margin-top: 86px; }
.section-title { font-size: 28.35px; }
.section-title .icon { font-size: 28.35px; }
.see-all { font-size: 16.8px; padding: 7px 18px; transition: transform .18s ease, background .18s ease; }
.see-all:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.job-grid { gap: 22px; align-items: stretch; }
.job-card { min-height: 560px; transition: transform .2s ease, filter .2s ease; }
.job-card:hover { transform: translateY(-5px); filter: brightness(1.08); }
.job-card-head { padding: 18px 18px 12px; gap: 13px; min-height: 104px; }
.job-badge-icon { width: 56px; height: 56px; }
.job-card-name { font-size: 22.05px; }
.job-card-meta { font-size: 17.85px; }
.job-card-photo { height: 190px; margin-inline: 18px; }
.job-card-body { padding: 14px 18px 18px; gap: 10px; }
.job-card-list-label { font-size: 15.75px; }
.job-card-list li { font-size: 16.8px; }
.job-card-footer-meta { font-size: 14.7px; gap: 13px; }
.job-card-btn { font-size: 18.9px; min-height: 48px; transition: filter .18s ease; }
.job-card-btn:hover { filter: brightness(1.16); }
.job-card-days { font-size: 13.65px; }

.active-panel { margin-top: 48px; padding: 28px; scroll-margin-top: 86px; background: linear-gradient(135deg, #edf4ff, #dfe8f7); }
.active-grid { gap: 16px; }
.active-item { min-height: 218px; padding: 16px; box-shadow: 0 5px 16px rgba(36, 61, 103, .08); transition: transform .18s ease, box-shadow .18s ease; }
.active-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(36, 61, 103, .14); }
.active-icon { width: 48px; height: 48px; }
.active-item-name { font-size: 17.85px; }
.active-item-count { font-size: clamp(18.9px, 1.52vw, 23.1px); }
.active-item-date, .active-item-views { font-size: 13.65px; }
.active-item-cta { font-size: 15.75px; padding: 7px 12px; }

.articles, .agencies, .verify-footer { scroll-margin-top: 86px; }
.article-title { font-size: 19.95px; }
.article-desc, .article-cta { font-size: 15.75px; }
.agencies-head { font-size: 23.1px; }
.agency-name { font-size: 14.7px; }
.agency-count { font-size: 13.65px; }
.verify-title { font-size: 19.95px; }
.verify-desc { font-size: 15.75px; }
.verify-cta { font-size: 16.8px; }

.job-dialog {
  width: min(560px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid rgba(65, 125, 235, .42);
  border-radius: 24px;
  color: #fff;
  background: #0b1427;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.job-dialog::backdrop { background: rgba(1, 5, 13, .78); backdrop-filter: blur(8px); }
.job-dialog-card { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); font-size: 26.25px; }
.dialog-kicker { color: #ffbf52; font-size: 15.75px; font-weight: 700; }
.job-dialog h2 { margin: 8px 0 10px; font-size: 28.35px; }
.job-dialog p { color: #c7d2e5; line-height: 1.7; font-size: 17.85px; }
.dialog-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.dialog-primary, .dialog-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; }
.dialog-primary { color: #fff; background: linear-gradient(90deg,#ed2246,#b91433); }
.dialog-link { color: #bcd3ff; border: 1px solid rgba(97, 147, 240, .45); }

/* Adaptive layout: desktop, notebook, tablet and phone */
html, body { max-width: 100%; overflow-x: clip; }
.hero-inner { max-width: 1640px; padding-inline: clamp(14px, 2.2vw, 36px); }
.hero-top { max-width: 1280px; margin-inline: auto; }
.hero-code-banner { max-width: 1560px; }
.container, .stats-bar { width: min(100%, 1280px); }
.job-badge-icon { width: 64px; height: 64px; padding: 6px; }
.job-card-head > div { min-width: 0; }
.job-card-name, .active-item-name { overflow-wrap: anywhere; }

@media (max-width: 1240px) {
  .nav-links { gap: 18px; font-size: 15.75px; }
  .logo { font-size: 25.2px; }
  .hero-title { font-size: clamp(45.15px, 5.25vw, 56.7px); }
  .job-card-name { font-size: 19.95px; }
  .job-card-meta { font-size: 16.8px; }
}

@media (max-width: 1080px) {
  .topnav .container {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 24px;
    padding: 8px 0 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
  }
  .hero-code-banner { min-height: 320px; max-height: 430px; }
  .stats-bar-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .stat + .stat::before { display: none; }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .active-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agencies-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17.85px; }
  .topnav .container { min-height: 62px; flex-wrap: nowrap; padding-block: 7px; }
  .nav-links { display: none; }
  .container, .stats-bar { padding-inline: 14px; }
  .hero { padding-top: 20px; }
  .hero-inner { padding-inline: 12px; }
  .hero-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-title-wrap { order: -1; }
  .hero-title { font-size: clamp(37.8px, 10.5vw, 48.3px); }
  .hero-badge { display: none; }
  .update-signal {
    grid-template-columns: 72px minmax(0, 1fr);
    width: min(100%, 480px);
    margin-inline: auto;
    min-width: 0;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
  }
  .update-mark { width: 68px; height: 68px; }
  .update-mark strong { font-size: 39.9px; }
  .update-mark small { font-size: 12.6px; }
  .update-live { font-size: 12.6px; }
  .update-copy > b { font-size: clamp(22.05px, 5.99vw, 26.25px); }
  .update-next { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; gap: 8px; min-width: 0; width: 100%; padding-block: 10px; }
  .update-next small { font-size: 13.65px; }
  .update-next strong { font-size: 27.3px; }
  .hero-code-banner {
    height: 330px;
    min-height: 330px;
    aspect-ratio: auto;
    margin-top: 16px;
    border-radius: 20px 20px 0 0;
  }
  .hero-code-banner img { object-position: 50% 50%; }
  .stats-bar { margin-top: -5px; }
  .stats-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 8px; }
  .stat { padding: 6px 8px; }
  .stat-num { font-size: 22.05px; }
  .stat-label { font-size: 13.65px; }
  .job-section { padding-top: 34px; }
  .section-title { font-size: clamp(23.1px, 6.3vw, 28.35px); }
  .see-all { min-height: 44px; display: inline-flex; align-items: center; }
  .job-grid { grid-template-columns: 1fr; gap: 18px; }
  .job-card { min-height: 0; }
  .job-card-head { min-height: 0; }
  .job-card-photo { height: clamp(190px, 54vw, 280px); }
  .job-card-btn { min-height: 50px; }
  .active-panel { padding: 18px 14px; border-radius: 14px; }
  .active-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-grid { gap: 12px; }
  .agencies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .verify-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .verify-left { align-items: flex-start; text-align: left; }
  .verify-cta { justify-content: center; min-height: 46px; }
}

/* Compact open-announcement grid: 20 cards, matched to the approved reference. */
#active-jobs.active-panel {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid #c7d9f2;
  border-radius: 18px;
  background: linear-gradient(145deg, #f5f9ff, #e6eef9);
  box-shadow: 0 16px 38px rgba(15, 43, 84, .18);
}
#active-jobs .section-title { display: flex; align-items: center; gap: 9px; font-size: 24px; color: #132c58; }
#active-jobs .active-total { padding: 4px 10px; border-radius: 99px; color: #3866a7; background: #dce9fb; font-size: 14px; font-weight: 800; }
#active-jobs .active-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#active-jobs .active-item {
  --active-accent: #2f7df4;
  --active-soft: #e9f2ff;
  min-height: 246px;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--active-accent) 55%, #fff);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 38%, var(--active-soft));
  box-shadow: 0 7px 18px rgba(33, 65, 112, .09);
}
#active-jobs .active-tone-1 { --active-accent: #ff4949; --active-soft: #fff0f0; }
#active-jobs .active-tone-2 { --active-accent: #2589ed; --active-soft: #edf6ff; }
#active-jobs .active-tone-3 { --active-accent: #16aaa8; --active-soft: #eafafa; }
#active-jobs .active-tone-4 { --active-accent: #9c45e8; --active-soft: #f6edff; }
#active-jobs .active-tone-5 { --active-accent: #ed3491; --active-soft: #fff0f8; }
#active-jobs .active-item-top { align-items: flex-start; gap: 10px; min-height: 58px; padding: 0; }
#active-jobs .active-item-top > div { flex: 1; min-width: 0; }
#active-jobs .active-icon { width: 54px; height: 54px; border: 2px solid color-mix(in srgb, var(--active-accent) 45%, #fff); background: #fff !important; box-shadow: 0 5px 12px rgba(35, 69, 116, .12); }
#active-jobs .active-icon img { padding: 5px; }
#active-jobs .active-item-name { min-height: 34px; color: #17396f; font-size: 16px; font-weight: 800; line-height: 1.08; }
#active-jobs .active-item-count {
  position: static;
  min-height: auto;
  display: block;
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: var(--active-accent);
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}
#active-jobs .active-item-positions { position: relative; display: grid; gap: 4px; min-height: 49px; padding-right: 49px; }
#active-jobs .active-item-positions > span { position: relative; overflow: hidden; padding-left: 14px; color: #29466f; font-size: 13px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
#active-jobs .active-item-positions > span::before { content: "✓"; position: absolute; left: 0; color: var(--active-accent); font-weight: 900; }
#active-jobs .active-item-more { position: absolute; right: 0; bottom: 1px; padding: 2px 7px; border-radius: 99px; color: var(--active-accent); background: color-mix(in srgb, var(--active-accent) 12%, #fff); font-size: 11px; font-weight: 800; }
#active-jobs .active-item-degree { display: block; overflow: hidden; color: #65758e; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#active-jobs .active-item-foot { gap: 8px; min-height: 25px; margin-top: 0; padding-top: 7px; border-top: 1px solid color-mix(in srgb, var(--active-accent) 18%, #dfe6f0); }
#active-jobs .active-item-date, #active-jobs .active-item-views { color: #62738d; font-size: 11px; font-weight: 700; }
#active-jobs .active-item-cta { margin-top: auto; padding: 8px 12px; border-radius: 7px; color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 78%, #fff), var(--active-accent)); box-shadow: 0 5px 12px color-mix(in srgb, var(--active-accent) 20%, transparent); font-size: 14px; font-weight: 800; }
#active-jobs .active-item:hover { transform: translateY(-3px); border-color: var(--active-accent); box-shadow: 0 12px 24px rgba(33, 65, 112, .16); }

@media (max-width: 1120px) {
  #active-jobs .active-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  #active-jobs.active-panel { padding: 16px; }
  #active-jobs .active-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #active-jobs .section-title { font-size: 21px; }
}
@media (max-width: 520px) {
  #active-jobs .active-grid { grid-template-columns: 1fr; }
  #active-jobs .active-item { min-height: 232px; }
}

@media (max-width: 480px) {
  .topnav .container { padding-inline: 12px; }
  .logo { font-size: 23.1px; }
  .nav-actions { gap: 6px; }
  .nav-actions .icon-btn { width: 42px; height: 42px; }
  .nav-links { gap: 20px; font-size: 16.8px; }
  .hero-code-banner { height: 300px; min-height: 300px; }
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat { min-height: 58px; }
  .section-head { align-items: flex-start; gap: 10px; }
  .see-all { padding-inline: 12px; font-size: 14.7px; }
  .job-card-head { padding: 15px 14px 11px; }
  .job-badge-icon { width: 58px; height: 58px; }
  .job-card-name { font-size: 19.95px; }
  .job-card-meta { font-size: 16.8px; }
  .job-card-photo { margin-inline: 14px; }
  .job-card-body { padding-inline: 14px; }
  .job-card-list li { font-size: 16.8px; }
  .active-grid { grid-template-columns: 1fr; }
  .active-item { min-height: 218px; }
  .agencies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card { align-items: flex-start; }
  .dialog-actions { flex-direction: column; align-items: stretch; }
  .dialog-primary, .dialog-link { width: 100%; }
}

/* Shared desktop pages */
.site-page { min-height: 100vh; background: radial-gradient(circle at 90% 0, rgba(43,111,237,.14), transparent 34rem), var(--bg); }
.site-page .topnav { position: sticky; }
.inner-main { width: min(100%, 1280px); margin: 0 auto; padding: 30px 20px 70px; }
.inner-hero { position: relative; min-height: 220px; padding: clamp(28px,5vw,56px); overflow: hidden; border: 1px solid rgba(80,145,255,.22); border-radius: 26px; background: radial-gradient(circle at 85% 20%, rgba(49,111,237,.32), transparent 30%), radial-gradient(circle at 10% 80%, rgba(230,39,63,.25), transparent 32%), #0b1528; box-shadow: 0 22px 55px rgba(0,0,0,.3); }
.inner-hero::after { content:""; position:absolute; width:240px; height:240px; right:-80px; bottom:-120px; border-radius:50%; border:42px solid rgba(242,178,61,.08); }
.inner-kicker { color:#78adff; font:700 12.6px/1.2 sans-serif; letter-spacing:2px; }
.inner-hero h1 { max-width: 820px; margin: 8px 0; font-size: clamp(39.9px,5.25vw,67.2px); line-height:1; }
.inner-hero p { max-width: 760px; color:#bdc9db; font-size:22.05px; line-height:1.55; }
.hero-summary { margin-top:18px; display:flex; flex-wrap:wrap; gap:10px; }
.hero-summary span { padding:8px 13px; border:1px solid rgba(255,255,255,.13); border-radius:99px; color:#dfeaff; background:rgba(255,255,255,.06); }
.hero-summary strong { color:#ffca64; }
.section-block { margin-top:28px; }
.section-block-head { margin-bottom:14px; display:flex; justify-content:space-between; align-items:end; gap:14px; }
.section-block-head h2 { font-size:31.5px; }
.section-block-head p { color:var(--muted-2); }
.soft-panel { border:1px solid rgba(106,163,237,.17); border-radius:18px; background:#0d192b; box-shadow:0 12px 28px rgba(0,0,0,.2); }
.desktop-filter { padding:18px; display:grid; grid-template-columns:minmax(220px,1fr) minmax(200px,.7fr) auto; gap:14px; align-items:end; }
.desktop-filter label { display:grid; gap:6px; color:#b7c6da; font-size:17.85px; }
.desktop-filter select { width:100%; min-height:48px; padding:8px 12px; border:1px solid rgba(122,174,240,.3); border-radius:11px; color:#fff; background:#071326; }
.desktop-filter button, .wide-action { min-height:48px; padding:9px 22px; border-radius:11px; color:#fff; font-weight:700; background:linear-gradient(90deg,#e6273f,#b91331); }
.result-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.result-card { min-width:0; padding:18px; display:grid; grid-template-columns:68px minmax(0,1fr) auto; gap:14px; align-items:center; border:1px solid rgba(104,160,232,.19); border-radius:17px; background:linear-gradient(145deg,#102039,#091425); transition:transform .18s ease,border-color .18s ease; }
.result-card:hover { transform:translateY(-3px); border-color:#397ee5; }
.result-card > img { width:68px; height:68px; padding:7px; object-fit:contain; border-radius:14px; background:#fff; }
.result-card em { display:inline-flex; margin-bottom:3px; padding:2px 8px; border-radius:99px; color:#ff9aaa; font-size:13.65px; font-style:normal; background:rgba(230,39,63,.16); }
.result-card strong,.result-card b,.result-card small { display:block; }
.result-card strong { font-size:22.05px; line-height:1.18; }
.result-card b { margin-top:5px; color:#8fbaff; font-size:16.8px; }
.result-card small { margin-top:4px; color:#9eacc0; font-size:14.7px; }
.result-card .result-date { margin-top:7px; display:flex; flex-wrap:wrap; gap:10px; color:#d6dce8; font-size:13.65px; }
.result-card > span:last-child { color:#ffca64; font-size:31.5px; }
.source-rule { padding:17px 20px; display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:13px; align-items:center; border:1px solid rgba(50,190,125,.25); border-radius:16px; background:rgba(24,98,66,.2); }
.source-rule > span { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; color:#92f2bf; background:rgba(40,209,124,.14); }
.source-rule strong,.source-rule small { display:block; }.source-rule small { color:#9db8aa; }.source-rule a { color:#9fc7ff; }
.desktop-layout { margin-top:24px; display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.72fr); gap:18px; align-items:start; }
.content-stack { display:grid; gap:16px; }
.desktop-layout > *, .content-stack, .formal-box, .detail-banner { min-width:0; }
.formal-box { padding:24px; border:1px solid #dbe4ef; border-radius:18px; color:#17263a; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.16); }
.formal-box h2 { margin-bottom:14px; font-size:42.84px; line-height:1.2; }.formal-box p,.formal-box li { font-size:26.46px; line-height:1.72; }.formal-box ol,.formal-box ul { margin:0; padding-left:28px; }
.qualification-assurance { margin-top:24px; padding:20px; border:1px solid #ccdaea; border-radius:16px; background:linear-gradient(145deg,#f7fbff,#eef5fc); }.qualification-assurance h3 { margin:0 0 12px; color:#1b385b; font-size:26.25px; line-height:1.3; }.qualification-checklist { display:grid; gap:8px; padding:0 !important; list-style:none; }.qualification-checklist li { position:relative; padding:10px 12px 10px 42px; border:1px solid #dbe6f1; border-radius:11px; color:#334b66; font-size:20.16px !important; line-height:1.45 !important; background:#fff; }.qualification-checklist li::before { content:"✓"; position:absolute; top:10px; left:13px; width:21px; height:21px; display:grid; place-items:center; border-radius:50%; color:#fff; font-family:sans-serif; font-size:12px; font-weight:800; background:#279863; }.qualification-disclaimer { margin:10px 0 0; color:#61758b; font-size:17.85px !important; line-height:1.45 !important; }.qualification-proof { margin-top:16px; padding:14px 15px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-left:5px solid #2671d9; border-radius:12px; background:#e3effd; }.qualification-proof div { min-width:0; }.qualification-proof span,.qualification-proof strong,.qualification-proof small { display:block; }.qualification-proof span { color:#2671d9; font-size:15.75px; font-weight:800; }.qualification-proof strong { margin-top:2px; color:#183958; font-size:20.16px; line-height:1.35; }.qualification-proof small { margin-top:3px; color:#60758d; font-size:16.8px; }.qualification-proof a,.qualification-source-pending { flex:0 0 auto; padding:9px 13px; border-radius:9px; color:#fff !important; font-size:16.8px !important; font-weight:800; text-decoration:none; background:#276ed1; }.qualification-source-pending { max-width:220px; color:#536b84 !important; text-align:center; background:#d5e3f2; }
.table-wrap { overflow-x:auto; }.position-table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; }.position-table th,.position-table td { min-width:0; padding:15px 14px; border-bottom:1px solid #e5ebf2; text-align:left; overflow-wrap:anywhere; word-break:normal; }.position-table th { color:#536980; font-size:clamp(16.8px,1.4vw,20.16px); font-weight:800; letter-spacing:.4px; }.position-table td { font-size:clamp(18.9px,1.75vw,25.2px); line-height:1.5; }.position-table th:nth-child(1),.position-table td:nth-child(1) { width:52%; }.position-table th:nth-child(2),.position-table td:nth-child(2) { width:32%; }.position-table th:nth-child(3),.position-table td:nth-child(3) { width:16%; text-align:center; white-space:nowrap; overflow-wrap:normal; }.position-table td:nth-child(3) { font-size:clamp(15.75px,1.55vw,22.68px); font-weight:700; }
.table-wrap { width:100%; max-width:100%; min-width:0; overscroll-behavior-inline:contain; }
.detail-banner { padding:26px; border:1px solid rgba(91,151,232,.23); border-radius:20px; background:linear-gradient(140deg,#132743,#081423); }
.detail-agency-row { display:flex; gap:17px; align-items:center; }.detail-agency-row img { width:84px; height:84px; padding:8px; object-fit:contain; border-radius:17px; background:#fff; }.detail-agency-row strong { display:block; font-size:31.5px; line-height:1.25; }.detail-agency-row span { color:#6ee2a4; font-size:18.9px; font-weight:700; }
.detail-banner h1 { margin:20px 0 10px; font-size:clamp(38.85px,4.52vw,56.7px); line-height:1.16; }.detail-banner > p { color:#c4d0e0; font-size:25.2px; line-height:1.5; }
.detail-banner h1 { overflow-wrap:anywhere; }
.detail-metrics-row { margin-top:20px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.detail-metrics-row div { padding:14px 12px; border:1px solid rgba(255,255,255,.12); border-radius:13px; text-align:center; background:rgba(255,255,255,.06); }.detail-metrics-row strong,.detail-metrics-row small { display:block; }.detail-metrics-row strong { color:#ffca64; font-size:29.4px; line-height:1.15; }.detail-metrics-row small { margin-top:3px; color:#aab8ca; font-size:16.8px; }
.side-card { padding:21px; }.side-card + .side-card { margin-top:14px; }.side-card h3 { margin:0 0 10px; font-size:28.35px; }.side-card p { color:#bdc8d8; font-size:19.95px; line-height:1.65; }.side-card a,.side-card button { width:100%; min-height:50px; margin-top:14px; display:flex; align-items:center; justify-content:center; border-radius:11px; color:#fff; font-size:18.9px; font-weight:800; background:linear-gradient(90deg,#2877ec,#1551b9); }
.application-timeline-desktop { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }.application-timeline-desktop::before { content:""; position:absolute; top:24px; left:calc((100% - 36px) / 6); right:calc((100% - 36px) / 6); height:4px; border-radius:99px; background:linear-gradient(90deg,#31c77d 0 50%,#2f6fed 50% 100%); }.timeline-step { position:relative; padding-top:60px; text-align:center; }.timeline-step i { position:absolute; z-index:2; top:8px; left:50%; transform:translateX(-50%); width:38px; height:38px; display:grid; place-items:center; border:5px solid #fff; border-radius:50%; color:#fff; font-size:16.8px; font-style:normal; background:#8797aa; box-shadow:0 0 0 2px #dbe4ef; }.timeline-step.done i { background:#26b96f; }.timeline-step.current i { background:#2f6fed; box-shadow:0 0 0 5px rgba(47,111,237,.18); }.timeline-step strong,.timeline-step small { display:block; }.timeline-step strong { font-size:23.94px; line-height:1.35; }.timeline-step small { margin-top:4px; color:#62758c; font-size:21.42px; line-height:1.45; }
.attachment-list { display:grid; gap:11px; }.attachment-list a { padding:15px; display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; align-items:center; border:1px solid #dfe7f0; border-radius:13px; color:#203148; background:#f8fbff; }.attachment-list b { color:#d52949; font-size:23.94px; }.attachment-list strong { font-size:25.2px; }.attachment-list small { display:block; margin-top:3px; color:#667b94; font-size:21.42px; line-height:1.4; }.attachment-list a > span:last-child { font-size:21.42px; font-weight:700; }
.agency-grid-page { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }.agency-card-page { min-height:190px; padding:20px; border:1px solid rgba(94,157,238,.2); border-radius:18px; background:linear-gradient(145deg,#10213a,#0a1526); }.agency-card-page img { width:64px; height:64px; padding:7px; object-fit:contain; border-radius:14px; background:#fff; }.agency-card-page strong { margin-top:13px; display:block; font-size:22.05px; }.agency-card-page span { color:#87b6fb; }.agency-card-page p { margin-top:5px; color:#95a5bb; }
.article-feature { padding:24px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); gap:24px; align-items:center; }.article-feature-visual { min-height:270px; display:grid; place-items:center; border-radius:17px; background:radial-gradient(circle,#7647e4,#172863 65%,#0c1730); font-size:84px; }.article-feature h2 { font-size:39.9px; line-height:1.1; }.article-feature p { margin-top:9px; color:#aebed3; font-size:19.95px; line-height:1.55; }.article-grid-page { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.article-card-page { min-height:225px; padding:21px; border:1px solid rgba(103,162,237,.2); border-radius:18px; background:#0d1b30; }.article-card-page > span { width:52px; height:52px; display:grid; place-items:center; border-radius:14px; color:#fff; font-size:26.25px; background:linear-gradient(145deg,#2e78ef,#7a41de); }.article-card-page h3 { margin:15px 0 6px; font-size:25.2px; }.article-card-page p { color:#9dacc0; line-height:1.5; }.article-card-page a { margin-top:12px; display:inline-flex; color:#8bb9ff; font-weight:700; }
.site-footer { margin-top:42px; padding:26px 0 10px; display:flex; justify-content:space-between; gap:18px; border-top:1px solid rgba(255,255,255,.09); color:#8d9caf; }.site-footer strong { color:#fff; font-size:23.1px; }.site-footer nav { display:flex; flex-wrap:wrap; gap:16px; }

@media (max-width: 980px) {
  .desktop-filter { grid-template-columns:1fr 1fr; }.desktop-filter button { grid-column:1/-1; }
  .result-grid { grid-template-columns:1fr; }.desktop-layout { grid-template-columns:1fr; }
  .agency-grid-page { grid-template-columns:repeat(2,minmax(0,1fr)); }.article-grid-page { grid-template-columns:repeat(2,minmax(0,1fr)); }.article-feature { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .inner-main { padding-inline:13px; }.inner-hero { padding:25px 20px; border-radius:18px; }.inner-hero p { font-size:18.9px; }
  .desktop-filter { grid-template-columns:1fr; }.desktop-filter button { grid-column:auto; }.result-card { grid-template-columns:56px minmax(0,1fr); padding:14px; }.result-card > img { width:56px; height:56px; }.result-card > span:last-child { display:none; }
  .source-rule { grid-template-columns:42px minmax(0,1fr); }.source-rule a { grid-column:2; }
  .detail-banner { padding:20px; }.detail-agency-row img { width:70px; height:70px; }.detail-agency-row strong { font-size:25.2px; }.detail-agency-row span { font-size:16.8px; }.detail-banner h1 { font-size:clamp(32.55px,9.98vw,39.9px); }.detail-banner > p { font-size:21px; }.detail-metrics-row { grid-template-columns:1fr; }.detail-metrics-row strong { font-size:26.25px; }.detail-metrics-row small { font-size:15.75px; }
  .formal-box { padding:20px; }.formal-box h2 { font-size:36.54px; }.formal-box p,.formal-box li { font-size:23.94px; }.qualification-assurance { padding:15px; }.qualification-assurance h3 { font-size:23.1px; }.qualification-checklist li { padding-left:39px; font-size:18.9px !important; }.qualification-proof { align-items:stretch; flex-direction:column; }.qualification-proof a,.qualification-source-pending { width:100%; max-width:none; text-align:center; }.position-table th,.position-table td { padding:11px 7px; }.position-table th { font-size:clamp(14.7px,4vw,18.9px); }.position-table td { font-size:clamp(15.75px,4.8vw,20.16px); }.position-table th:nth-child(1),.position-table td:nth-child(1) { width:48%; }.position-table th:nth-child(2),.position-table td:nth-child(2) { width:30%; }.position-table th:nth-child(3),.position-table td:nth-child(3) { width:22%; }.position-table td:nth-child(3) { font-size:clamp(14.7px,4.2vw,17.85px); }
  .application-timeline-desktop { grid-template-columns:1fr; }.application-timeline-desktop::before { top:12px; bottom:12px; left:31px; width:4px; height:auto; right:auto; background:linear-gradient(#31c77d 0 50%,#2f6fed 50% 100%); }.timeline-step { padding:0 0 18px 66px; text-align:left; }.timeline-step i { top:0; left:13px; transform:none; }.timeline-step strong { font-size:23.94px; }.timeline-step small { font-size:21.42px; }
  .attachment-list a { grid-template-columns:44px minmax(0,1fr); }.attachment-list a > span:last-child { grid-column:2; justify-self:start; }.attachment-list strong { font-size:23.94px; }.attachment-list small { font-size:20.16px; }
  .agency-grid-page,.article-grid-page { grid-template-columns:1fr; }.article-feature-visual { min-height:190px; }.site-footer { flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Card artwork is produced by CSS so automated posts never need copied news photos. */
.job-card-photo {
  isolation: isolate;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at 26% 35%, rgba(255,255,255,.17) 0 8%, transparent 8.5%),
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.14) 0 9%, transparent 9.5%),
    radial-gradient(circle at 74% 35%, rgba(255,255,255,.17) 0 8%, transparent 8.5%),
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 45%),
    linear-gradient(145deg, #172a44, #07111f);
}
.job-card-photo::before {
  content: "ภาพประกอบจากระบบโค้ด";
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  color: rgba(255,255,255,.78);
  font-size: 12.6px;
  background: rgba(3,10,20,.6);
}
.job-card-photo::after {
  content: "";
  width: 88%;
  height: 78%;
  border-radius: 50% 50% 12px 12px;
  background:
    radial-gradient(circle at 22% 11%, #f0c3a1 0 8%, transparent 8.5%),
    radial-gradient(circle at 50% 9%, #e8b993 0 9%, transparent 9.5%),
    radial-gradient(circle at 78% 11%, #efc29f 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 22% 100%, #233d62 0 28%, transparent 28.5%),
    radial-gradient(ellipse at 50% 100%, #31587d 0 32%, transparent 32.5%),
    radial-gradient(ellipse at 78% 100%, #233d62 0 28%, transparent 28.5%);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}
.job-card-photo img { display: none; }
.job-card-days { z-index: 3; }

/* A verified official cover or deterministic code cover takes priority over the CSS fallback. */
.job-card-photo.has-cover { display: block; background: #0d1d33; }
.job-card-photo.has-cover::before { content: attr(data-cover-label); }
.job-card-photo.has-cover::after { display: none; }
.job-card-photo.has-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.job-card-photo.has-cover.cover-code img { object-fit: cover; }

/* Live database states */
.data-status-banner {
  width:min(1180px,calc(100% - 32px));
  margin:14px auto 0;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid rgba(83,151,239,.35);
  border-radius:14px;
  color:#dceaff;
  background:rgba(15,38,68,.94);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.data-status-banner strong { flex:0 0 auto; color:#fff; }
.data-status-banner span { color:#b8cbe4; }
.data-status-banner--preview { border-color:rgba(75,170,255,.45); }
.data-status-banner--warning { border-color:rgba(255,190,74,.55); background:rgba(69,42,10,.96); }
.data-status-banner--error { border-color:rgba(255,75,91,.58); background:rgba(66,13,26,.97); }
.data-empty-state {
  grid-column:1 / -1;
  width:100%;
  min-height:150px;
  padding:28px;
  display:grid;
  place-content:center;
  text-align:center;
  border:1px dashed rgba(112,166,234,.36);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(17,38,67,.92),rgba(8,20,36,.92));
}
.data-empty-state strong { color:#fff; font-size:24px; }
.data-empty-state p { max-width:580px; margin:7px auto 0; color:#9fb2ca; line-height:1.55; }
.data-check { color:#4fe38a; font-weight:800; }
.active-icon img { width:100%; height:100%; padding:5px; object-fit:contain; border-radius:inherit; background:#fff; }
.agency-item[role="link"], .article-card[role="link"] { cursor:pointer; }
.agency-item[role="link"]:focus-visible, .article-card[role="link"]:focus-visible { outline:3px solid #64a8ff; outline-offset:3px; }

@media (max-width:700px) {
  .data-status-banner { width:calc(100% - 20px); align-items:flex-start; flex-direction:column; gap:3px; }
  .data-empty-state { min-height:125px; padding:22px 16px; }
  .data-empty-state strong { font-size:21px; }
}

/* Ranked portrait announcement cards — compact editorial format. */
main.container { counter-reset: featured-job-rank; }
.job-card {
  --card-accent: #ed2447;
  --card-accent-rgb: 237, 36, 71;
  position: relative;
  min-height: 610px;
  counter-increment: featured-job-rank;
  border: 2px solid rgba(var(--card-accent-rgb), .86);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(var(--card-accent-rgb), .24), #08111f 47%, #07101d);
  box-shadow: 0 0 0 1px rgba(var(--card-accent-rgb), .16), 0 14px 32px rgba(0,0,0,.46), 0 0 24px rgba(var(--card-accent-rgb), .2);
}
.job-card--red:nth-child(2) { --card-accent:#e91e78; --card-accent-rgb:233,30,120; }
.job-card--red:nth-child(3) { --card-accent:#f0522d; --card-accent-rgb:240,82,45; }
.job-card--blue { --card-accent:#2877ef; --card-accent-rgb:40,119,239; }
.job-card--blue:nth-child(2) { --card-accent:#02a8c6; --card-accent-rgb:2,168,198; }
.job-card--blue:nth-child(3) { --card-accent:#8a3ee8; --card-accent-rgb:138,62,232; }
.job-card--gold { --card-accent:#eea514; --card-accent-rgb:238,165,20; }
.job-card--gold:nth-child(2) { --card-accent:#d99216; --card-accent-rgb:217,146,22; }
.job-card--gold:nth-child(3) { --card-accent:#ef6a15; --card-accent-rgb:239,106,21; }

.job-card::before {
  order: -3;
  min-height: 34px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15.75px;
  font-weight: 800;
  letter-spacing: .15px;
  background: linear-gradient(90deg, rgba(var(--card-accent-rgb), .72), var(--card-accent), rgba(var(--card-accent-rgb), .72));
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.job-card--red::before { content: "🔥 งานร้อนแรง"; }
.job-card--blue::before { content: "▣ ประกาศมาใหม่"; }
.job-card--gold::before { content: "◷ ใกล้ปิดรับ"; }
.job-card::after {
  content: "อันดับ " counter(featured-job-rank);
  position: absolute;
  z-index: 7;
  top: 48px;
  left: 0;
  min-width: 76px;
  padding: 7px 15px 7px 10px;
  clip-path: polygon(0 0,100% 0,86% 100%,0 100%);
  color: #fff;
  font-size: 16.8px;
  font-weight: 800;
  background: var(--card-accent);
  box-shadow: 0 5px 13px rgba(0,0,0,.4);
}
.job-card-head {
  order: 2;
  z-index: 5;
  min-height: 104px;
  margin: -23px 12px 0;
  padding: 29px 14px 12px;
  align-items: center;
  border: 1px solid rgba(var(--card-accent-rgb), .35);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(180deg, rgba(6,14,27,.86), #091524 48%);
  backdrop-filter: blur(10px);
}
.job-badge-icon {
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 3px solid var(--card-accent);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(var(--card-accent-rgb), .32);
}
.job-card-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(19px,1.55vw,22.05px);
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.job-card-meta { margin-top: 5px; color: #c9d4e2; font-size: 16.8px; line-height: 1.32; }
.job-card-meta b { color: #fff; }
.job-card-photo {
  order: 1;
  width: 100%;
  height: 250px;
  margin: 0;
  border-radius: 0;
  background-color: #091525;
}
.job-card-photo.has-cover img { object-position: center 28%; }
.job-card-photo::before { bottom: 28px; left: 10px; font-size: 10.5px; }
.job-card-days {
  top: 9px;
  right: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 13.65px;
  background: rgba(3,10,20,.74);
}
.job-card-body {
  order: 3;
  margin: 0 12px 12px;
  padding: 12px 14px 14px;
  gap: 9px;
  border: 1px solid rgba(var(--card-accent-rgb), .35);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: rgba(6,15,27,.9);
}
.job-card-list-label { color: rgba(255,255,255,.66); font-size: 14.7px; font-weight: 700; }
.job-card-list { gap: 6px; }
.job-card-list li {
  min-width: 0;
  min-height: 30px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(var(--card-accent-rgb), .32);
  border-radius: 8px;
  color: #eaf0f7;
  font-size: 15.75px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(var(--card-accent-rgb), .08);
}
.job-card-list li:first-child { color: #fff; font-size: 17.85px; font-weight: 800; background: rgba(var(--card-accent-rgb), .17); }
.job-card-list .icon,.job-card-list .data-check { flex: 0 0 auto; color: var(--card-accent); }
.job-card-footer-meta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px 12px;
  padding-top: 10px;
  font-size: 13.65px;
}
.job-card-footer-meta span { min-width: 0; }
.job-card-footer-meta span:first-child { grid-column: 1 / -1; color: #dce5f1; }
.job-card-btn {
  min-height: 50px;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0;
  color: #fff !important;
  background: linear-gradient(90deg, var(--card-accent), rgba(var(--card-accent-rgb), .75)) !important;
  box-shadow: 0 7px 18px rgba(var(--card-accent-rgb), .25);
}
.job-card-btn::before { content: "ดูรายละเอียด"; font-size: 18.9px; }
.job-card-btn::after { content: "›"; margin-left: 8px; font-family: sans-serif; font-size: 25.2px; line-height: 1; }
.job-card-btn .icon { display: none; }

@media (max-width:1080px) {
  .job-card { min-height: 590px; }
  .job-card-photo { height: 265px; }
  .job-card-name { font-size: 21px; }
}
@media (max-width:760px) {
  .job-grid { justify-items: center; }
  .job-card { width: min(100%,520px); min-height: 0; }
  .job-card-photo { height: clamp(230px,62vw,310px); }
  .job-card-head { min-height: 98px; }
  .job-card-name { font-size: clamp(19.95px,5.4vw,23.1px); }
  .job-card-list li { white-space: normal; }
}

/* Vivid multi-colour homepage palette inspired by the approved reference. */
#hot-jobs .job-card:nth-child(1) {
  --card-accent:#ff2348; --card-accent-rgb:255,35,72;
  --card-accent-2:#ff6a18; --card-accent-2-rgb:255,106,24;
}
#hot-jobs .job-card:nth-child(2) {
  --card-accent:#1677ff; --card-accent-rgb:22,119,255;
  --card-accent-2:#00c8ff; --card-accent-2-rgb:0,200,255;
}
#hot-jobs .job-card:nth-child(3) {
  --card-accent:#ff8a00; --card-accent-rgb:255,138,0;
  --card-accent-2:#ffd02b; --card-accent-2-rgb:255,208,43;
}
#latest-jobs .job-card:nth-child(1) {
  --card-accent:#8f2cff; --card-accent-rgb:143,44,255;
  --card-accent-2:#e33cff; --card-accent-2-rgb:227,60,255;
}
#latest-jobs .job-card:nth-child(2) {
  --card-accent:#08b95e; --card-accent-rgb:8,185,94;
  --card-accent-2:#43df86; --card-accent-2-rgb:67,223,134;
}
#latest-jobs .job-card:nth-child(3) {
  --card-accent:#f5a400; --card-accent-rgb:245,164,0;
  --card-accent-2:#ff6d00; --card-accent-2-rgb:255,109,0;
}
#closing-jobs .job-card:nth-child(1) {
  --card-accent:#009dff; --card-accent-rgb:0,157,255;
  --card-accent-2:#36deff; --card-accent-2-rgb:54,222,255;
}
#closing-jobs .job-card:nth-child(2) {
  --card-accent:#eb0876; --card-accent-rgb:235,8,118;
  --card-accent-2:#ff49b5; --card-accent-2-rgb:255,73,181;
}
#closing-jobs .job-card:nth-child(3) {
  --card-accent:#ff4817; --card-accent-rgb:255,72,23;
  --card-accent-2:#ffb000; --card-accent-2-rgb:255,176,0;
}
#closing-jobs .job-card:nth-child(4) {
  --card-accent:#654cff; --card-accent-rgb:101,76,255;
  --card-accent-2:#a84fff; --card-accent-2-rgb:168,79,255;
}
#closing-jobs .job-card:nth-child(5) {
  --card-accent:#00ad92; --card-accent-rgb:0,173,146;
  --card-accent-2:#47dfbd; --card-accent-2-rgb:71,223,189;
}
#closing-jobs .job-card:nth-child(6) {
  --card-accent:#ff3347; --card-accent-rgb:255,51,71;
  --card-accent-2:#ff765f; --card-accent-2-rgb:255,118,95;
}

.job-card {
  --card-accent-2:var(--card-accent);
  --card-accent-2-rgb:var(--card-accent-rgb);
  background:
    radial-gradient(circle at 92% 10%,rgba(var(--card-accent-2-rgb),.32),transparent 31%),
    linear-gradient(165deg,rgba(var(--card-accent-rgb),.48) 0%,rgba(var(--card-accent-2-rgb),.24) 27%,#08111f 55%,#050b14 100%);
  box-shadow:
    0 0 0 1px rgba(var(--card-accent-2-rgb),.2),
    0 15px 34px rgba(0,0,0,.48),
    0 0 28px rgba(var(--card-accent-rgb),.28);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.job-card:hover {
  transform:translateY(-4px);
  filter:saturate(1.08);
  box-shadow:
    0 0 0 1px rgba(var(--card-accent-2-rgb),.32),
    0 20px 40px rgba(0,0,0,.54),
    0 0 36px rgba(var(--card-accent-rgb),.4);
}
.job-card::before {
  background:linear-gradient(100deg,var(--card-accent),var(--card-accent-2) 52%,var(--card-accent));
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.22),0 5px 14px rgba(var(--card-accent-rgb),.3);
}
.job-card::after {
  background:linear-gradient(135deg,var(--card-accent),var(--card-accent-2));
  border-top:1px solid rgba(255,255,255,.5);
  border-bottom:1px solid rgba(255,255,255,.22);
}
.job-card-photo {
  box-shadow:inset 0 0 0 2px rgba(var(--card-accent-rgb),.38);
}
.job-card-photo.has-cover::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 56%,rgba(3,8,17,.32) 76%,rgba(var(--card-accent-rgb),.4) 100%);
  box-shadow:inset 0 0 0 2px rgba(var(--card-accent-rgb),.42);
}
.job-card-photo.has-cover img { filter:saturate(1.12) contrast(1.04); }
.job-card-head {
  background:
    linear-gradient(110deg,rgba(var(--card-accent-rgb),.24),rgba(6,14,27,.96) 48%,rgba(var(--card-accent-2-rgb),.16));
}
.job-card-body {
  background:
    linear-gradient(160deg,rgba(var(--card-accent-rgb),.12),rgba(6,15,27,.95) 38%,rgba(var(--card-accent-2-rgb),.08));
}
.job-card-list li {
  border-color:rgba(var(--card-accent-2-rgb),.38);
  background:linear-gradient(90deg,rgba(var(--card-accent-rgb),.16),rgba(var(--card-accent-2-rgb),.08));
}
.job-card-list li:first-child {
  background:linear-gradient(90deg,rgba(var(--card-accent-rgb),.3),rgba(var(--card-accent-2-rgb),.16));
}
.job-card-btn {
  border:1px solid rgba(255,255,255,.26);
  background:linear-gradient(100deg,var(--card-accent),var(--card-accent-2)) !important;
  box-shadow:0 8px 20px rgba(var(--card-accent-rgb),.34),inset 0 1px 0 rgba(255,255,255,.3);
  text-shadow:0 2px 5px rgba(0,0,0,.42);
}

/* Reference-faithful glossy frame: header, image, title plate and body share one shell. */
.job-card {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:38px 250px minmax(0,1fr);
  min-height:590px;
  overflow:hidden;
  isolation:isolate;
  border-width:2px;
  border-color:var(--card-accent);
  border-radius:14px;
  background:
    linear-gradient(115deg,rgba(255,255,255,.1),transparent 16%),
    radial-gradient(circle at 88% 8%,rgba(var(--card-accent-2-rgb),.42),transparent 30%),
    linear-gradient(155deg,rgba(var(--card-accent-rgb),.38),#07101d 43%,#040912 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 24px rgba(var(--card-accent-rgb),.16),
    0 0 12px rgba(var(--card-accent-rgb),.72),
    0 14px 28px rgba(0,0,0,.62);
}
.job-card::before {
  grid-column:1;
  grid-row:1;
  min-height:38px;
  padding:5px 14px;
  border-bottom:1px solid rgba(255,255,255,.38);
  background:
    linear-gradient(180deg,rgba(255,255,255,.26),transparent 38%),
    linear-gradient(100deg,var(--card-accent),var(--card-accent-2) 55%,var(--card-accent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -8px 14px rgba(0,0,0,.18),
    0 4px 13px rgba(var(--card-accent-rgb),.42);
}
.job-card::after {
  top:47px;
  min-width:72px;
  padding:6px 15px 7px 9px;
  border-top:1px solid rgba(255,255,255,.72);
  border-bottom:1px solid rgba(255,255,255,.3);
  background:
    linear-gradient(180deg,rgba(255,255,255,.24),transparent 34%),
    linear-gradient(135deg,var(--card-accent),var(--card-accent-2));
  box-shadow:0 5px 14px rgba(0,0,0,.56),0 0 14px rgba(var(--card-accent-rgb),.42);
}
.job-card-photo {
  grid-column:1;
  grid-row:2;
  width:100%;
  height:250px;
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:#0a1728;
  box-shadow:inset 0 0 0 1px rgba(var(--card-accent-rgb),.62);
}
.job-card-photo.has-cover::after {
  background:
    linear-gradient(180deg,rgba(255,255,255,.08),transparent 22%),
    linear-gradient(180deg,transparent 46%,rgba(3,8,17,.22) 66%,rgba(var(--card-accent-rgb),.5) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),inset 0 0 20px rgba(var(--card-accent-rgb),.16);
}
.job-card-photo.has-cover img {
  object-position:center 25%;
  filter:saturate(1.2) contrast(1.06) brightness(1.03);
}
.job-card-photo::before {
  z-index:3;
  bottom:105px;
  left:10px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 3px 10px rgba(0,0,0,.45);
}
.job-card-days {
  z-index:4;
  top:9px;
  right:9px;
  border-color:rgba(255,255,255,.35);
  background:rgba(3,9,18,.8);
  box-shadow:0 4px 14px rgba(0,0,0,.42);
}
.job-card-head {
  position:relative;
  grid-column:1;
  grid-row:2;
  align-self:end;
  width:calc(100% - 16px);
  min-height:98px;
  margin:0 8px 8px;
  padding:15px 14px;
  overflow:visible;
  border:1px solid rgba(255,255,255,.2);
  border-color:rgba(var(--card-accent-rgb),.68);
  border-radius:15px;
  background:
    linear-gradient(110deg,rgba(var(--card-accent-rgb),.52),rgba(5,12,24,.94) 43%,rgba(var(--card-accent-2-rgb),.34));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -12px 22px rgba(0,0,0,.22),
    0 8px 20px rgba(0,0,0,.48),
    0 0 16px rgba(var(--card-accent-rgb),.24);
  backdrop-filter:blur(11px) saturate(1.3);
}
.job-card-head::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.16),transparent 29%,rgba(var(--card-accent-2-rgb),.1));
}
.job-badge-icon {
  width:68px;
  height:68px;
  flex:0 0 68px;
  padding:7px;
  border:3px solid #fff;
  outline:3px solid var(--card-accent);
  outline-offset:-1px;
  background:#fff;
  box-shadow:0 5px 16px rgba(0,0,0,.48),0 0 20px rgba(var(--card-accent-rgb),.62);
}
.job-card-name {
  color:#fff;
  font-weight:800;
  text-shadow:0 2px 6px rgba(0,0,0,.66);
}
.job-card-meta {
  color:#eaf1fa;
  text-shadow:0 2px 5px rgba(0,0,0,.62);
}
.job-card-body {
  grid-column:1;
  grid-row:3;
  min-height:0;
  margin:0 8px 8px;
  padding:12px 13px 13px;
  border:1px solid rgba(var(--card-accent-rgb),.58);
  border-top-color:rgba(255,255,255,.18);
  border-radius:0 0 12px 12px;
  background:
    linear-gradient(120deg,rgba(255,255,255,.04),transparent 22%),
    linear-gradient(155deg,rgba(var(--card-accent-rgb),.18),rgba(4,11,21,.96) 40%,rgba(var(--card-accent-2-rgb),.12));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 18px rgba(var(--card-accent-rgb),.1);
}
.job-card-list li {
  min-height:28px;
  padding:4px 8px;
  border-color:rgba(var(--card-accent-rgb),.5);
  border-radius:6px;
  background:
    linear-gradient(90deg,rgba(var(--card-accent-rgb),.25),rgba(var(--card-accent-2-rgb),.1));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.job-card-footer-meta {
  border-top:1px solid rgba(var(--card-accent-rgb),.24);
}
.job-card-btn {
  border:1px solid rgba(255,255,255,.46);
  border-radius:8px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.25),transparent 42%),
    linear-gradient(100deg,var(--card-accent),var(--card-accent-2)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -9px 15px rgba(0,0,0,.16),
    0 0 15px rgba(var(--card-accent-rgb),.62),
    0 7px 15px rgba(0,0,0,.38);
}

/* Six visibly alternating colours for the closing-soon group. */
#closing-jobs .job-card:nth-child(1) {
  --card-accent:#00a8ff; --card-accent-rgb:0,168,255;
  --card-accent-2:#28e0ff; --card-accent-2-rgb:40,224,255;
}
#closing-jobs .job-card:nth-child(2) {
  --card-accent:#ed087a; --card-accent-rgb:237,8,122;
  --card-accent-2:#ff45b5; --card-accent-2-rgb:255,69,181;
}
#closing-jobs .job-card:nth-child(3) {
  --card-accent:#ff5a0a; --card-accent-rgb:255,90,10;
  --card-accent-2:#ffbe00; --card-accent-2-rgb:255,190,0;
}
#closing-jobs .job-card:nth-child(4) {
  --card-accent:#11bd5c; --card-accent-rgb:17,189,92;
  --card-accent-2:#57e58d; --card-accent-2-rgb:87,229,141;
}
#closing-jobs .job-card:nth-child(5) {
  --card-accent:#7b32ff; --card-accent-rgb:123,50,255;
  --card-accent-2:#d240ff; --card-accent-2-rgb:210,64,255;
}
#closing-jobs .job-card:nth-child(6) {
  --card-accent:#ff2748; --card-accent-rgb:255,39,72;
  --card-accent-2:#ff7a18; --card-accent-2-rgb:255,122,24;
}

@media (max-width:1080px) {
  .job-card { grid-template-rows:38px 240px minmax(0,1fr); min-height:575px; }
  .job-card-photo { height:240px; }
}
@media (max-width:760px) {
  .job-card { grid-template-rows:38px clamp(235px,64vw,300px) minmax(0,1fr); min-height:0; }
  .job-card-photo { height:clamp(235px,64vw,300px); }
  .job-card-head { min-height:94px; }
}

/* Pixel-matched content proportions from the approved 223 × 323 card reference. */
.job-card {
  grid-template-rows:38px 315px 212px;
  min-height:565px;
  aspect-ratio:auto;
}
.job-card-photo { height:315px; }
.job-card-photo::before { bottom:101px; }
.job-card-head {
  width:100%;
  min-height:102px;
  margin:0;
  padding:14px 16px;
  border-right:0;
  border-left:0;
  border-radius:0;
  background:
    linear-gradient(180deg,rgba(3,8,17,.16),rgba(3,8,17,.84) 20%),
    linear-gradient(105deg,rgba(var(--card-accent-rgb),.62),rgba(5,12,24,.94) 48%,rgba(var(--card-accent-2-rgb),.42));
}
.job-badge-icon {
  width:72px;
  height:72px;
  flex-basis:72px;
}
.job-card-name {
  font-size:clamp(19px,1.5vw,22px);
  -webkit-line-clamp:2;
}
.job-card-meta {
  display:-webkit-box;
  overflow:hidden;
  margin-top:4px;
  color:#e7edf6;
  font-size:15px;
  font-weight:600;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
}
.job-card-body {
  margin:0;
  padding:9px 8px 8px;
  gap:7px;
  border-right:0;
  border-bottom:0;
  border-left:0;
  border-radius:0;
}
.job-card-list-label { display:none; }
.job-card-list {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
}
.job-card-list li,
.job-card-list li:first-child {
  min-height:58px;
  padding:7px 9px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:7px;
  overflow:hidden;
  color:#fff;
  font-size:15px;
  font-weight:700;
  line-height:1.18;
  text-overflow:clip;
  white-space:normal;
  background:rgba(3,10,20,.42);
  border:1px solid rgba(var(--card-accent-rgb),.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
.job-card-fact-icon {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:16px;
  text-shadow:0 0 9px rgba(var(--card-accent-rgb),.9);
}
.job-card-fact--vacancy {
  border-left-color:rgba(255,255,255,.18) !important;
}
.job-card-footer-meta {
  min-height:30px;
  padding:6px 0 0;
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid rgba(var(--card-accent-rgb),.24);
  font-size:12.5px;
  white-space:nowrap;
}
.job-card-footer-meta span,
.job-card-footer-meta span:first-child {
  min-width:0;
  grid-column:auto;
  color:#dce5f1;
}
.job-card-footer-meta span:nth-child(2) { margin-left:auto; }
.job-card-status {
  flex:0 0 auto;
  padding:4px 8px;
  border:1px solid rgba(var(--card-accent-rgb),.72);
  border-radius:999px;
  color:#fff !important;
  background:rgba(var(--card-accent-rgb),.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 10px rgba(var(--card-accent-rgb),.28);
}
.job-card-btn {
  min-height:50px;
  margin-top:auto;
  border-radius:7px;
}

@media (max-width:1080px) {
  .job-card { grid-template-rows:38px 295px 208px; min-height:541px; }
  .job-card-photo { height:295px; }
  .job-card-list li,.job-card-list li:first-child { min-height:55px; }
}
@media (max-width:760px) {
  .job-card {
    grid-template-rows:38px clamp(275px,72vw,345px) auto;
    min-height:0;
  }
  .job-card-photo { height:clamp(275px,72vw,345px); }
  .job-card-head { min-height:100px; }
  .job-card-list { grid-template-columns:1fr 1fr; }
  .job-card-footer-meta { flex-wrap:wrap; white-space:normal; }
  .job-card-footer-meta span:nth-child(2) { margin-left:0; }
  .job-card-status { margin-left:auto; }
}

/* Folded ranking corner approved for every featured announcement card. */
.job-card::after { display:none; }
.job-rank-corner {
  position:absolute;
  z-index:12;
  top:38px;
  left:0;
  width:90px;
  height:92px;
  padding:10px 0 0 10px;
  display:block;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,0 100%);
  color:#fff;
  background:
    linear-gradient(180deg,rgba(255,255,255,.38),transparent 34%),
    linear-gradient(135deg,var(--card-accent-2),var(--card-accent) 62%,rgba(var(--card-accent-rgb),.74));
  filter:drop-shadow(3px 4px 5px rgba(0,0,0,.68));
  text-align:left;
  text-shadow:0 2px 5px rgba(0,0,0,.62);
  pointer-events:none;
}
.job-rank-corner::after {
  content:"";
  position:absolute;
  width:124px;
  height:2px;
  left:-17px;
  bottom:44px;
  transform:rotate(-45deg);
  transform-origin:center;
  background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.42));
  box-shadow:0 0 7px rgba(255,255,255,.62);
}
.job-rank-corner span,
.job-rank-corner strong { position:relative; z-index:1; display:block; }
.job-rank-corner span { font-size:13px; font-weight:700; line-height:1.05; }
.job-rank-corner strong { margin-top:1px; font-family:Tahoma,Arial,sans-serif; font-size:32px; font-weight:800; line-height:.95; }

/* New brand lockup and memorable slogan. */
.logo {
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  line-height:1;
  white-space:nowrap;
}
.logo::after {
  content:"รู้ไว สมัครทัน ที่งานรัฐ.com";
  margin-top:4px;
  color:#9eb0c7;
  font-size:10px;
  font-weight:600;
  letter-spacing:.15px;
}

@media (max-width:760px) {
  .job-rank-corner { width:82px; height:84px; padding:9px 0 0 9px; }
  .job-rank-corner span { font-size:12px; }
  .job-rank-corner strong { font-size:29px; }
  .logo::after { margin-top:3px; font-size:8px; }
}
