/* Hero Section Styles */
.news-podcast-grid {
  padding: 0 var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
  @media screen and (min-width: 768px) {
    padding: 0 0 var(--wp--preset--spacing--70) 0;
  }
}
.news-podcast-grid-hero {
  max-width: var(--wp--style--global--content-size);
  width: 100%;

  @media screen and (min-width: 768px) {
    display: flex;
    flex-wrap: wrap;
    margin-inline: auto;
  }
}
.news-podcast-grid-hero__main {
  margin: var(--wp--preset--spacing--40) 0;
  width: 100%;
  @media screen and (min-width: 768px) {
    width: 75%;
  }
}
.news-podcast-grid-hero__label {
  color: var(--wp--custom--color--primary);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3em;
  margin: var(--wp--preset--spacing--20) 0 0;
}
.news-podcast-grid-hero__title {
  color: var(--wp--custom--color--primary);
  font-size: 4.6rem;
  line-height: 1em;
  margin: 0 0 var(--wp--preset--spacing--30) 0;
  @media screen and (min-width: 768px) {
    font-size: var(--wp--preset--font-size--xxx-large);
  }
}
.news-podcast-grid-hero__sub-headline {
  color: var(--wp--custom--color--primary);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  line-height: 1.3em;
  margin: var(--wp--preset--spacing--20) 0 0;
}
.news-podcast-grid-hero__body p {
  margin: .7rem 0;
}
.news-podcast-grid-hero__sidebar {
  margin: var(--wp--preset--spacing--40) 0;
  width: 100%;
  @media screen and (min-width: 768px) {
    width: 25%;
  }
}
.news-grid-filter-button {
  background-color: var(--wp--custom--color--primary);
  border: none;
  color: var(--wp--custom--color--white);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 1.2rem;
  text-align: center;
  width: 100%;
  &:hover {
    background-color: var(--wp--custom--color--accent-1);
    color: var(--wp--custom--color--black);
  }
}
.news-podcast-grid-subscribe {
  background-color: var(--wp--custom--color--off-white);
  padding: 1.2rem 3rem;
}
.news-podcast-grid-subscribe__title {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.3em;
  margin: .7rem 0;
}

/* Filter Modal Styles */

.news-podcast-grid-filters {
  margin: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--50) 0;
  position: relative;
}
.news-grid-modal {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  &.is-open {
    display: block;
  }
  @media screen and (min-width: 768px) {
    max-width: 54rem;
    width: 100vw;
  }
}
.news-grid-modal__content {
  background: var(--wp--custom--color--white);
  border: 1px solid var(--wp--custom--color--haze);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 10000;
}
.news-grid-modal__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--30);
  list-style: none;
  padding: var(--wp--preset--spacing--50);
  margin: 0 0 var(--wp--preset--spacing--50) 0;
}
.news-grid-modal__label {
  cursor: pointer;
  display: inline-block;
}
.news-grid-modal__checkbox {
  display: none;
  &:checked + .news-grid-modal__checkbox-text {
    background-color: var(--wp--custom--color--primary);
    color: var(--wp--custom--color--white);
  }
}
.news-grid-modal__checkbox-text {
  align-items: center;
  background-color: var(--wp--custom--color--white);
  border: 1px solid var(--wp--custom--color--text);
  border-radius: 2rem;
  color: var(--wp--custom--color--secondary);
  display: flex;
  font-size: var(--wp--preset--font-size--medium);
  justify-content: center;
  line-height: 1;
  padding: 1.2rem 2rem;
}
.news-grid-modal__clear {
  background-color: transparent;
  border: none;
  color: var(--wp--custom--color--secondary);
  cursor: pointer;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 400;
  margin: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30);
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}
.news-grid-modal__close {
  background-color: var(--wp--custom--color--secondary);
  border: thin solid var(--wp--custom--color--haze);
  color: var(--wp--custom--color--white);
  cursor: pointer;
  display: block;
  font-size: 1.4rem;
  padding: 1.2rem;
  position: relative;
  text-align: center;
  width: 100%;
  &:hover {
    background-color: var(--wp--custom--color--primary);
    color: var(--wp--custom--color--white);
  }
  &::after {
    content: '\2715';
    display: inline-block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

.news-podcast-grid-display {
  margin-inline: auto;
  max-width: var(--wp--style--global--content-size);
  width: 100%;
}

/* Loading state */
.news-podcast-grid-display.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Card Styles */
.news-podcast-grid-display__grid {
  display: grid;
  gap: var(--wp--preset--spacing--60);
  grid-template-columns: 1fr;
  margin-block-start: var(--wp--preset--spacing--60);
  padding: 0;
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.news-podcast-card {
  display: flex;
  flex-direction: column;
  &.news-podcast-card--featured {
    @media screen and (min-width: 768px) {
      flex-direction: row;
      grid-column: 1 / -1;
      .news-podcast-card-image__container {
        width: 50%;
      }
      .news-podcast-card-content {
        width: 50%;
        padding: 1rem 3.2rem 4rem 3.2rem;
      }
      .news-podcast-card-title {
        font-size: 3.2rem;
      }
    }
  }
}
.news-podcast-card-content {
  padding: var(--wp--preset--spacing--30);
}
.news-podcast-card-image__container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }
}
.news-podcast-card-meta {
  align-items: center;
  display: flex;
  font-size: 1.4rem;
  font-weight: 600;
  gap: var(--wp--preset--spacing--30);
}
.news-podcast-card-audio-icon__image {
  height: 1.6rem;
  width: 2.2rem;
}
.news-podcast-card-title {
  font-size: 2.6rem;
}
.news-podcast-card-excerpt {
  font-size: 1.8rem;
}
.news-podcast-card-date {
  margin-inline-start: auto;
}

/* Pagination Styles */
.news-grid-pagination {
  display: flex;
  justify-content: center;
  margin: var(--wp--preset--spacing--70) 0;
  .page-numbers {
    border: 1px solid var(--wp--custom--color--haze);
    color: var(--wp--custom--color--secondary);
    font-weight: 700;
    padding: 2px 9px;
    text-decoration: none;
    &.current {
      background-color: var(--wp--custom--color--primary);
      color: var(--wp--custom--color--white);
    }
    &.inactive {
      background-color: var(--wp--custom--color--haze);
      color: var(--wp--custom--color--black)
    }
  }
}