.videos {
  width: 100%;
  padding: 30px 5% 20px;
  box-sizing: border-box;
}

.videos-header {
  margin-bottom: 35px;
  text-align: center;
}

.videos-header h1 {
  margin-bottom: 12px;
  font-size: 36px;
  font-family: "Mulish", sans-serif;
  color: #083761;
  font-weight: 700;
}

.videos-header p {
  margin: 0;
  color: #083761;
  font-size: 16px;
  font-family: "Mulish", sans-serif;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.video-item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

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

.video-info {
  padding: 20px;
}

.video-info h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.video-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-family: "Mulish", sans-serif;
}

@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .videos {
    padding: 35px 5%;
  }

  .videos-header h1 {
    font-size: 28px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
.videos-subtitle {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.videos-header p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .videos-header h1 {
    font-size: 30px;
  }
}
/* TEMP */

/* ===== CARROSSEL DE VÍDEOS ===== */

.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
}

.videos-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.videos-grid::-webkit-scrollbar {
  display: none;
}

.video-item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info h2 {
  font-size: 16px;
  margin: 16px 0 8px;
  font-family: "Mulish", sans-serif;
  color: #083761;
  font-weight: 700;
}

.video-info p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Setas de navegação */

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #222;
  color: #fff;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Indicadores */

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.carousel-indicators button.active {
  background: #222;
}

/* Tablet */

@media (max-width: 1024px) {
  .video-item {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* Celular */

@media (max-width: 600px) {
  .carousel-wrapper {
    padding: 0 32px;
  }

  .videos-grid {
    gap: 16px;
  }

  .video-item {
    flex-basis: 100%;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .video-info h2 {
    font-size: 15px;
  }
}
