.tgwv-fmc {
  --tgwv-fmc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tgwv-fmc-duration: 0.3s;

  background-color: #fdf9f8;
  padding: 50px 0;
}

.tgwv-fmc__container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .tgwv-fmc__container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 991.98px) {
  .tgwv-fmc__container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.tgwv-fmc__header {
  text-align: center;
  margin-bottom: 50px;
}

.tgwv-fmc__title {
  display: inline-block;
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tgwv-fmc__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #374586, #283c85);
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    width var(--tgwv-fmc-duration) var(--tgwv-fmc-ease),
    background-color var(--tgwv-fmc-duration) var(--tgwv-fmc-ease);
}

.tgwv-fmc__header.aos-animate .tgwv-fmc__title::after,
.tgwv-fmc__title.aos-animate::after {
  width: 56px;
}

.tgwv-fmc__header:hover .tgwv-fmc__title::after {
  width: 56px;
  background: #1607ab;
}

.tgwv-fmc__desc {
  max-width: 710px;
  margin: 0 auto;
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.tgwv-fmc__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #374586;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.25s ease, gap 0.25s ease;
}

.tgwv-fmc__view-all i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.tgwv-fmc__view-all:hover {
  color: #283c85;
}

.tgwv-fmc__view-all:hover i {
  transform: translateX(4px);
}

.tgwv-fmc__view-all:focus-visible {
  outline: 2px solid #283c85;
  outline-offset: 3px;
  border-radius: 4px;
}

.tgwv-fmc__empty-msg {
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.tgwv-fmc__item {
  height: 100%;
  border-radius: 15px;
  transition:
    transform var(--tgwv-fmc-duration) var(--tgwv-fmc-ease),
    box-shadow var(--tgwv-fmc-duration) var(--tgwv-fmc-ease);
}

.tgwv-fmc__media {
  overflow: hidden;
  border-radius: 15px;
}

.tgwv-fmc__media-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  line-height: 0;
}

.tgwv-fmc__img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--tgwv-fmc-ease);
}

.tgwv-fmc__content {
  text-align: center;
  padding: 10px;
}

.tgwv-fmc__item-desc {
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 0;
  color: #666;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .tgwv-fmc__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20, 16, 15, 0.1);
  }

  .tgwv-fmc__item:hover .tgwv-fmc__img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgwv-fmc__item,
  .tgwv-fmc__img,
  .tgwv-fmc__title::after {
    transition: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .tgwv-fmc__item:hover {
      transform: none;
    }

    .tgwv-fmc__item:hover .tgwv-fmc__img {
      transform: none;
    }
  }
}

@media (max-width: 991.98px) {
  .tgwv-fmc {
    padding: 40px 0;
  }

  .tgwv-fmc__header {
    margin-bottom: 36px;
  }
}

@media (max-width: 767.98px) {
  .tgwv-fmc {
    padding: 36px 0;
  }

  .tgwv-fmc__header {
    margin-bottom: 28px;
  }
}

@media (max-width: 575.98px) {
  .tgwv-fmc {
    padding: 32px 0;
  }

  .tgwv-fmc__header {
    margin-bottom: 24px;
  }

  .tgwv-fmc__view-all {
    white-space: normal;
  }
}

/* ─── Kiểu 2: Logo Slider ─── */
.tgwv-fmc__slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

.tgwv-fmc--logo_slider .tgwv-fmc__list {
  position: relative;
}

.tgwv-fmc__slider {
  overflow: hidden;
}

.tgwv-fmc__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.tgwv-fmc__slide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(55, 69, 134, 0.1);
  transition:
    box-shadow var(--tgwv-fmc-duration) var(--tgwv-fmc-ease),
    border-color var(--tgwv-fmc-duration) var(--tgwv-fmc-ease);
}

.tgwv-fmc__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition:
    filter var(--tgwv-fmc-duration) var(--tgwv-fmc-ease),
    transform 0.4s var(--tgwv-fmc-ease);
}

@media (hover: hover) and (pointer: fine) {
  .tgwv-fmc__slide-link:hover {
    box-shadow: 0 6px 24px rgba(55, 69, 134, 0.15);
    border-color: rgba(55, 69, 134, 0.3);
  }

  .tgwv-fmc__slide-link:hover .tgwv-fmc__slide-img {
    filter: grayscale(0%);
    transform: scale(1.04);
  }
}

.tgwv-fmc__slide-link:focus-visible {
  outline: 2px solid #374586;
  outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {
  .tgwv-fmc__slide-img,
  .tgwv-fmc__slide-link {
    transition: none;
  }
}
