/* =====================================================================
   PhuketJobs.com — ธีม "Option D · Andaman lagoon (softer layout)"
   ต้นฉบับ: phuketjobs-design/PhuketJobs Homepage.html → board "Option D · Andaman lagoon"
   - โหลดหลัง style.css และไฟล์ของแต่ละหน้า (inc/inc_head.php) → ทับเฉพาะหน้าตา ไม่แตะ class / id / JS เดิม
   - สี: ลากูน (teal) + ทราย + พีช · ฟอนต์: Mitr (หัวข้อ) + Noto Sans Thai (เนื้อหา)
   - รูปทรง: มุมโค้งมาก (การ์ด 24px, ปุ่มแคปซูล), ไม่มีเส้นขอบ ใช้เงานุ่มแทน
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #FBF7EF; --ink: #21424A; --accent: #1F7480; --accent-dark: #185E68; --white: #FFFFFF;
  --border: #E7E1D4; --divider: #EFEADF; --input: #CBDDDA; --outline: #D3E3E0; --dash: #A9CFCB;
  --muted: #536E74; --hint: #5E777C; --text2: #3E5C63; --body: #2A4A52;
  --soft: #F4F9F7; --chip: #FBEBDD; --tint: #E2F2F0; --tint2: #F1F9F6; --sand: #FBEBDD; --orange: #F6AE86;
  --peach: #F6AE86; --peach-ink: #A9532F; --lagoon: #6CC0BC; --sky: #EAF1F8; --deep: #1F4A52;
  --on-dark: #CFE3E2; --on-dark2: #A9C9C8; --on-dark-link: #9FDCD6; --dark-line: #3B6770;
  --urgent-bg: #FBE1D6; --urgent: #A23F22;
  --head: 'Mitr', 'Noto Sans Thai', system-ui, sans-serif;
  --font: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(33,66,74,.08);
  --shadow-sm: 0 6px 16px rgba(33,66,74,.08);
  --shadow-lg: 0 18px 40px rgba(33,66,74,.08);
  --r-card: 24px; --r-field: 14px;
  --hero-grad: linear-gradient(180deg, #D8F0EE 0%, #F1F9F6 78%, #FBF7EF 100%);
}
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
a { color: var(--accent); } a:hover { color: var(--ink); }
:focus-visible { outline-color: rgba(31,116,128,.45); }

/* หัวข้อ: Mitr น้ำหนัก 500 (ภาษาไทยใช้ Mitr เช่นเดียวกับต้นฉบับ) */
.h-display, .h2, .page-h1, .hero h1, .land-hero__h1, .jd-h1, .jd-h2b, .jd-gone__h1, .nf__h1, .nf__code, .auth h1,
.cta-card h2, h1.ehero__h1, h1.eprice-hero__h1, .eplanc__price, .epk__price, .estats__v, .econtact-band__h, .ecta__h,
.eh1, .ecard__t, .brand__word {
  font-family: var(--head); font-weight: 500; letter-spacing: 0;
}
html[lang="th"] .h-display, html[lang="th"] .h2, html[lang="th"] .page-h1, html[lang="th"] .hero h1,
html[lang="th"] h1.ehero__h1, html[lang="th"] h1.eprice-hero__h1, html[lang="th"] .econtact-band__h { font-family: var(--head); }

