.tbay-featured-services {
  padding: 64px 0 72px;
  background: #fff;
  color: #12384e;
}
.tbay-featured-services .container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}
.tbay-featured-heading {
  max-width: 820px;
  margin-bottom: 32px;
}
.tbay-featured-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
  color: #153c51;
}
.tbay-featured-label:before {
  content: "";
  width: 48px;
  height: 6px;
  background: #16c9b8;
  border-radius: 8px;
}
.tbay-featured-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: #12384e;
  font-weight: 800;
}
.tbay-featured-heading > p:last-child {
  font-size: 16px;
  line-height: 1.8;
  color: #58728a;
  margin: 0;
}
.tbay-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.tbay-featured-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3edf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 22px #16384e09;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tbay-featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px #16384e18;
}
.tbay-featured-card > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.tbay-featured-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tbay-featured-number {
  font-size: 13px;
  font-weight: 800;
  color: #008e89;
  margin-bottom: 12px;
}
.tbay-featured-copy h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #12384e;
  margin: 0 0 12px;
}
.tbay-featured-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: #607488;
  margin: 0 0 22px;
}
.tbay-featured-copy a {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #087d83;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.tbay-featured-copy a:focus-visible {
  outline: 2px solid #087d83;
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .tbay-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .tbay-featured-services {
    padding: 40px 0;
  }
  .tbay-featured-services .container {
    width: calc(100% - 32px);
  }
  .tbay-featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tbay-featured-card > img {
    height: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tbay-featured-card {
    transition: none;
  }
  .tbay-featured-card:hover {
    transform: none;
  }
}

/* Trang chủ chỉ có 3 dịch vụ đang tồn tại trong bộ website. */
body[data-current-route="/trang-chu"] .visa-service-grid-rich {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

/* Giữ tiêu đề này gọn trên một hàng ở desktop. */
body[data-current-route^="/dich-vu/"] .service-overview-grid-v54 h2 {
  font-size: clamp(1.4rem, 1.7vw, 1.85rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  body[data-current-route="/trang-chu"] .visa-service-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body[data-current-route^="/dich-vu/"] .service-overview-grid-v54 h2 {
    white-space: normal !important;
  }
}

@media (max-width: 560px) {
  body[data-current-route="/trang-chu"] .visa-service-grid-rich {
    grid-template-columns: 1fr !important;
  }
}
