/* JobDetails V3 — Static Export */
/* Desktop-first, mobile breakpoint at 1200px */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: #FFFFFF;
  --foreground: #303030;
  --card: #FFFFFF;
  --border: #E4E8EC;
  --primary: #1A73E8;
  --primary-foreground: #FFFFFF;
  --secondary: #FE7743;
  --muted: #F0F4F7;
  --muted-foreground: #404040;
  --radius: 1rem;
}

html { scroll-behavior: smooth; }

body, button {
  font-family: 'Anuphan', system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.v3-page { min-height: 100vh; background: var(--muted); }

.header{
  padding: 0 5%;
}

.v3-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 1%;
}

/* ===== Hero ===== */
.v3-hero {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 76px 0 80px;
}

.v3-hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 3rem;
}

.v3-hero__title-en {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.v3-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v3-hero__tag {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.v3-hero__tag--urgent{
  font-size: 14px;
  font-weight: 500;
}
.v3-hero__tag--disabled,
.v3-hero__tag--night,
.v3-hero__tag--60up,
.v3-hero__tag--newgrad,
.v3-hero__tag--intership {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

.v3-hero__tag--urgent    { background: rgba(254, 119, 67, 0.1); color: var(--secondary); }
.v3-hero__tag--disabled  { background: #ebf3fd; color: #404040; }
.v3-hero__tag--night     { background: #1A1A2E; color: #C8A8E9; }
.v3-hero__tag--60up      { background: #F3E5F5; color: #6A1B9A; }
.v3-hero__tag--newgrad   { background: #E8F5E9; color: #2E7D32; }
.v3-hero__tag--intership { background: #f1ebfd; color: #404040; }
.v3-hero__tag--expiredpost { background: #c40010; color: #ffffff; font-size: 18px; text-align: center; padding: 14px;}

.v3-hero__tag--dept {
  font-size: 14px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.v3-hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.v3-hero__meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.v3-hero__meta-item {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.v3-hero__meta-item svg { width: 14px; height: 14px; }

.v3-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Quick Facts ===== */
.v3-quickfacts {
  margin-top: -56px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.v3-quickfacts__card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.v3-quickfacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.v3-quickfacts__item { text-align: center; }

.v3-quickfacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(116, 119, 122, 0.08);
  margin-bottom: 10px;
}

.v3-quickfacts__icon svg { width: 26px; height: 26px; color: var(--primary); }

.v3-quickfacts__label {
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.v3-quickfacts__value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}


.v3-links {
 text-decoration: underline;
 color: #1A73E8;
 padding-left: 4px;
}
/* ===== Main Grid ===== */
.v3-main-grid {
  display: flex;
  gap: 32px;
  padding-bottom: 64px;
}

.v3-main-left { flex: 1; min-width: 0; }

.v3-main-right {
  width: 340px;
  flex-shrink: 0;
}

/* ===== Content Cards ===== */
.v3-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 32px;
  margin-bottom: 24px;
}

.v3-card__heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Additional facts grid */
.v3-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.v3-facts-grid__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v3-facts-grid__item svg {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.v3-facts-grid__label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.v3-facts-grid__value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Prose content */
.v3-prose { font-size: 15px; color: rgba(48, 48, 48, 0.9); line-height: 1.7; }
.v3-prose p { margin-bottom: 12px; }
.v3-prose ul { padding-left: 20px; margin: 8px 0; list-style: disc; }
.v3-prose li { margin: 4px 0; }
.v3-prose strong { font-weight: 700; }

.v3-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Qualifications */
.v3-qualifications { display: flex; flex-direction: column; gap: 12px; }

.v3-qual-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.v3-qual-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.v3-qual-item span {
  font-size: 15px;
  color: rgba(48, 48, 48, 0.9);
  line-height: 1.6;
}

/* Benefits */
.v3-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.v3-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(240, 244, 247, 0.5);
}

.v3-benefit-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.v3-benefit-item span { font-size: 15px; color: rgba(48, 48, 48, 0.9); }

/* Service Charge */
.v3-service-charge {
  padding: 20px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.05);
  border: 1px solid rgba(26, 115, 232, 0.1);
}

.v3-service-charge__label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.v3-service-charge__amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Apply button */
.v3-apply-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ===== Company Card (Sidebar) ===== */
.v3-company-card {
  position: sticky;
  top: 96px;
}

.v3-company-card__inner {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.v3-company-card__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.v3-company-card__logo {
  width: 120px;
  height: 120px;
  /* border-radius: 12px; */
  object-fit: contain;
  /* border: 1px solid var(--border); */
}

.v3-company-card__name-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.v3-company-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  transition: color 0.2s;
}

.v3-company-card__name:hover { color: var(--primary); }

.v3-company-card__industry {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.v3-company-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 20px;
}

.v3-company-card__info { display: flex; flex-direction: column; gap: 14px; }

.v3-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.v3-info-row svg {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  margin-top: 3px;
  flex-shrink: 0;
}

.v3-info-row__label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v3-info-row__value {
  font-size: 15px;
  line-height: 1.5;
}

.v3-info-row a {
  color: var(--primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.v3-info-row a:hover { text-decoration: underline; }
.v3-info-row a svg { width: 14px; height: 14px; }

.v3-company-card__btn {
  width: 100%;
  margin-top: 20px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.v3-company-card__btn:hover { border-color: var(--primary); color: var(--primary); }

/* Report card */
.v3-report-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

.v3-report-card__text {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.v3-report-card__link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
}

.v3-report-card__link:hover { text-decoration: underline; }

/* ===== Related Grid ===== */
.v3-related { padding-bottom: 64px; }

.v3-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.v3-related__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.v3-related__viewall {
  color: var(--primary);
  height: -webkit-fill-available;
  display: flex;
  justify-content: center;  /* กึ่งกลางแนวนอน */
  align-items: center;      /* กึ่งกลางแนวตั้ง */

}

.v3-related__viewall:hover { text-decoration: underline; }
.v3-related__viewall svg { width: 12px; height: 12px; }

.v3-related__section { margin-bottom: 48px; padding-top: 24px;}

.v3-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.v3-related-job {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.v3-related-job:hover {
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.v3-related-job__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.v3-related-job:hover .v3-related-job__title { color: var(--primary); }

.v3-related-job__salary {
  font-size: 13px;
  color: var(--muted-foreground);
}

/* Recommended jobs */
.v3-rec-job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.v3-rec-job:hover {
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.v3-rec-job__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.v3-rec-job__info { min-width: 0; }

.v3-rec-job__title {
  font-size: 15px;
  font-weight: 600;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.v3-rec-job:hover .v3-rec-job__title { color: var(--primary); }

.v3-rec-job__company {
  font-size: 14px;
  color: var(--muted-foreground);
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
}

.v3-rec-job__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.v3-rec-job__location svg { width: 14px; height: 14px; }

/* ===== Sticky Mobile Apply ===== */
.v3-sticky-apply {
  display: none;
}

/* ===== MOBILE — below 1200px ===== */
@media (max-width: 1200px) {
  .v3-hero { padding: 48px 0 64px; }
  .v3-hero__title { font-size: 1.75rem; }
  .v3-hero__title-en { font-size: 0.65rem; }

  .v3-btn--apply-desktop { display: none; }

  .v3-quickfacts__grid { grid-template-columns: repeat(2, 1fr); }

  .v3-main-grid {
    flex-direction: column;
  }

  .v3-place {
  display: flex;
  flex-direction: column;
}

  .v3-main-right { width: 100%; }

  .v3-facts-grid { grid-template-columns: repeat(2, 1fr); }

  .v3-benefits-grid { grid-template-columns: 1fr; }

  .v3-related-grid { grid-template-columns: 1fr; }

  .v3-sticky-apply {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .v3-sticky-apply__info { min-width: 0; }

  .v3-sticky-apply__title {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v3-sticky-apply__salary {
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }

  .v3-sticky-apply__btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 24px;
    border-radius: 9999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
  }
}
