/* =====================================================================
   ไฟล์: css/style.css (SCG Clean Corporate Theme + Product Image Slots)
   สำหรับ: บริษัท อีสเทิน แมททีเรียล แอนด์ คอนกรีต จำกัด (EAST MAC)
   เชื่อมโยงใน HTML ด้วย <link rel="stylesheet" href="css/style.css" />
   ===================================================================== */

:root {
  --brand-blue: #0f3d8a;
  --brand-blue-dark: #0a2960;
  --brand-blue-light: #eff6ff;
  --brand-sky: #0284c7;
  --surface-white: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-clean: #e2e8f0;
}

body {
  font-family: 'Noto Sans Thai', 'Inter', sans-serif;
  background-color: var(--surface-white);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.nav-dropdown > summary,
.mobile-nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker,
.mobile-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-trigger,
.mobile-nav-toggle {
  cursor: pointer;
}

.nav-dropdown-trigger:focus-visible,
.mobile-nav-toggle:focus-visible,
.nav-dropdown-menu a:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: none;
  width: min(18rem, 80vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border-clean);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 0.125rem;
}

.nav-dropdown-menu a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* ลิงก์เมนูหลักสไตล์ SCG พร้อมเส้นใต้เมื่อชี้เมาส์ */
.scg-nav-link {
  position: relative;
  padding-bottom: 4px;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}

.scg-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2.5px;
  background-color: var(--brand-blue);
  border-radius: 9999px;
  transition: width 0.25s ease;
}

.scg-nav-link:hover {
  color: var(--brand-blue);
}

.scg-nav-link:hover::after {
  width: 100%;
}

/* การ์ดสินค้าและบริการสไตล์ SCG (Clean & Airy Corporate Card) */
.scg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.scg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 61, 138, 0.12);
  border-color: #93c5fd;
}

/* พื้นที่สำหรับใส่รูปสินค้า (Product Image Slot) */
.product-image-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-slot img.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scg-card:hover .product-image-slot img.product-photo {
  transform: scale(1.04);
}

.product-image-slot .product-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.scg-card:hover .product-image-slot .product-illustration {
  transform: scale(1.03);
}

/* แถบหัวข้อหมวดหมู่สินค้า (Category Section Header) */
.category-section-banner {
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
  border-left: 5px solid var(--brand-blue);
}

/* =====================================================================
   SAHASINTHAI / SCG STYLE E-COMMERCE CATALOG STYLES
   ===================================================================== */

/* แถบหัวแดงสไตล์ Sahasinthai / SCG Housing Expert */
.sahasinthai-red-bar {
  background: linear-gradient(90deg, #e11d48 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
}

/* Sidebar หมวดหมู่สินค้าแบบ Tree Accordion */
.sidebar-category-header {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.tree-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-align: left;
}

.tree-group-btn:hover {
  background-color: #f1f5f9;
  color: #0f3d8a;
}

.tree-group-btn.active {
  color: #dc2626;
  font-weight: 700;
}

.tree-sub-list {
  padding-left: 0.875rem;
  margin-left: 0.5rem;
  border-left: 2px solid #e2e8f0;
  space-y: 0.25rem;
}

.tree-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  text-align: left;
}

.tree-sub-btn:hover {
  background-color: #f8fafc;
  color: #dc2626;
}

.tree-sub-btn.active {
  background-color: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  border-left: 3px solid #dc2626;
}

.tree-sub-btn .cat-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.45rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #64748b;
}

.tree-sub-btn.active .cat-badge {
  background-color: #fee2e2;
  color: #dc2626;
}

/* การ์ดสินค้า 4 คอลัมน์สไตล์ Sahasinthai / SCG */
.sh-product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.875rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sh-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.sh-wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #94a3b8;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sh-wishlist-btn:hover {
  color: #dc2626;
  transform: scale(1.15);
  background-color: #ffffff;
}

.sh-wishlist-btn.active {
  color: #dc2626;
  background-color: #fef2f2;
}

/* พื้นที่แสดงรูปภาพสินค้าในแคตตาล็อก */
.sh-product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
  padding: 0.5rem;
}

.sh-product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sh-product-card:hover .sh-product-img-box img {
  transform: scale(1.05);
}

/* ข้อความขนาดและราคา */
.sh-dim-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: -0.01em;
}

.sh-product-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2rem;
}

.sh-price-text {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #dc2626;
}

.sh-add-quote-btn {
  background-color: #0f3d8a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(15, 61, 138, 0.15);
}

.sh-add-quote-btn:hover {
  background-color: #0a2960;
  transform: translateY(-1px);
}

/* ปุ่มกรองหมวดหมู่สไตล์ Pill (SCG Filter Pill) */
.filter-btn {
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(15, 61, 138, 0.2);
}

/* ปุ่มแท็บเครื่องคำนวณวัสดุ */
.calc-tab-btn {
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.calc-tab-btn.active {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 61, 138, 0.18);
}

/* ปุ่มสลับสไลด์ Hero */
.hero-slide-dot.active {
  width: 2rem;
  background-color: var(--brand-blue);
}

/* ปุ่มแท็บดูโค้ดแยกไฟล์ */
.code-file-tab.active {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
}

/* แถบแจ้งเตือน Toast */
.toast-enter {
  animation: slideUpFade 0.25s ease-out forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  input:not([type="checkbox"]),
  select,
  textarea {
    font-size: 16px;
  }
}
/* EASTERN — Sapphire / brushed light.
   One visual system for the existing buildless site.
   Decorative light is static. Only the existing image reel runs continuously. */
