/* ════════════════════════════════
   JOBSNCC — style.css
   N.C.C. Management & Development
════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --navy:       #0A1628;
  --blue:       #2438B8;
  --blue-mid:   #3246E1;
  --blue-light: #5569FF;
  --gold:       #F5C518;
  --gold-light: #FFD84D;
  --white:      #FFFFFF;
  --gray-100:   #F4F6FB;
  --gray-200:   #E8ECF5;
  --gray-500:   #8A96B0;
  --gray-700:   #3D4B6B;
  --text:       #0F1C3F;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', sans-serif;
  background: var(--gray-100);
  color: var(--text);
  overflow-x: hidden;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
nav.navbar-new {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  padding: 0 32px; height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .3s ease;
}
/* Logo — left */
nav.navbar-new .nav-logo { justify-self: start; }
/* Nav links — center */
nav.navbar-new .nav-links { justify-self: center; }
/* Right group (flags + action buttons) */
.nav-right-group {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo .logo-jobs {
  font-weight: 900; font-size: 26px;
  color: var(--white); letter-spacing: -1px;
}
.nav-logo .logo-jobs .o-ring {
  display: inline-block; width: 22px; height: 22px;
  border: 3px solid var(--gold); border-radius: 50%;
  margin: 0 1px; position: relative; top: 1px;
}
.nav-logo .logo-jobs .o-ring::after {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  position: absolute; bottom: -2px; right: -2px;
}
.nav-logo .logo-ncc {
  font-weight: 900; font-size: 26px;
  color: var(--white); background: var(--blue-mid);
  padding: 2px 10px; border-radius: 4px; letter-spacing: 1px; margin-left: 4px;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.7); text-decoration: none;
  font-size: 14px; padding: 6px 14px; border-radius: 6px; transition: all .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* Language flags */
.nav-flags { display: flex; gap: 6px; align-items: center; }
.flag-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; overflow: hidden;
  opacity: .55; transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.flag-btn img { display: block; border-radius: 2px; }
.flag-btn:hover  { opacity: 1; border-color: rgba(255,255,255,.3); }
.flag-btn.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 8px rgba(245,197,24,.4); }

/* Action buttons */
.nav-actions { display: flex; gap: 10px; }
.btn-emp {
  padding: 8px 18px; border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px; color: var(--white); background: transparent;
  font-family: 'Sarabun', sans-serif; font-size: 13px; cursor: pointer;
  transition: all .2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-emp:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }

.btn-admin {
  padding: 8px 18px; border: none; border-radius: 8px;
  color: var(--navy); background: var(--gold);
  font-family: 'Sarabun', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-admin:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Vertical divider between flags and buttons */
.nav-divider {
  width: 1px; height: 22px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ════════════════════════════════
   HAMBURGER BUTTON (mobile only)
════════════════════════════════ */
.hamburger {
  display: none;
  background: transparent; border: none; cursor: pointer;
  color: var(--white); font-size: 22px; padding: 4px 8px;
  line-height: 1; transition: color .2s; justify-self: end;
}
.hamburger:hover { color: var(--gold); }

/* ════════════════════════════════
   MOBILE NAV DRAWER
════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav a {
  display: block; padding: 14px 16px;
  color: rgba(255, 255, 255, .8); text-decoration: none;
  font-size: 16px; font-family: 'Sarabun', sans-serif;
  border-radius: 10px; border: 1px solid transparent;
  transition: all .2s;
}
.mobile-nav a:hover {
  background: rgba(255,255,255,.07); color: var(--white);
  border-color: rgba(255,255,255,.1);
}
.mobile-divider {
  height: 1px; background: rgba(255,255,255,.1); margin: 8px 0;
}
.mobile-flags {
  display: flex; gap: 10px; padding: 8px 16px;
}
.btn-emp-mobile {
  display: block; padding: 13px 16px; margin-top: 4px;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px;
  color: var(--white); text-align: center; font-size: 14px;
  font-family: 'Sarabun', sans-serif; transition: all .2s; text-decoration: none;
}
.btn-emp-mobile:hover { background: rgba(255,255,255,.1); }
.btn-admin-mobile {
  display: block; padding: 13px 16px; margin-top: 8px;
  background: var(--gold); border: none; border-radius: 10px;
  color: var(--navy); text-align: center; font-size: 14px;
  font-family: 'Sarabun', sans-serif; font-weight: 700; cursor: pointer;
  transition: all .2s; width: 100%;
}
.btn-admin-mobile:hover { background: var(--gold-light); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy); padding-top: 68px;
}

/* Animated background */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg .circle-1 {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 81, 200, .35) 0%, transparent 70%);
  top: -200px; right: -100px; animation: pulse 8s ease-in-out infinite;
}
.hero-bg .circle-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .15) 0%, transparent 70%);
  bottom: 50px; left: 10%; animation: pulse 10s ease-in-out 2s infinite;
}
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg .diagonal-bar {
  position: absolute; width: 200%; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, .4), rgba(74, 126, 255, .4), transparent);
  top: 45%; left: -50%; transform: rotate(-8deg);
  animation: slide 12s linear infinite;
}

