/* Landing /viec-lam: block job-hero, top-categories, top-companies, jobs-for-you, job-keyword-links */

.jl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #00b14f;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.jl-btn:hover,
.jl-btn:focus {
  background: #009643;
  color: #fff;
}

/* ---------- Hero ---------- */

.jl-hero {
  padding: 40px 0 32px;
  background: linear-gradient(135deg, #0b3d2e 0%, #0e5a3c 55%, #128049 100%);
  color: #fff;
  text-align: center;
}

.jl-hero__title {
  margin: 0 0 8px;
  color: #6cf1a2;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.jl-hero__subtitle {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.jl-hero__form {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.jl-hero__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  color: #6f7882;
}

.jl-hero__field--keyword {
  flex: 1 1 auto;
}

.jl-hero__field--location {
  flex: 0 0 240px;
  border-left: 1px solid #e3e7eb;
}

.jl-hero__field input,
.jl-hero__field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #212f3f;
  font-size: 15px;
}

.jl-hero__field select {
  cursor: pointer;
}

.jl-hero__keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 14px;
}

.jl-hero__keywords span {
  color: rgba(255, 255, 255, 0.85);
}

.jl-hero__keywords a {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
}

.jl-hero__keywords a:hover {
  border-color: #6cf1a2;
  color: #6cf1a2;
}

/* ---------- Section chung ---------- */

.jl-section {
  padding: 32px 0;
}

.jl-section + .jl-section {
  background-color: #f7f7f7;
}

.jl-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.jl-section__head h2 {
  margin: 0;
  color: #00a84f;
  font-size: 24px;
  font-weight: 700;
}

.jl-section__more {
  flex: 0 0 auto;
  color: #212f3f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.jl-section__more:hover {
  color: #00a84f;
}

/* ---------- Top ngành nghề ---------- */

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

.jl-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px;
  border-radius: 12px;
  background: #f3f5f7;
  color: #212f3f;
  text-align: center;
  transition: all 0.15s ease;
}

.jl-category:hover {
  border-color: #00b14f;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 177, 79, 0.12);
  color: #212f3f;
}

.jl-category__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  color: #00b14f;
  font-size: 22px;
}

.jl-category__icon img {
  display: block;
  width: 100%;
}

.jl-category__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}

.jl-category__count {
  color: #00a84f;
  font-size: 14px;
}

/* ---------- Nhà tuyển dụng nổi bật ---------- */

.jl-carousel {
  position: relative;
}

.jl-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.jl-carousel__track::-webkit-scrollbar {
  display: none;
}

.jl-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #00b14f;
  border-radius: 50%;
  background: #fff;
  color: #00b14f;
  transform: translateY(-50%);
}

.jl-carousel__nav:hover {
  background: #00b14f;
  color: #fff;
}

.jl-carousel__nav[hidden] {
  display: none;
}

.jl-carousel__nav--prev {
  left: -18px;
}

.jl-carousel__nav--next {
  right: -18px;
}

.jl-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 12px;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
  background: #fff;
  color: #212f3f;
  text-align: center;
  scroll-snap-align: start;
  transition: all 0.15s ease;
}

.jl-company:hover {
  border-color: #00b14f;
  box-shadow: 0 6px 18px rgba(0, 177, 79, 0.12);
  color: #212f3f;
}

.jl-company__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 8px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: #fff;
}

.jl-company__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jl-company__name {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jl-company__count {
  color: #00a84f;
  font-size: 13px;
}

/* ---------- Việc làm dành cho bạn ---------- */

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

.jl-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #c7ecd6;
  border-radius: 12px;
  background: #f0fbf4;
}

.jl-cta > i {
  color: #00b14f;
  font-size: 28px;
}

.jl-cta__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jl-cta__text strong {
  color: #212f3f;
  font-size: 17px;
}

.jl-cta__text span {
  color: #4d5965;
  font-size: 14px;
}

/* ---------- Từ khóa phổ biến ---------- */

.jl-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jl-tabs::-webkit-scrollbar {
  display: none;
}

.jl-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid #e3e7eb;
  border-radius: 999px;
  background: #f3f5f7;
  color: #212f3f;
  font-size: 14px;
  font-weight: 600;
}

.jl-tab:hover {
  color: #00a84f;
}

.jl-tab.active {
  border-color: #00b14f;
  background: #00b14f;
  color: #fff;
}

.jl-links {
  max-height: 232px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  list-style: none;
}

.jl-links-panel.is-expanded .jl-links {
  max-height: none;
}

.jl-links li {
  min-width: 0;
  padding: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-links a {
  color: #4d5965;
  font-size: 14px;
}

.jl-links a:hover {
  color: #00a84f;
}

.jl-links-more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #00a84f;
  font-size: 14px;
  font-weight: 600;
}

.jl-links-more i {
  margin-left: 4px;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.jl-links-panel.is-expanded .jl-links-more i {
  transform: rotate(180deg);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .jl-carousel__track {
    grid-auto-columns: calc((100% - 3 * 16px) / 4);
  }

  .jl-carousel__nav--prev {
    left: -6px;
  }

  .jl-carousel__nav--next {
    right: -6px;
  }
}

@media (max-width: 991.98px) {
  .jl-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jl-job-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jl-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .jl-hero {
    padding: 28px 0 24px;
  }

  .jl-hero__title {
    font-size: 22px;
  }

  .jl-hero__form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .jl-hero__field--location {
    flex-basis: auto;
    border-top: 1px solid #e3e7eb;
    border-left: 0;
  }

  .jl-hero__keywords a:nth-of-type(n + 4) {
    display: none;
  }

  .jl-section__head h2 {
    font-size: 20px;
  }

  .jl-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .jl-carousel__track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .jl-carousel__nav {
    display: none;
  }

  .jl-cta {
    flex-wrap: wrap;
  }

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