/* YouTube Section Styles */
.youtube-section {
  background: linear-gradient(140deg, #f8fcfb 0%, #eefbf5 52%, #fff8f8 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 1rem;
  position: relative;
  overflow: hidden;
}

.youtube-section::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0));
  pointer-events: none;
}

.youtube-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.03"><path d="M30,30 Q50,10 70,30 T90,50 Q70,70 50,90 T10,50 Q30,30 50,10 T90,30" fill="none" stroke="%232a7f62" stroke-width="1"/></svg>');
  background-size: 120px;
  background-repeat: repeat;
  z-index: 0;
}

.youtube-section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.youtube-section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.youtube-section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #142c25;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-wrap: balance;
}
.youtube-section-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    color: #2a7f62;
    background: rgba(42, 127, 98, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.youtube-section-description {
  font-size: clamp(1rem, 1.9vw, 1.08rem);
  line-height: 1.75;
  color: #445954;
  max-width: 70ch;
  margin: 0 auto;
}
.youtube-divider {
  width: 100px;
  height: 4px;
  align-self: center;
  background: linear-gradient(90deg, #2a7f62 0%, #66bb6a 100%);
  border-radius: 2px;
  margin: 1.5rem auto;
}
.video-carousel {
  position: relative;
  margin: 0 auto 3rem;
  padding: 0 3rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border: 1px solid rgba(255, 0, 0, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: #ff0000;
  color: white;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}

.carousel-nav:focus-visible,
.youtube-cta:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.3);
  outline-offset: 2px;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.video-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  margin: 0 -1rem;
  scrollbar-width: none;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.08);
  transition: all 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}

.video-card.featured {
  border: 2px solid #ff0000;
}

.video-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(31, 8, 8, 0.14);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

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



.play-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.video-thumbnail:hover .play-icon {
  opacity: 1;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-info {
  padding: 1.2rem;
}

.video-title {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.video-desc {
  font-size: 0.95rem;
  color: #5a6a67;
  margin-bottom: 1rem;
  line-height: 1.5;
}



.video-card.playlist .play-icon svg {
  width: 28px;
  height: 28px;
}

.youtube-cta-container {
  text-align: center;
  margin-top: 2rem;

}

.youtube-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ff0000, #ff3d2e);
  color: white;
  padding: 0.9rem 1.1rem;
  border-radius: 50px;
  font-size: 1.10rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.25);
  min-width: 260px;
}

.youtube-cta svg {
  width: 20px;
  height: 20px;
}

.youtube-cta:hover {
  background: linear-gradient(135deg, #ff1a1a, #e52b2b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.youtube-cta:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.28);
  outline-offset: 3px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .video-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 900px) {
  .youtube-section-title {
    font-size: 2rem;
  }
  
  .youtube-section-subtitle {
    font-size: 1rem;
  }
  
  .video-carousel {
    padding: 0 2.5rem;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .youtube-section {
    padding: 3rem 1rem;
  }

  .video-track {
    margin: 0;
    padding: 0.75rem 0.25rem;
  }
  
  .video-card {
    flex: 0 0 85%;
  }
  
  .youtube-section-title {
    font-size: 1.8rem;
  }
  
  .carousel-nav {
    width: 36px;
    height: 36px;
  }
  
  .carousel-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .youtube-section-title {
    font-size: 1.6rem;
  }
  
  .youtube-section-subtitle {
    font-size: 0.8rem;
  }

  .youtube-section-description {
    font-size: 0.98rem;
  }
  
  .video-carousel {
    padding: 0 0.6rem;
  }

  .video-track {
    gap: 1rem;
    padding: 0.65rem 0.2rem;
  }
  
  .video-card {
    flex: 0 0 92%;
  }
  
  .youtube-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}