/* Recent Episodes */
.tfes-recent-episodes { width: 100%; box-sizing: border-box; }
.tfes-recent-episodes *,
.tfes-recent-episodes *::before,
.tfes-recent-episodes *::after { box-sizing: border-box; }

.tfes-recent-episodes__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.tfes-recent-episodes__header {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.tfes-recent-episodes__heading {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 36px !important;
  font-weight: 500 !important;
  line-height: 1.2;
}

.tfes-recent-episodes__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.tfes-recent-episodes__card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border: 1.5px solid #1F2937;
  border-radius: 28px;
}

.tfes-recent-episodes__date {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  opacity: 0.75;
}

.tfes-recent-episodes__date--mobile { display: none; }

.tfes-recent-episodes__thumb {
  position: relative;
  margin: 0;
  width: 260px;
  height: 150px;
  flex: 0 0 260px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.tfes-recent-episodes__img,
.tfes-recent-episodes__thumb img,
.tfes-recent-episodes .tfes-recent-episodes__img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.tfes-recent-episodes h3.tfes-recent-episodes__title,
.tfes-recent-episodes .tfes-recent-episodes__title {
  margin: 0 0 8px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: inherit !important;
}

.tfes-recent-episodes__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.9;
}

.tfes-recent-episodes__listen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #000000 !important;
  text-decoration: none !important;
}

.tfes-recent-episodes__listen:hover,
.tfes-recent-episodes__listen:focus {
  color: #000000 !important;
  text-decoration: none !important;
}

.tfes-recent-episodes__listen-text {
  display: none;
  color: inherit;
}

.tfes-recent-episodes__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--tfes-play-color, currentColor);
  border-radius: 50%;
  background: #fff;
  color: var(--tfes-play-color, inherit);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.tfes-recent-episodes__cta { text-align: center; }

.tfes-recent-episodes__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: #ffffff !important;
  background-color: #4B2E9B !important;
  border: none;
  box-shadow: 0 10px 24px rgba(75, 46, 155, 0.28);
  transition: transform 160ms ease;
}

.tfes-recent-episodes__button:hover,
.tfes-recent-episodes__button:focus {
  color: #ffffff !important;
  background-color: #3B247C !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.tfes-recent-episodes__btn-text--mobile { display: none; }
.tfes-recent-episodes__btn-text--desktop { display: inline; }

.tfes-recent-episodes__button-icon {
  display: inline-flex;
  font-size: 1em;
}

.tfes-recent-episodes__button-icon--mobile { display: none; }
.tfes-recent-episodes__button-icon--desktop { display: inline-flex; }

.tfes-recent-episodes__button-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .tfes-recent-episodes__card {
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px 20px;
  }

  .tfes-recent-episodes__thumb {
    width: 260px;
    height: 150px;
    flex: 0 0 260px;
  }
}

@media (max-width: 767px) {
  .tfes-recent-episodes__card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
  }

  .tfes-recent-episodes__date--desktop { display: none; }
  .tfes-recent-episodes__date--mobile { display: block; margin-bottom: 0; }

  .tfes-recent-episodes__thumb {
    width: 100%;
    height: auto;
    flex: none;
    aspect-ratio: 260 / 150;
  }

  .tfes-recent-episodes__listen {
    justify-content: space-between;
    width: 100%;
  }

  .tfes-recent-episodes__listen-text { display: inline; }

  .tfes-recent-episodes__btn-text--desktop { display: none; }
  .tfes-recent-episodes__btn-text--mobile { display: inline; }

  .tfes-recent-episodes__button-icon--desktop { display: none; }
  .tfes-recent-episodes__button-icon--mobile { display: inline-flex; }

  .tfes-recent-episodes__button {
    width: 100%;
    max-width: none;
  }
}
