/* =========================================================
   WINNER — shared styles
   ========================================================= */
:root {
  --navy: #0b2f86;
  --navy-700: #0a2a78;
  --navy-900: #071d57;
  --blue: #2563eb;
  --yellow: #f7c21a;
  --yellow-600: #e5ad00;
  --gold: #d4a437;
  --purple: #3b1460;
  --text: #2b2f3a;
  --muted: #6b7280;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --hot-bg: #f7ebc9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 47, 134, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 47, 134, 0.16);
  --font: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; color: var(--navy); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }

.section-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--navy); }
.section-sub { color: var(--muted); font-size: 15px; max-width: 760px; margin: 12px auto 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.title-underline { display: block; width: 280px; max-width: 70%; height: 3px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--yellow) 15%, var(--yellow) 85%, transparent); border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: .2s ease;
}
.btn-yellow { background: var(--yellow); color: var(--navy-900); }
.btn-yellow:hover { background: var(--yellow-600); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 999px; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; justify-self: start; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; }
.main-nav > a, .nav-dropdown > .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 34px; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: #2b2f3a; position: relative; background: none; border: 0; cursor: pointer;
}
.main-nav > * + *::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: #cfd5e3;
}
.main-nav > a, .nav-dropdown { position: relative; }
.main-nav > a:hover, .nav-dropdown > .nav-link:hover, .main-nav .active { color: var(--blue); }
.main-nav .active { font-weight: 600; }
.nav-dropdown .chev { width: 12px; height: 12px; transition: transform .2s; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px);
  min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 8px; opacity: 0; visibility: hidden; transition: .18s ease;
}
.dropdown-menu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-dropdown:hover .chev, .nav-dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu a, .dropdown-menu .disabled {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 400;
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.dropdown-menu a.current { background: #eef3ff; color: var(--navy); font-weight: 500; }
.dropdown-menu .disabled { color: #a0a7b5; cursor: default; font-size: 13px; }
.dropdown-menu .flag { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dropdown-menu .dd-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); padding: 6px 12px 4px; text-transform: uppercase; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.search {
  justify-self: end; display: flex; align-items: center;
  background: var(--yellow); border-radius: 999px; padding: 4px 6px 4px 16px; width: 170px;
}
.search input {
  border: 0; background: transparent; outline: none; width: 100%;
  font-size: 12px; color: var(--navy-900);
}
.search input::placeholder { color: rgba(7,29,87,.55); letter-spacing: .05em; }
.search button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 4px; color: var(--navy-900); }
.search svg { width: 16px; height: 16px; }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; color: var(--navy); justify-self: end; }
.nav-toggle svg { width: 26px; height: 26px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Media slots (image with designed fallback)
   ========================================================= */
.media {
  position: relative; overflow: hidden;
  background: var(--ph, linear-gradient(135deg, #dfe6f5, #b9c7e6));
  background-size: cover; background-position: center;
}
.media.has-img { background-image: var(--img) !important; }
.media.has-img .fallback-only { display: none !important; }
.img-hint {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  font: 500 10px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 4px;
  background: rgba(0,0,0,.45); color: #fff; opacity: .75; pointer-events: none;
}
.media.has-img .img-hint { display: none; }

/* =========================================================
   Hero carousel (home)
   ========================================================= */
.hero-carousel { position: relative; overflow: hidden; background: #0d1a40; }
.slides { display: flex; transition: transform .6s cubic-bezier(.6,.05,.3,1); }
.slide { flex: 0 0 100%; aspect-ratio: 970 / 250; min-height: 340px; min-width: 0; }
.slide .slide-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 7%; color: #fff;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--navy); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: .25s; padding: 0; }
.dots button.active { width: 28px; background: var(--yellow); }

/* fallback designs for banners */
.ph-hr {
  --ph: radial-gradient(circle at 80% 30%, rgba(255,255,255,.25), transparent 40%),
        linear-gradient(110deg, #ffffff 0%, #ffffff 56%, #1f3f93 56.2%, #0b2f86 75%, #3a64c8 100%);
}
.ph-hr .slide-content { color: var(--navy); }
.banner-title-hr { font-size: clamp(40px, 7vw, 96px); font-weight: 800; color: var(--navy); line-height: 1; }
.banner-title-hr span { display: block; font-style: italic; color: var(--gold); font-weight: 700; }
.ph-w96 {
  --ph: radial-gradient(circle at 75% 40%, rgba(247,194,26,.35), transparent 35%),
        linear-gradient(120deg, #2a0b4a 0%, #4b1680 55%, #2a0b4a 100%);
}
.banner-title-w96 { font-size: clamp(26px, 4vw, 52px); font-weight: 700; color: #fff; }
.banner-title-w96 b { color: var(--yellow); font-weight: 800; }
.banner-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.banner-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(12px, 1.2vw, 15px); }
.banner-badges svg, .license-pill svg { width: 26px; height: 26px; color: var(--yellow); flex: none; }
i[data-icon] { display: inline-flex; font-style: normal; }
.ph-hr .banner-badges svg { color: var(--navy); }
.banner-logo-text { font-weight: 800; letter-spacing: .08em; font-size: clamp(18px, 2.4vw, 32px); margin-bottom: 8px; }
.ph-w96 .banner-logo-text { color: var(--yellow); }
.license-pill {
  position: absolute; top: 22px; right: 26px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1.5px solid var(--yellow); border-radius: 999px; color: #fff; font-size: 13px;
  background: rgba(0,0,0,.25);
}
.license-pill svg { width: 22px; height: 22px; color: var(--yellow); }

/* =========================================================
   Intro + category cards
   ========================================================= */
.intro-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; max-width: 900px; margin: 0 auto; }
.intro-quote { color: #4b5263; max-width: 720px; margin: 18px auto 0; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1.08;
  display: grid; place-items: center; text-align: center; color: #fff;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card::after { content: ""; position: absolute; inset: 0; background: var(--tint); z-index: 1; transition: opacity .3s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { opacity: .88; }
/* ชี้เมาส์ → การ์ดเปลี่ยนเป็นสีทึบไล่เฉด (ม่วง / น้ำเงิน / ส้ม) */
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--hover-bg); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.cat-card:hover::before, .cat-card:focus-visible::before { opacity: 1; }
.cat-card .cat-label { position: relative; z-index: 2; font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: .04em; line-height: 1.25; padding: 0 16px; }
.cat-card .cat-more { display: block; font-size: 13px; font-weight: 400; margin-top: 8px; opacity: 0; transform: translateY(6px); transition: .3s; }
.cat-card:hover .cat-more { opacity: 1; transform: none; }
.cat-job { --tint: rgba(91, 58, 214, .74); --ph: linear-gradient(135deg, #b9a6f2, #5b3ad6); --hover-bg: linear-gradient(150deg, #6d4be8, #3a1f9e); }
.cat-intern { --tint: rgba(28, 104, 214, .74); --ph: linear-gradient(135deg, #9cc4f5, #1c68d6); --hover-bg: linear-gradient(150deg, #2f8cf0, #1646b4); }
.cat-other { --tint: rgba(226, 96, 28, .78); --ph: linear-gradient(135deg, #f8b27c, #d9581a); --hover-bg: linear-gradient(150deg, #ef8a3a, #b4470f); }
.cat-card .soon-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.9); color: #c2410c; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* =========================================================
   Program highlight block
   ========================================================= */
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.poster {
  border-radius: var(--radius); box-shadow: var(--shadow); min-height: 340px;
  --ph: linear-gradient(160deg, #ffffff 0%, #f1ecff 55%, #e2d8ff 100%);
}
.poster-fallback { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.poster-fallback .p-title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; color: #1a1a2e; line-height: 1; font-style: italic; }
.poster-fallback .p-title em { color: #e11d74; }
.poster-fallback .p-tag { display: inline-block; background: #3b1a7a; color: #fff; padding: 4px 14px; border-radius: 6px; font-weight: 600; font-size: 14px; margin-top: 10px; }
.poster-fallback .p-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.poster-fallback .p-stats div { background: #fff; border-radius: 10px; padding: 8px 14px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 12px; }
.poster-fallback .p-stats b { display: block; color: #e11d48; font-size: 22px; font-weight: 800; }
.highlight-side { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-head { display: flex; gap: 14px; align-items: flex-start; }
.icon-box {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1.5px solid #c9d4ee; color: var(--navy); background: #fff;
}
.icon-box svg { width: 20px; height: 20px; }
.info-head h3 { font-size: 17px; font-weight: 500; color: var(--navy); }
.info-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.stat b { display: block; color: var(--navy); font-size: 17px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini-img { border-radius: var(--radius); min-height: 150px; box-shadow: var(--shadow); --ph: linear-gradient(135deg, #f3ead8, #c9b48a); }
.mini-img .mini-fallback { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #3a2a00; font-weight: 700; font-size: 18px; line-height: 1.25; }
.consult-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  box-shadow: var(--shadow);
}
.consult-card h3 { color: #fff; font-size: 16px; }
.consult-card p { font-size: 12px; color: rgba(255,255,255,.75); max-width: 70%; }
.consult-card .btn { align-self: flex-start; margin-top: 10px; }
.consult-card .bg-icon { position: absolute; right: -14px; bottom: -14px; width: 110px; height: 110px; color: rgba(255,255,255,.08); }

/* =========================================================
   Why choose
   ========================================================= */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-title { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.why-item { display: flex; gap: 16px; margin-bottom: 24px; }
.why-item .dot-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.why-item .dot-icon svg { width: 18px; height: 18px; }
.why-item h4 { font-size: 15px; font-weight: 600; color: #1f2937; }
.why-item p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.di-blue { background: #e7ecfb; color: var(--navy); }
.di-yellow { background: #fdf0c7; color: #a87700; }
.di-indigo { background: #e5e9ff; color: #3355d6; }
.why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.why-photos .media { border-radius: var(--radius); box-shadow: var(--shadow); }
.why-photos .media:first-child { aspect-ratio: 1 / .95; --ph: linear-gradient(135deg, #e8eef8, #9fb3d6); }
.why-photos .media:last-child { aspect-ratio: 1 / 1.08; --ph: linear-gradient(135deg, #dfe9f2, #7e9bc0); margin-top: 32px; }

/* =========================================================
   Benefit cards
   ========================================================= */
.benefit-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.benefit-card {
  flex: 1 1 280px; max-width: 360px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 2px 10px rgba(11,47,134,.04);
  transition: .25s;
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-card .b-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; margin-bottom: 18px; }
.benefit-card .b-icon svg { width: 18px; height: 18px; }
.benefit-card h3 { font-size: 15px; font-weight: 600; }
.benefit-card p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.benefit-grid.two { display: grid; grid-template-columns: 1fr 1fr; }
.benefit-grid.two .benefit-card { max-width: none; }

/* Licence card (Job pages) */
.licence-section { padding: 0 0 64px; }
.licence-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; box-shadow: var(--shadow);
}
.licence-check { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.licence-check svg { width: 40px; height: 40px; stroke-width: 2.6; }
.licence-text h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--navy); }
.licence-text p { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 520px; }
.licence-text a { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.licence-text a:hover { color: var(--navy); }
.licence-items { display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; }
.licence-item { background: #eaf3fd; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.licence-item b { font-size: 15.5px; font-weight: 700; color: var(--navy-900); line-height: 1.25; }
.licence-item span { font-size: 12px; font-weight: 500; color: #4b5263; line-height: 1.45; }
@media (max-width: 1080px) {
  .licence-card { grid-template-columns: auto 1fr; }
  .licence-items { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .licence-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; text-align: center; }
  .licence-check { margin: 0 auto; width: 68px; height: 68px; }
  .licence-text p { margin-inline: auto; }
  .licence-items { grid-template-columns: 1fr; text-align: left; }
}

/* =========================================================
   CTA band + footer
   ========================================================= */
.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.05), transparent 35%),
    var(--navy);
  color: #fff; padding: 80px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.55; }
.cta-band p { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.85); max-width: 880px; }

.site-footer { background: var(--bg-soft); padding: 40px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand .footer-name { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 10px; }
.footer-brand p { font-size: 12.5px; color: #4b5263; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a, .footer-col li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4b5263; margin-bottom: 10px; }
.footer-col a:hover { color: var(--navy); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col svg { width: 15px; height: 15px; color: var(--navy); flex: none; }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #eef2fb; display: grid; place-items: center; color: var(--navy); transition: .2s; margin: 0; }
.socials a:hover { background: var(--navy); color: #fff; }
.socials a:hover svg { color: #fff; }
.socials svg { width: 17px; height: 17px; }
.fb-follow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col .fb-follow a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 16px 7px 10px; border-radius: 999px; background: #eef2fb; color: var(--navy); font-weight: 600; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
.fb-follow a svg { width: 18px; height: 18px; color: #1877f2; transition: color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.footer-col .fb-follow a:hover { background: #1877f2; color: #fff; }
.fb-follow a:hover svg { color: #fff; transform: scale(1.18) rotate(-8deg); }
.copyright { background: var(--navy); color: rgba(255,255,255,.8); text-align: center; font-size: 12px; padding: 14px 0; }

/* =========================================================
   Internship page
   ========================================================= */
.tw-hero { display: grid; grid-template-columns: 1fr 1fr; height: clamp(420px, 46vw, 640px); }
.tw-left { display: grid; grid-template-rows: 1.15fr 1fr; gap: 6px; padding-right: 6px; background: #fff; }
.tw-left-bottom { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.tw-left .media:nth-child(1) { --ph: linear-gradient(160deg, #c0392b, #7b1d12 60%, #e3b04b); }
.tw-left-bottom .media:nth-child(1) { --ph: linear-gradient(160deg, #a6c8ef, #e9eef6 70%, #9aa7b8); }
.tw-left-bottom .media:nth-child(2) { --ph: radial-gradient(circle at 50% 50%, #ff4b2b, #8a0f0f 70%); }
.tw-left-bottom .media:nth-child(3) { --ph: linear-gradient(160deg, #3b2412, #c3741e 60%, #2a1a0b); }
.tw-left-bottom .media:nth-child(4) { --ph: linear-gradient(180deg, #6fa8ff, #ffffff 50%, #5c8fd6); }
.tw-right {
  --ph: radial-gradient(circle at 70% 85%, rgba(255,190,90,.6), transparent 45%),
        linear-gradient(180deg, #2c3e78 0%, #7a3d6a 55%, #f0954a 100%);
  display: flex; align-items: flex-start; justify-content: center;
}
.tw-right .tw-text {
  position: relative; z-index: 2; margin-top: 18%; text-align: center; color: #fff;
  font-size: clamp(30px, 4.4vw, 64px); font-weight: 600; line-height: 1.2; letter-spacing: .02em;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.tw-flag { position: absolute; top: 0; left: 6%; width: 46%; aspect-ratio: 3/2; opacity: .9; z-index: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,.3)); }

.page-title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; color: var(--navy); }

/* Program facts + open positions */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
/* ===== หน้า Internship: โครงการ + รายละเอียดโปรแกรม (แบบเรียบง่าย 2 คอลัมน์) ===== */
.pg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pg-wrap .poster { aspect-ratio: 1409 / 1116; min-height: 0; background-size: cover; background-position: center; } /* ตามสัดส่วนรูป taiwan-fnb-poster.jpg */
.pg-head { margin-bottom: 0; }

/* ===== ระยะห่างสม่ำเสมอทุกหัวข้อ (<body class="even-sections">: หน้า Internship, Employers) =====
   - ทุกส่วนเว้นบน/ล่างเท่ากัน (ระยะระหว่างหัวข้อ = 2 × --sec-gap)
   - หัวข้อ → เนื้อหา ห่างเท่ากันทุกส่วน (--head-gap) */
body.even-sections { --sec-gap: 44px; --head-gap: 32px; }
body.even-sections main > .section { padding: var(--sec-gap) 0; }
body.even-sections main > .section:first-child,
body.even-sections .tw-banner + .section, body.even-sections .emp-hero + .section { padding-top: calc(var(--sec-gap) + 12px); }
body.even-sections main > .section:last-child { padding-bottom: calc(var(--sec-gap) + 20px); }
body.even-sections main > .section .text-center.reveal:first-child { margin-bottom: var(--head-gap); }
body.even-sections main > .section .text-center.reveal:first-child + * { margin-top: 0; }
body.even-sections .section-sub { margin-top: 10px; }
body.even-sections .title-underline { margin-top: 16px; }
@media (max-width: 640px) { body.even-sections { --sec-gap: 32px; --head-gap: 24px; } }
.pg-head .section-sub { max-width: 950px; margin-left: auto; margin-right: auto; }
.pg-title { font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; color: var(--navy); line-height: 1.3; margin-top: 8px; }
.pg-lead { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 560px; }
.pg-key { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pg-key div { padding: 16px 14px; text-align: center; }
.pg-key div + div { border-left: 1px solid var(--line); }
.pg-key b { display: block; font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; color: var(--navy); }
.pg-key span { font-size: 12.5px; color: var(--muted); }
.pg-sub { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 28px; }
.pg-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.pg-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text, #333); }
.pg-list li span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eaf0fc; color: var(--navy); display: grid; place-items: center; }
.pg-list li span svg { width: 16px; height: 16px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
@media (max-width: 900px) {
  .pg-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pg-wrap .poster { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .pg-list { grid-template-columns: 1fr; }
  .pg-key b { font-size: 16px; }
  .pg-key div { padding: 12px 6px; }
}
.fact {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(11,47,134,.04);
}
.fact .fact-icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: #eef3ff; color: var(--navy); display: grid; place-items: center; }
.fact .fact-icon svg { width: 22px; height: 22px; }
.fact b { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.fact > span:last-child { font-size: 13px; color: var(--muted); }
.fact-hl { background: var(--navy); border-color: var(--navy); }
.fact-hl b { color: var(--yellow); }
.fact-hl > span:last-child { color: rgba(255,255,255,.8); }
.fact-hl .fact-icon { background: rgba(255,255,255,.12); color: var(--yellow); }

.positions-section { background: var(--bg-soft); }
/* Expanding image gallery (positions)
   state is driven by JS: .pos-gallery.has-active + .pos-panel.is-active */
.pos-gallery { --ease: cubic-bezier(.22, 1, .36, 1); display: flex; gap: 10px; height: 440px; margin-top: 28px; }
.pos-panel {
  flex: 1 1 0; min-width: 0; border-radius: var(--radius); cursor: pointer; outline: none; isolation: isolate;
  transition: flex-grow .8s var(--ease), box-shadow .5s ease;
}
.pos-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(7, 29, 87, .3); opacity: 0; transition: opacity .6s ease;
}
.pos-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,29,87,0) 35%, rgba(7,29,87,.55) 65%, rgba(7,29,87,.92) 100%);
}
.pos-gallery.has-active .pos-panel:not(.is-active)::before { opacity: 1; }
.pos-panel.is-active { flex-grow: 4; box-shadow: var(--shadow-lg); }
.pos-panel:focus-visible { box-shadow: 0 0 0 3px var(--yellow), var(--shadow-lg); }
.pos-panel .img-hint { bottom: auto; top: 8px; }

.pp-icon {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.32);
  transition: transform .8s var(--ease), color .6s ease;
}
.pp-icon svg { width: 84px; height: 84px; stroke-width: 1.5; }
.pos-panel.is-active .pp-icon { transform: translateX(-50%) scale(1.18); color: rgba(255,255,255,.5); }

.pp-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 18px; color: #fff; }
.pp-body h3 { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; transition: font-size .5s var(--ease); }
.pos-gallery.has-active .pos-panel:not(.is-active) h3 { font-size: 14px; }
.pp-th { font-size: 12.5px; color: var(--yellow); font-weight: 500; margin-top: 2px; transition: opacity .4s ease; }
.pos-gallery.has-active .pos-panel:not(.is-active) .pp-th { opacity: 0; }

/* details: height animates via grid rows; fixed width so text never re-wraps while the panel grows */
.pp-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.pp-inner {
  min-height: 0; overflow: hidden; width: 340px;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .5s var(--ease);
}
.pp-inner p { font-size: 13.5px; color: rgba(255,255,255,.88); margin-top: 10px; }
.pos-panel.is-active .pp-more { grid-template-rows: 1fr; }
.pos-panel.is-active .pp-inner { opacity: 1; transform: none; transition-delay: .22s; }
.pos-apply {
  display: inline-block; margin: 14px 0 2px; padding: 8px 16px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-900); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.pos-apply:hover { background: var(--yellow-600); transform: translateX(3px); }

/* fallback colours until real photos are added */
.pp-front   { --ph: linear-gradient(160deg, #6d8fd8, #213f8f); }
.pp-fnb     { --ph: linear-gradient(160deg, #b5577a, #4b1838); }
.pp-house   { --ph: linear-gradient(160deg, #6fb7b0, #1d5c63); }
.pp-kitchen { --ph: linear-gradient(160deg, #e39a4c, #7a3410); }
.pp-waiter  { --ph: linear-gradient(160deg, #8f7bd1, #31206e); }

@media (max-width: 900px) {
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .pos-gallery { height: 380px; }
  .pp-body { padding: 16px 12px; }
  .pp-body h3 { font-size: 15px; }
  .pp-inner { width: 300px; }
}
@media (max-width: 640px) {
  .fact-grid { grid-template-columns: 1fr; }
  .pos-gallery { flex-direction: column; height: auto; }
  .pos-panel { flex: none; height: 110px; transition: height .7s var(--ease), box-shadow .5s ease; }
  .pos-panel.is-active { height: 300px; }
  .pos-gallery.has-active .pos-panel:not(.is-active) .pp-th { opacity: 1; }
  .pos-gallery.has-active .pos-panel:not(.is-active) h3 { font-size: 15px; }
  .pp-inner { width: auto; }
  .pp-icon { top: 50%; left: auto; right: 18px; transform: translateY(-50%); }
  .pos-panel.is-active .pp-icon { transform: translateY(-50%) scale(1.1); }
  .pp-icon svg { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-panel, .pp-more, .pp-inner, .pp-icon, .pos-panel::before { transition: none !important; }
}

/* =========================================================
   Application form
   ========================================================= */
.apply-section { background: var(--bg-soft); }
.apply-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.apply-aside {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 26px;
  position: sticky; top: 96px; overflow: hidden;
}
.apply-aside h3 { color: #fff; font-size: 20px; }
.apply-aside > p { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 18px; font-size: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-900); font-weight: 700; display: grid; place-items: center; font-size: 13px;
}
.steps li b { display: block; font-weight: 600; }
.steps li span { color: rgba(255,255,255,.7); font-size: 12.5px; }
.aside-contact { border-top: 1px solid rgba(255,255,255,.18); margin-top: 8px; padding-top: 18px; font-size: 13px; }
.aside-contact a { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #fff; }
.aside-contact svg { width: 16px; height: 16px; color: var(--yellow); }

.form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { font-size: 22px; }
.form-card .form-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.form-group-title {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--navy);
  margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.form-group-title .n { width: 24px; height: 24px; border-radius: 6px; background: #eef3ff; display: grid; place-items: center; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13.5px; font-weight: 500; color: #374151; }
.field .req { color: #e11d48; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #dbe1ec; border-radius: 10px; background: #fbfcfe;
  font-size: 14px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e11d48; }
.field .err { font-size: 12px; color: #e11d48; display: none; }
.field.invalid .err { display: block; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 8px 16px; border: 1.5px solid #dbe1ec; border-radius: 999px; font-size: 13.5px;
  cursor: pointer; transition: .15s; background: #fbfcfe;
}
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #4b5263; margin-top: 22px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: 12px; color: var(--muted); }
.form-success { text-align: center; padding: 40px 10px; display: none; }
.form-success .ok { width: 72px; height: 72px; border-radius: 50%; background: #e7f8ef; color: #16a34a; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .ok svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--muted); margin-top: 8px; }
.form-card.done form { display: none; }
.form-card.done .form-success { display: block; }
/* กำลังส่งใบสมัคร */
.form-card { position: relative; }
.form-loading { position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; background: rgba(255, 255, 255, .88); border-radius: inherit; backdrop-filter: blur(2px); text-align: center; padding: 20px; }
.form-card.sending .form-loading { display: flex; }
.form-loading .spin { width: 52px; height: 52px; border-radius: 50%; border: 5px solid #e3e8f3; border-top-color: var(--navy); animation: form-spin .8s linear infinite; }
.form-loading b { font-size: 18px; color: var(--navy); }
.form-loading small { color: var(--muted); font-size: 13px; }
.form-loading-box { position: sticky; top: 40vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn .btn-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: form-spin .8s linear infinite; display: inline-block; }
@keyframes form-spin { to { transform: rotate(360deg); } }
input.auto-calc { background: #f4f6fa; color: var(--navy); font-weight: 600; cursor: default; }
.demo-note { margin-top: 14px; font-size: 12px; color: #a16207; background: #fef9e7; border: 1px dashed #f4d27a; padding: 8px 12px; border-radius: 8px; display: inline-block; }

/* =========================================================
   Job pages
   ========================================================= */
.w96-banner { aspect-ratio: 970 / 250; min-height: 360px; min-width: 0; width: 100%; }
.w96-banner .slide-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7%; color: #fff; }

.country-select-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px;
}
.country-select-bar label { font-weight: 500; color: var(--navy); font-size: 15px; }
.select-pretty {
  appearance: none; -webkit-appearance: none; min-width: 260px; padding: 12px 44px 12px 16px; border-radius: 10px;
  border: 1.5px solid #cfd8ea; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2f86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  font-size: 15px; color: var(--navy); font-weight: 500; cursor: pointer; outline: none;
}
.select-pretty:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.country-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column;
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.country-card .cc-img { aspect-ratio: 16/9; --ph: linear-gradient(135deg, #263b6e, #0b1a3f); display: grid; place-items: center; }
.country-card .cc-flag { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.3); position: relative; z-index: 2; }
.country-card .cc-body { padding: 16px 18px 20px; }
.country-card h3 { font-size: 18px; }
.country-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.country-card .cc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--navy); font-weight: 500; }
.country-card.coming { opacity: .6; pointer-events: none; }
.country-card.coming .cc-img { --ph: linear-gradient(135deg, #cfd6e4, #aab3c5); }
.country-card .cc-badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--yellow); color: var(--navy-900); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

.job-hero {
  position: relative; color: #fff; padding: 64px 0;
  --ph: radial-gradient(circle at 75% 30%, rgba(80,110,170,.4), transparent 50%), linear-gradient(135deg, #1b2747 0%, #2d3c5e 50%, #121a33 100%);
}
.job-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,20,45,.88) 0%, rgba(11,20,45,.6) 55%, rgba(11,20,45,.25) 100%);
}
.job-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.legal-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--navy-900); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.legal-badge svg { width: 14px; height: 14px; }
.job-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin-top: 18px; line-height: 1.2; }
.job-hero h1 span { display: block; color: var(--yellow); }
.job-hero .lead { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 15px; max-width: 520px; }
.job-hero .contact-lines { margin-top: 18px; font-size: 14px; display: grid; gap: 8px; }
.job-hero .contact-lines a { display: inline-flex; align-items: center; gap: 10px; }
.job-hero .contact-lines svg { width: 16px; height: 16px; color: var(--yellow); }
.job-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.flag-circle {
  justify-self: center; width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 10px rgba(212,164,55,.15);
}
.flag-circle img { width: 100%; height: 100%; object-fit: cover; }

.table-card { margin-top: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.job-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.job-table th { background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; text-align: left; padding: 16px 18px; }
.job-table th:last-child, .job-table td:last-child { text-align: right; }
.job-table th:last-child { color: var(--yellow); }
.job-table td { padding: 14px 18px; border-bottom: 1px solid #eef1f6; font-size: 13.5px; vertical-align: middle; }
.job-table tr:last-child td { border-bottom: 0; }
.job-table tr.hot td { background: var(--hot-bg); }
.job-table tbody tr:hover td { background: #f3f6fd; }
.job-table tbody tr.hot:hover td { background: #f3e2b3; }
.job-table .pos { font-weight: 600; color: #1f2937; }
.hot-badge { display: inline-block; margin-left: 8px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; vertical-align: 2px; letter-spacing: .05em; }
.job-table .salary b { display: block; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.job-table .salary small { color: var(--muted); font-size: 11px; }
.table-foot { padding: 12px 18px; font-size: 12px; color: var(--muted); background: #fafbfe; border-top: 1px solid #eef1f6; }
.not-found { text-align: center; padding: 120px 20px; }

/* =========================================================
   About page
   ========================================================= */
.about-hero { background: linear-gradient(135deg, var(--navy) 0%, #2549a8 100%); color: #fff; padding: 80px 0; text-align: center; }
.about-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.about-hero p { color: rgba(255,255,255,.85); max-width: 680px; margin: 14px auto 0; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.brand-card img { height: 64px; width: auto; align-self: flex-start; }
.brand-card h3 { font-size: 20px; }
.brand-card p { color: #4b5263; font-size: 14.5px; }
.brand-card ul { margin: 0; padding-left: 18px; color: #4b5263; font-size: 14px; }
.brand-card .btn { align-self: flex-start; margin-top: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 2px 10px rgba(11,47,134,.04); }
.contact-item .b-icon { width: 44px; height: 44px; border-radius: 50%; background: #eef3ff; color: var(--navy); display: grid; place-items: center; margin: 0 auto 12px; }
.contact-item .b-icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 15px; }
.contact-item p, .contact-item a { font-size: 14px; color: #4b5263; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slides { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav > a, .nav-dropdown > .nav-link { padding: 8px 20px; }
  .apply-wrap { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
}
@media (max-width: 900px) {
  /* backdrop-filter ทำให้เมนู position:fixed ยึดขนาดตามแถบหัว (สูงแค่ 64px) → ปิดบนมือถือ */
  .site-header { backdrop-filter: none; background: #fff; }
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
  .brand img { height: 44px; }
  .nav-toggle { display: grid; place-items: center; grid-column: 3; }
  .search { display: none; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 64px); z-index: 49;
    flex-direction: column; align-items: stretch; background: #fff; padding: 8px 20px 30px;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s; overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > * + *::before { display: none; }
  .main-nav > a, .nav-dropdown > .nav-link { padding: 16px 6px; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; font-size: 15px; }
  .main-nav > a.active, .nav-dropdown > .nav-link.active { color: var(--navy); box-shadow: inset 3px 0 0 var(--yellow); padding-left: 14px; }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 10px; background: var(--bg-soft); margin: 6px 0 4px; padding: 6px; display: none; min-width: 0; }
  .dropdown-menu a, .dropdown-menu .disabled { padding: 11px 12px; }
  .nav-dropdown.open .dropdown-menu { display: block; transform: none; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .main-nav .search-mobile { display: flex; width: 100%; margin-top: 20px; }
  .highlight-grid, .why-grid, .job-hero .container, .brand-grid { grid-template-columns: 1fr; }
  .flag-circle { width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tw-hero { grid-template-columns: 1fr; height: auto; }
  .tw-left { height: 420px; padding-right: 0; padding-bottom: 6px; }
  .tw-right { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .main-nav .search-mobile { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16 / 9; }
  .cat-card .cat-more { opacity: 1; transform: none; }
  .form-grid, .benefit-grid.two, .mini-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .slide, .w96-banner { aspect-ratio: auto; min-height: 420px; }
  .carousel-btn { display: none; }
  .license-pill { position: static; align-self: flex-start; margin-bottom: 14px; }
  .why-photos .media:last-child { margin-top: 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* Month picker (internship start month) — months within 3 months are flagged */
.mp-field { position: relative; }
.mp-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 11px 14px; border: 1.5px solid #dbe1ec; border-radius: 10px; background: #fbfcfe;
  font: inherit; font-size: 14px; color: #9aa3b2; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.mp-trigger.filled { color: var(--text); }
.mp-trigger:focus-visible, .mp-trigger[aria-expanded="true"] { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.mp-trigger.soon { border-color: #f59e0b; background: #fffbeb; }
.mp-ic { display: inline-flex; width: 18px; color: var(--navy); flex: none; }
.mp-ic svg { width: 18px; height: 18px; }
.mp-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 300px; max-width: calc(100vw - 32px);
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: mp-in .18s ease;
}
.mp-pop[hidden] { display: none; }
@keyframes mp-in { from { opacity: 0; transform: translateY(-4px); } }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--navy); font-size: 15px; }
.mp-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #eef3ff; color: var(--navy); font-size: 18px; cursor: pointer; }
.mp-nav:disabled { opacity: .35; cursor: default; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-month {
  position: relative; padding: 10px 0; border: 1.5px solid transparent; border-radius: 10px; background: var(--bg-soft);
  font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s;
}
.mp-month:hover:not(:disabled) { border-color: var(--blue); background: #fff; }
.mp-month:disabled { color: #c3c9d4; background: transparent; cursor: not-allowed; }
.mp-month.now { font-weight: 600; }
.mp-month.soon { background: #fef3c7; color: #92400e; }
.mp-month.soon::after { content: "!"; position: absolute; top: 3px; right: 6px; font-size: 10px; font-weight: 700; color: #d97706; }
.mp-month.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mp-month.on.soon { background: #d97706; border-color: #d97706; }
.mp-month.on.soon::after { color: #fff; }
.mp-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.mp-sw { width: 14px; height: 14px; border-radius: 4px; background: #fef3c7; border: 1px solid #f59e0b; flex: none; }
.mp-range { font-size: 12.5px; color: var(--muted); }
.mp-warning {
  flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; animation: mp-in .25s ease;
}
.mp-warning[hidden] { display: none; }
.mp-warning p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.mp-warning-ic {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #f59e0b; color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* Qualification checklist (internship form) */
.qual-list { list-style: none; counter-reset: q; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.qual-item {
  counter-increment: q; position: relative; gap: 10px; padding: 16px 18px 16px 58px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.qual-item::before {
  content: counter(q); position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1.5px solid #c9d3e6; color: var(--navy); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.qual-item:has(input[type="radio"]:checked) { background: #fff; border-color: #c9d3e6; }
.qual-item:has(input[type="radio"]:checked)::before { content: "✓"; background: var(--navy); border-color: var(--navy); color: #fff; }
.qual-item.invalid { border-color: #e11d48; }
.qual-q { margin: 0; font-size: 14px; font-weight: 500; color: #1f2937; line-height: 1.55; }
.qual-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.qual-sub { margin-top: 4px; }
[data-show-when][hidden] { display: none !important; }
.qual-advice {
  display: flex; gap: 12px; margin-top: 4px; padding: 12px 16px; border-radius: 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; animation: mp-in .25s ease;
}
.qual-advice .mp-warning-ic { background: var(--blue); font-style: italic; font-family: Georgia, serif; }
.qual-advice p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.qual-advice p:last-child { margin-bottom: 0; }
.qual-advice a { color: var(--blue); font-weight: 600; text-decoration: underline; }
@media (max-width: 640px) {
  .qual-item { padding: 14px 14px 14px 50px; }
  .qual-item::before { left: 14px; }
}

/* File upload box */
.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  border: 1.5px dashed #b9c4da; border-radius: 12px; background: #fbfcfe; transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop.drag, .file-drop:focus-within { border-color: var(--blue); background: #f3f7ff; }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #eef3ff; color: var(--navy); }
.file-ic svg { width: 20px; height: 20px; }
.file-text { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-size: 14px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.file-text small { font-size: 12px; color: var(--muted); }
.file-drop.has-file { border-style: solid; border-color: #22a06b; background: #f0fbf5; }
.file-drop.has-file .file-ic { background: #22a06b; color: #fff; }
.field.invalid .file-drop { border-color: #e11d48; }

/* Language test entries (internship) */
.test-list { display: grid; gap: 12px; }
.test-entries { display: grid; gap: 12px; }
.test-entry { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: mp-in .25s ease; }
.test-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--navy); }
.test-remove { border: 0; background: none; color: #e11d48; font: inherit; font-size: 13px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.test-remove:hover { background: #fff1f2; }
.test-add {
  justify-self: start; padding: 9px 16px; border: 1.5px dashed #b9c4da; border-radius: 999px; background: #fff;
  color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.test-add:hover { border-color: var(--blue); background: #f3f7ff; }
.test-add[hidden], .test-remove[hidden] { display: none; }

/* Internship banner: full image (no crop), blurred copy fills the sides on wide screens */
.tw-banner { position: relative; overflow: hidden; display: flex; justify-content: center; background: var(--navy-900); }
.tw-banner-bg {
  position: absolute; inset: -40px; background-position: center; background-size: cover;
  filter: blur(28px) brightness(.55) saturate(1.2);
}
/* กรอบขนาดเดิม (กว้างสุด 1440 × สูง 560) แต่รูปไม่ถูกยืด: object-fit contain แสดงรูปตามสัดส่วนจริง
   ที่ความสูง 560px รูปกว้าง ~863px (ต้นฉบับ 940×610) จึงไม่ถูกขยายเกินขนาดจริง → คมชัด */
.tw-banner img {
  position: relative; display: block; width: 100%; max-width: 1440px; height: 560px;
  object-fit: contain; filter: drop-shadow(0 16px 40px rgba(0,0,0,.4));
}
@media (max-width: 900px) { .tw-banner { padding: 0; } .tw-banner img { height: auto; filter: none; } }

/* Banners with real images: keep the image's own proportions so baked-in text is never cropped */
.slide { aspect-ratio: 970 / 250; min-height: 0; }
/* home banner: whole image always visible (contain) and sharp; blurred copy fills the side bands */
.slide.has-img { background-image: none !important; }
.slide.has-img::before { content: ""; position: absolute; inset: -30px; background: var(--img) center / cover no-repeat; filter: blur(24px) brightness(.85); }
.slide.has-img::after { content: ""; position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
/* job banner: same treatment as home — 970:250, whole image visible, blurred side bands */
.w96-banner.has-img { aspect-ratio: 970 / 250; min-height: 0; background-image: none !important; }
.w96-banner.has-img::before { content: ""; position: absolute; inset: -30px; background: var(--img) center / cover no-repeat; filter: blur(24px) brightness(.85); }
.w96-banner.has-img::after { content: ""; position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
@media (max-width: 640px) {
  .slide { aspect-ratio: 2.6; min-height: 0; } /* มือถือ: ใช้สัดส่วนใกล้รูปจริง รูปจะเต็มจอไม่เล็กเกินไป */
  .w96-banner.has-img { aspect-ratio: 2.6; min-height: 0; }
  .hero-carousel .dots { bottom: 6px; }
  .hero-carousel .dots button { width: 7px; height: 7px; }
  .hero-carousel .dots button.active { width: 18px; }
}

/* Country page: no positions published yet */
.positions-soon {
  display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 560px; margin: 8px auto 0; padding: 32px 24px;
  text-align: center; border: 1.5px dashed #c9d3e6; border-radius: var(--radius); background: var(--bg-soft); color: var(--muted);
}
.positions-soon svg { width: 36px; height: 36px; color: var(--navy); }
.positions-soon b { font-size: 18px; color: var(--navy); }
.positions-soon a:not(.btn) { color: var(--blue); font-weight: 600; }
.positions-soon .btn { margin-top: 10px; }

/* ===== Job application: experience entries ===== */
.exp-list { margin-top: 14px; display: grid; gap: 12px; }
.exp-hint { font-size: .85rem; color: var(--muted, #64748b); margin: 0; }
.exp-entry { position: relative; display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 12px 14px; padding: 16px 16px 16px 52px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.exp-entry.four { grid-template-columns: .9fr 1.2fr 1fr .8fr; }
.exp-no { position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy, #0b2a5b); color: #fff; font-weight: 600; font-size: .85rem; display: grid; place-items: center; }
.field input.is-auto, .field textarea.is-auto { background: #eef2f7; color: #334155; cursor: default; }
.same-addr { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #475569; margin: 2px 0 8px; cursor: pointer; font-weight: 400; }
.same-addr input { width: 16px; height: 16px; accent-color: var(--blue, #2563eb); }
@media (max-width: 900px) { .exp-entry, .exp-entry.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .exp-entry, .exp-entry.four { grid-template-columns: 1fr; padding: 46px 14px 14px; } .exp-no { top: 12px; } }

/* ===== Thai date picker (เดือนไทย / พ.ศ.) ===== */
.tdp { position: relative; }
.field input.tdp-input { padding-right: 42px; cursor: pointer; }
.tdp.open .tdp-input { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.tdp-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--navy); cursor: pointer; display: inline-flex; }
.tdp-ic svg { width: 18px; height: 18px; }
.tdp-pop { width: 312px; top: calc(100% + 6px); }
.tdp-head { gap: 6px; }
.tdp-selects { display: flex; gap: 6px; flex: 1; justify-content: center; }
.tdp-selects select { padding: 6px 8px; border: 1.5px solid #dbe1ec; border-radius: 8px; background: #fbfcfe; font: inherit; font-size: 13.5px; color: var(--navy); cursor: pointer; }
.field .tdp-selects select { width: auto; min-height: 0; padding: 6px 8px; font-size: 13.5px; }
.field .tdp-selects .tdp-month { flex: 1 1 auto; min-width: 0; }
.field .tdp-selects .tdp-year { flex: 0 0 auto; }
.tdp-dow, .tdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tdp-dow span { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.tdp-dow span:first-child { color: #e11d48; }
.tdp-day { aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; transition: background .15s; }
.tdp-day:hover:not(:disabled) { background: #eef3ff; }
.tdp-day.now { border-color: #c7d4f4; font-weight: 600; }
.tdp-day.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tdp-day:disabled { color: #c3c9d4; cursor: not-allowed; }

/* ===== Activity albums: photo stack cards ===== */
.activity-section { background: var(--bg-soft); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; margin-top: 44px; }
.photo-stack-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; height: 300px; padding: 22px 22px 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(11, 47, 134, .08);
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s ease;
}
.photo-stack-card:hover, .photo-stack-card:focus-visible { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg); }
.photo-stack-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ps-text { position: relative; z-index: 2; display: block; }
.ps-cat { display: block; min-height: 22px; padding-right: 64px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ps-title { display: block; margin-top: 4px; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.ps-sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.ps-count {
  position: absolute; top: 18px; right: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 500;
}
.ps-count svg { width: 13px; height: 13px; }
.ps-stack { position: absolute; left: 0; right: 0; bottom: 0; height: 175px; }
.ps-photo {
  position: absolute; right: 26px; bottom: -22px; width: 62%; aspect-ratio: 4 / 3; overflow: hidden;
  border: 4px solid #fff; border-radius: 12px; background: #e8eefb; box-shadow: 0 6px 16px rgba(7, 29, 87, .16);
  transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.ps-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-stack .ps-photo:nth-child(1) { transform: translateX(-30px) rotate(-5deg); }
.ps-stack .ps-photo:nth-child(2) { transform: translateX(-12px) rotate(0deg); }
.ps-stack .ps-photo:nth-child(3) { transform: translateX(4px) rotate(5deg); }
/* hover: แผ่รูปออกเป็นพัด (หน่วงทีละใบ) */
.photo-stack-card:hover .ps-photo, .photo-stack-card:focus-visible .ps-photo { box-shadow: 0 14px 30px rgba(7, 29, 87, .24); }
.photo-stack-card:hover .ps-photo:nth-child(1), .photo-stack-card:focus-visible .ps-photo:nth-child(1) { transform: translate(-58px, -22px) rotate(-12deg) scale(1.05); transition-delay: 0s; }
.photo-stack-card:hover .ps-photo:nth-child(2), .photo-stack-card:focus-visible .ps-photo:nth-child(2) { transform: translate(-14px, -30px) rotate(0deg) scale(1.05); transition-delay: .07s; }
.photo-stack-card:hover .ps-photo:nth-child(3), .photo-stack-card:focus-visible .ps-photo:nth-child(3) { transform: translate(24px, -22px) rotate(12deg) scale(1.05); transition-delay: .14s; }
/* ยังไม่มีไฟล์รูป → กรอบ placeholder */
.ps-photo.missing img { visibility: hidden; }
.ps-photo {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93cf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / 34% no-repeat, linear-gradient(135deg, #e3eafc, #c9d6f6);
}
.ps-photo img[src=""], .ps-photo img:not([src]) { visibility: hidden; }
.ps-hint { position: absolute; left: 4px; bottom: 4px; z-index: 1; padding: 1px 5px; border-radius: 4px; background: rgba(7, 29, 87, .7); color: #fff; font-size: 9.5px; line-height: 1.5; display: none; }
.ps-photo.missing .ps-hint { display: block; }
@media (prefers-reduced-motion: reduce) {
  .photo-stack-card, .ps-photo { transition: none; }
}

/* ===== Album viewer (lightbox) ===== */
html.av-lock { overflow: hidden; }
.album-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.album-viewer[hidden] { display: none; }
.av-backdrop { position: absolute; inset: 0; background: rgba(5, 14, 40, .82); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.av-panel {
  position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 14px;
  color: #fff; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s ease, transform .22s ease;
}
.album-viewer.open .av-backdrop { opacity: 1; }
.album-viewer.open .av-panel { opacity: 1; transform: none; }
.av-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.av-cat { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }
.av-head h3 { font-size: 22px; font-weight: 700; margin: 2px 0 0; }
.av-sub { font-size: 13.5px; opacity: .75; }
.av-close, .av-nav {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s;
}
.av-close:hover, .av-nav:hover { background: rgba(255, 255, 255, .28); }
.av-close svg, .av-nav svg { width: 22px; height: 22px; }
.av-stage { display: flex; align-items: center; gap: 12px; min-height: 0; }
.av-figure { position: relative; flex: 1; margin: 0; display: grid; place-items: center; min-height: 0; }
.av-figure img { max-width: 100%; max-height: calc(100vh - 250px); border-radius: 12px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.av-figure.missing img { visibility: hidden; width: 100%; aspect-ratio: 4 / 3; max-height: calc(100vh - 250px); }
.av-figure.missing::before {
  content: "ยังไม่มีรูป · " attr(data-file); position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, #1b3a8f, #0b2f86); color: rgba(255, 255, 255, .8); font-size: 14px;
}
.av-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12.5px; }
.av-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; justify-content: safe center; scrollbar-width: thin; }
.av-thumbs button { flex: none; width: 76px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .2s; }
.av-thumbs button.on, .av-thumbs button:hover { opacity: 1; }
.av-thumbs .ps-photo { position: relative; right: auto; bottom: auto; width: 100%; border-width: 2px; border-radius: 8px; transform: none; box-shadow: none; }
.av-thumbs button.on .ps-photo { border-color: var(--yellow); }
.av-thumbs .ps-hint { display: none !important; }
@media (max-width: 640px) {
  .album-grid { gap: 22px; }
  .album-viewer { padding: 12px; }
  .av-stage { position: relative; }
  .av-nav { position: absolute; z-index: 2; width: 38px; height: 38px; background: rgba(0, 0, 0, .45); }
  .av-nav.prev { left: 6px; } .av-nav.next { right: 6px; }
  .av-figure img { max-height: calc(100vh - 230px); }
}
.av-caption { margin: -4px 0 0; text-align: center; font-size: 14.5px; color: rgba(255, 255, 255, .92); }
.av-caption[hidden] { display: none; }
.av-figure img { max-height: calc(100vh - 280px); }
@media (max-width: 640px) { .av-figure img { max-height: calc(100vh - 260px); } .av-caption { font-size: 13px; } }
/* รูปไม่ดันความสูงกรอบ (กรอบคงสัดส่วน 4:3 เสมอ ทั้งรูปแนวตั้ง/แนวนอน) */
.ps-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Viewer: รูปใหญ่พอดีพื้นที่ที่เหลือ ไม่ทับคำบรรยาย/แถบรูปเล็ก */
.av-panel { height: calc(100vh - 40px); height: calc(100dvh - 40px); max-height: 900px; }
.av-stage { flex: 1 1 auto; min-height: 0; }
.av-figure { height: 100%; }
.av-figure img { max-height: 100%; max-width: 100%; }
.av-figure.missing img { max-height: 100%; }
.av-head h3 { color: #fff; }
.av-sub { color: rgba(255, 255, 255, .75); opacity: 1; }
.av-thumbs { flex: none; }
.av-thumbs .ps-photo { aspect-ratio: auto; height: 54px; }
@media (max-width: 640px) {
  .av-panel { height: calc(100vh - 24px); height: calc(100dvh - 24px); }
  .av-figure img { max-height: 100%; }
  .av-thumbs button { width: 64px; }
  .av-thumbs .ps-photo { height: 46px; }
}
.av-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; }
.av-stage { min-height: 0; height: 100%; }
.av-figure { min-width: 0; min-height: 0; height: 100%; }
.av-figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.ps-photo { display: block; }
.av-thumbs { min-height: 66px; align-items: center; }
.av-figure { display: flex; align-items: center; justify-content: center; }
.av-figure img { max-height: 100%; max-width: 100%; object-fit: contain; }

.av-nav[hidden], .av-thumbs[hidden], .av-count[hidden] { display: none !important; }

/* ===== Job announcements carousel (ใต้แบนเนอร์หน้าประเทศ) ===== */
.announce-section { --ann-gutter: max(24px, calc((100vw - 1200px) / 2 + 24px)); padding-bottom: 36px; overflow: hidden; }
.ann-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ann-head .section-title { margin-top: 6px; }
.ann-lead { margin: 10px 0 0; max-width: 620px; color: var(--muted); font-size: 15px; }
.ann-lead b { color: var(--navy); }
.ann-lead a { color: var(--blue); font-weight: 600; }
.ann-arrows { display: flex; gap: 8px; flex: none; }
.ann-arrows[hidden], .ann-arrows.is-static, .ann-dots[hidden], .ann-dots.is-static { display: none; }
.ann-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.ann-arrow svg { width: 20px; height: 20px; }
.ann-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.ann-arrow:disabled { opacity: .35; cursor: default; }

.ann-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px var(--ann-gutter) 18px; scroll-padding-inline: var(--ann-gutter); scrollbar-width: none; outline: none;
}
.ann-track::-webkit-scrollbar { display: none; }
.ann-track:focus-visible { box-shadow: inset 0 0 0 3px var(--yellow); }
.ann-track.few { justify-content: center; }

.ann-slide {
  position: relative; flex: 0 0 auto; width: clamp(270px, 28vw, 340px); aspect-ratio: 3 / 4.2; overflow: hidden;
  scroll-snap-align: start; border-radius: 18px; background: var(--navy-900); box-shadow: 0 12px 30px rgba(7, 29, 87, .16);
  isolation: isolate;
}
.ann-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .45s ease, filter .3s ease; }
.ann-slide:hover > img { transform: scale(1.05); }
.ann-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 29, 87, 0) 28%, rgba(7, 29, 87, .78) 46%, rgba(7, 29, 87, .96) 58%, #071d57 100%); pointer-events: none; }
.ann-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: zoom-in; }
.ann-hit:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 18px; }
.ann-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 20px 18px; color: #fff; pointer-events: none; }
.ann-content a, .ann-content button { pointer-events: auto; }
.ann-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ann-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ann-status.is-open { background: #22c55e; color: #fff; }
.ann-status.is-open::before { background: #fff; animation: ann-pulse 1.6s ease-in-out infinite; }
.ann-status.is-closed { background: rgba(255, 255, 255, .92); color: #b91c1c; }
@keyframes ann-pulse { 50% { opacity: .35; } }
.ann-title { margin: 10px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
.ann-detail { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ann-apply {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-900); font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(247, 194, 26, .35); transition: background .2s, transform .2s;
}
.ann-apply svg { width: 16px; height: 16px; transition: transform .2s; }
.ann-apply:hover { background: #ffd23d; }
.ann-apply:hover svg { transform: translateX(3px); }
.ann-view {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s;
}
.ann-view svg { width: 14px; height: 14px; }
.ann-view:hover { background: rgba(255, 255, 255, .24); }

/* หมดเขต: ภาพจาง + ตราประทับ */
.ann-slide.closed > img { filter: grayscale(.75) brightness(.75); }
.ann-stamp {
  position: absolute; z-index: 2; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; padding: 8px 20px 6px; white-space: nowrap;
  border: 3px solid #fff; border-radius: 10px; background: rgba(220, 38, 38, .94); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.ann-stamp b { font-size: 19px; font-weight: 700; line-height: 1.3; }
.ann-stamp small { font-size: 11px; letter-spacing: .32em; font-weight: 600; opacity: .9; }

.ann-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.ann-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(11, 47, 134, .2); cursor: pointer; transition: width .25s, background .25s; }
.ann-dots button.on { width: 24px; background: var(--navy); }

/* ไฮไลต์ช่องตำแหน่งเมื่อกด "สมัครตำแหน่งนี้" */
.field.flash input, .field.flash select { animation: field-flash 1.6s ease; }
@keyframes field-flash { 0%, 40% { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(247, 194, 26, .45); background: #fffbea; } }

/* viewer */
.ann-viewer .av-figure { position: relative; }
.ann-viewer-stamp {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 6px 16px; border-radius: 999px;
  background: #dc2626; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); white-space: nowrap;
}
.ann-viewer-stamp[hidden] { display: none; }
.ann-viewer-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.ann-viewer-note a:not(.ann-apply) { color: var(--yellow); font-weight: 600; }
.ann-viewer-note b { color: #fca5a5; }
.ann-viewer-tel { font-size: 13.5px; opacity: .8; }

@media (max-width: 640px) {
  .announce-section { --ann-gutter: 16px; }
  .ann-head { margin-bottom: 18px; }
  .ann-lead { font-size: 14px; }
  .ann-track { gap: 14px; }
  .ann-track.few { justify-content: flex-start; }
  .ann-slide { width: 78vw; max-width: 320px; }
  .ann-title { font-size: 16.5px; }
  .ann-stamp b { font-size: 16px; }
}

/* ===== โลโก้บนการ์ดหมวด (Manpower / Internship) ===== */
.cat-card { align-content: center; gap: 14px; }
.cat-logo {
  position: relative; z-index: 2; display: block; width: clamp(88px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #fff; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cat-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-intern .cat-logo img { object-fit: contain; transform: scale(1.12); }
.cat-card:hover .cat-logo { transform: scale(1.06) translateY(-2px); }
@media (max-width: 640px) { .cat-card { gap: 10px; } .cat-logo { width: 72px; } }

/* ===== การ์ดหมวด: ชี้เมาส์ → แสดงรายละเอียด ===== */
.cat-card .cat-logo, .cat-card .cat-label, .cat-card .soon-badge { transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.cat-info {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 22px 20px; text-align: left; color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.cat-card:hover .cat-info, .cat-card:focus-visible .cat-info { opacity: 1; transform: none; }
.cat-card:hover .cat-logo, .cat-card:hover .cat-label, .cat-card:hover .soon-badge,
.cat-card:focus-visible .cat-logo, .cat-card:focus-visible .cat-label, .cat-card:focus-visible .soon-badge { opacity: 0; }
.ci-top { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.ci-logo { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid rgba(255, 255, 255, .9); display: grid; place-items: center; }
.ci-logo img { width: 100%; height: 100%; object-fit: cover; }
.ci-logo.contain img { object-fit: contain; transform: scale(1.12); }
.ci-icon { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); color: #fff; }
.ci-icon svg { width: 26px; height: 26px; }
.ci-tag { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.ci-tag.ci-soon { background: var(--yellow, #f7c21a); color: #7a3a06; border-color: transparent; font-weight: 600; }
.ci-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; margin-top: 14px; }
.ci-kicker::before { content: ""; width: 18px; height: 2px; background: var(--yellow, #f7c21a); border-radius: 2px; }
.ci-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.1; margin-top: 4px; letter-spacing: .01em; }
.ci-desc { font-size: 13.5px; line-height: 1.55; opacity: .9; margin-top: 8px; }
.ci-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ci-chips > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.ci-chips img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.ci-cta { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); font-weight: 600; font-size: 14px; }
.ci-arrow { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .25s; }
.ci-arrow svg { width: 16px; height: 16px; }
.cat-card:hover .ci-arrow { transform: translateX(3px); }
.cat-job .ci-arrow { color: #4b2fc0; } .cat-intern .ci-arrow { color: #1652c4; } .cat-other .ci-arrow { color: #c2510f; }
@media (max-width: 980px) and (min-width: 641px) { .ci-desc { display: none; } }
/* จอสัมผัส (ไม่มีเมาส์): แสดงรายละเอียดตลอด */
@media (hover: none) {
  .cat-card { aspect-ratio: auto; min-height: 280px; display: flex; }
  .cat-card::before, .cat-card .cat-info { opacity: 1; transform: none; }
  .cat-card .cat-info { position: relative; inset: auto; width: 100%; }
  .cat-card .cat-logo, .cat-card .cat-label, .cat-card .soon-badge { display: none; }
}

/* ===== หน้า Employers (สำหรับนายจ้างต่างประเทศ) ===== */
.emp-hero { background: linear-gradient(160deg, #0d1b3d 0%, #142a5c 100%); color: #fff; padding: 64px 0 56px; }
.emp-hero .container { max-width: 920px; }
.emp-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.emp-pill svg { width: 16px; height: 16px; color: var(--yellow); }
.emp-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.2; margin-top: 18px; }
.emp-hero p { color: rgba(255, 255, 255, .85); font-size: 15.5px; line-height: 1.7; margin-top: 14px; max-width: 760px; }
.emp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.emp-prose { max-width: 820px; margin: 0 auto; text-align: center; }
.emp-prose p { color: #4b5263; font-size: 15px; line-height: 1.75; }
.emp-prose p + p { margin-top: 12px; }
.emp-prose b { color: var(--navy); }

/* Roles: การ์ดรูป · ชี้เมาส์แล้วขึ้นคำอธิบาย (แบบเดียวกับการ์ดหน้า Home) */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card {
  position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; color: #fff;
  box-shadow: var(--shadow); --ph: linear-gradient(150deg, #c9d3ea, #6f82b3);
  background-size: cover; background-position: center; transition: transform .3s ease, box-shadow .3s ease;
}
.role-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 40, 0) 40%, rgba(10, 16, 40, .78) 100%); }
.role-card:hover, .role-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.role-card:hover::before, .role-card:focus-visible::before { opacity: 1; }
.rc-name { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; line-height: 1.3; transition: opacity .25s; }
.rc-name i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; }
.rc-name svg { width: 17px; height: 17px; }
.rc-info { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.rc-info b { font-size: 19px; line-height: 1.3; }
.rc-info b::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); margin-bottom: 10px; }
.rc-info small { font-size: 14px; line-height: 1.6; opacity: .92; }
.rc-info em { font-style: normal; font-weight: 600; font-size: 13.5px; margin-top: 6px; color: var(--yellow); }
.role-card:hover .rc-info, .role-card:focus-visible .rc-info { opacity: 1; transform: none; }
.role-card:hover .rc-name, .role-card:focus-visible .rc-name { opacity: 0; }
@media (hover: none) {
  .role-card { aspect-ratio: auto; min-height: 220px; }
  .role-card::before { opacity: .82; }
  .rc-info { opacity: 1; transform: none; justify-content: flex-end; }
  .rc-name { display: none; }
}

.emp-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: emp; }
.emp-steps li { counter-increment: emp; position: relative; padding: 16px 16px 16px 58px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.emp-steps li::before { content: counter(emp); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.emp-steps b { display: block; color: var(--navy); font-size: 15px; }
.emp-steps span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .emp-hero { padding: 44px 0 40px; }
  .role-grid, .emp-steps { grid-template-columns: 1fr; }
}

/* หน้า Manpower: ปุ่มเลือก "หางาน / นายจ้าง" */
.audience-switch { display: inline-flex; gap: 6px; padding: 5px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.audience-switch a { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s; }
.audience-switch a.on, .audience-switch a:hover { background: var(--navy); color: #fff; }
.form-card .form-sub + .form-grid { margin-top: 22px; }
