/* Videos Section Styles */

.videos-section {
  width: 100%;
  max-width: 100%;
  margin: 60px auto 0 auto;
  padding: 60px 0;
}

.videos-header {
  background: #5bced2;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  height: 40px;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(91, 206, 210, 0.3);
  margin-bottom: 30px;
}

.videos-header-icon {
  position: absolute;
  left: -80px;
  top: 20%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.videos-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  position: relative;
}

.videos-title {
  font-weight: 950;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  margin-left: 80px;
}

.videos-plus-btn {
  position: absolute;
  right: 20px;
  top: -30px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 4px solid #0052a1;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052a1;
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.videos-plus-btn:hover {
  background: #0052a1;
  color: white;
  transform: scale(1.05);
}

.videos-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 0;
  height: 330px;
}

.videos-grid-left {
  flex: 2;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.videos-grid-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videos-grid-right {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-right-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-right-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botão play fixo no canto */
.videos-grid-left>.video-play-btn,
.video-right-item>.video-play-btn {
  position: absolute;
  bottom: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 3px solid #5bced2;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5bced2;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: all 0.5s ease;
}

/* Empurrar botão fixo para cima E mudar estilo no hover */
.videos-grid-left:hover>.video-play-btn,
.video-right-item:hover>.video-play-btn {
  bottom: 88px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  color: #5bced2;
  font-size: 1.2rem;
}

.videos-grid-left>.video-play-btn:hover,
.video-right-item>.video-play-btn:hover {
  background: #5bced2 !important;
  color: white !important;
  transform: scale(1.1);
}

/* Hover effects */
.video-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 32, 72, 0);
  transition: background 0.5s ease;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.videos-grid-left:hover .video-hover-overlay,
.video-right-item:hover .video-hover-overlay {
  background: rgba(44, 32, 72, 0.85);
  pointer-events: auto;
}

.video-info-bar {
  width: 100%;
  background: #5195c5;
  padding: 16px 20px;
  padding-right: 76px;
  display: flex;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.videos-grid-left:hover .video-info-bar,
.video-right-item:hover .video-info-bar {
  transform: translateY(0);
}

.video-text {
  flex: 1;
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}

.videos-grid-left:hover .video-text,
.video-right-item:hover .video-text {
  opacity: 1;
}

.video-hover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px 0;
  color: white;
}

.video-hover-subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: white;
  opacity: 0.95;
}

.video-hover-overlay .video-play-btn {
  position: static;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5bced2;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.video-hover-overlay .video-play-btn:hover {
  background: #5bced2 !important;
  color: white !important;
  transform: scale(1.1);
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.video-subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .video-card:first-child,
  .video-card:nth-child(2),
  .video-card:nth-child(3) {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .videos-section {
    padding: 40px 0;
    margin: 40px auto 0 auto;
  }

  .videos-header {
    height: 36px;
    padding: 10px 15px;
  }

  .videos-header-icon {
    width: 200px;
    height: 200px;
    left: -80px;
  }

  .videos-title-container {
    margin-left: 60px;
  }

  .videos-title {
    font-size: 0.9rem;
    margin-left: 40px;
  }

  .videos-plus-btn {
    font-size: 28px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

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

  .video-play-btn .play-icon {
    width: 20px;
    height: 20px;
  }

  .video-title {
    font-size: 14px;
    min-height: 40px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .video-subtitle {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}
