/* Element: TGWV Tabs dịch vụ (tgwv-svc-tabs) */

/* ——— 1. Root & modifiers ——— */
.tgwv-svc-tabs {
  --tgwv-svc-tabs-tab-color: #00b9d2;
  --tgwv-svc-tabs-featured-bg: #00b9d2;
  --tgwv-svc-tabs-content-border: #e2e8f0;
  --tgwv-svc-tabs-featured-divider: #ffe100;
  --tgwv-svc-tabs-cta-bg: #0095d8;
  --tgwv-svc-tabs-cta-hover-bg: #563fd6;
  --tgwv-svc-tabs-card-title: #0095d8;
  --tgwv-svc-tabs-card-divider: #087ca5;
  --tgwv-svc-tabs-card-excerpt: #64748b;
  --tgwv-svc-tabs-media-ratio: 4 / 3;
  --tgwv-svc-tabs-radius: 10px;
  --tgwv-svc-tabs-radius-sm: 8px;
  --tgwv-svc-tabs-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --tgwv-svc-tabs-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);

  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.tgwv-svc-tabs--uppercase .tgwv-svc-tabs__featured-title a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tgwv-svc-tabs--pull-down {
  animation: tgwv-svc-tabs-pull-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
}

.tgwv-svc-tabs:not(.tgwv-svc-tabs--no-hover-zoom) .tgwv-svc-tabs__featured-media-link:hover img,
.tgwv-svc-tabs:not(.tgwv-svc-tabs--no-hover-zoom) .tgwv-svc-tabs__card-thumb a:hover img {
  transform: scale(1.05);
}

