/* ==========================================================================
   ACOLHIMENTO & ORAÇÃO - GALERIA DE VÍDEOS STYLES (DEDICATED)
   ========================================================================== */

/* 1. Hero Section */
.videos-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--blue-dark) 100%);
  color: #ffffff;
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 3.5rem;
  text-align: center;
}

.videos-hero-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.videos-hero-title span {
  color: #ffffff;
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
}

.videos-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 2. Main Container & Grid */
.videos-section {
  background-color: var(--bg-beige);
  padding: 3rem 1.5rem 5rem;
  min-height: 60vh;
}

.videos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

@media (max-width: 640px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* 3. Video Card Item */
.video-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(45, 75, 39, 0.12);
  border-color: var(--primary-green-light);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #111111;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
  opacity: 0.92;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
  opacity: 1;
}

/* Play Badge Overlay */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.video-play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background-color: var(--primary-green);
}

.video-provider-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-card-content {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-green);
  margin-bottom: 0.35rem;
}

.video-card-h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
}

/* 4. Lightbox Modal */
.video-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none; /* Display none by default */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-lightbox-overlay.open {
  display: flex;
}

.video-lightbox-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  background-color: #000000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.video-lightbox-player {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
}

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

.video-lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color 0.2s, transform 0.2s;
}

.video-lightbox-close-btn:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  transform: scale(1.1);
}
