:root {
  --ink: #102021;
  --muted: #647575;
  --line: #dce5e2;
  --paper: #fffdf8;
  --soft: #f4f0e6;
  --teal: #0c5f61;
  --dark: #123537;
  --gold: #e6ad30;
  --coral: #d9654f;
  --shadow: 0 22px 70px rgba(12, 32, 33, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.jobs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  padding: 14px clamp(18px, 4vw, 54px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(12, 59, 62, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.jobs-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #385151;
  font-size: 14px;
  font-weight: 800;
}

.jobs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 78px clamp(18px, 5vw, 70px) 48px;
  background:
    linear-gradient(90deg, rgba(16, 35, 36, 0.94), rgba(12, 95, 97, 0.62)),
    url("../assets/hero-business-malaysia.png") center/cover;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f8cc72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1;
}

.jobs-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.72;
}

.hero-action {
  border-radius: var(--radius);
  background: var(--gold);
  color: #251a00;
  padding: 14px 18px;
  font-weight: 900;
  white-space: nowrap;
}

.jobs-layout,
.application-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 34px clamp(18px, 5vw, 70px) 78px;
}

.jobs-filter,
.jobs-list-panel,
.selected-job-card,
.job-application-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 42px rgba(18, 32, 33, 0.08);
}

.jobs-filter,
.selected-job-card {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.jobs-filter h2,
.jobs-list-heading h2,
.selected-job-card h2 {
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  color: #3c5555;
  font-size: 12px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(12, 95, 97, 0.12);
}

.filter-note,
.selected-job-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.jobs-list-panel,
.job-application-form {
  padding: 22px;
}

.jobs-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.jobs-list-heading .eyebrow {
  color: var(--coral);
}

.jobs-list-heading span {
  color: var(--muted);
  font-weight: 850;
}

.jobs-list {
  display: grid;
  gap: 16px;
}

.job-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 22px;
}

.job-card-top,
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card-top span,
.job-meta span {
  border-radius: 999px;
  background: #eef5f2;
  color: var(--teal);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.job-card-top span:first-child {
  background: #fff0cf;
  color: #7c4b00;
}

.job-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.job-card p,
.job-company {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.job-company {
  color: var(--ink);
  font-weight: 900;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.job-actions a,
.job-application-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  padding: 10px 14px;
  font-weight: 900;
}

.job-actions a:first-child,
.job-application-form button {
  border-color: transparent;
  background: var(--teal);
  color: #fff;
}

.empty-jobs {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.registration-hero {
  grid-template-columns: 1fr;
  padding-bottom: 62px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide,
.job-consent {
  grid-column: 1 / -1;
}

.job-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.job-consent input {
  width: auto;
  margin-top: 4px;
}

.job-application-form button {
  width: 100%;
  border-radius: var(--radius);
  padding: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #102324;
  color: #fff;
}

.site-footer p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-meta button {
  border: 0;
  background: transparent;
  color: #f8cc72;
  padding: 0;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .jobs-header,
  .header-actions,
  .jobs-header nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .jobs-hero,
  .jobs-layout,
  .application-layout,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .jobs-filter,
  .selected-job-card {
    position: static;
  }
}
