/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

.heroBanner {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 996px) {
  .heroBanner {
    padding: 2rem;
  }
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.videoHeading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
}

/* Your existing styles remain the same */
.videoGrid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 2rem auto;
}

.videoGrid > *:first-child {
  margin-bottom: 2rem;
}

.videoRow {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Creates spacing between videos */
  width: 100%;
  max-width: 1200px; /* Prevents videos from getting too wide */
}

.videoRow > * {
  flex: 1;
  max-width: 45%; /* Controls maximum width of each video */
}

@media screen and (max-width: 996px) {
  .videoRow {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .videoRow > * {
    max-width: 90%;
  }
}

/* Privacy-compliant video thumbnail styles - no iframes, no cookies */
.videoThumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: #000;
}

.videoThumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.videoThumbnail:focus {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}

.thumbnailImage {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.videoThumbnail:hover .thumbnailImage {
  opacity: 0.8;
}

.playButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #ff0000;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.videoThumbnail:hover .playButton {
  background: #ff0000;
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.videoInfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: left;
}

.videoInfo h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.videoInfo p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .videoThumbnail,
  .thumbnailImage,
  .playButton {
    transition: none;
  }
  
  .videoThumbnail:hover {
    transform: none;
  }
  
  .videoThumbnail:hover .playButton {
    transform: translate(-50%, -50%);
  }
}