
/* =================================
   PHẦN 01 - HERO SLIDER
   ĐỒNG PHỤC THỂ THAO
================================= */

.dpt-hero01,
.dpt-hero01 * {
  box-sizing: border-box;
}

.dpt-hero01 {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 750;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

/* SLIDE */
.dpt-hero01-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: dptHero01Fade 15s infinite;
}

.dpt-hero01-slide:nth-child(1) {
  animation-delay: 0s;
}

.dpt-hero01-slide:nth-child(2) {
  animation-delay: -10s;
}

.dpt-hero01-slide:nth-child(3) {
  animation-delay: -5s;
}

/* HÌNH ẢNH */
.dpt-hero01-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.dpt-hero01-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* HIỆU ỨNG CHUYỂN ẢNH */
@keyframes dptHero01Fade {
  0% {
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  33.333% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* CHẤM ĐIỀU HƯỚNG */
.dpt-hero01-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.dpt-hero01-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.55);
  animation: dptHero01Dot 15s infinite;
}

.dpt-hero01-dots span:nth-child(1) {
  animation-delay: 0s;
}

.dpt-hero01-dots span:nth-child(2) {
  animation-delay: -10s;
}

.dpt-hero01-dots span:nth-child(3) {
  animation-delay: -5s;
}

@keyframes dptHero01Dot {
  0%, 30% {
    width: 28px;
    background: #fff;
  }

  33.333%, 100% {
    width: 9px;
    background: rgba(255,255,255,.55);
  }
}

/* DỪNG KHI RÊ CHUỘT */
@media (hover: hover) {
  .dpt-hero01:hover .dpt-hero01-slide,
  .dpt-hero01:hover .dpt-hero01-dots span {
    animation-play-state: paused;
  }
}

/* MOBILE */
@media (max-width: 767px) {

  .dpt-hero01 {
    aspect-ratio: 3 / 4;
  }

  .dpt-hero01-slide img {
    object-fit: cover;
    object-position: center;
  }

  .dpt-hero01-dots {
    bottom: 18px;
    gap: 7px;
  }

  .dpt-hero01-dots span {
    height: 8px;
  }
}

/* GIẢM CHUYỂN ĐỘNG */
@media (prefers-reduced-motion: reduce) {

  .dpt-hero01-slide {
    animation: none;
    opacity: 0;
  }

  .dpt-hero01-slide:first-child {
    opacity: 1;
  }

  .dpt-hero01-dots {
    display: none;
  }
}

