/* ------------------------- */
/*        VIDEOS SECTION       */
/* ------------------------- */
/* Responsive Grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Video Card */
.video-card {
  background: #f9fafb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-8px);
}

/* Video iframe 16:9 wrapper */
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Content */
.video-content {
  padding: 1.5rem;
}

.video-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 9999px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.video-description {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.865rem;
}

.video-description a {
  color: #1c74c7;
  text-decoration: none;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ------------------------- */
/*        Playlist SECTION       */
/* ------------------------- */
/* Grid container */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .playlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.playlist-card {
  background: #f9fafb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Image wrapper */
.playlist-image-wrapper {
  position: relative;
}

.playlist-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

/* Overlay */
.playlist-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-play-btn {
  background: white;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-play-btn i {
  width: 32px;
  height: 32px;
  color: var(--primary); /* primary */
}

/* Content */
.playlist-content {
  padding: 1.5rem;
}

.playlist-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.playlist-desc {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.865rem;
}

.playlist-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.playlist-link i {
  margin-left: 0.5rem;
  width: 16px;
  height: 16px;
}
/* ==================================== */
/*     YOUTUBE CTA SECTION               */
/* ==================================== */

.youtube-cta {
  background: var(--primary);
  color: white;
  padding: 5rem 0;
}

.youtube-flex {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .youtube-flex {
    flex-direction: row;
    align-items: center;
  }
}

.youtube-text {
  flex: 1;
}

.youtube-text .section-title {
  color: white;
}

.youtube-text .section-subtitle {
  color: white;
  margin-bottom: 2rem;
}

/* Button */
.youtube-btn {
  background: white;
  color: var(--primary);
  padding: 0.9rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.youtube-btn:hover {
  background: #f3f3f3;
}

/* Image Card */
.youtube-img-wrapper {
  flex: 1;
  padding-left: 0;
}

@media (min-width: 768px) {
  .youtube-img-wrapper {
    padding-left: 3rem;
  }
}

.youtube-img-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
}

.youtube-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  padding: 1.5rem;
}

/* Overlay */
.youtube-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.youtube-img-card:hover .youtube-overlay {
  opacity: 1;
}

/* Play Button */
.youtube-play-btn {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  i{
    color:black;
    font-size: 2rem;
    font-weight: 500;
  }
}