/* ---------- header ---------- */
.hdr { background: #D8F0EE; border-bottom: 0; }
.hdr__in { gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand__word { font-size: 25px; font-weight: 500; letter-spacing: 0; }
.brand__jobs { color: var(--accent); } .brand__jobs--dark { color: var(--on-dark-link); }
.brand__badge { background: var(--peach); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.nav { gap: 2px; }
.nav a { border-radius: 999px; font-weight: 400; color: var(--ink); }
.nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.85); color: var(--accent); font-weight: 600; }
.langsw { border: 0; background: rgba(255,255,255,.7); padding: 4px; }
.langsw a { color: var(--muted); }
.langsw a[aria-current="true"] { background: var(--ink); color: #fff; }
.hdr__link { font-weight: 400; }
.hdr__menu { border: 0; background: rgba(255,255,255,.8); border-radius: 999px; box-shadow: var(--shadow-sm); }
.avatar { background: #fff; color: var(--accent); }

/* ---------- buttons: แคปซูล ---------- */
.btn { border-radius: 999px; }
.btn--sm, .btn--lg, .btn--xl { border-radius: 999px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: #fff; border-color: transparent; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--dash); color: var(--ink); }
.btn--ink { border-color: var(--ink); }
.btn--light { background: var(--tint); color: var(--ink); } .btn--light:hover { background: #D3ECE9; color: var(--ink); }
.btn--danger { border-color: #EBC2B4; }
.btn:disabled, .btn[aria-disabled="true"] { background: #E4E9E7; color: var(--hint); box-shadow: none; }
.icon-btn { border-radius: 999px; border-color: var(--outline); }
.link-btn { color: var(--accent); }

/* ---------- hero (หน้าแรก) + ส่วนหัวของหน้าอื่น ๆ: พื้นไล่สีลากูนสว่าง ---------- */
.hero, .page-hero, .land-hero, .sband {
  background: var(--hero-grad); color: var(--ink);
  /* ข้อความรองในส่วนหัวเดิมออกแบบไว้บนพื้นเข้ม → เปลี่ยนสีเฉพาะในส่วนนี้ */
  --on-dark: #536E74; --on-dark2: #536E74; --on-dark-link: #1F7480; --dark-line: rgba(33,66,74,.14);
}
.hero__in { padding-top: 28px; padding-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; background: rgba(255,255,255,.75); color: var(--peach-ink);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0; padding: 7px 14px; border-radius: 999px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: var(--peach); flex: 0 0 auto; }
.dark-card .eyebrow, .eplan .eyebrow, .al-sum .eyebrow { background: rgba(255,255,255,.12); color: #FFD9C4; }
.hero h1 { font-size: 52px; line-height: 1.18; font-weight: 500; letter-spacing: 0; max-width: 640px; text-wrap: balance; }
html[lang="th"] .hero h1 { font-size: 48px; line-height: 1.3; max-width: 680px; }
.hero__sub { margin-top: 14px; font-size: 19px; color: var(--muted); font-weight: 400; max-width: 560px; }
.hero--home .hero__in { padding-top: 28px; padding-bottom: 0; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; padding-bottom: 24px; }
.hero__art { flex: 1 1 400px; min-width: 0; max-width: 560px; aspect-ratio: 5 / 4; }
.hero__art svg { display: block; width: 100%; height: 100%; }
.hero__wave { display: block; width: 100%; height: 64px; margin-top: -20px; }
.hero--home { position: relative; overflow: hidden; }

/* ช่องค้นหา: กล่องขาวโค้ง 28px + ช่องกรอกพื้นมิ้นต์ */
.searchbar { margin-top: 30px; border-radius: 28px; padding: 10px; gap: 8px; box-shadow: var(--shadow-lg); max-width: 760px; }
.searchbar__sep { display: none; }
.searchbar__f { background: var(--tint); border-radius: 20px; padding: 8px 16px; }
.searchbar__f--what { flex: 2 1 230px; } .searchbar__f--where { flex: 1 1 170px; }
.searchbar__f label { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.searchbar__f input, .searchbar__f select { font-size: 16px; padding: 4px 0; }
.searchbar__btn { border-radius: 20px; font-size: 17px; padding: 0 30px; min-height: 58px; background: var(--accent); }
.searchbar__btn:hover { background: var(--accent-dark); }
.chips { margin-top: 18px; gap: 8px; }
.chips__label { color: var(--muted); white-space: nowrap; }
.chip-dark { border: 0; background: rgba(255,255,255,.8); color: var(--ink); padding: 8px 15px; }
.chip-dark:hover { background: #fff; color: var(--accent); }

/* ส่วนหัวของหน้าอื่น (รายการงาน, landing, นโยบาย, ฯลฯ) */
.page-hero .page-h1, .land-hero__h1 { color: var(--ink); }
.page-h1 { font-size: 44px; line-height: 1.2; }
.land-hero__h1 { font-size: 48px; line-height: 1.18; }
.land-hero__h1--sm { font-size: 40px; }
.page-hero__sub, .land-hero__sub { color: var(--muted); }
.hero .breadcrumb a:hover, .land-hero .breadcrumb a:hover, .page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero, .land-hero { position: relative; }
.page-hero::after, .land-hero::after, .sband::after {
  content: ''; display: block; height: 40px; margin-top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40C200 6 420 6 640 34s440 46 640 18c70-10 120-14 160-12V80H0z' fill='%23FBF7EF'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
/* หน้าที่พื้นเป็นสีขาว/การ์ดใต้ส่วนหัว: ไม่ต้องเว้นเพิ่ม */
.sband::after { height: 28px; }

/* ส่วนหัวของหน้านายจ้าง / ราคาแพ็คเกจ (ใช้ .hero ร่วมกัน) — ข้อความ/ปุ่มที่เดิมออกแบบบนพื้นเข้ม */
.hero .ehero__th { color: var(--ink); }
/* ปุ่มหลักในส่วนหัว (เดิมเป็นปุ่มสีอ่อนบนพื้นเข้ม) → ปุ่มลากูนแบบต้นฉบับ */
.hero .btn--light { background: var(--accent); color: #fff; }
.hero .btn--light:hover { background: var(--accent-dark); color: #fff; }
.hero .btn--ghost-dark, .page-hero .btn--ghost-dark, .land-hero .btn--ghost-dark { background: #fff; border-color: transparent; color: var(--ink); box-shadow: var(--shadow-sm); }
.hero .btn--ghost-dark:hover, .page-hero .btn--ghost-dark:hover, .land-hero .btn--ghost-dark:hover { color: var(--accent); }
.ehero__art { border-radius: var(--r-card); box-shadow: var(--shadow); }
h1.ehero__h1 { font-weight: 500; letter-spacing: 0; line-height: 1.18; }
h1.eprice-hero__h1 { font-weight: 500; letter-spacing: 0; line-height: 1.18; }
.btn--ghost-dark { border-radius: 999px; }

/* หน้ารายการงาน: แถบค้นหา + ตัวกรอง + การ์ดผลลัพธ์ */
.sbar { border-radius: 28px; padding: 8px; box-shadow: var(--shadow-lg); }
.sbar input[type="search"] { font-size: 16px; }
.sbar__btn { border-radius: 999px; padding: 0 30px; }
.sbar__clear { background: var(--tint); }
.fsel { border-color: var(--input); border-radius: var(--r-field); }
.fchip { border-color: transparent; color: var(--accent); }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.rcard { padding: 22px; }
.rcard--urgent { border: 0; padding: 22px; }
.rcard__btns .icon-btn { border-radius: 999px; }
.rcard__btn { border-radius: 999px; }
.sres__h1 { font-family: var(--head); font-weight: 500; }
.filters__h { font-family: var(--head); font-weight: 500; }
.fset__legend { letter-spacing: 0; }

/* ---------- sections ---------- */
.section { padding-top: 32px; padding-bottom: 32px; }
.section--first { padding-top: 8px; }
.h2 { font-size: 34px; line-height: 1.25; }
.section__sub { margin-top: 4px; color: var(--muted); }
.see-all { background: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--accent); }
.see-all:hover { color: var(--ink); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.grid-tiles { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- job card ---------- */
.jcard { border: 0; border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); gap: 12px; }
.jcard--urgent { border: 0; padding: 22px; }
.logo-tile { width: 50px; height: 50px; border-radius: 999px; background: var(--tint); color: var(--accent); font-weight: 600; font-size: 15px; }
.logo-tile--lg { width: 56px; height: 56px; border-radius: 999px; }
.logo-tile--xl { width: 96px; height: 96px; border-radius: 28px; }
.logo-tile img { border-radius: inherit; }
.jcard__meta { font-size: 14.5px; }
.jcard__salary { font-size: 16.5px; }
.tag { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.tag--type { background: var(--chip); color: var(--ink); }
.jcard__foot { border-top: 0; padding-top: 0; margin-top: 4px; }
.jcard .btn--outline, .rcard .btn--outline, .mini-job .btn--outline { background: var(--tint); box-shadow: none; border-color: transparent; color: var(--ink); }
.jcard .btn--outline:hover, .rcard .btn--outline:hover, .mini-job .btn--outline:hover { background: #D3ECE9; }
.badge { font-size: 12.5px; padding: 5px 11px; }
.badge--urgent { background: var(--urgent-bg); color: var(--urgent); }
.badge--pop { background: var(--peach); color: var(--ink); }

/* ---------- tiles: พื้นที่ (โค้ง 24 สลับสีมิ้นต์/พีช/ฟ้า + คลื่นมุมขวาล่าง) ---------- */
.area-tile { border: 0; border-radius: var(--r-card); padding: 20px 22px; min-height: 112px; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 2px; position: relative; overflow: hidden; background: var(--tint); }
.grid-tiles > .area-tile:nth-child(3n+2) { background: var(--chip); }
.grid-tiles > .area-tile:nth-child(3n) { background: var(--sky); }
.area-tile::after { content: ''; position: absolute; right: -6px; bottom: -4px; width: 120px; height: 40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M0 22c20-12 40-12 60 0s40 12 60 0v18H0z' fill='%23FFFFFF' fill-opacity='0.55'/%3E%3C/svg%3E") no-repeat; }
.area-tile:hover { border: 0; color: var(--ink); box-shadow: var(--shadow); }
.area-tile__name { font-family: var(--head); font-size: 20px; font-weight: 500; }
.area-tile__count { margin-top: auto; padding-top: 8px; font-size: 13.5px; position: relative; z-index: 1; }

/* แผนก: การ์ดขาวโค้ง 32 + ปุ่มแคปซูลพื้นทราย */
.dept-card { background: #fff; border-radius: 32px; padding: 32px; box-shadow: var(--shadow); }
.dept-card .h2 { font-size: 30px; }
.grid-tiles--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.grid-tiles--pills .dept-tile { flex-direction: row; align-items: baseline; gap: 8px; min-height: 0; background: var(--bg); border-radius: 999px; padding: 12px 20px; }
.grid-tiles--pills .dept-tile:hover { background: var(--tint); }
.grid-tiles--pills .dept-tile__name { font-size: 15.5px; font-weight: 500; }
.grid-tiles--pills .dept-tile__alt { font-size: 13px; }
.dept-tile { background: var(--chip); border-radius: var(--r-card); }
.dept-tile:hover { background: var(--tint); }

/* ---------- employer CTA (มิ้นต์ โค้ง 36 + วงกลมพีช) ---------- */
.cta-card { background: var(--tint); border: 0; border-radius: 36px; padding: 40px; gap: 32px; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px; border-radius: 999px; background: rgba(246,174,134,.25); pointer-events: none; }
.cta-card__main, .cta-card .ticks { position: relative; }
.cta-card__eyebrow { color: var(--peach-ink); letter-spacing: 0; }
.cta-card h2 { font-size: 36px; text-wrap: balance; }
.cta-card__p { color: var(--muted); }
.ticks { gap: 10px; }
.ticks li { align-items: center; background: rgba(255,255,255,.8); border-radius: 18px; padding: 12px 16px; font-size: 15.5px; }

/* ---------- การ์ด / กล่องเนื้อหาทั่วไป: ไม่มีเส้นขอบ โค้ง 24 + เงานุ่ม ---------- */
.card, .faq, .jd-card, .rcard, .lrow, .side-card, .mini-job, .co-card, .al-set, .done-card, .nf__card, .filters,
.apply__box, .apply__card, .sk-card, .cvb__sec, .cvp,
.ecard, .ekpi, .ealist, .epp__qr, .eart, .ebox, .eplanc {
  border-color: transparent; border-radius: var(--r-card); box-shadow: var(--shadow);
}
.card--lg, .card--xl { border-radius: 28px; }
.eplanc--urgent { border-color: var(--accent); }
.eart--urgent { border-color: var(--peach); }
.emore__menu { border-radius: 18px; box-shadow: var(--shadow-lg); }
.empty { border-radius: var(--r-card); border-color: var(--dash); }
.faq__q { padding: 18px 24px; }
.faq__sign { color: var(--accent); }

/* กล่องสีเข้มเดิม (สรุปแพ็คเกจ, แบนเนอร์ติดต่อ ฯลฯ) → ลากูนเข้ม โค้งนุ่ม */
.dark-card, .eplan, .al-sum, .econtact-band, .ecta { background: var(--deep); border-radius: 28px; }
.eband { border-radius: 28px; }
.eutil, .ehdr { background: var(--deep); }
.ehdr__post { border-radius: 999px; }

/* ---------- forms ---------- */
.input, .select, .textarea { border-color: var(--input); border-radius: var(--r-field); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 3px solid rgba(31,116,128,.16); }
.pill-check span { border-color: var(--outline); }
.pill-check input:checked + span { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.dropzone { border-radius: 20px; background: var(--tint2); }
.check input { accent-color: var(--accent); }
.otp-input { border-radius: var(--r-field); }

/* ---------- notices ---------- */
.flash, .notice { border-radius: 16px; }

/* ---------- tabs / pager / tables / stepper ---------- */
.tabs a, .tabs button { border-color: transparent; background: #fff; box-shadow: var(--shadow-sm); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a, .pager span { border-radius: 999px; border-color: transparent; box-shadow: var(--shadow-sm); }
.pager .pager__gap { box-shadow: none; }
.pager .is-current { background: var(--ink); border-color: var(--ink); }
.table th { background: var(--tint2); }
.table-wrap { border-radius: 18px; }
.stepper__bar { background: var(--tint); }
.seg { border: 0; background: rgba(255,255,255,.75); padding: 4px; }
.seg a[aria-pressed="true"], .seg input:checked + span { background: var(--ink); }
.progress > span, .stepper__s.is-done .stepper__bar, .stepper__s.is-current .stepper__bar { background: var(--accent); }

/* ---------- footer: ลากูนเข้ม + ขอบคลื่นด้านบน ---------- */
.ftr { background: var(--deep); color: var(--on-dark); margin-top: 72px; position: relative; }
.ftr::before { content: ''; display: block; height: 48px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 0 480 0 720 24s480 40 720 10V60H0z' fill='%231F4A52'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.ftr__in { padding-top: 24px; }
.ftr__brand .brand__word { font-size: 24px; color: #fff; }
.ftr__head { color: #fff; }
.ftr__col a { color: var(--on-dark); } .ftr__col a:hover { color: #fff; }
.ftr__bottom { border-top-color: rgba(255,255,255,.12); color: var(--on-dark2); }
.ftr--popular[style] { border-bottom-color: rgba(255,255,255,.12) !important; }
.ftr--popular h2 { color: #fff; }
.ftr--light { background: #fff; }
.ftr--light::before { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* คอลัมน์ข้อความแคบลง: ปุ่มค้นหาขึ้นแถวใหม่เต็มความกว้างแทนการลอยอยู่ครึ่งแถว */
  .searchbar__btn { flex: 1 1 100%; }
}
@media (max-width: 960px) {
  .hdr.is-open .nav a { background: rgba(255,255,255,.6); }
  .hero__art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 960px) {
  .hdr__in { gap: 10px; }
}
@media (max-width: 640px) {
  .brand__word { font-size: 21px; }
  .brand__mark { width: 32px; height: 32px; }
  .hdr__in { padding-top: 12px; padding-bottom: 12px; }
  .searchbar__f--what, .searchbar__f--where { flex-basis: auto; } /* คอลัมน์แนวตั้ง: basis จะกลายเป็นความสูง */
  .hero h1 { font-size: 36px; }
  html[lang="th"] .hero h1 { font-size: 32px; }
  .hero__sub { font-size: 17px; }
  .hero__art { display: none; }
  .hero__wave { height: 36px; margin-top: 0; }
  .searchbar { border-radius: 24px; padding: 8px; gap: 8px; }
  .searchbar__f { padding: 8px 14px; }
  .searchbar__btn { border-radius: 18px; min-height: 52px; }
  .page-h1 { font-size: 32px; }
  .land-hero__h1, .land-hero__h1--sm { font-size: 32px; }
  .h2 { font-size: 26px; }
  .jcard { padding: 18px 16px; border-radius: 20px; }
  .jcard--urgent { padding: 18px 16px; }
  .area-tile { min-height: 96px; padding: 16px; }
  .area-tile__name { font-size: 17px; }
  .dept-card { padding: 22px 18px; border-radius: 24px; }
  .cta-card { padding: 24px; border-radius: 28px; }
  .cta-card h2 { font-size: 28px; }
  .ftr::before { height: 28px; }
}