/* Hero layout */
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: 80px 48px; width: 100%;
}
.hero-text { animation: fadeUp .8s ease both; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .35);
  color: var(--gold); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero-tag::before { content: '●'; font-size: 8px; animation: blink 1.5s infinite; }

.hero-title {
   font-weight: 900;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.05;
  color: var(--white); margin-bottom: 20px;
}
.hero-title .accent      { color: var(--gold); }
.hero-title .blue-accent { color: var(--blue-light); }

.hero-sub {
  font-size: 17px; line-height: 1.7;
  color: rgba(255, 255, 255, .6); margin-bottom: 40px; max-width: 460px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 30px; background: var(--gold); color: var(--navy); border: none;
  border-radius: 10px;  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(245, 197, 24, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(245, 197, 24, .5); }

.btn-secondary {
  padding: 14px 30px; background: rgba(255, 255, 255, .08); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 10px;
  font-family: 'Sarabun', sans-serif; font-size: 15px; cursor: pointer;
  transition: all .25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); }

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap;
}
.stat-num {
   font-weight: 900;
  font-size: 32px; color: var(--white); line-height: 1;
}
.stat-num span { color: var(--gold); }
.stat-label { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 4px; letter-spacing: .5px; }

/* ── Hero card (right side) ── */
.hero-visual { position: relative; animation: fadeUp .8s ease .2s both; }

.card-accent {
  position: absolute; top: -35px; right: 30px;
  background: var(--gold); color: var(--navy);
   font-weight: 700; font-size: 12px;
  padding: 8px 16px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(245, 197, 24, .4);
  white-space: nowrap; animation: float 3s ease-in-out infinite;
}

.hero-card-main {
  background: linear-gradient(135deg, #1A3A8F 0%, #0D2060 100%);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px;
  padding: 36px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
}
.hero-card-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue-light));
  border-radius: 24px 24px 0 0;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-title  {  font-weight: 700; color: var(--white); font-size: 18px; }
.card-badge  {
  background: rgba(245, 197, 24, .15); border: 1px solid rgba(245, 197, 24, .4);
  color: var(--gold); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
}

/* Job items inside hero card */
.job-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px;
  margin-bottom: 10px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.job-item:hover {
  background: rgba(74, 126, 255, .12); border-color: rgba(74, 126, 255, .3);
  transform: translateX(4px);
}
.job-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.job-icon.yellow { background: rgba(245, 197, 24, .15); }
.job-icon.blue   { background: rgba(74, 126, 255, .15); }
.job-icon.green  { background: rgba(52, 211, 153, .15); }
.job-icon.pink   { background: rgba(251, 113, 133, .15); }

.job-info    { flex: 1; }
.job-name    { color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.3; }
.job-meta-sm { font-size: 12px; color: rgba(255, 255, 255, .4); margin-top: 2px; }

.job-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; flex-shrink: 0; }
.job-tag.full     { background: rgba(52, 211, 153, .15); color: #34D399; }
.job-tag.contract { background: rgba(251, 146, 60, .15);  color: #FB923C; }
.job-tag.new      { background: rgba(245, 197, 24, .15);  color: var(--gold); }

.card-footer {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex; justify-content: space-between; align-items: center;
}
.card-footer-text { font-size: 12px; color: rgba(255, 255, 255, .4); }
.card-footer-link { font-size: 13px; color: var(--gold); text-decoration: none; font-weight: 600; }
.card-footer-link:hover { color: var(--gold-light); }

/* ════════════════════════════════
   MAIN CONTENT
════════════════════════════════ */
.main-content { max-width: 1200px; margin: 0 auto; padding: 80px 48px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title {
   font-weight: 700; font-size: 22px;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--gold), var(--blue-mid)); border-radius: 2px;
}
.section-link { font-size: 13px; color: var(--blue-mid); text-decoration: none; font-weight: 600; }
.section-link:hover { color: var(--blue-light); }

/* Filter tabs */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 16px; border-radius: 8px; font-size: 13px;
  font-family: 'Sarabun', sans-serif; cursor: pointer;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); transition: all .2s;
}
.filter-tab:hover  { border-color: var(--blue-mid); color: var(--blue-mid); }
.filter-tab.active { background: var(--blue-mid); color: var(--white); border-color: var(--blue-mid); }

/* ── Job cards (main list) ── */
.job-card {
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 18px;
  cursor: pointer; transition: all .25s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.job-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--blue-mid));
  border-radius: 0 2px 2px 0; opacity: 0; transition: opacity .2s;
}
.job-card:hover           { border-color: var(--blue-mid); box-shadow: 0 8px 32px rgba(26, 58, 143, .1); transform: translateY(-2px); }
.job-card:hover::before   { opacity: 1; }
.job-card:hover .jc-arrow { background: var(--blue-mid); color: var(--white); }