@keyframes tgwv-svc-tabs-pull-down {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ——— 2. Layout ——— */
.tgwv-svc-tabs__inner {
  margin: 0 auto;
}

/* ——— 3. Tab navigation (desktop) ——— */
.tgwv-svc-tabs__nav {
  margin-bottom: 0;
}

.tgwv-svc-tabs__nav-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tgwv-svc-tabs__nav-item {
  min-height: 148px;
  list-style: none;
}

.tgwv-svc-tabs__tab {
  width: 100%;
  min-height: 148px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  background: var(--tgwv-svc-tabs-tab-color, #00b9d2);
  padding: 16px 12px;
  font: inherit;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.tgwv-svc-tabs__tab:hover,
.tgwv-svc-tabs__tab--active,
.tgwv-svc-tabs__nav-item--active .tgwv-svc-tabs__tab {
  background: #fff;
  border-color: var(--tgwv-svc-tabs-content-border, #e2e8f0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tgwv-svc-tabs__tab--active,
.tgwv-svc-tabs__nav-item--active .tgwv-svc-tabs__tab {
  border-bottom-color: #fff;
  border-radius: 0;
  transform: translateY(0);
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}

.tgwv-svc-tabs__tab:focus-visible {
  outline: 2px solid var(--tgwv-svc-tabs-tab-color, #00b9d2);
  outline-offset: 2px;
}

.tgwv-svc-tabs__tab-label {
  margin: 10px 0 0;
  padding: 0 8px;
  color: #fff;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.01em;
  transition: color 0.28s ease;
}

.tgwv-svc-tabs__tab:hover .tgwv-svc-tabs__tab-label,
.tgwv-svc-tabs__tab--active .tgwv-svc-tabs__tab-label {
  color: var(--tgwv-svc-tabs-tab-color, #00b9d2);
}

.tgwv-svc-tabs__tab-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.28s ease;
}

.tgwv-svc-tabs__tab:hover .tgwv-svc-tabs__tab-icon,
.tgwv-svc-tabs__tab--active .tgwv-svc-tabs__tab-icon {
  background: color-mix(in srgb, var(--tgwv-svc-tabs-tab-color, #00b9d2) 12%, transparent);
}

.tgwv-svc-tabs__tab-icon i {
  font-size: 32px;
  line-height: 1;
  color: #fff;
  transition: color 0.28s ease, transform 0.28s ease;
}

.tgwv-svc-tabs__tab:hover .tgwv-svc-tabs__tab-icon i,
.tgwv-svc-tabs__tab--active .tgwv-svc-tabs__tab-icon i {
  color: var(--tgwv-svc-tabs-tab-color, #00b9d2);
}

/* ——— 4. Content panel (desktop) ——— */
.tgwv-svc-tabs__content {
  width: 100%;
  padding: 28px 24px 32px;
  border: 1px solid var(--tgwv-svc-tabs-content-border, #e2e8f0);
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  box-shadow: var(--tgwv-svc-tabs-shadow);
  position: relative;
  z-index: 1;
}

.tgwv-svc-tabs__panel {
  width: 100%;
}

.tgwv-svc-tabs__empty-tab {
  padding: 24px 0;
  text-align: center;
  color: var(--tgwv-svc-tabs-card-excerpt, #64748b);
}

/* ——— 5. Featured block (desktop) ——— */
.tgwv-svc-tabs__featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tgwv-svc-tabs__featured-text {
  background: linear-gradient(
    145deg,
    var(--tgwv-svc-tabs-featured-bg, #00b9d2) 0%,
    color-mix(in srgb, var(--tgwv-svc-tabs-featured-bg, #00b9d2) 82%, #000) 100%
  );
  min-height: 300px;
  padding: 28px 28px 72px;
  border-radius: var(--tgwv-svc-tabs-radius-sm);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tgwv-svc-tabs__featured-title {
  margin: 0;
}

.tgwv-svc-tabs__featured-title a {
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.35;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.tgwv-svc-tabs__featured-title a:hover {
  opacity: 0.92;
}

.tgwv-svc-tabs__featured-excerpt {
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  margin: 14px 0 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tgwv-svc-tabs__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #fff;
  background: var(--tgwv-svc-tabs-cta-bg, #0095d8);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 90, 140, 0.22);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tgwv-svc-tabs__cta i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.tgwv-svc-tabs__cta:hover {
  color: #fff;
  background: var(--tgwv-svc-tabs-cta-hover-bg, #563fd6);
  box-shadow: 0 10px 22px rgba(58, 45, 180, 0.28);
  transform: translateY(-2px);
}

.tgwv-svc-tabs__cta:hover i {
  transform: translateX(4px);
}

.tgwv-svc-tabs__featured-media {
  overflow: hidden;
  border-radius: var(--tgwv-svc-tabs-radius-sm);
  min-height: 300px;
  display: flex;
}

.tgwv-svc-tabs__featured-media-link {
  display: block;
  width: 100%;
  aspect-ratio: var(--tgwv-svc-tabs-media-ratio);
  min-height: 300px;
  overflow: hidden;
  border: none;
  border-radius: var(--tgwv-svc-tabs-radius-sm);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.tgwv-svc-tabs__featured-media-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ——— 6. Secondary cards (desktop) ——— */
.tgwv-svc-tabs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tgwv-svc-tabs__card {
  min-height: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--tgwv-svc-tabs-content-border, #e2e8f0);
  border-radius: var(--tgwv-svc-tabs-radius-sm);
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tgwv-svc-tabs__card:hover {
  border-color: color-mix(in srgb, var(--tgwv-svc-tabs-card-title, #0095d8) 35%, #e2e8f0);
  box-shadow: var(--tgwv-svc-tabs-shadow-hover);
  transform: translateY(-2px);
}

.tgwv-svc-tabs__card-thumb {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.tgwv-svc-tabs__card-thumb a {
  display: block;
  width: 100%;
  aspect-ratio: var(--tgwv-svc-tabs-media-ratio);
  overflow: hidden;
  border-radius: 6px;
}

.tgwv-svc-tabs__card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tgwv-svc-tabs__card-body {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 0;
}

.tgwv-svc-tabs__card-title {
  margin: 0;
}

.tgwv-svc-tabs__card-title a {
  color: var(--tgwv-svc-tabs-card-title, #0095d8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tgwv-svc-tabs__card-title a:hover {
  color: color-mix(in srgb, var(--tgwv-svc-tabs-card-title, #0095d8) 75%, #000);
}

.tgwv-svc-tabs__card-excerpt {
  color: var(--tgwv-svc-tabs-card-excerpt, #64748b);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— 7. Shared ——— */
.tgwv-svc-tabs__divider {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--tgwv-svc-tabs-featured-divider, #ffe100);
  margin: 12px 0 0;
}

.tgwv-svc-tabs__divider--sm {
  width: 56px;
  height: 2px;
  background: var(--tgwv-svc-tabs-card-divider, #087ca5);
  margin: 10px 0 8px;
}

/* ——— 8. Tablet (≤1000px) ——— */
@media (max-width: 1000px) {
  /* Nav */
  .tgwv-svc-tabs__nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Content */
  .tgwv-svc-tabs__content {
    margin-top: 12px;
  }

  /* Featured */
  .tgwv-svc-tabs__featured {
    grid-template-columns: 1fr;
  }

  .tgwv-svc-tabs__featured-text,
  .tgwv-svc-tabs__featured-media,
  .tgwv-svc-tabs__featured-media-link {
    min-height: 0;
  }

  .tgwv-svc-tabs__featured-text {
    padding-bottom: 28px;
  }

  .tgwv-svc-tabs__cta {
    position: static;
    margin-top: 20px;
    align-self: flex-start;
  }

  /* Cards */
  .tgwv-svc-tabs__list {
    grid-template-columns: 1fr;
  }

  .tgwv-svc-tabs__card {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

/* ——— 9. Small tablet (≤991px) ——— */
@media (max-width: 991px) {
  .tgwv-svc-tabs__content {
    padding: 10px;
  }
}

/* ——— 10. Mobile (≤640px) ——— */
@media (max-width: 640px) {
  /* Nav */
  .tgwv-svc-tabs__nav-list {
    grid-template-columns: 1fr;
  }

  .tgwv-svc-tabs__nav-item,
  .tgwv-svc-tabs__tab {
    min-height: 112px;
  }

  .tgwv-svc-tabs__tab-icon {
    width: 52px;
    height: 52px;
  }

  .tgwv-svc-tabs__tab-icon i {
    font-size: 26px;
  }

  /* Content */
  .tgwv-svc-tabs__content {
    padding: 18px 14px 22px;
  }

  /* Featured */
  .tgwv-svc-tabs__featured-text {
    padding: 20px 18px 24px;
  }

  /* Cards */
  .tgwv-svc-tabs__card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tgwv-svc-tabs__card-thumb a {
    max-height: 200px;
  }
}
