/* YouTube Embed Section */
.youtube-embed {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  padding: 60px 20px;
  text-align: center;
}

/* Responsive Rules*/
@media (min-width: 768px) {
  .youtube-embed {
    padding: 80px 50px;
  }
}

@media (min-width: 1024px) {
  .youtube-embed {
    padding: 100px 100px;
  }
}

@media (min-width: 1200px) {
  .youtube-embed {
    padding: 100px 200px;
  }
}

@media (min-width: 1400px) {
  .youtube-embed {
    padding: 100px 300px;
  }
}

.youtube-embed h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.youtube-embed h2::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for better mobile compatibility */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

/* Responsive Rules*/
@media (min-width: 768px) {
  .video-wrapper {
    max-width: 960px;
    padding-bottom: 40.85%; /* 21:9 aspect ratio for larger screens */
  }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.second-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

p.description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.video-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.video-link {
  display: block;
  width: 100%;
  max-width: 100%;
}

.thumbnail {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Responsive Rules*/
@media (min-width: 768px) {
  .video-gallery {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .video-link {
    width: 30%;
  }
}
