/* HotelJob FirstNew Page - Static Export */
/* Design Tokens */
:root {
  --background: #ffffff;
  --foreground: #303030;
  --primary: #1A73E8;
  --muted: #F0F4F7;
  --muted-foreground: #404040;
  --border: #e5e7eb;
  --font-family: 'Anuphan', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
}

span.subcontent {
  padding: 4px 10px;
  border-radius: 8px;
  background-color: #e7e7e7;
}

/* ====== HERO SECTION ====== */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0 5%;
  padding-top: 4rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 500;
  margin-bottom: 3rem;
  text-align: center;
}

/* Search Box */
.search-form {
  width: 100%;
  max-width: 42rem;
}
.search-box {
  width: 100%;
  max-width: 42rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  flex-direction: row;
  display: flex;
}

.search-input-wrapper {
  flex: 1;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.search-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.icon-search {
  width: 1rem;
  height: 1rem;
}

.search-input {
  width: 100%;
  height: 2rem;
  border: none;
  outline: none;
  font-size: 1.125rem;
  color: var(--foreground);
  font-family: var(--font-family);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-button-wrapper {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 2rem;
  background: var(--foreground);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.2s;
}

.search-button:hover {
  background: rgba(48, 48, 48, 0.9);
}

.search-button .icon-search {
  width: 1.25rem;
  height: 1.25rem;
}

/* Quick Links */
.quick-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 24px;
}

.quick-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  transition: all 0.2s;
}

.quick-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ====== PREMIUM BANNERS ====== */
.section-premium-banners {
  padding: 3rem 0;
  background: var(--background);
}

.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.banner-slides {
  position: relative;
  aspect-ratio: 3 / 1;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3), transparent); รอ bn เก่าหมดปรับเหมือนเดิม*/
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.banner-label {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.banner-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: white;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  width: fit-content;
}

/* Banner Navigation */
.banner-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  padding: 0.625rem;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.banner-nav svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.banner-nav-prev {
  left: 0.75rem;
}

.banner-nav-next {
  right: 0.75rem;
}

.banner-dots {
  display: flex;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  gap: 0.375rem;
}

.banner-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.banner-dot.active {
  background: white;
  width: 1.5rem;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ====== STATS BAR ====== */
.section-stats {
  padding: 3rem 0;
  background: var(--foreground);
  color: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ====== REGIONAL JOBS ====== */
.section-regions {
  padding: 3rem 0;
  background: var(--background);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.region-card {
  padding: 2rem;
  background: var(--background);
  text-align: center;
  transition: background 0.2s;
}

.region-card:hover {
  background: rgba(195, 221, 243, 0.5);
}

.region-icon {
  margin-bottom: 1rem;
}

.region-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--foreground);
  margin: 0 auto;
}

.region-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.region-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.region-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.region-links a {
  transition: color 0.2s;
}

.region-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.separator {
  margin: 0 0.25rem;
}

/* ====== PARTNER LOGOS ====== */
.section-partners {
  padding: 3rem 0;
  background: var(--background);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partner-logo-item {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
 
}

.partner-logo-item:nth-child(6n) {
  border-right: none;
}

.partner-logo-item:nth-last-child(-n+6) {
  border-bottom: none;
}

.partner-logo-item img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* ====== CATEGORY BANNERS ====== */
.section-categories {
  padding: 3rem 0;
  background: var(--background);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.category-card {
  padding: 2rem;
  background: var(--background);
  text-align: center;
  transition: background 0.2s;
}

.category-card:hover {
  background: rgba(195, 221, 243, 0.5);
}

.category-icon {
  margin-bottom: 1rem;
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--foreground);
  margin: 0 auto;
}

.category-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
}

.category-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.additional-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.additional-links a {
  transition: color 0.2s;
}

.additional-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* ====== DEPARTMENTS ====== */
.section-departments {
  padding: 3rem 0;
  background: var(--background);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.department-card {
  padding: 1.5rem;
  background: var(--background);
  transition: background 0.2s;
}

.department-card:hover {
  background: rgba(195, 221, 243, 0.5);
}

.department-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.department-thai {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.department-count {
  font-size: 0.875rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.departments-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  background: var(--foreground);
  color: var(--background);
  font-weight: 500;
  border-radius: 0.375rem;
  font-family: var(--font-family);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgba(48, 48, 48, 0.9);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  background: transparent;
  color: var(--foreground);
  font-weight: 500;
  border: 1px solid var(--foreground);
  border-radius: 0.375rem;
  font-family: var(--font-family);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--foreground);
  color: var(--background);
}

.btn-outline svg {
  width: 1rem;
  height: 1rem;
}

/* ====== CTA SECTION ====== */
.section-cta {
  padding: 4rem 0;
  background: var(--background);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.cta-description {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1200px) {

  .section-title {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .search-box {
    flex-direction: column;
    display: block;
  }

  .partner-logo-item img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

  /* Banner Navigation */
.banner-nav {
  padding: 0.1rem;
  backdrop-filter: blur(0px);
}

  .search-input-wrapper {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    border-right: none;
  }

  .search-button-wrapper {
    padding: 0.5rem;
  }

  .banner-slides {
    aspect-ratio: 21 / 9;
  }

  .banner-content {
    padding: 1.5rem;
  }

  .banner-label {
    font-size: 0.75rem;
  }

  .banner-title {
    font-size: 1.25rem;
  }

  .banner-nav {
    /* display: none; */
  }

  .banner-dots {
    display: none;
  }

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

  .stat-number {
    font-size: 1.875rem;
  }

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

  .region-card {
    padding: 1.5rem;
  }

  .region-name {
    font-size: 1rem;
  }

  .region-links {
    font-size: 1rem;
  }

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

  .partner-logo-item {
    padding: 1rem;
  }

  .partner-logo-item:nth-child(6n) {
    border-right: 1px solid var(--border);
  }

  .partner-logo-item:nth-child(2n) {
    border-right: none;
  }

  .partner-logo-item:nth-last-child(-n+6) {
    border-bottom: 1px solid var(--border);
  }

  .partner-logo-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-subtitle {
    font-size: 0.75rem;
  }

  .additional-links {
    font-size: 1rem;
  }

  .departments-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .department-card {
    padding: 1.25rem;
  }

  .department-name {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.875rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}