.jc-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.jc-icon-gold { background: linear-gradient(135deg, #F5C518, #FFD84D) !important; }

.jc-body  { flex: 1; min-width: 0; }
.jc-title {
   font-weight: 600;
  font-size: 15px; color: var(--text); margin-bottom: 6px;
}

/* Accordion */
.accordion-icon { margin-right: 8px; transition: transform .25s; display: inline-block; }
.job-card.open .accordion-icon { transform: rotate(45deg); }
.jc-collapse {
  display: none; padding-top: 12px;
  border-top: 1px solid var(--gray-200); margin-top: 10px;
  font-size: 13px; color: var(--gray-700); line-height: 1.8;
}
.jc-collapse.show { display: block; animation: fadeUp .25s ease both; }

.jc-meta      { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.jc-meta-item { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }

.jc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.jc-badge           { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.jc-badge.full-time { background: rgba(5, 150, 105, .1);  color: #059669; }
.jc-badge.contract  { background: rgba(217, 119, 6, .1);  color: #D97706; }
.jc-badge.part-time { background: rgba(124, 58, 237, .1); color: #7C3AED; }

.jc-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--gray-500); transition: all .2s;
}
.jc-arrow-blue { background: var(--blue-mid) !important; color: var(--white) !important; }

/* Apply button inside accordion */
.btn-apply-card {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white); 
  font-weight: 700; font-size: 13px; cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(35, 81, 200, .3);
}
.btn-apply-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(35, 81, 200, .45); }

/* ════════════════════════════════
   LOGIN / REGISTER POPUP MODAL
════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.login-modal {
  width: 100%; max-width: 480px;
  background: var(--white); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
  transform: scale(.93) translateY(24px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.modal-overlay.open .login-modal { transform: scale(1) translateY(0); }

/* Top colour stripe */
.lm-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue-mid) 50%, var(--blue-light) 100%);
}

/* Modal header */
.lm-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2060 100%);
  padding: 32px 36px 28px; position: relative; overflow: hidden;
}
.lm-header::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, .04);
}
.lm-header::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .12) 0%, transparent 70%);
}

.lm-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: none; cursor: pointer;
  color: rgba(255, 255, 255, .7); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.lm-close:hover { background: rgba(255, 255, 255, .25); color: var(--white); transform: rotate(90deg); }

.lm-logo { display: flex; align-items: center; margin-bottom: 18px; }
.lm-logo .logo-jobs {
   font-weight: 900; font-size: 22px;
  color: var(--white); letter-spacing: -1px;
}
.lm-logo .o-ring {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid var(--gold); border-radius: 50%;
  margin: 0 1px; position: relative; top: 1px;
}
.lm-logo .o-ring::after {
  content: ''; display: block; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  position: absolute; bottom: -2px; right: -2px;
}
.lm-logo .logo-ncc {
   font-weight: 900; font-size: 22px;
  color: var(--white); background: var(--blue-mid);
  padding: 1px 8px; border-radius: 4px; margin-left: 4px;
}

.lm-title {  font-weight: 800; font-size: 22px; color: var(--white); margin-bottom: 6px; }
.lm-sub   { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* Modal body */
.lm-body { padding: 28px 36px 24px; }

.lm-tabs {
  display: flex; margin-bottom: 24px;
  background: var(--gray-100); border-radius: 12px; padding: 4px; gap: 4px;
}
.lm-tab {
  flex: 1; padding: 9px 14px; border: none; border-radius: 9px;
  background: transparent; font-family: 'Sarabun', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all .2s;
}
.lm-tab.active { background: var(--white); color: var(--blue-mid); box-shadow: 0 2px 8px rgba(10, 22, 40, .08); }

.lm-pane        { display: none; }
.lm-pane.active { display: block; animation: fadeUp .2s ease both; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--gray-700);
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: 11px;
  font-family: 'Sarabun', sans-serif; font-size: 14px; color: var(--text);
  background: var(--gray-100); transition: all .2s; outline: none;
}
.form-input:focus {
  border-color: var(--blue-mid); background: var(--white);
  box-shadow: 0 0 0 3px rgba(35, 81, 200, .1);
}
.form-input::placeholder { color: var(--gray-500); }

.alert-invalid {
  background: rgba(251, 146, 60, .1); border: 1px solid rgba(251, 146, 60, .35);
  color: #92400E; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 16px;
}

.btn-login {
  width: 100%; padding: 13px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white);  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .25s; box-shadow: 0 6px 20px rgba(35, 81, 200, .3);
  letter-spacing: .5px; margin-top: 4px;
}
.btn-login:hover  { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(35, 81, 200, .45); }
.btn-login:active { transform: translateY(0); }

.lm-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
}
.lm-divider::before,
.lm-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.lm-divider span   { font-size: 12px; color: var(--gray-500); white-space: nowrap; }

.btn-outline {
  width: 100%; padding: 12px; border: 1.5px solid var(--blue-mid); border-radius: 11px;
  background: transparent; color: var(--blue-mid);
   font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .2s; text-decoration: none;
  display: block; text-align: center;
}
.btn-outline:hover { background: var(--blue-mid); color: var(--white); }

.form-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}
.form-link     { font-size: 12px; color: var(--blue-mid); text-decoration: none; font-weight: 500; }
.form-link:hover { color: var(--blue-light); text-decoration: underline; }
.form-link-sep { font-size: 12px; color: var(--gray-200); }

/* Register pane */
.register-hero { text-align: center; padding: 8px 0 20px; }
.register-hero .rh-icon  { font-size: 52px; margin-bottom: 14px; }
.register-hero .rh-title {
   font-weight: 800;
  font-size: 19px; color: var(--text); margin-bottom: 8px;
}
.register-hero .rh-sub { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

.btn-go-register {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; padding: 13px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white);  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .25s; box-shadow: 0 6px 20px rgba(35, 81, 200, .3);
  text-decoration: none; margin-top: 4px;
}
.btn-go-register:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(35, 81, 200, .45); }

