/* .main {
  padding-top: 48px;
} */

.search-results-page .episode-preview {
  width: calc(50% - 30px);
  margin: 0 15px 15px;
}

@media (max-width: 768px) {
  .search-results-page .episode-preview {
    width: 100%;
    margin: 0 0 15px;
  }
}

.search-results-page .episode-preview:last-child {
  margin-bottom: 15px;
}

.search-results-page .pagination {
  margin-bottom: 98px;
}

.search-results-page .title-section {
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .search-results-page .title-section {
    margin-bottom: 30px;
  }
}

@media (max-width: 1024px) {
  .search-results-page .title-section .selectors {
    height: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .search-results-page .item-filter {
    flex-direction: column;
    align-items: flex-start;
  }
}



.dynamic-post-container.active {
  display: flex;
}

.dynamic-post-container.generic-container {
  flex-direction: column;
}

.dynamic-post-container .no-results-message {
  letter-spacing: -0.4px;
  color: black;
  padding-left: 16px;
  padding-bottom: 20px;
}

@media (max-width: 480px) {
  .dynamic-post-container .no-results-message {
    padding-left: 0;
    padding-bottom: 0;
    padding-top: 12px;
  }
}

section.search-results-page .dynamic-post-container .no-results-message {
  display: none;
}

.taxonomy-filter-container {
  display: none;
  padding-bottom: 40px;
  overflow: hidden;
}

.taxonomy-filter-container.active {
  display: block;
}

.taxonomy-filter-container.three-line-grid ul {
  margin-left: -36px;
  margin-right: -36px;
  justify-content: flex-start;
}

@media (max-width: 1024px) { /* Tablet large */
  .taxonomy-filter-container.three-line-grid ul {
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 768px) { /* Mobile only */
  .taxonomy-filter-container.three-line-grid ul {
    margin-left: 0;
    margin-right: 0;
  }
}

.taxonomy-filter-container.three-line-grid ul li {
  width: calc(100% / 3 - 72px);
  margin: 0 36px 0;
}

@media (max-width: 1024px) { /* Tablet large */
  .taxonomy-filter-container.three-line-grid ul li {
    width: calc(100% / 3 - 40px);
    margin: 0 20px 0;
  }
}

@media (max-width: 768px) { /* Mobile only */
  .taxonomy-filter-container.three-line-grid ul li {
    width: 100%;
    margin: 0;
  }
}

.taxonomy-filter-container ul {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
}

@media (max-width: 768px) { /* Mobile only */
  .taxonomy-filter-container ul {
    flex-direction: column;
  }
}

.taxonomy-filter-container ul li {
  width: calc(50% - 36px);
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid black;
  padding: 12px 0;
  cursor: pointer;
}

@media (max-width: 768px) { /* Mobile only */
  .taxonomy-filter-container ul li {
    width: 100%;
  }
}

.taxonomy-filter-container ul li span {
  letter-spacing: -0.4px;
  color: black;
}

.taxonomy-filter-container ul li span:first-of-type {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-left: 0;
  transition: padding 0.3s ease;
}

.taxonomy-filter-container ul li:hover span:first-of-type {
  padding-left: 10px;
}


.category-picker {
  border: 1px solid black;
  display: flex;
  flex-direction: row;
  margin-right: 30px;
  position: relative;
  max-width: 215px;
  width: 100%;
}

@media (max-width: 1024px) {
  .category-picker {
    height: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

.category-picker.display-none-desktop {
  display: none !important;
}

@media (max-width: 480px) {
  .category-picker.display-none-desktop {
    display: flex !important;
  }
}

.search-results-header {
  margin-bottom: 82px;
}

@media (max-width: 480px) {
  .search-results-header {
    margin-bottom: 30px;
  }
}

@media (min-width: 1024px) {
  .section-title {
      line-height: 36px;
  }
}

.title-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .title-section {
    align-items: flex-end;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .title-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

.title-section .section-title span a {
  color: #000;
  font-size: 20px;
}

.title-section .section-title span a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .title-section .section-title {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .title-section .section-title {
    margin-bottom: 10px;
  }
}

.item-filter {
  margin-bottom: 66.5px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .item-filter {
    margin-bottom: 25px;
  }
}

.item-filter .tabs {
  width: 100%;
  border-bottom: 1px solid black;
  white-space: nowrap;
  overflow-x: hidden;
}

.item-filter .tabs span {
  display: inline-block;
  font-size: 18px;
  line-height: 21.6px;
  padding: 0 34px;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 4px solid transparent;
}

@media (max-width: 768px) {
  .item-filter .tabs span {
    padding: 9px 18px;
    background: #fff;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .item-filter .tabs span {
    padding: 10px;
  }
}

.item-filter .tabs span:first-child {
  padding-left: 0;
}

@media (max-width: 768px) {
  .item-filter .tabs span:first-child {
    padding: 10px;
  }
}

.item-filter .tabs span.active {
  border-bottom-color: black;
}

.item-filter .tabs:hover,
.item-filter .tabs:focus,
.item-filter .tabs:active {
  overflow-x: auto;
}

.search-error-message {
  margin: 0 auto 30px;
}

.generic-preview {
  width: 100%;
  display: block;
  max-width: 705px;
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  .generic-preview {
    margin: 0 auto 20px;
  }
}

.generic-preview .text-container h5 {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.4px;
  color: black;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .generic-preview .text-container h5 {
    font-size: 17px;
    line-height: 22.1px;
  }
}

.generic-preview .text-container h4 {
  letter-spacing: -0.31px;
  color: #333;
  margin-bottom: 8px;
}

.generic-preview .text-container p {
  margin-bottom: 0;
}

.generic-preview .text-container .author-date {
  margin-bottom: 12px;
}

.generic-preview .text-container .author-date span {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.4px;
  color: black;
}

@media (max-width: 768px) {
  .generic-preview .text-container .author-date span {
    font-size: 17px;
    line-height: 22.1px;
  }
}

.number-of-results {
  display: none;
}

.search-results-header {
  margin-bottom: 82px;
}

@media (max-width: 768px) {
  .search-results-header {
    margin-bottom: 30px;
  }
}

.search-results-header .search-results {
  font-size: 61px;
  line-height: 67.1px;
  letter-spacing: -2.44px;
}

@media (max-width: 768px) {
  .search-results-header .search-results {
    font-size: 34px;
    line-height: 39.4px;
  }
}

.search-results-header .search-results span {
  display: inline-block;
}

.topic-display-row-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 64px;
}

.topic-display-row-inner .left-section {
  width: 34%;
}

@media (max-width: 768px) {
  .topic-display-row-inner .left-section {
    width: 100%;
  }
}

.topic-display-row-inner .left-section h2 {
  cursor: pointer;
  padding-left: 0;
  transition: padding 0.3s ease;
}

@media (max-width: 768px) {
  .topic-display-row-inner .left-section h2 {
    margin-bottom: 30px;
  }
}

.topic-display-row-inner .left-section h2:hover {
  padding-left: 10px;
}

.topic-display-row-inner .right-section {
  width: 66%;
}

@media (max-width: 768px) {
  .topic-display-row-inner .right-section {
    width: 100%;
  }
}

.topic-display-row-inner .second-level-topic-heading {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid black;
  padding-bottom: 12px;
  margin-bottom: 12px;
  margin-top: 64px;
  cursor: pointer;
}

.topic-display-row-inner .second-level-topic-heading:first-child {
  margin-top: 0;
}

.topic-display-row-inner .second-level-topic-heading h6 {
  padding-left: 0;
  transition: padding 0.3s ease;
}

.topic-display-row-inner .second-level-topic-heading:hover h6 {
  padding-left: 10px;
}

.article-preview {
  width: calc(100% / 3 - 30px);
  margin: 0 15px 30px;
  display: inline-block;
  word-wrap: break-word;
  border: 1px solid #d8d8d8;
  /* padding: 19px; */
  background-color: #fff;
  border-radius: 10px 10px 10px 10px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .article-preview {
    width: calc(100% / 2 - 30px);
  }
}

@media (max-width: 768px) {
  .article-preview {
    width: 100%;
    margin: 0 0 18px;
    display: block;
    /* flex-direction: row;
    justify-content: space-between;
    align-items: stretch; */
    overflow: hidden;
  }
}

.article-preview .image-container {
  line-height: 0;
  height: auto;
}

@media (max-width: 768px) {
  .article-preview .image-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
  }
}

.article-preview .image-container img {
  /* display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; */
  min-width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
  /* .article-preview .image-container img {
    position: absolute;
    top: 0;
    left: 0;
  } */
}

.article-preview .text-container {
  padding: 19px;
  position: relative;
}

.article-preview .text-container .post-meta{
  font-size: 13px!important;
  color: #496572 !important;
  line-height: 1.6em;
  padding: 0!important;
  margin: 0!important;
  font-family: 'Barlow';
}

@media (max-width: 768px) {
  .article-preview .text-container {
    padding: 19px;
    width: 100%;
  }
}

.article-preview .text-container .overlay {
  position: absolute;
  width: 90px;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(267deg, #EDEDED 3.1%, rgba(237, 237, 237, 0) 106.67%);
}

.article-preview .text-container h4 {
  letter-spacing: -0.32px;
  color: black;
  /* margin-bottom: 16px; */
  font-size: 26px;
  line-height: 1.2em;
}

@media (max-width: 768px) {
  .article-preview .text-container h4 {
    margin-bottom: 3px;
    font-size: 23px;
  }
}

.article-preview .text-container p {
  margin-bottom: 0;
  line-height: 1.6em;
  font-size: 15px;
  color: #666;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .article-preview .text-container p {
    margin-bottom: 0;
    margin-top: 3px;
  }
}

.article-preview .text-container .author-date {
  margin-top: 3px;
  line-height: 0;
}

.article-preview .text-container .more-link {
  font-weight: 700;
  text-transform: uppercase;
  color: #496572 !important;
  letter-spacing: 0.13em;
  line-height: 3em;
  font-size: 15px;
  font-family: 'Barlow';
}

@media (max-width: 768px) {
  .article-preview .text-container .author-date {
    margin-top: 3px;
  }
}

.article-preview.horizontal {
  display: flex;
  width: 100%;
  margin: 0 0 32px 0;
  min-height: 160px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .article-preview.horizontal {
    margin: 0 0 18px 0;
    min-height: 75px;
    height: auto;
    overflow: hidden;
  }
}

.article-preview.horizontal .image-container {
  width: 214px;
  overflow: hidden;
  height: auto;
}

@media (max-width: 768px) {
  .article-preview.horizontal .image-container {
    width: 124px;
  }
}

.article-preview.horizontal .image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-preview.horizontal .text-container {
  padding: 16px 30px;
  width: calc(100% - 220px);
}

@media (max-width: 768px) {
  .article-preview.horizontal .text-container {
    width: calc(100% - 124px);
    padding: 6px 13px;
  }
}

.article-preview.horizontal .text-container p {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .article-preview.horizontal .text-container p {
    margin-top: 3px;
  }
}

.article-preview.horizontal .text-container .author-date {
  margin-top: 4px;
}

.articles-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.dynamic-post-container {
  display: none;
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .articles-container {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }
}
.featured-post {
  padding-bottom: 55px;
  border-bottom: 1px solid black; /* Replace $black with actual color */
  margin-bottom: 48px;
}

.featured-post h3 {
  margin-bottom: 32px;
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .featured-post {
    margin-bottom: 25px;
    padding-bottom: 30px;
  }

  .featured-post h3 {
    margin-bottom: 20px;
  }
}

.articles-listing {
  padding-bottom: 98px;
}

.articles-listing .article-preview .text-container p {
  margin-bottom: 0;
  margin-top: 16px;
}

.articles-listing h3 {
  letter-spacing: -0.72px;
  margin-bottom: 48px;
}

.selectors {
  border: 1px solid black;
  display: flex;
  flex-direction: row;
  margin-left: 34px;
  position: relative;
}

.selectors .item {
  height: 45px;
  line-height: 47px;
  font-size: 18px;
  padding-left: 14px;
  min-width: 148px;
}

.selectors .item:first-child {
  min-width: 113px;
}


.selectors .item.selector select {
  color: black;
  padding-left: 14px;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  border: none;
  font-size: 18px;
}

.selectors .item.selector select:focus {
  outline: none;
}

.selectors .article-filter-dropdown {
  background: black;
  z-index: 1;
  position: absolute;
  right: -1px;
  top: 48px;
  border: 1px solid black;
  width: 170px;
  display: none;
}

.selectors .article-filter-dropdown ul li {
  color: white;
  font-size: 15px;
  line-height: 18px;
  padding: 8px 10px;
  cursor: pointer;
}

.selectors .article-filter-dropdown ul li:first-child {
  padding-top: 16px;
}

.selectors .article-filter-dropdown ul li:last-child {
  padding-bottom: 16px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .articles-listing {
    padding-bottom: 45px;
  }

  .articles-listing .article-preview .text-container p {
    margin-top: 3px;
  }

  .articles-listing h3 {
    letter-spacing: -0.6px;
    margin-bottom: 0;
  }

  .articles-listing.related-books-listing .article-filter {
    flex-wrap: wrap;
  }

  .articles-listing.related-books-listing .tabs {
    margin-bottom: 20px;
  }

  .articles-listing.related-books-listing .language-dropdown {
    margin: 20px 0;
    width: 100%;
  }

  .articles-listing.related-books-listing .language-dropdown .custom-dropdown .select {
    min-width: none;
    background-position: center right 0;
  }

  .selectors {
    height: 100%;
    margin-left: 0;
  }

  .selectors.display-none-desktop {
    display: flex !important;
  }

  .selectors .item {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    min-width: 108px;
  }

  .selectors .item:first-child {
    min-width: 83px;
  }

  .selectors .article-filter-dropdown {
    top: 42px;
  }
}

.pagination {
  margin-top: 36.5px;
  border-top: 1px solid black;
}

.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination ul li {
  font-size: 18px;
  text-align: center;
  min-width: 93px;
  padding: 10px 10px 0;
  border-top: 6px solid transparent;
}

.pagination ul li.active {
  border-top-color: black;
}

/* Mobile styles */
@media (max-width: 768px) {
  .pagination {
    margin-top: 32px;
  }

  .pagination ul li {
    font-size: 15px;
    min-width: 50px;
  }
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-container .js-load-more {
  display: none;
}

.load-more-container .js-load-more.active {
  display: inline-block;
}

.cta {
  border: 1px solid black;
  border-radius: 70px;
  min-width: 182px;
  height: 48px;
  line-height: 46px;
  display: inline-block;
  color: black;
  text-align: center;
  font-size: 20px;
  padding: 0 30px;
  font-family: "PP Montreal Medium", sans-serif;
  transition: all 0.3s ease;
  background: #fff;
}

.cta:hover {
  background: black;
  color: white;
}

.cta.cta-full {
  width: 100%;
  cursor: pointer;
}

.cta.cta-small {
  font-size: 18px;
  height: 44px;
  line-height: 39px;
  min-width: auto;
  border-width: 2px;
}

.cta.cta-gray {
  border-color: gray;
  color: gray;
}

.cta.cta-gray:hover {
  background: gray;
  color: #222; /* Assuming $black-v2 is a dark color */
}

.cta.cta-white {
  border-color: white;
  color: white;
}

.cta.cta-white:hover {
  background: white;
  color: #222; /* Assuming $black-v2 is a dark color */
}

/* Mobile styles */
@media (max-width: 768px) {
  .cta {
    font-size: 18px;
  }
}

/* Desktop small */
@media (max-width: 1024px) {
  .cta.cta-small {
    font-size: 15px;
  }
}

/* Tablet large */
@media (max-width: 1200px) {
  .cta.cta-small {
    font-size: 19px;
  }
}

.loading-icon-container {
  width: 100%;
  height: 50px;
  text-align: center;
}

.loading-icon-container svg {
  width: 36px;
  height: 36px;
  animation: spin 2s linear infinite;
}