/* Estilos para o video player */
.about__video {
  padding: 4rem 0;
  background-color: #f9f9f9;
}

.about__video-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about__video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #000;
  margin-bottom: 20px;
  display: block; /* Garante que o wrapper seja exibido */
  max-width: 100%;
}

.video-wrapper .video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
  display: block; /* Garante que a thumbnail seja exibida */
  opacity: 1; /* Garante que a thumbnail seja visível */
}

.video-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 1; /* Garante que o botão seja visível */
}

.video-wrapper .play-button i {
  color: #006d67;
  font-size: 24px;
  margin-left: 5px;
  display: block; /* Garante que o ícone seja exibido */
}

.video-wrapper .play-button:hover {
  background-color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Styles for iframe */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  border: none;
  max-width: 100%;
}

/* Additional class applied when video is being played */
.video-wrapper.video-playing {
  background-color: #000;
}

/* Ensuring the iframe is visible and takes full space */
.video-wrapper.video-playing iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* Media queries para responsividade */
@media (max-width: 992px) {
  .about__video-content {
    padding: 0 1rem;
  }

  .about__video-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about__video {
    padding: 3rem 0;
  }

  .video-wrapper .play-button {
    width: 60px;
    height: 60px;
  }

  .video-wrapper .play-button i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .about__video {
    padding: 2rem 0;
  }

  .about__video-content {
    padding: 0 1rem;
  }

  .video-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .video-wrapper .play-button {
    width: 50px;
    height: 50px;
  }

  .video-wrapper .play-button i {
    font-size: 18px;
    margin-left: 3px;
  }
}

/* Specific styles for YouTube and Vimeo iframes */
.video-wrapper iframe[src*="youtube.com"],
.video-wrapper iframe[src*="vimeo.com"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
