/* ================= TOP BAR ================= */

.podcast-top {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
}

.filters {
  display: inline-flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.filter-btn.active {
  background: var(--cyan-600);
  color: white;
}

/* SEARCH */
.search-box {
  width: 392px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  margin-left: auto;
  max-width: 100%;
}

/* ================= GRID ================= */

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ================= CARD ================= */

/* 🔥 NEW CLASS (no conflict with components.css) */
.podcast-card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;

  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: #fff;

  text-decoration: none;
  color: inherit;

  transition: 0.3s;
}

.podcast-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* TEXT */
.podcast-title {
  font-size: var(--headline-3);
  font-weight:  var(--fw-semibold);
  color: var(--gray-900);
}

.podcast-desc {
  font-size: var(--body-1);
  color: var(--gray-800);
}

/* LINK */
.podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-600);
  font-weight: 500;
  text-decoration: none;

}


/* IMAGE */
.podcast-card-grid img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-radius: 8px;
}

/* ================= SPACING ================= */
.podcast-section {
  padding-bottom: 80px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .podcast-top {
    flex-direction: column;
    align-items: stretch;
  }

  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    margin-left: 0;
    width: 100%;
  }
}

/* ======== Home page podcast section========*/
/* WRAPPER */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  height: 420px;
}

/* TRACK */
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  will-change: transform;
  align-items: center;
}

/* ================= DESKTOP (1024px+) ================= */

/* CARD BASE - INACTIVE */
.carousel-card {
  width: 220px;
  height: 280px;
  flex-shrink: 0;

  padding: 20px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.8);
  color: #111827;

  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;

  transition: all 0.4s ease;
  opacity: 0.6;
}

/* ACTIVE CARD - DESKTOP */
.carousel-card.active {
  width: 280px;
  height: 360px;
  background: #ffffff;
  opacity: 1;
  z-index: 2;
}

/* IMAGE */
.carousel-card img {
  width: 100%;
  height: 0;
  opacity: 0;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.4s ease;
}

/* SHOW IMAGE ONLY ACTIVE */
.carousel-card.active img {
  height: 220px;
  opacity: 1;
}

/* TEXT - INACTIVE */
.carousel-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

/* TEXT - ACTIVE */
.carousel-card.active h3 {
  font-size: 22px;
  font-weight: 600;
}

.carousel-card p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.4;
}

.carousel-card.active p {
  font-size: 14px;
  opacity: 1;
}

/* DOTS */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 999px;
  transition: 0.3s;
}

.carousel-dots span.active {
  width: 24px;
  background: #00A3E0;
}

/* ================= TABLET (768px - 1024px) ================= */
@media (max-width: 1024px) {
  .carousel-wrapper {
    min-height: 400px;
  }

  .carousel-card {
    width: 200px;
    height: 260px;
    padding: 18px;
  }

  .carousel-card.active {
    width: 260px;
    height: 340px;
  }

  .carousel-card h3 {
    font-size: 15px;
  }

  .carousel-card.active h3 {
    font-size: 20px;
  }
}

/* ================= MOBILE (640px) ================= */
@media (max-width: 640px) {
  .carousel-wrapper {
    height: 480px;
    padding: 20px 0;
  }

  .carousel-track {
    justify-content: flex-start;
  }

  /* ALL CARDS - BASE */
  .carousel-card {
    width: 85vw;
    max-width: 320px;
    height: 420px;
    padding: 24px;
    opacity: 0.3;
    pointer-events: none;
  }

  /* ACTIVE CARD ONLY */
  .carousel-card.active {
    width: 85vw;
    max-width: 320px;
    height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .carousel-card h3 {
    font-size: 18px;
  }

  .carousel-card p {
    font-size: 14px;
  }
}