:root {
  color-scheme: dark;
  --navy: #edf5ff;
  --blue: #82c6ff;
  --blue-dark: #aecfff;
  --blue-light: #182f4f;
  --ink: #dce7f6;
  --muted: #a8bad2;
  --line: #2b405b;
  --bg: #091525;
  --surface: #10223a;
  --surface-raised: #152c49;
  --accent: #2466db;
  --font: "Prompt", "Leelawadee UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --edge: inset 0 1px 0 #d8eeff18;
  --section-space: clamp(64px, 6vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.85 var(--font); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 600; }
h2 { color: var(--navy); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.5; letter-spacing: -.025em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #b2e1ff; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: #b0dcff; color: #07192c; }
.container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 100; padding: 12px 20px; background: #e5f2ff; color: #09213b; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.eyebrow { color: #96caff; font-size: 11px; font-weight: 500; letter-spacing: .15em; line-height: 1.7; }
.muted { color: var(--muted); }

/* Navigation: an opaque surface keeps scrolling inexpensive and type crisp. */
.demo-bar { background: #06101e; color: #aabdd5; border-bottom: 1px solid #20334b; padding-block: 6px; font-size: 11px; }
.header { position: sticky; top: 0; z-index: 20; background: #0b192c; border-bottom: 1px solid #324b6b; box-shadow: 0 6px 24px #02081226; }
.header::after { content: ""; position: absolute; height: 1px; bottom: -1px; inset-inline: 0; background: linear-gradient(90deg, transparent 3%, #9bcaff85 32%, #3a80dd90 62%, transparent 96%); pointer-events: none; }
.header-inner { position: relative; min-height: 94px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; color: #f1f7ff; }
.brand-mark { width: 43px; height: 48px; color: #b6dfff; transition: transform .22s var(--ease); }
.brand-name { font-size: 23px; font-weight: 600; line-height: 1.1; letter-spacing: .075em; }
.brand-name>.brand-subtitle { display: block; margin-top: 5px; color: #c2d5ed; font-size: 10px; letter-spacing: .105em; }
.brand-name>small { display: block; margin-top: 8px; color: #9fb5cf; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 32px; margin-left: auto; }
.nav a { display: flex; align-items: center; position: relative; color: #b6c8df; font-size: 15px; font-weight: 500; transition: color .18s; }
.nav a:hover, .nav a.nav-current { color: #fff; }
.nav-current::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: #8dcaff; box-shadow: 0 -3px 15px #5daaff35; }
.header-location { padding-left: 25px; border-left: 1px solid #3b4e68; color: #b6c9e2; font-size: 10px; letter-spacing: .06em; }
.menu-toggle { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #3c5677; border-radius: 6px; background: #142943; }

/* Masthead: photographic motion against deep blue with a single silver light plane. */
.page-banner { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; background: #071b35; color: white; border-bottom: 1px solid #345578; }
.banner-scene, .banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.banner-photo { z-index: -2; object-fit: cover; object-position: center 46%; opacity: .22; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #bde4ff0d, transparent 35%), radial-gradient(ellipse at 50% 42%, #164e9466, transparent 68%), linear-gradient(180deg, #071b35de, #0a2343b3 54%, #06172eef); pointer-events: none; }
.page-banner::before { content: ""; position: absolute; z-index: 0; inset: 18px 36px; border-inline: 1px solid #a7d4ff12; background: linear-gradient(90deg, transparent, #c0e5ff5c, transparent) center top / 62% 1px no-repeat, linear-gradient(90deg, transparent, #87beff3d, transparent) center bottom / 62% 1px no-repeat; pointer-events: none; }
.banner-content { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; max-width: 960px; margin-inline: auto; padding: 36px 24px 24px; text-align: center; }
.banner-top-group { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.banner-bottom-group { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; margin-top: auto; }
.banner-content .eyebrow { color: #b8d9ff; font-size: 11px; letter-spacing: .2em; text-align: center; margin-inline: auto; }
.banner-content h1 { margin-top: 10px; font-size: clamp(36px, 4vw, 52px); line-height: 1.25; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 18px #020b1838; text-align: center; margin-inline: auto; }
.banner-content h1 span { color: #aedcff; }
.banner-lead { margin-top: 18px; color: #deebff; font-size: 16px; line-height: 1.8; text-align: center; margin-inline: auto; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; margin-inline: auto; }
.hero-location { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; color: #b9cee8; font-size: 13px; margin-inline: auto; }
.hero-location .icon { width: 15px; height: 15px; }
.image-note { position: absolute; z-index: 3; right: 16px; bottom: 10px; max-width: calc(100% - 32px); color: #b8cee7; font-size: 9px; }
.hero-primary, .hero-secondary { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px 24px; border: 1px solid #e3f2ff; border-radius: 6px; font-size: 14px; font-weight: 500; transition: transform .2s var(--ease), background-color .2s; }
.hero-primary { color: #0a2648; background: linear-gradient(165deg, #fff, #c7e6ff); box-shadow: inset 0 1px 0 #fff, 0 4px 0 #7199c16b, 0 10px 24px #020c2059; }
.hero-secondary { color: #e2efff; border-color: #55769e; background: linear-gradient(130deg, #24476c, #152f50); box-shadow: var(--edge); }
.hero-primary:active, .hero-secondary:active { transform: translateY(2px) scale(.985); }
.breadcrumb { background: #0a192d; color: #a8bdd7; border-bottom: 1px solid #233954; font-size: 12px; }
.breadcrumb>.container { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 53px; padding-block: 10px; }
.breadcrumb strong { color: #e6f1ff; font-weight: 400; }
.breadcrumb a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }

/* The image geometry and native animation remain the supplied curved reel. */
.curved-reel { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.reel-viewer { position: absolute; inset: 0; opacity: 0; perspective-origin: 50% 50%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); transition: opacity .4s ease-out; }
.curved-reel.is-ready .reel-viewer { opacity: 1; }
.reel-fallback { position: absolute; top: 50%; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 20px; transform: translateY(-50%); }
.reel-fallback img { display: block; width: min(32vw, 400px); height: 190px; object-fit: cover; border-radius: 8px; opacity: .8; }
.curved-reel.is-ready .reel-fallback { display: none; }
.reel-tile { position: absolute; transform-style: preserve-3d; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; }
.curved-reel.is-playing .reel-tile { animation-play-state: running; }
.reel-slice { position: absolute; top: 0; overflow: hidden; backface-visibility: hidden; background: #234b79; }
.reel-slice.is-first { border-radius: 8px 0 0 8px; }
.reel-slice.is-last { border-radius: 0 8px 8px 0; }
.reel-image { position: absolute; top: 0; max-width: none; object-fit: cover; user-select: none; }
.reel-toggle { position: absolute; top: 26px; right: 54px; z-index: 4; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #4e6f96; border-radius: 6px; background: #142e50; color: #deefff; font-size: 12px; box-shadow: var(--edge); transition: background-color .2s; }
.reel-toggle .icon { width: 15px; height: 15px; }
.reel-toggle:hover, .reel-toggle[aria-pressed="true"] { background: #244a78; border-color: #98c3ed; }

/* A 270px side rail, with the light falling from its top edge. */
.careers-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 3.4vw, 64px); padding-block: 56px 96px; align-items: start; }
.careers-content { min-width: 0; }
.careers-sidebar { position: sticky; top: 118px; isolation: isolate; padding: 28px 22px 24px; border: 1px solid #3c5778; border-radius: 12px; background: linear-gradient(145deg, #1a385c, #10233e 42%, #0b1b30); box-shadow: inset 0 1px 0 #b3dfff77, 0 20px 42px #020b172e; }
.careers-sidebar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(128deg, #d2ecff12, transparent 32%); pointer-events: none; }
.careers-sidebar::after { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, #dcf4ff, #659eff, transparent); pointer-events: none; }
.sidebar-title { color: #f0f6ff; font-size: 25px; font-weight: 500; line-height: 1.5; padding-bottom: 23px; border-bottom: 1px solid #486385; letter-spacing: -.025em; }
.sidebar-title small { display: block; color: #a8c8eb; font-size: 10px; font-weight: 400; letter-spacing: .18em; margin-top: 8px; }
.section-nav { display: grid; gap: 5px; padding-top: 14px; }
.section-nav a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 12px; border: 1px solid transparent; border-radius: 5px; color: #b8cce5; font-size: 15px; transition: color .18s, background-color .18s; }
.section-nav a.is-current { color: #fff; background: linear-gradient(110deg, #2456a1, #1a3960); border-color: #5c87b4; box-shadow: var(--edge); font-weight: 500; }
.section-nav a:hover { color: #fff; background-color: #234267; }
.section-nav a>span { color: #9fcaf3; transition: transform .2s var(--ease); }
.sidebar-photo { overflow: hidden; margin: 22px 0 0; border-top: 1px solid #4c6684; border-radius: 0 0 4px 4px; }
.sidebar-photo img { display: block; width: 100%; height: 144px; object-fit: cover; opacity: .85; }
.sidebar-photo figcaption { padding-top: 8px; color: #adbed5; font-size: 11px; }
.sidebar-location { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #344e6e; color: #acbfd9; font-size: 12px; }
.sidebar-location>.icon { color: #9acfff; width: 18px; height: 18px; margin-top: 4px; }
.sidebar-location strong { color: #deedff; font-size: 14px; font-weight: 500; }
.sidebar-location p { margin-top: 6px; }

#jobs,
#benefits,
#steps,
#faq,
#hr-contact {
  scroll-margin-top: 130px;
}

/* Jobs: readable rows and deliberate hierarchy, without a second enclosing card. */
.jobs-section { position: relative; padding: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.section-heading h2 { margin-top: 5px; }
.section-intro { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 85ch; }
.historical-notice { margin-top: 24px; padding: 16px 20px; border-left: 2px solid #84b6ea; background: #12243b; color: #b7cbe3; font-size: 13px; }
.historical-notice strong { display: block; color: #dcecff; margin-bottom: 5px; font-size: 14px; font-weight: 500; }
.save-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px 13px; border: 1px solid #486184; border-radius: 6px; background: #132841; box-shadow: var(--edge); color: #c7ddf7; font-size: 13px; white-space: nowrap; transition: background-color .18s, border-color .18s; }
.save-filter .icon { width: 17px; height: 17px; }
.save-filter:hover, .save-filter[aria-pressed="true"] { background: #1d3f67; border-color: #92c6f9; color: white; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 215px; gap: 12px; margin-top: 30px; }
.search-input { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 18px; border: 1px solid #405a79; border-radius: 6px; background: #0c1b30; box-shadow: inset 0 2px 6px #030b1726; transition: border-color .18s; }
.search-input>.icon { width: 19px; height: 19px; color: #afc8e4; }
.search-input:focus-within { border-color: #b1d7ff; }
.search-input input { width: 100%; min-width: 0; height: 56px; padding: 12px 14px 12px 0; border: 0; border-radius: 5px; background: transparent; color: #e5f1ff; font-size: 16px; }
.search-input input::placeholder, .field input::placeholder { color: #9fb3cd; opacity: 1; }
.type-select select { width: 100%; height: 58px; padding: 10px 16px; border: 1px solid #405a79; border-radius: 6px; color: #d7e7fc; background: #12253e; font-size: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 5px 26px; margin-top: 22px; border-bottom: 1px solid #2c415d; }
.chip { min-height: 47px; padding: 8px 2px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #a9bdd8; font-size: 14px; transition: color .18s; }
.chip:hover { color: #e8f4ff; }
.chip[aria-pressed="true"] { color: #c1e3ff; border-bottom-color: #94ccff; font-weight: 500; }
.results-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-block: 24px 14px; color: #a3b7d1; font-size: 12px; }
.results-row>span:first-child { color: #d1e5ff; font-size: 14px; }
.jobs-list { display: grid; gap: 14px; }
.job-card { min-width: 0; border: 1px solid #334e6f; border-radius: 10px; background: linear-gradient(110deg, #152f4f, #10223a 40%, #0e2039); box-shadow: inset 0 1px 0 #a9d2ff22, 0 8px 22px #020b171f; }
.job-summary { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 160px; padding: 28px; border-radius: 9px; transition: background-color .2s; }
.job-number { align-self: start; color: #86b5e8; font-size: 29px; font-weight: 400; line-height: 1.5; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.job-title-group { min-width: 0; }
.job-card h3 { color: #f1f6ff; font-size: clamp(21px, 1.6vw, 26px); line-height: 1.6; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.job-english { margin-top: 4px; color: #acbfd8; font-size: 13px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: #b2c6df; font-size: 12px; }
.job-meta span { display: inline-flex; align-items: center; gap: 7px; }
.job-meta .icon { width: 15px; height: 15px; color: #8bb8e8; }
.job-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bookmark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 46px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #a3c0df; transition: background-color .18s, color .18s; }
.bookmark .icon { width: 19px; height: 19px; }
.bookmark:hover, .bookmark.is-saved { color: #e0f2ff; background: #21466f; border-color: #52759b; }
.bookmark.is-saved .icon { fill: #487dbc; }
.detail-button { --detail-rest-scale: 1; --detail-release-scale: 1.015; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; min-width: 151px; padding: 10px 17px; border: 1px solid #6c95c1; border-radius: 6px; background: linear-gradient(155deg, #284f79, #1b385c 65%); color: #ecf6ff; font-size: 13px; font-weight: 500; box-shadow: inset 0 1px 0 #daefff40, 0 3px 0 #0613255e; transition: transform .18s var(--ease), background-color .18s, border-color .18s; }
.detail-button .icon { display: block; width: 17px; height: 17px; }
.detail-button[aria-expanded="true"] { background: #254e7d; border-color: #a8d6ff; }
.detail-button:active { transform: translateY(2px) scale(.97); transition-duration: .08s; }
.detail-button.is-releasing { animation: detail-release .3s ease-out 1; }
@keyframes detail-release { 0% { transform: translateY(2px) scale(.97); } 60% { transform: translateY(-1px) scale(var(--detail-release-scale)); } 100% { transform: scale(var(--detail-rest-scale)); } }
.job-card.is-expanded { border-color: #628dbb; }
.job-card.is-expanded .job-summary { background: #23456b52; }
.job-details { padding: 30px 32px 32px; border-top: 1px solid #3b5676; border-radius: 0 0 9px 9px; background: #0c1b30; }
.source-badge { display: inline-block; padding: 4px 10px; margin-bottom: 14px; border: 1px solid #486281; border-radius: 3px; color: #c8ddf6; font-size: 12px; }
.job-description { max-width: 85ch; color: #bbcce1; font-size: 15px; }
.job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-block: 25px; padding-block: 22px; border-block: 1px solid #2a405b; }
.job-facts dt { color: #a4b8d2; font-size: 12px; }
.job-facts dd { margin: 5px 0 0; color: #e0edff; font-size: 14px; }
.job-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.job-detail-columns h4 { color: #e5f1ff; font-size: 16px; margin-bottom: 12px; font-weight: 500; }
.job-detail-columns .draft-label { display: block; margin-top: 4px; color: #a8bed8; font-size: 12px; font-weight: 400; }
.job-detail-columns ul { margin: 0; padding-left: 19px; color: #bbcce1; font-size: 14px; }
.job-detail-columns li { padding-left: 3px; margin-bottom: 9px; }
.job-detail-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.job-detail-footer>p { color: #a9bdd8; font-size: 12px; }
.listing-note { margin-top: 20px; padding-left: 16px; border-left: 1px solid #456484; color: #a8bad2; font-size: 12px; max-width: 110ch; }
.empty { padding: 38px 22px; border-block: 1px solid #385370; background: #10233c; text-align: center; }
.empty h3 { color: #e7f3ff; font-size: 23px; font-weight: 500; }
.empty p { margin-block: 12px 24px; color: #b6cae3; font-size: 14px; }

/* Benefits: open composition, large blue-metal emblems and no visible scrollbar. */
.benefits-section { border: 0; background: transparent; margin-top: var(--section-space); padding: 0; }
.benefits-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.benefits-heading>div:first-child { min-width: 0; }
.benefits-heading h2 { margin-top: 6px; }
.benefits-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.carousel-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #527397; border-radius: 50%; background: linear-gradient(145deg, #264c77, #142d4d); box-shadow: var(--edge); color: #deefff; transition: transform .18s var(--ease), background-color .18s; }
.carousel-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
.carousel-arrow[aria-disabled="false"]:hover { background: #305e93; }
.carousel-arrow[aria-disabled="false"]:active { transform: translateY(1px) scale(.96); }
.benefits-carousel { min-width: 0; margin-top: 24px; }
.benefits-track { --benefit-width: min(320px, 80%); display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding: 18px 0 26px; margin: 0; list-style: none; scrollbar-width: none; }
.benefits-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.benefits-track.uses-wheel-scroll { scroll-snap-type: none; scroll-behavior: auto; }
.benefits-track::before, .benefits-track::after { content: ""; flex: 0 0 calc((100% - var(--benefit-width)) / 2 - 16px); pointer-events: none; }
.benefit-card { position: relative; flex: 0 0 var(--benefit-width); min-width: 0; padding: 18px 12px 14px; scroll-snap-align: center; border: 0; background: transparent; text-align: center; }
.benefit-number { display: none; }
.benefit-emblem { position: relative; display: grid; place-items: center; width: min(260px, 88%); aspect-ratio: 1; margin: 18px auto 44px; border: 1px solid #78a8d6; border-radius: 50%; background: radial-gradient(circle at 32% 19%, #679bcc 0%, #305d8e 24%, #16395f 59%, #0a203b 88%); color: #e3f3ff; box-shadow: inset 0 2px 1px #e9f7ffae, inset 2px 0 1px #8dbde850, inset 0 -8px 22px #020c254a, 0 16px 28px #020b1833; transform: scale(calc(var(--benefit-scale, .9) + var(--benefit-hover, 0))); transform-origin: center; transition: transform .12s var(--ease); }
.benefit-emblem::before { content: ""; position: absolute; inset: 9px; border: 1px solid #aacfee50; border-radius: inherit; background: linear-gradient(136deg, #e4f3ff1f, transparent 37%, transparent 70%, #1c7ee81a); pointer-events: none; }
.benefit-emblem::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; background: linear-gradient(130deg, #fff5 2%, #b6e3ff08 21%, transparent 40%); pointer-events: none; }
.benefit-emblem svg { position: relative; width: 56%; height: 56%; z-index: 1; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.benefit-category { color: #a8c9ed; font-size: 10px; font-weight: 500; letter-spacing: .12em; line-height: 1.7; min-height: 17px; }
.benefit-card h3 { display: flex; align-items: center; justify-content: center; min-height: 72px; margin-top: 11px; color: #e9f4ff; font-size: 21px; font-weight: 500; line-height: 1.65; }
.benefits-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; }
.benefits-hint { display: inline-flex; gap: 10px; align-items: center; color: #a6bbd6; font-size: 12px; }
.benefits-hint>span { color: #a3d4ff; font-size: 24px; line-height: 1; }
.benefits-progress { display: none; }
.benefits-position { min-width: 85px; text-align: right; color: #bfdfff; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .07em; }

/* Open numbered steps and fine FAQ rules alternate with the more expressive surfaces. */
.steps-section, .faq-section, .hr-section { margin-top: var(--section-space); padding-top: 36px; border-top: 1px solid #36516f; }
.steps-section h2, .faq-section h2, .hr-section h2 { margin-top: 7px; }
.steps-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps-list li { position: relative; min-width: 0; padding: 0 0 0 20px; border-left: 1px solid #3e5a7d; }
.steps-list li::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 36px; background: #b3d9ff; }
.step-number { display: block; color: #9cc9f6; font-size: 38px; font-weight: 400; line-height: 1.2; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.steps-list h3 { color: #e4f2ff; font-size: 18px; font-weight: 500; margin-top: 20px; }
.steps-list p { font-size: 14px; color: #aebfd8; margin-top: 10px; line-height: 1.9; }
.faq-list { margin-top: 24px; border-top: 1px solid #2c4562; }
.faq-list details { border-bottom: 1px solid #2c4562; transition: background-color .18s; }
.faq-list details[open] { background: #10233c; }
.faq-list summary { position: relative; cursor: pointer; list-style: none; padding: 24px 58px 24px 14px; color: #e1edff; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 14px; top: 22px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #49698e; border-radius: 50%; background: #162d4a; color: #a9d6ff; font-size: 23px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; background: #284c75; color: white; }
.faq-list details p { max-width: 88ch; padding: 0 58px 24px 14px; color: #b8cde6; font-size: 15px; }

/* HR is the last content section; the existing notice and address stay readable. */
.hr-contact-card { position: relative; isolation: isolate; overflow: hidden; margin-top: 28px; padding: 36px 40px; border: 1px solid #527fac; border-radius: 10px; background: linear-gradient(112deg, #174a87, #123660 50%, #0c2442); box-shadow: inset 0 1px 0 #c4e6ff85, 0 18px 35px #020c1c26; }
.hr-contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(126deg, #e0f1ff15, transparent 36%), linear-gradient(128deg, transparent 70%, #529de71f 70.15%, transparent 83%); pointer-events: none; }
.hr-contact-card::after { content: ""; position: absolute; right: 32px; top: 32px; bottom: 32px; width: 26%; border-right: 1px solid #b2dfff30; border-top: 1px solid #b2dfff30; transform: skewX(-16deg); pointer-events: none; }
.hr-contact-label { color: #bad8f7; font-size: 13px; }
.hr-contact-card h3 { margin-top: 10px; color: #f1f8ff; font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.hr-contact-card>p { max-width: 70%; margin-top: 10px; color: #c1dbf6; font-size: 15px; }
.contact-pending { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #6489ae66; color: #d0e4fa; font-size: 12px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; background: #e6c492; border-radius: 50%; }
.company-address { display: flex; gap: 14px; margin-top: 28px; padding-left: 3px; }
.company-address>.icon { color: #9ed1ff; margin-top: 4px; }
.company-address strong { font-size: 15px; font-weight: 500; color: #dcecff; }
.company-address p { margin-top: 9px; font-size: 14px; color: #b0c2db; line-height: 1.9; }
.source-reference { margin-top: 30px; padding-top: 16px; border-top: 1px solid #304967; }
.source-reference summary { cursor: pointer; color: #b7d8fb; font-size: 12px; padding-block: 9px; }
.source-reference-body { padding-block: 12px; }
.source-reference-body p { max-width: 65ch; color: #afc4df; font-size: 12px; }
.source-reference-body a { display: block; width: fit-content; max-width: 100%; margin-block: 16px; }
.source-reference-body img { display: block; width: min(100%, 405px); height: auto; border: 1px solid #6383a5; }

/* A generous signature closes the page, instead of another card grid. */
.footer { position: relative; color: #edf6ff; background: #0a2960; border-top: 1px solid #0f3d8a; box-shadow: inset 0 1px 0 #d5efff12; }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 48px; padding-block: 52px 44px; width: 100%; box-sizing: border-box; }
.footer-brand { color: #d0e9ff; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.footer-brand+small { display: block; margin-top: 8px; color: #a7c8eb; font-size: 11px; letter-spacing: .15em; }
.footer-main>div>p:last-child { margin-top: 16px; color: #cbd5e1; font-size: 14px; line-height: 1.8; }
.footer-main nav { display: grid; grid-template-columns: repeat(2, minmax(130px, auto)); gap: 18px 48px; padding-top: 8px; font-size: 14px; line-height: 1.8; color: #c9dff7; }
.footer-main nav a { display: inline-block; padding: 2px 4px; transition: color .18s; }
.footer-main nav a:hover { text-decoration: underline; text-underline-offset: 5px; color: white; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #cbd5e1; font-size: 12px; width: 100%; box-sizing: border-box; }
.back-top { position: fixed; bottom: 20px; right: 20px; z-index: 15; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #8dbce5; border-radius: 7px; background: linear-gradient(145deg, #2a5b91, #163655); color: white; box-shadow: var(--edge), 0 6px 20px #020a1b33; transition: transform .18s; }

/* Controls: the specular sweep only runs on deliberate hover. */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 23px; border: 1px solid #72a6e4; border-radius: 6px; background: linear-gradient(155deg, #3067c6, #164286); color: #fff; font-size: 14px; font-weight: 500; box-shadow: inset 0 1px 0 #d2e9ff66, 0 3px 0 #0610204d; transition: transform .18s var(--ease), border-color .18s; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 20%, #eff8ff22 50%, transparent 80%); opacity: 0; transform: translateX(-100%); transition: transform .5s var(--ease), opacity .2s; }
.button:hover { border-color: #bee2ff; }
.button:active { transform: translateY(2px) scale(.98); }
.button .icon { transition: transform .18s var(--ease); }
.button-light, .button-outline { color: #d2e8ff; border-color: #56789f; background: linear-gradient(155deg, #1e3e63, #152d4a); box-shadow: var(--edge); }

/* The same surface language carries through to details and the demo form. */
dialog:not(.bg-white):not(.fixed):not(.bg-transparent) { width: min(760px, calc(100% - 28px)); max-height: 90dvh; padding: 0; border: 1px solid #648ab4; border-radius: 12px; background: #0e2038; color: var(--ink); box-shadow: inset 0 1px 0 #c9e7ff75, 0 26px 70px #0207128c; }
dialog.bg-white { background: #ffffff !important; color: #0f172a !important; border: 1px solid #e2e8f0; }
dialog::backdrop { background: #030b18c9; }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid #3c5879; background: #142d4b; box-shadow: var(--edge); }
.dialog-bar>span { color: #c8e1ff; font-size: 11px; }
.close-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #587ca6; border-radius: 6px; background: #203f63; color: #e7f5ff; }
.close-button:hover { background: #315780; }
.dialog-body { padding: 34px; }
.dialog-body h2 { margin-top: 8px; font-size: 32px; line-height: 1.5; }
.detail-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 26px; padding: 23px; border: 1px solid #3b577a; border-radius: 6px; background: #142e4b; box-shadow: var(--edge); }
.detail-box small { display: block; margin-bottom: 6px; color: #adcae9; font-size: 12px; }
.detail-box strong { color: #e1f0ff; font-size: 14px; font-weight: 500; }
.detail-heading { margin-top: 26px; color: #e0eeff; font-size: 18px; font-weight: 500; }
.detail-list { color: #b8cce5; padding-left: 21px; font-size: 14px; }
.detail-list li { margin-bottom: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.demo-note { padding: 16px 18px; margin-top: 24px; border-left: 2px solid #87b6e8; background: #152e49; color: #c2dbf5; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.field { display: grid; gap: 9px; min-width: 0; font-size: 14px; color: #cde0f7; }
.field.full { grid-column: 1 / -1; }
.field input { width: 100%; min-width: 0; padding: 13px; border: 1px solid #547394; border-radius: 6px; background: #0a1b30; color: #e8f3ff; font-size: 16px; }
.field input[type="file"] { font-size: 13px; }
.field input::file-selector-button { padding: 7px 12px; margin-right: 12px; border: 1px solid #6387af; border-radius: 4px; background: #244a73; color: #edf6ff; font: inherit; cursor: pointer; }
.field small { color: #adbed6; font-size: 12px; }
.field .error { color: #ffb5b5; }
.field .error:empty { display: none; }
.success { text-align: center; padding: 20px 5px; }
.success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border: 1px solid #82b6e6; border-radius: 50%; background: linear-gradient(135deg, #3c72a9, #183f6b); color: white; box-shadow: inset 0 2px 0 #e0f1ff69; }
.success-icon .icon { width: 32px; height: 32px; }
.success p { color: #bdcfe7; font-size: 15px; margin-top: 18px; }
.success .button { margin-top: 28px; }

/* Existing one-time section reveals; no new timers, scroll or pointer handlers. */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { transform: translateY(-2px); }
  .hero-primary:hover, .hero-secondary:hover, .back-top:hover { transform: translateY(-2px); }
  .section-nav a:hover>span { transform: translateX(3px); }
  .job-summary:hover { background: #3259821a; }
  .detail-button:hover { --detail-rest-scale: 1.025; --detail-release-scale: 1.04; transform: scale(var(--detail-rest-scale)); border-color: #b5ddff; }
  .benefit-emblem:hover { --benefit-hover: .055; }
  .button:hover::before { opacity: 1; transform: translateX(100%); }
  .button:hover .icon { transform: translateX(3px); }
}
.detail-button:active { transform: translateY(2px) scale(.97); }
.hero-primary:active, .hero-secondary:active { transform: translateY(2px) scale(.985); }

/* Layout changes are kept at the same menu breakpoint as script.js. */
@media (max-width: 1100px) {
  .header-location { display: none; }
  .nav { gap: 24px; }
  .nav a { font-size: 14px; }
  .careers-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
  .careers-sidebar { padding: 25px 18px; }
  .sidebar-title { font-size: 23px; }
  .section-nav a { font-size: 14px; padding-inline: 10px; }
  .sidebar-photo img { height: 126px; }
  .banner-content h1 { font-size: 50px; }
  .reel-toggle { top: auto; bottom: 22px; right: 24px; }
  .image-note { right: auto; left: 24px; }
  .search-bar { grid-template-columns: minmax(0, 1fr) 185px; }
  .type-select select { font-size: 13px; padding-inline: 10px; }
  .job-summary { grid-template-columns: 38px minmax(0, 1fr); gap: 12px 18px; padding: 24px; }
  .job-actions { grid-column: 2; justify-content: flex-end; }
  .job-number { font-size: 27px; }
  .job-card h3 { font-size: 23px; }
  .filter-row { gap: 5px 20px; }
  .job-details { padding: 26px; }
  .hr-contact-card { padding: 30px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .job-detail-columns { grid-template-columns: 1fr; gap: 24px; }
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .steps-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
  .steps-list h3 { margin-top: 0; }
  .benefits-heading { align-items: flex-start; }
  .benefits-controls { gap: 6px; }
  .carousel-arrow { width: 44px; height: 44px; }
}
@media (min-width: 901px) and (max-height: 850px) {
  .sidebar-photo { display: none; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 82px; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: -36px; right: -36px; margin: 0; padding: 12px 36px; background: #0e233b; border-block: 1px solid #486586; box-shadow: 0 16px 22px #02081652; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .nav a { min-height: 48px; padding: 12px 0; font-size: 15px; }
  .nav-current::after { display: none; }
  .careers-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 26px; }
  .careers-sidebar { position: static; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .careers-sidebar::before, .careers-sidebar::after, .sidebar-title, .sidebar-photo, .sidebar-location { display: none; }
  .section-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; }
  .section-nav a { min-height: 44px; padding: 8px 12px; border: 1px solid #36516f; border-radius: 5px; background: #11283f; font-size: 13px; }
  .section-nav a.is-current { background: #254c78; border-color: #719ac6; }
  .section-nav a::before, .section-nav a>span { display: none; }
  .footer-main { gap: 28px; }
  .footer-main nav { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 700px) {
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .steps-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; }
  .steps-list h3 { margin-top: 0; }
  .steps-list p { margin-top: 6px; }
  .benefits-track { --benefit-width: min(320px, 76%); }
  .benefits-heading { align-items: flex-start; gap: 16px; }
  .benefits-controls { gap: 7px; }
  .carousel-arrow { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 100px; }
  body { font-size: 15px; }
  .container { width: calc(100% - 36px); }
  .demo-bar { font-size: 10px; line-height: 1.8; padding-block: 7px; }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand { gap: 11px; }
  .brand-mark { width: 35px; height: 42px; }
  .brand-name { font-size: 20px; }
  .brand-name>.brand-subtitle { font-size: 8px; letter-spacing: .07em; }
  .brand-name>small { margin-top: 6px; font-size: 8px; }
  .nav { left: -18px; right: -18px; padding-inline: 18px; }
  .page-banner { min-height: 620px; }
  .page-banner::before { inset: 14px 18px; }
  .banner-content { height: 620px; padding: 31px 0 53px; }
  .banner-content .eyebrow { max-width: calc(100% - 40px); font-size: 8px; line-height: 1.8; letter-spacing: .06em; }
  .banner-content h1 { margin-top: 15px; font-size: clamp(36px, 9.6vw, 43px); line-height: 1.3; }
  .banner-lead { max-width: 320px; font-size: 13px; }
  .hero-actions { margin-top: 10px; gap: 9px; }
  .hero-primary, .hero-secondary { min-height: 46px; padding: 10px 13px; gap: 9px; font-size: 12px; }
  .hero-location { margin-top: 9px; font-size: 11px; line-height: 1.5; }
  .reel-toggle { top: auto; right: 12px; bottom: 6px; min-height: 44px; padding: 5px 9px; font-size: 10px; }
  .image-note { left: 18px; right: auto; bottom: 13px; max-width: calc(100% - 122px); font-size: 8px; }
  .reel-fallback { gap: 12px; }
  .reel-fallback img { width: 60vw; height: 150px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb>.container { min-height: 49px; gap: 9px; }
  .careers-layout { gap: 30px; padding-block: 20px 60px; }
  .section-nav { gap: 7px; }
  .section-nav a { padding-inline: 10px; font-size: 12px; }
  .section-heading { gap: 12px; align-items: start; }
  .section-heading h2 { font-size: 31px; }
  .eyebrow { font-size: 10px; letter-spacing: .11em; }
  .section-intro { margin-top: 12px; font-size: 14px; }
  .save-filter { margin-top: 7px; padding: 8px 10px; gap: 6px; font-size: 12px; }
  .historical-notice { margin-top: 22px; padding: 14px 16px; font-size: 12px; }
  .historical-notice strong { font-size: 13px; }
  .search-bar { grid-template-columns: minmax(0, 1fr); margin-top: 24px; gap: 10px; }
  .search-input input { height: 52px; font-size: 16px; }
  .search-input input::placeholder { font-size: 14px; }
  .type-select select { height: 52px; padding-inline: 14px; font-size: 16px; }
  .filter-row { gap: 3px 16px; margin-top: 17px; }
  .chip { font-size: 13px; }
  .results-row { font-size: 11px; padding-top: 20px; }
  .results-row>span:first-child { font-size: 13px; }
  .job-summary { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 22px 18px 20px; }
  .job-number { font-size: 23px; line-height: 1.6; }
  .job-card h3 { font-size: 21px; }
  .job-english { font-size: 12px; }
  .job-meta { gap: 7px 13px; font-size: 11px; margin-top: 14px; }
  .job-meta .icon { width: 14px; height: 14px; }
  .job-actions { grid-column: 1 / -1; padding-top: 12px; margin-top: 4px; border-top: 1px solid #345372; }
  .detail-button { min-width: 154px; font-size: 13px; }
  .job-details { padding: 23px 18px; }
  .job-description { font-size: 14px; }
  .job-facts { grid-template-columns: 1fr; gap: 17px; }
  .job-detail-columns { grid-template-columns: 1fr; gap: 20px; }
  .job-detail-footer { align-items: stretch; flex-direction: column; gap: 14px; }
  .job-detail-footer .button { width: 100%; }
  .listing-note { font-size: 12px; padding-left: 12px; }
  .benefits-heading { flex-wrap: wrap; }
  .benefits-heading h2 { max-width: 340px; font-size: 28px; }
  .benefits-controls { margin-left: auto; }
  .benefit-card { padding-inline: 6px; }
  .benefit-card h3 { font-size: 20px; }
  .benefit-category { font-size: 9px; }
  .benefits-footer { gap: 14px; }
  .benefits-hint { font-size: 11px; gap: 8px; }
  .benefits-position { font-size: 11px; min-width: 76px; }
  .steps-section, .faq-section, .hr-section { padding-top: 28px; }
  .steps-list li { padding-left: 16px; grid-template-columns: 38px minmax(0, 1fr); gap: 17px; }
  .step-number { font-size: 32px; }
  .steps-list h3 { font-size: 18px; }
  .steps-list p { font-size: 14px; }
  .faq-list summary { font-size: 16px; padding: 20px 46px 20px 8px; }
  .faq-list summary::after { right: 7px; top: 21px; width: 28px; height: 28px; }
  .faq-list details p { padding: 0 18px 22px 8px; font-size: 14px; }
  .hr-contact-card { padding: 26px 22px; }
  .hr-contact-card::after { right: 20px; width: 16%; opacity: .6; }
  .hr-contact-card h3 { font-size: 31px; }
  .hr-contact-card>p { max-width: 100%; font-size: 14px; }
  .contact-pending { font-size: 11px; }
  .company-address strong { font-size: 14px; }
  .company-address p { font-size: 13px; }
  .footer-main { flex-direction: column; gap: 32px; padding-block: 35px 32px; }
  .footer-brand { font-size: 50px; }
  .footer-main>div>p:last-child { font-size: 13px; }
  .footer-main nav { grid-template-columns: repeat(2, auto); gap: 14px 25px; font-size: 13px; padding: 0; }
  .footer-bottom { font-size: 10px; }
  .back-top { bottom: 12px; right: 12px; }
  .dialog-bar { padding: 10px 16px; gap: 10px; }
  .dialog-bar>span { font-size: 10px; }
  .dialog-body { padding: 25px 20px; }
  .dialog-body h2 { font-size: 28px; }
  .detail-box, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .detail-box { padding: 18px; }
  .demo-note { font-size: 12px; padding: 14px; }
  .dialog-actions .button { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 18px; }
  .brand-mark { width: 31px; }
  .brand { gap: 8px; }
  .brand-name>small { font-size: 7px; }
  .section-heading h2 { font-size: 28px; }
  .save-filter { padding-inline: 8px; font-size: 11px; }
  .hero-primary, .hero-secondary { padding-inline: 11px; font-size: 11px; }
  .job-summary { padding-inline: 14px; }
  .job-card h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* EAST MAC shared design system: aligns this careers page with the main site. */
:root {
  color-scheme: light;
  --navy: #0f3d8a;
  --blue: #2563b8;
  --blue-dark: #0a2960;
  --blue-light: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --accent: #0f3d8a;
  --font: "Inter", "Noto Sans Thai", sans-serif;
  --edge: inset 0 1px 0 rgba(255, 255, 255, .8);
}
body { background: var(--bg); color: var(--ink); }
h2 { color: #0f172a; font-weight: 700; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; padding: 3px; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; }
.demo-bar { background: #eff6ff; color: #36516f; border-color: #bfdbfe; }
.header { background: rgba(255, 255, 255, .97); border-color: #dbe4f0; box-shadow: 0 2px 15px -3px rgba(15, 61, 138, .08); }
.header::after { background: linear-gradient(90deg, transparent 3%, #bfdbfe 32%, #0f3d8a 62%, transparent 96%); }
.brand { color: #0f172a; }
.brand-name { font-weight: 700; letter-spacing: .045em; }
.brand-name>.brand-subtitle { color: #475569; }
.brand-name>small, .header-location { color: #64748b; }
.header-location { border-color: #dbe4f0; }
.nav a { color: #475569; }
.nav a:hover, .nav a.nav-current { color: #0f3d8a; }
.nav-current::after { background: #0f3d8a; box-shadow: none; }
.menu-toggle { border-color: #cbd5e1; background: #f8fafc; color: #0f3d8a; }
.page-banner { min-height: 630px; border-color: #dbe4f0; }
.banner-content { height: 100%; min-height: 570px; justify-content: space-between; }
.page-banner::after { background: linear-gradient(120deg, rgba(15,61,138,.15), transparent 38%), linear-gradient(180deg, rgba(10,41,96,.76), rgba(15,61,138,.86)); }
.banner-content .eyebrow, .banner-content h1 span { color: #dbeafe; }
.banner-content h1 { font-weight: 800; }
.hero-primary { color: #fff; border-color: #0f3d8a; background: #0f3d8a; box-shadow: 0 5px 14px rgba(15, 61, 138, .25); }
.hero-secondary { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.breadcrumb { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.breadcrumb strong, .breadcrumb a:hover { color: #0f3d8a; }
.careers-sidebar { border-color: #dbe4f0; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .07); }
.careers-sidebar::before { background: linear-gradient(128deg, #eff6ff, transparent 45%); }
.careers-sidebar::after { background: linear-gradient(90deg, transparent, #0f3d8a, #bfdbfe, transparent); }
.sidebar-title { color: #0f172a; border-color: #e2e8f0; font-weight: 700; }
.sidebar-title small, .sidebar-location, .sidebar-photo figcaption { color: #64748b; }
.section-nav a { color: #475569; border-radius: 8px; transition: all .2s; }
.section-nav a.is-current { color: #0f3d8a !important; background: #eff6ff !important; border: 1px solid #bfdbfe !important; border-left: 5px solid #0f3d8a !important; font-weight: 700 !important; box-shadow: 0 1px 4px rgba(15, 61, 138, 0.1) !important; }
.section-nav a.is-current::before, .section-nav a::before { display: none !important; content: none !important; }
.section-nav a:hover { color: #0f3d8a; background: #f0f7ff; }
.section-nav a>span, .sidebar-location>.icon { color: #0f3d8a; }
.sidebar-photo, .sidebar-location { border-color: #e2e8f0; }
.sidebar-location strong { color: #0f172a; }
.eyebrow { color: #0f3d8a; font-weight: 700; }
.section-intro { color: #64748b; }
.historical-notice { border-color: #f59e0b; background: #fffbeb; color: #78350f; }
.historical-notice strong { color: #92400e; }
.save-filter, .search-input, .type-select select { border-color: #cbd5e1; background: #fff; color: #334155; box-shadow: none; }
.save-filter:hover, .save-filter[aria-pressed="true"] { background: #eff6ff; border-color: #93c5fd; color: #0f3d8a; }
.search-input input { color: #0f172a; }
.search-input input::placeholder, .field input::placeholder { color: #94a3b8; }
.filter-row, .job-facts, .steps-section, .faq-section, .hr-section { border-color: #e2e8f0; }
.chip { color: #64748b; }
.chip:hover, .chip[aria-pressed="true"] { color: #0f3d8a; }
.chip[aria-pressed="true"] { border-color: #0f3d8a; }
.results-row, .results-row>span:first-child { color: #64748b; }
.job-card { border-color: #dbe4f0; background: #fff; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.job-card.is-expanded { border-color: #93c5fd; }
.job-card.is-expanded .job-summary, .job-summary:hover { background: #f8fbff; }
.job-number, .job-meta .icon { color: #0f3d8a; }
.job-card h3, .job-facts dd, .job-detail-columns h4, .empty h3 { color: #0f172a; font-weight: 700; }
.job-english, .job-meta, .job-description, .job-detail-columns ul, .listing-note, .job-detail-footer>p, .job-facts dt { color: #64748b; }
.bookmark { color: #64748b; }
.bookmark:hover, .bookmark.is-saved { color: #0f3d8a; background: #eff6ff; border-color: #bfdbfe; }
.bookmark.is-saved .icon { fill: #0f3d8a; }
.detail-button, .button { border-color: #0f3d8a; background: #0f3d8a; color: #fff; box-shadow: 0 3px 0 #0a2960; }
.detail-button[aria-expanded="true"], .button:hover { background: #0a2960; border-color: #0a2960; }
.job-details, .empty { background: #f8fafc; border-color: #e2e8f0; }
.source-badge { border-color: #bfdbfe; background: #eff6ff; color: #0f3d8a; }
.benefit-emblem { border-color: #93c5fd; background: radial-gradient(circle at 32% 19%, #dbeafe, #93c5fd 35%, #2563b8 70%, #0f3d8a); color: #fff; }
.benefit-category, .benefits-hint, .benefits-position, .steps-list p, .faq-list details p { color: #64748b; }
.benefit-card h3, .steps-list h3, .faq-list summary { color: #0f172a; font-weight: 700; }
.steps-list li { border-color: #dbe4f0; }
.steps-list li::before { background: #0f3d8a; }
.step-number { color: #0f3d8a; }
.faq-list, .faq-list details { border-color: #e2e8f0; }
.faq-list details[open] { background: #f8fafc; }
.faq-list summary::after { border-color: #bfdbfe; background: #eff6ff; color: #0f3d8a; }
.faq-list details[open] summary::after { background: #0f3d8a; color: #fff; }
.hr-contact-card { border-color: #1d5fb8; background: linear-gradient(112deg, #0f3d8a, #1d5fb8); box-shadow: 0 14px 28px rgba(15,61,138,.2); }
.footer { background: #0a2960; border-color: #0f3d8a; }
.footer-brand, .footer-main nav, .footer { color: #fff; }
.footer-brand+small, .footer-main>div>p:last-child, .footer-bottom { color: #cbd5e1; }
.footer-bottom { border-color: rgba(255,255,255,.2); }
.footer-brand { max-width: 620px; font-size: clamp(24px, 2.7vw, 40px); letter-spacing: -.03em; line-height: 1.4; }
.location-section { padding: 0 0 72px; background: #fff; }
.location-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 30px 34px; border: 1px solid #dbe4f0; border-radius: 16px; background: #f8fafc; }
.location-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eff6ff; color: #0f3d8a; }
.location-icon .icon { width: 25px; height: 25px; }
.location-copy h2 { margin-top: 3px; font-size: clamp(20px, 2vw, 27px); }
.location-copy>p:last-child { margin-top: 7px; color: #64748b; font-size: 14px; line-height: 1.8; }
.location-map-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px; background: #0f3d8a; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s; }
.location-map-link:hover { background: #0a2960; }
.location-map-link .icon { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .location-section { padding-bottom: 52px; }
  .location-card { grid-template-columns: auto minmax(0, 1fr); padding: 24px; }
  .location-map-link { grid-column: 1 / -1; width: 100%; }
  .footer-brand { font-size: 25px; }
}
.back-top { border-color: #0f3d8a; background: #0f3d8a; }
@media (max-width: 820px) {
  .nav { background: #fff; border-color: #dbe4f0; box-shadow: 0 12px 24px rgba(15,23,42,.1); }
  .section-nav a { border-color: #e2e8f0; background: #fff; }
}
/* =========================================================
   3D Tilt Effect สำหรับการ์ดตำแหน่งงาน (เพิ่มต่อท้ายไฟล์)
   ========================================================= */
.job-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 0.68, 0.18, 1), box-shadow 0.4s ease;
}

/* เพิ่มเงาให้ดูเด่นขึ้นเวลา Hover */
.job-card:hover {
  box-shadow: inset 0 1px 0 #a9d2ff22, 0 20px 40px #020b174d;
  z-index: 10;
}

/* ยกเลิกเอฟเฟกต์ 3D ชั่วคราวเมื่อกดดูรายละเอียด (การ์ดขยาย) */
.job-card.is-expanded {
  transform: none !important;
}

/* ดันเนื้อหาภายในให้ลอยขึ้นมาด้านหน้า (Parallax) */
.job-summary {
  transform: translateZ(20px);
}

/* ดันกลุ่มปุ่มกดให้ลอยสูงที่สุด */
.job-actions {
  transform: translateZ(35px);
}

/* =========================================================
   Visual CMS Styles for Admin Mode (index.html)
   ========================================================= */
.cms-admin-active [data-cms-text] {
  position: relative;
  outline: 1.5px dashed rgba(15, 61, 138, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
  transition: all 0.2s ease;
}

.cms-admin-active [data-cms-text]:hover {
  outline: 2px dashed #0f3d8a;
  background-color: rgba(15, 61, 138, 0.06);
}

.cms-admin-active [data-cms-text]:focus {
  outline: 2px solid #0f3d8a;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 61, 138, 0.15);
}

.cms-change-img-overlay {
  display: none;
}

.cms-admin-active .cms-change-img-overlay {
  display: flex !important;
}

/* ปุ่มลบและเพิ่มบล็อกสำหรับแอดมิน - ซ่อนเด็ดขาดเมื่อเป็นสิทธิ์ลูกค้า */
.cms-del-item-btn,
button.cms-del-item-btn,
.cms-add-btn,
button.cms-add-btn {
  display: none !important;
}

body.cms-admin-active .cms-del-item-btn,
body.cms-admin-active button.cms-del-item-btn,
.cms-admin-active .cms-del-item-btn,
.cms-admin-active button.cms-del-item-btn {
  display: inline-flex !important;
}

body.cms-admin-active .cms-add-btn,
body.cms-admin-active button.cms-add-btn,
.cms-admin-active .cms-add-btn,
.cms-admin-active button.cms-add-btn {
  display: inline-flex !important;
}

/* แถบเลือกเปลี่ยนลิงก์หมวดหมู่สำหรับแอดมิน - ซ่อนจากลูกค้าเด็ดขาด */
.cms-link-editor,
div.cms-link-editor,
.cms-quick-opt-editor,
div.cms-quick-opt-editor,
.admin-only-tools,
div.admin-only-tools {
  display: none !important;
}

body.cms-admin-active .cms-link-editor,
body.cms-admin-active div.cms-link-editor,
body.cms-admin-active .cms-quick-opt-editor,
body.cms-admin-active div.cms-quick-opt-editor,
body.cms-admin-active .admin-only-tools,
body.cms-admin-active div.admin-only-tools {
  display: inline-flex !important;
}

.cms-item-container {
  position: relative;
  transition: all 0.2s ease;
}

.cms-admin-active .cms-item-container:hover {
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.4);
}

/* =====================================================================
   CAREERS PAGE ADMIN STYLES (ปุ่มจัดการตำแหน่งงานและฟอร์มแอดมิน)
   ===================================================================== */
.cms-job-controls {
  display: none !important;
  align-items: center;
  gap: 6px;
}

body.cms-admin-active .cms-job-controls {
  display: inline-flex !important;
}

.cms-edit-job-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 9999px;
  background-color: #4338ca;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cms-edit-job-btn:hover {
  background-color: #3730a3;
  transform: translateY(-1px);
}

.cms-del-job-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 9999px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cms-del-job-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.benefit-card.cms-item-container,
.steps-list li.cms-item-container,
.faq-list details.cms-item-container {
  position: relative;
}

#adminJobModal, #adminBenefitModal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  z-index: 1000 !important;
}

#adminJobModal::backdrop, #adminBenefitModal::backdrop {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
}


/* UX/UI รอบที่ 1: Modal แบบ native <dialog>, ตัวเลขสเปก, และระยะเลื่อนข้ามส่วนไม่ให้ถูกแถบ Header/มือถือบัง */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}
html {
  scroll-padding-top: 6rem;
}
@media (max-width: 767px) {
  html {
    scroll-padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }
}
#modalSpecBody td {
  font-variant-numeric: tabular-nums;
}

/* ป้องกันธีมเข้มเดิมในไฟล์นี้เขียนทับหน้า Corporate สีขาว-น้ำเงิน */
body.bg-white {
  color-scheme: light;
  background-color: #ffffff;
  color: #0f172a;
}
body.bg-white h2:not([class*="text-"]) {
  color: #0f172a;
}