/* Modal footer note */
.lm-footer {
  padding: 12px 36px 18px; border-top: 1px solid var(--gray-200);
  text-align: center; font-size: 11px; color: var(--gray-500); line-height: 1.6;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer.footer-new {
  background: var(--navy); color: rgba(255, 255, 255, .5);
  text-align: center; padding: 36px 48px; font-size: 13px; line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
footer.footer-new strong { color: rgba(255, 255, 255, .85);  font-weight: 600; }
footer.footer-new .footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
footer.footer-new .footer-links a { color: rgba(255, 255, 255, .4); text-decoration: none; font-size: 12px; transition: color .2s; }
footer.footer-new .footer-links a:hover { color: var(--gold); }

/* ════════════════════════════════
   JOB DESCRIPTION POPUP
════════════════════════════════ */
.job-popup-box {
  width: 100%; max-width: 560px;
  background: var(--white); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
  transform: scale(.93) translateY(24px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-overlay.open .job-popup-box { transform: scale(1) translateY(0); }

/* Header */
.jp-header {
  background: linear-gradient(135deg, #0D1F5C 0%, #1A2E8A 100%);
  padding: 32px 32px 24px; position: relative; flex-shrink: 0;
}
.jp-header::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 32px solid rgba(255,255,255,.04);
}
.jp-title {
   font-weight: 800;
  font-size: 20px; color: var(--white); margin-bottom: 12px; line-height: 1.3;
}
.jp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jp-badge {
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 8px;
}
.jp-badge.full    { background: rgba(52,211,153,.2); color: #34D399; }
.jp-badge.contract { background: rgba(251,146,60,.2); color: #FB923C; }
.jp-location { font-size: 13px; color: rgba(255,255,255,.55); }

/* Body */
.jp-body {
  padding: 24px 32px; overflow-y: auto; flex: 1;
}
.jp-section-label {
   font-weight: 700; font-size: 12px;
  color: var(--blue-mid); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.jp-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.jp-content {
  font-size: 14px; line-height: 1.9; color: var(--gray-700);
}
.jp-content ul  { padding-left: 20px; margin: 8px 0; }
.jp-content li  { margin-bottom: 5px; }
.jp-content p   { margin-bottom: 10px; }
.jp-empty {
  text-align: center; padding: 32px 0; color: var(--gray-500); font-size: 14px;
}
.jp-empty .jp-empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .5; }

/* Footer */
.jp-footer {
  padding: 16px 32px; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0;
}
.jp-btn-cancel {
  padding: 10px 22px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: transparent; color: var(--gray-700);
  font-family: 'Sarabun', sans-serif; font-size: 14px; cursor: pointer; transition: all .2s;
}
.jp-btn-cancel:hover { border-color: var(--gray-500); color: var(--text); }
.jp-btn-apply {
  padding: 10px 24px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white); 
  font-weight: 700; font-size: 14px; cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(50,70,225,.35);
  display: flex; align-items: center; gap: 6px;
}
.jp-btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(50,70,225,.5); }

/* Mobile */
@media (max-width: 600px) {
  .job-popup-box { border-radius: 20px 20px 0 0; max-width: 100%; max-height: 85vh; }
  .jp-header, .jp-body, .jp-footer { padding-left: 18px; padding-right: 18px; }
  .jp-title { font-size: 17px; }
}

/* ════════════════════════════════
   KEYFRAMES
════════════════════════════════ */
@keyframes pulse  { 0%,100% { transform: scale(1);   opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes slide  { 0%      { transform: rotate(-8deg) translateX(-20%); } 100% { transform: rotate(-8deg) translateX(20%); } }
@keyframes fadeUp { from    { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float  { 0%,100% { transform: translateY(0);  } 50% { transform: translateY(-6px); } }
@keyframes blink  { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
════════════════════════════════ */
@media (max-width: 1024px) {
  nav.navbar-new {
    padding: 0 20px;
    grid-template-columns: auto auto;
  }
  nav.navbar-new .nav-links       { display: none; }
  nav.navbar-new .nav-right-group { display: none; }
  .hamburger    { display: block; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; padding: 60px 28px; }
  .hero-visual  { display: none; }
  .main-content { padding: 60px 28px; }
}

/* ════════════════════════════════
   RESPONSIVE — Mobile ≤600px
════════════════════════════════ */
@media (max-width: 600px) {
  nav.navbar-new      { padding: 0 16px; }
  .hero-content       { padding: 36px 16px; }
  .hero-tag           { font-size: 10px; letter-spacing: 1px; padding: 5px 10px; }
  .hero-title         { font-size: clamp(30px, 8vw, 44px); }
  .hero-sub           { font-size: 14px; }
  .btn-primary,
  .btn-secondary      { padding: 12px 20px; font-size: 14px; }
  .hero-stats         { gap: 16px; }
  .stat-num           { font-size: 26px; }
  .main-content       { padding: 32px 16px; }
  .section-title      { font-size: 18px; }
  .filter-tab         { padding: 6px 12px; font-size: 12px; }
  .job-card           { padding: 16px; gap: 12px; }
  .jc-icon            { width: 44px; height: 44px; font-size: 18px; }
  .jc-title           { font-size: 14px; }
  /* Modal slides up from bottom */
  .modal-overlay      { align-items: flex-end; padding: 0; }
  .login-modal        { border-radius: 20px 20px 0 0; max-width: 100%; }
  .lm-header,
  .lm-body,
  .lm-footer          { padding-left: 18px; padding-right: 18px; }
  footer.footer-new   { padding: 24px 16px; }
  footer.footer-new .footer-links { gap: 12px; }
}

/* ════════════════════════════════════════════════
   EAPPLY-AVAILABLE — Page Header
════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2060 60%, var(--blue) 100%);
  padding: 120px 48px 60px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-header .blob { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(35,81,200,.4) 0%, transparent 70%); }
.page-header .blob-1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.page-header .blob-2 { width: 300px; height: 300px; bottom: -100px; left: 5%; background: radial-gradient(circle,rgba(245,197,24,.12) 0%,transparent 70%); }

.page-header-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }

.page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.page-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--gold-light); }
.page-breadcrumb span { color: rgba(255,255,255,0.3); }

.page-title {
   font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--white); line-height: 1.1; margin-bottom: 16px;
}
.page-title .accent { color: var(--gold); }
.page-subtitle { font-size: 16px; color: rgba(255,255,255,0.6); }

.page-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.pstat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 20px;
}
.pstat-num {  font-weight: 700; font-size: 24px; color: var(--white); }
.pstat-num span { color: var(--gold); }
.pstat-label { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ── Search & Filter Bar ── */
.search-bar-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 48px; transform: translateY(-28px);
}
.search-bar {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 20px; padding: 20px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(10,22,40,.16);
}
.search-input-wrap {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-100); border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 10px 16px; transition: all .2s;
}
.search-input-wrap:focus-within {
  border-color: var(--blue-mid); background: var(--white);
  box-shadow: 0 0 0 3px rgba(35,81,200,.1);
}
.search-icon { font-size: 16px; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: transparent;
  font-family: 'Sarabun', sans-serif; font-size: 14px; color: var(--text); outline: none;
}
.search-input::placeholder { color: var(--gray-400, #A8B4CC); }

.filter-select {
  padding: 10px 16px; border: 1.5px solid var(--gray-200);
  border-radius: 12px; background: var(--gray-100);
  font-family: 'Sarabun', sans-serif; font-size: 13px;
  color: var(--gray-700); cursor: pointer; outline: none;
  transition: all .2s; min-width: 160px;
}
.filter-select:focus { border-color: var(--blue-mid); background: var(--white); }

.search-count { font-size: 13px; color: var(--gray-500); white-space: nowrap; flex-shrink: 0; }
.search-count strong { color: var(--blue-mid); font-weight: 700; }

.view-toggle { display: flex; gap: 4px; background: var(--gray-100); border-radius: 10px; padding: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--gray-500);
}
.view-btn.active { background: var(--white); color: var(--blue-mid); box-shadow: 0 2px 8px rgba(10,22,40,.06); }

/* ── Jobs Section ── */
.jobs-section { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }

/* List View */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card-list {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 16px; padding: 20px 24px;
  display: flex; align-items: center; gap: 18px;
  cursor: pointer; transition: all .25s;
  position: relative; overflow: hidden;
  animation: fadeUp .5s ease both;
}
.job-card-list::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--blue-mid));
  border-radius: 0 2px 2px 0; opacity: 0; transition: opacity .2s;
}
.job-card-list:hover { border-color: var(--blue-mid); box-shadow: 0 8px 32px rgba(10,22,40,.10); transform: translateX(4px); }
.job-card-list:hover::before { opacity: 1; }
.job-card-list:hover .jc-arrow { background: var(--blue-mid); color: var(--white); }

/* Grid View */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.job-card-grid {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 16px; padding: 24px;
  cursor: pointer; transition: all .25s;
  position: relative; overflow: hidden;
  animation: fadeUp .5s ease both;
  display: flex; flex-direction: column; gap: 14px;
}
.job-card-grid::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue-mid));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.job-card-grid:hover { border-color: var(--blue-light); box-shadow: 0 8px 32px rgba(10,22,40,.10); transform: translateY(-4px); }
.job-card-grid:hover::before { transform: scaleX(1); }

/* Shared card icon bg variants */
.jc-icon-bg-0 { background: linear-gradient(135deg,#EFF6FF,#DBEAFE); }
.jc-icon-bg-1 { background: linear-gradient(135deg,#FEF9C3,#FEF08A); }
.jc-icon-bg-2 { background: linear-gradient(135deg,#ECFDF5,#A7F3D0); }
.jc-icon-bg-3 { background: linear-gradient(135deg,#FFF1F2,#FFE4E6); }
.jc-icon-bg-4 { background: linear-gradient(135deg,#F5F3FF,#DDD6FE); }
.jc-icon-bg-5 { background: linear-gradient(135deg,#FFF7ED,#FED7AA); }

.jc-dept { font-size: 11px; font-weight: 700; color: var(--blue-mid); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.jc-desc-preview { font-size: 13px; color: var(--gray-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-footer  { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.jc-badges  { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-view-detail {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--blue-mid);
  background: transparent; color: var(--blue-mid);
  font-family: 'Sarabun', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .2s;
}
.btn-view-detail:hover { background: var(--blue-mid); color: var(--white); }

/* No result */
.no-result { text-align: center; padding: 80px 20px; color: var(--gray-500); }
.no-result-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
.no-result h3 {  font-size: 20px; color: var(--gray-700); margin-bottom: 8px; }

/* ── Modal Detail (eapply-available) ── */
.modal-box {
  background: var(--white); border-radius: 24px;
  width: 100%; max-width: 720px; max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  transform: scale(.95) translateY(20px); transition: transform .3s ease;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 32px 36px 28px; position: relative; overflow: hidden; flex-shrink: 0;
}
.modal-header::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,0.04);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: var(--white); font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-job-icon { font-size: 36px; margin-bottom: 14px; }
.modal-job-title {  font-weight: 800; font-size: 24px; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.modal-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.modal-badge { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.modal-badge.code  { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.modal-badge.date  { background: rgba(245,197,24,.2);   color: var(--gold); }
.modal-badge.grade { background: rgba(74,126,255,.2);   color: #93C5FD; }

.modal-body { padding: 32px 36px; overflow-y: auto; flex: 1; }
.modal-section-title {
   font-weight: 700; font-size: 14px;
  color: var(--blue-mid); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.modal-section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.modal-content-text { font-size: 14px; line-height: 1.9; color: var(--gray-700); }
.modal-content-text ul { padding-left: 20px; margin: 10px 0; }
.modal-content-text li { margin-bottom: 6px; }

.modal-footer {
  padding: 20px 36px; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-shrink: 0; flex-wrap: wrap;
}
.modal-footer-info { font-size: 12px; color: var(--gray-500); }
.modal-apply-btn {
  padding: 12px 28px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white);  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .25s; box-shadow: 0 6px 20px rgba(35,81,200,.3);
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.modal-apply-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(35,81,200,.45); }

/* ── Nav Back / Apply (eapply-available navbar) ── */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 13px; font-family: 'Sarabun', sans-serif; transition: all .2s;
}
.nav-back:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-apply {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 8px; border: none;
  background: var(--gold); color: var(--navy);
  font-family: 'Sarabun', sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.nav-apply:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── Responsive eapply-available ── */
@media (max-width: 1024px) {
  .page-header         { padding: 100px 24px 50px; }
  .search-bar-wrap,
  .jobs-section        { padding-left: 24px; padding-right: 24px; }
  .jobs-grid           { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-header         { padding: 90px 20px 40px; }
  .search-bar-wrap,
  .jobs-section        { padding-left: 16px; padding-right: 16px; }
  .search-bar          { flex-direction: column; align-items: stretch; }
  .search-input-wrap,
  .filter-select       { width: 100%; }
  .jobs-grid           { grid-template-columns: 1fr; }
  .modal-header,
  .modal-body,
  .modal-footer        { padding-left: 20px; padding-right: 20px; }
  .modal-job-title     { font-size: 19px; }
}


/* ════════════════════════════════════════════════
   EAPPLY-REGISTER — Register Page
════════════════════════════════════════════════ */
.register-page {
    min-height: 100vh;
    padding-top: 68px;
    background: var(--gray-100);
    display: flex; flex-direction: column;
}

/* ── Banner ── */
.reg-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #0D2060 60%, var(--blue) 100%);
    padding: 52px 48px 44px; position: relative; overflow: hidden;
}
.reg-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
}
.reg-banner .blob {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(50,70,225,.4) 0%, transparent 70%);
    width: 400px; height: 400px; top: -150px; right: -80px;
}
.reg-banner-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.reg-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 16px;
}
.reg-breadcrumb a { color: var(--gold); }
.reg-breadcrumb a:hover { color: var(--gold-light); }
.reg-banner h1 {
     font-weight: 800;
    font-size: clamp(24px,3vw,36px); color: var(--white);
    margin-bottom: 8px; line-height: 1.2;
}
.reg-banner h1 span { color: var(--gold); }
.reg-banner p { font-size: 15px; color: rgba(255,255,255,.6); }

/* ── Main card ── */
.reg-main {
    max-width: 800px; margin: -24px auto 60px;
    padding: 0 24px; width: 100%; flex: 1;
}
.reg-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(10,22,40,.08);
}
.reg-card-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--blue-mid), var(--blue-light));
}
.reg-card-body { padding: 36px 40px; }

/* Section title */
.reg-section-title {
     font-weight: 700; font-size: 13px;
    color: var(--blue-mid); letter-spacing: 1.2px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.reg-section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* Fields grid */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.reg-field { display: flex; flex-direction: column; }
.reg-field.full { grid-column: 1 / -1; min-height: 0; }
.reg-label {
    font-size: 11px; font-weight: 700; color: var(--gray-700);
    letter-spacing: .8px; text-transform: uppercase; margin-bottom: 7px;
}
.reg-label .req { color: #E53E3E; margin-left: 2px; }
.reg-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--gray-200); border-radius: 11px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, 'Sarabun', sans-serif;
    font-size: 15px; color: #1a1a1a;
    background: var(--gray-100); transition: all .2s; outline: none;
    letter-spacing: normal; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.reg-input:focus {
    border-color: var(--blue-mid); background: var(--white);
    box-shadow: 0 0 0 3px rgba(50,70,225,.1);
}
.reg-input::placeholder { color: var(--gray-500); letter-spacing: 0; }
/* Error state */
.reg-input.is-error {
    border-color: #E53E3E !important;
    background: #FFF5F5;
    box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

/* ── Password toggle wrapper ── */
.pw-wrap {
    position: relative; display: flex; align-items: center;
}
.pw-wrap .reg-input {
    padding-right: 46px;
}
.pw-toggle {
    position: absolute; right: 14px;
    background: none; border: none; cursor: pointer;
    color: var(--gray-500); line-height: 1;
    padding: 4px; transition: color .2s; flex-shrink: 0;
    display: flex; align-items: center;
}
.pw-toggle i { font-size: 20px; }
.pw-toggle:hover { color: var(--blue-mid); }
.field-error {
    font-size: 12px; color: #E53E3E;
    margin-top: 6px; display: flex; align-items: center; gap: 5px;
    animation: fadeUp .2s ease both; line-height: 1.4;
}
.field-error:empty { display: none; }
/* Consent error */
.consent-item.is-error { border-color: #E53E3E !important; }
.consent-item.is-error .consent-header { background: #FFF5F5; }

/* ── Alert Modal (กลางจอ) ── */
.reg-alert-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(10,22,40,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.reg-alert-overlay.show { opacity: 1; pointer-events: all; }

.reg-alert-box {
    background: var(--white); border-radius: 20px; overflow: hidden;
    width: 100%; max-width: 400px;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    transform: scale(.92) translateY(16px);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.reg-alert-overlay.show .reg-alert-box { transform: scale(1) translateY(0); }

.reg-alert-stripe {
    height: 5px;
    background: linear-gradient(90deg, #E53E3E, #FC8181);
}
.reg-alert-body {
    padding: 28px 28px 20px;
    text-align: center;
}
.reg-alert-icon {
    font-size: 48px; margin-bottom: 14px; line-height: 1;
}
.reg-alert-title {
     font-weight: 800;
    font-size: 18px; color: var(--text); margin-bottom: 10px;
}
.reg-alert-list {
    text-align: left; margin: 12px 0 0;
    padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 8px;
}
.reg-alert-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    background: #FFF5F5; border: 1px solid #FED7D7;
    font-size: 13px; color: #742A2A; line-height: 1.5;
}
.reg-alert-list li::before {
    content: '✕'; color: #E53E3E; font-weight: 700;
    font-size: 11px; flex-shrink: 0; margin-top: 1px;
}
.reg-alert-footer {
    padding: 16px 28px 24px; text-align: center;
}
.btn-alert-close {
    padding: 11px 32px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #E53E3E, #FC8181);
    color: var(--white); 
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: all .2s; box-shadow: 0 4px 14px rgba(229,62,62,.3);
}
.btn-alert-close:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(229,62,62,.4); }

/* Consent alert */
.reg-consent-alert {
    background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.4);
    color: #92400E; padding: 12px 16px; border-radius: 10px;
    font-size: 13px; margin-bottom: 20px; line-height: 1.6;
}

/* Consent items */
.consent-list { display: flex; flex-direction: column; gap: 16px; }
.consent-item {
    border: 1.5px solid var(--gray-200); border-radius: 14px;
    overflow: hidden; transition: border-color .2s;
}
.consent-item.checked { border-color: var(--blue-mid); background: rgba(50,70,225,.02); }
.consent-item.is-error { border-color: #E53E3E !important; }
.consent-item.is-error .consent-top { background: #FFF5F5; }

/* Top row: checkbox + title */
.consent-top {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px 14px; background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.consent-item.checked .consent-top { background: rgba(50,70,225,.04); }

/* Custom checkbox */
.c-checkbox { position: relative; flex-shrink: 0; margin-top: 2px; cursor: pointer; display: inline-flex; }
.c-checkbox input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.c-checkbox .cb-box {
    width: 24px; height: 24px; border-radius: 6px;
    border: 2px solid var(--gray-400); background: var(--white);
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.c-checkbox input:checked + .cb-box { background: var(--blue-mid); border-color: var(--blue-mid); }
.c-checkbox input:checked + .cb-box::after {
    content: ''; width: 6px; height: 10px;
    border: 2px solid var(--white); border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px); display: block;
}

.consent-top-text { flex: 1; }
.consent-num {
    font-size: 11px; font-weight: 700; color: var(--blue-mid);
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px;
}
.consent-label {
     font-weight: 700;
    font-size: 14px; color: var(--text); line-height: 1.4;
}

/* Body: ข้อความ consent แสดงตรงๆ */
.consent-body {
    padding: 16px 20px 18px;
    font-size: 13px; color: var(--gray-700); line-height: 1.9;
    background: var(--white);
}

/* Footer */
.reg-footer {
    padding: 20px 40px 28px; border-top: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.reg-footer-info { font-size: 12px; color: var(--gray-500); }
.btn-reg-submit {
    padding: 13px 32px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: var(--white); 
    font-weight: 700; font-size: 15px; cursor: pointer;
    transition: all .25s; box-shadow: 0 6px 20px rgba(50,70,225,.3);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-reg-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(50,70,225,.45); }
.btn-reg-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Responsive */
@media (max-width: 600px) {
    .reg-banner   { padding: 48px 16px 36px; }
    .reg-card-body { padding: 24px 16px; }
    .reg-footer   { padding: 16px 16px 24px; flex-direction: column; align-items: stretch; }
    .btn-reg-submit { width: 100%; justify-content: center; }
    .reg-grid     { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   LOGIN PAGE — app/login.php
════════════════════════════════════════════════ */

/* Layout */
body.login-page {
    font-family: 'Sarabun', sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--navy);
}
body.login-page a,
body.login-page a:hover { text-decoration: none; }

/* ── Left — Branding ── */
.login-left {
    flex: 1;
    background: linear-gradient(145deg, var(--navy) 0%, #0D2060 55%, var(--blue) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 50px;
    position: relative; overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute; border-radius: 50%;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(50,70,225,.25) 0%, transparent 70%);
    top: -160px; left: -120px;
}
.login-left::after {
    content: '';
    position: absolute; border-radius: 50%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,197,24,.1) 0%, transparent 70%);
    bottom: -100px; right: -80px;
}
.login-left .grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
}
.left-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    max-width: 380px;
}
.brand-logo { margin-bottom: 36px; }
.brand-logo img { height: 8rem; display: block; }

.brand-subtitle {
    font-size: 16px; color: rgba(255,255,255,.85);
    line-height: 1.9; font-weight: 400; text-align: center; letter-spacing: .3px;
}
.brand-org {
    position: absolute; bottom: 32px; left: 0; right: 0;
    text-align: center; z-index: 2;
    font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.7;
}
.brand-dots { display: flex; gap: 8px; margin-top: 40px; }
.brand-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.25);
}
.brand-dots span:first-child { width: 28px; border-radius: 4px; background: var(--gold); }

/* ── Right — Form ── */
.login-right {
    width: 480px; min-width: 420px;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 52px;
}
.login-form-wrap { width: 100%; }
.login-form-wrap h2 {
    font-weight: 800;
    font-size: 28px; color: var(--text); margin-bottom: 6px;
}
.login-form-wrap .login-sub {
    color: var(--gray-500); font-size: 14px;
    margin-bottom: 36px; line-height: 1.6;
}

/* Alert */
.login-alert {
    background: rgba(229,62,62,.08);
    border: 1px solid rgba(229,62,62,.3);
    color: #9B1C1C; border-radius: 10px;
    padding: 12px 16px; font-size: 13px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

/* Fields */
.login-field { margin-bottom: 20px; }
.login-label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--gray-700); letter-spacing: .8px;
    text-transform: uppercase; margin-bottom: 8px;
}
.login-input-wrap { position: relative; }
.login-input-wrap .field-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400); pointer-events: none;
    display: flex; align-items: center;
}
.login-input-wrap .field-icon svg { width: 18px; height: 18px; }
.login-input {
    width: 100%; height: 50px;
    border: 1.5px solid var(--gray-200); border-radius: 12px;
    padding: 0 44px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Sarabun', sans-serif;
    font-size: 15px; color: var(--text);
    background: var(--gray-100);
    transition: all .2s; outline: none;
}
.login-input:focus {
    border-color: var(--blue-mid); background: var(--white);
    box-shadow: 0 0 0 3px rgba(50,70,225,.1);
}
.login-input::placeholder { color: var(--gray-400); }

/* Password toggle */
.pw-toggle-btn {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--gray-400); padding: 4px;
    display: flex; align-items: center; transition: color .2s;
}
.pw-toggle-btn:hover { color: var(--blue-mid); }
.pw-toggle-btn svg { width: 20px; height: 20px; }

/* Submit */
.btn-login-submit {
    width: 100%; height: 52px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: var(--white); border: none; border-radius: 12px;
     font-family: 'Sarabun', sans-serif; font-weight: 700;
    font-size: 15px; letter-spacing: .5px;
    cursor: pointer; margin-top: 8px; transition: all .25s;
    box-shadow: 0 6px 20px rgba(50,70,225,.3);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(50,70,225,.45); }
.btn-login-submit:active { transform: translateY(0); }

/* Links */
.login-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.login-link { font-size: 12px; color: var(--blue-mid); font-weight: 500; }
.login-link:hover { color: var(--blue-light); text-decoration: underline; }
.login-link-sep { font-size: 12px; color: var(--gray-200); }

/* Back button */
.back-to-jobs {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; padding: 10px 20px;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    font-size: 13px; color: var(--gray-700); font-family: 'Sarabun', sans-serif;
    transition: all .2s; width: 100%; justify-content: center;
}
.back-to-jobs:hover { border-color: var(--blue-mid); color: var(--blue-mid); }

/* Responsive */
@media (max-width: 860px) { .login-left { display: none; } }
@media (max-width: 500px) {
    .login-right { width: 100%; min-width: unset; padding: 40px 24px; }
}