/* Seção de Vídeos */
.catalog__videos {
  padding: 5rem 0;
  background-color: #f7f7f7;
  position: relative;
  overflow: hidden;
}

.catalog__videos-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.catalog__videos-header {
  text-align: center;
  margin-bottom: 4rem;
}

.catalog__videos-title {
  font-family: "Gilroy", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.catalog__videos-highlight {
  font-family: "Hattinant", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: #000;
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
  margin-left: 0.5rem;
}

.catalog__videos-highlight::before {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  height: 1rem;
  background-color: rgba(0, 175, 64, 0.3);
  z-index: -1;
}

.catalog__videos-desc {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Carrossel */
.catalog__videos-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5rem;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  margin: 0 auto;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-item {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide-item:hover .video-thumb {
  transform: scale(1.05);
}

.slide-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2) 60%,
    transparent
  );
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.slide-item:hover::after {
  opacity: 0.9;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.play-btn i {
  color: #000;
  font-size: 1.5rem;
  margin-left: 5px;
}

.play-btn:hover {
  background-color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Botões de navegação */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: #fdb813;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev i,
.carousel-next i {
  color: #333;
  font-size: 1.2rem;
}

.carousel-prev:hover i,
.carousel-next:hover i {
  color: #fff;
}

/* Bullets */
.carousel-bullets {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.8rem;
}

.carousel-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-bullet.active {
  background-color: #000;
  transform: scale(1.2);
}

.carousel-bullet:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal de Vídeo */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.video-modal-close:hover {
  transform: scale(1.1);
  color: #fdb813;
}

/* Responsividade */
@media (max-width: 1200px) {
  .catalog__videos-title,
  .catalog__videos-highlight {
    font-size: 2.5rem;
  }

  .carousel-container {
    height: 360px;
  }
}

@media (max-width: 992px) {
  .carousel-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .carousel-container {
    height: 500px;
  }

  .catalog__videos-carousel {
    padding: 0 4rem;
  }
}

@media (max-width: 768px) {
  .catalog__videos {
    padding: 3rem 0;
  }

  .catalog__videos-title,
  .catalog__videos-highlight {
    font-size: 2rem;
  }

  .catalog__videos-desc {
    font-size: 1rem;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .carousel-container {
    height: 350px;
  }

  .play-btn {
    width: 50px;
    height: 50px;
  }

  .play-btn i {
    font-size: 1.2rem;
  }

  .catalog__videos-carousel {
    padding: 0 3rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .carousel-bullets {
    margin-top: 1.5rem;
  }
}
