/* Blog landing, category and blog blocks. */

.wh-blog-landing {
  margin: 0 auto;
  padding-bottom: clamp(2rem, 1.4275rem + 2.4457vw, 3.875rem);
}

.wh-blog-landing__hero {
  align-items: center;
  background: #dce9e3;
  display: flex;
  justify-content: center;
  min-height: clamp(82px, 10vw, 118px);
}

.wh-blog-landing__hero-title {
  color: var(--wh-color-green);
  font-size: clamp(1.6rem, 1.4088rem + 0.8152vw, 2.225rem);
  font-weight: 300;
  margin: 0;
  text-align: center;
}

.wh-blog-landing__section-title {
  color: var(--wh-color-brown);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}

.wh-blog-landing__section-title-small {
  color: var(--wh-color-brown);
  font-size: clamp(1.2rem, 1.1236rem + 0.3261vw, 1.45rem);
  font-weight: 400;
  margin: 0;
}

.wh-blog-landing__category-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wh-blog-landing__category-list a {
  color: var(--wh-color-brown);
  font-size:  clamp(1rem, 0.912rem + 0.3756vw, 1.25rem);
  text-decoration: none;
  font-weight: 300;
}

.wh-blog-landing__category-list a.is-active {
  font-weight: 500;
}

.wh-blog-landing__category-list a:hover,
.wh-blog-landing__category-list a:focus-visible {
  color: var(--wh-color-green);
  text-decoration: underline;
}

.wh-blog-landing__top-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-top: 0.7rem;
}

.wh-blog-landing__top-list {
  display: grid;
  gap: 0.75rem;
  padding: 28px 22px;
}

.wh-blog-landing__top-list-item + .wh-blog-landing__top-list-item {
  padding-top: 34px;
}

.wh-blog-landing__top-list-holder {
  margin-top: 28px;
  padding: 24px;
}

.wh-blog-landing__story-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.wh-blog-landing__featured-story .wh-blog-landing__story-link {
  position: relative;
}

.wh-blog-landing__story-link:hover .wh-blog-landing__story-title,
.wh-blog-landing__story-link:focus-visible .wh-blog-landing__story-title {
  text-decoration: underline;
}

.wh-blog-landing__story-image {
  aspect-ratio: 1 / 0.56;
  background: #d9d9d9;
  margin-bottom: 0.65rem;
  overflow: hidden;
  position: relative;
}

.wh-blog-landing__featured-story .wh-blog-landing__story-image {
  margin-bottom: 0;
}

.wh-blog-landing__featured-story .wh-blog-landing__story-image::after {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0) 40%, rgba(24, 24, 24, 0.84) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.wh-blog-landing__top-list .wh-blog-landing__story-image {
  aspect-ratio: 1 / .6;
  margin-bottom: 0.55rem;
}

.wh-blog-landing__story-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wh-blog-landing__story-title {
  color: #181818;
  font-size: clamp(1.18rem, 1.0653rem + 0.4891vw, 1.555rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
}

.wh-blog-landing__featured-story .wh-blog-landing__story-title {
  bottom: 60px;
  color: #fff;
  left: clamp(1.875rem, 1.6549rem + 0.939vw, 2.5rem);
  max-width: calc(100% - 80px);
  position: absolute;
  z-index: 2;
}

.wh-blog-landing__story-meta {
  align-items: center;
  bottom: 25px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  left: clamp(1.875rem, 1.6549rem + 0.939vw, 2.5rem);
  max-width: calc(100% - 2rem);
  position: absolute;
  z-index: 2;
}

.wh-blog-landing__story-meta-item {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  gap: 0.35rem;
}

.wh-blog-landing__story-meta-item .wh-icon {
  flex: 0 0 18px;
}

.wh-blog-landing__story-title-small {
  font-weight: 400;
  font-size: 16px;
}

.wh-blog-landing__top-list-item .wh-blog-landing__story-link {
  align-items: center;
  column-gap: 4%;
  display: grid;
  grid-template-columns: 46% 50%;
}

.wh-blog-landing__top-list-item .wh-blog-landing__story-image {
  margin-bottom: 0;
}

.wh-blog-webinars {
  margin-top: clamp(1.25rem, 0.1496rem + 4.6948vw, 4.375rem);
}

.wh-blog-webinars__layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.wh-blog-webinars__player {
  aspect-ratio: 16 / 9;
  background: #1d1d1d;
}

.wh-blog-webinars__player iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.wh-blog-webinars__meta {
  margin-top: 0.65rem;
}

.wh-blog-webinars__title {
  color: var(--wh-color-green);
  font-size: clamp(1.3rem, 1.2236rem + 0.3261vw, 1.55rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
}

.wh-blog-webinars__menu {
  padding: 28px 22px 32px 28px;
}

.wh-blog-webinars__menu .wp-block-buttons:not(:first-child) {
  margin-top: 32px !important;
}

.wh-blog-webinars__menu-list {
  padding: 33px 15px;
}

.wh-blog-webinars__trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  display: grid;
  gap: 4%;
  grid-template-columns: 46% 50%;
  padding: 0.45rem;
  text-align: left;
  width: 100%;
}

.wh-blog-webinars__trigger + .wh-blog-webinars__trigger {
  margin-top: 0.3rem;
}

.wh-blog-webinars__trigger-image {
  aspect-ratio: 1.3;
  background: #d8d8d8;
}

.wh-blog-webinars__trigger-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wh-blog-webinars__trigger-title {
  color: #222;
  font-size: 0.95rem;
  line-height: 1.3;
}

.wh-blog-webinars__trigger.is-active {
  background: #edf4f0;
  border-color: #c9dfd2;
}

.wh-blog-recent__layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.wh-blog-recent--filtered .wh-blog-recent__layout {
  grid-template-columns: minmax(0, 1fr);
}

.wh-blog-recent__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px !important;
}

.wh-blog-recent-card__link {
  color: inherit;
  display: block;
  padding: 0.72rem;
  text-decoration: none;
}

.wh-blog-recent-card__image-wrap {
  aspect-ratio: 1 / 0.64;
  border-radius: 22px;
  overflow: hidden;
}

.wh-blog-recent-card__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wh-blog-recent-card__image-placeholder {
  background: #d6d6d6;
}

.wh-blog-recent-card__title {
  color: #171717;
  font-size: clamp(1.06rem, 0.9836rem + 0.3261vw, 1.31rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0.55rem 0 0;
}

.wh-blog-recent-card__meta {
  margin-top: 10px !important;
}

.wh-small-pill {
  display: inline-block;
  padding: 5px 10px;
}

.wh-blog-recent__more {
  margin-top: 0.75rem;
  text-align: center;
}

.wh-blog-recent__load-more {
  appearance: none;
  background: var(--wh-color-brown);
  border: 1px solid var(--wh-color-brown);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 46px;
  min-width: 160px;
  padding: 0.6rem 1.5rem;
}

.wh-blog-recent__load-more:hover,
.wh-blog-recent__load-more:focus-visible {
  background: #fff;
  color: var(--wh-color-brown);
}

.wh-blog-recent__socials {
  padding-bottom: 0.55rem;
}

.wh-blog-recent__filters {
  padding-top: 40px;
}

.wh-blog-recent__select {
  appearance: none;
  background: #fff var(--wh-icon-down-caret) no-repeat right 0.9rem center / 0.82rem;
  border: 1px solid #b8ad8a;
  border-radius: 999px;
  display: none;
  font: inherit;
  margin-top: 0.5rem;
  min-height: 46px;
  padding: 0.5rem 2.4rem 0.5rem 1rem;
  width: 100%;
}

.wh-blog-recent__radio-list {
  margin-top: 0.45rem;
}

.wh-blog-recent__radio-item {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  min-height: 30px;
}

.wh-blog-recent__radio-item + .wh-blog-recent__radio-item {
  margin-top: 0.18rem;
}

.wh-blog-recent__radio-item input {
  accent-color: var(--wh-color-green);
}

.wh-blog-recent__radio-item span {
  font-size: 0.95rem;
}

.wh-blog-category-page .wh-blog-landing__hero-title {
  color: var(--wh-color-green);
  font-size: clamp(1.45rem, 1.3162rem + 0.5707vw, 1.888rem);
}

.wh-blog-category-page__description {
  color: #232323;
  font-size: clamp(1rem, 0.9618rem + 0.163vw, 1.125rem);
  line-height: 1.45;
  margin-left: auto;
  margin-right: auto;
  max-width: 1050px;
  text-align: center;
}

.wh-blog-category-page__description p + p {
  margin-top: 0.65rem;
}

.wh-blog-recent--archive {
  background: #e6e2dc;
  border-color: #d9d2c5;
}

.wh-blog-recent--archive .wh-blog-recent__results {
  background: #f4f2ee;
  border-radius: 28px;
  padding: 1.1rem;
}

.wh-blog-category-page__empty {
  margin: 0;
  padding: 0.5rem;
}

@media (max-width: 1000px) {
  .wh-blog-category-page .wh-blog-recent__sidebar {
    order: -1;
  }

  .wh-blog-category-page .wh-blog-recent__socials {
    display: none;
  }

  .wh-blog-recent--archive .wh-blog-recent__results {
    margin-top: 0.75rem;
  }
}

@media (max-width: 767px) {
  .wh-blog-category-page__description {
    margin-top: 0.1rem;
    max-width: 100%;
  }

  .wh-blog-recent--archive {
    padding: 0.9rem;
  }

  .wh-blog-recent--archive .wh-blog-recent__results {
    border-radius: 24px;
    padding: 0.9rem;
  }
}

.wh-blog-webinars__meta { 
  display: none;
}

@media (max-width: 1000px) {
  .wh-blog-webinars__meta { 
    display: block;
  }

  .wh-blog-landing__top-grid,
  .wh-blog-webinars__layout,
  .wh-blog-recent__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wh-blog-recent__sidebar {
    order: -1;
  }

  .wh-blog-recent__radio-list {
    display: none;
  }

  .wh-blog-recent__select {
    display: block;
  }
}

@media (max-width: 767px) {
  .wh-blog-landing {
    padding-bottom: 2.2rem;
  }

  .wh-blog-landing__hero,
  .wh-blog-landing .wh-u-card {
    border-radius: 28px;
  }

  .wh-blog-landing__category-list {
    gap: 0.5rem 0.85rem;
    justify-content: flex-start;
  }

  .wh-blog-landing__top-list-item .wh-blog-landing__story-link {
    display: block;
  }

  .wh-blog-landing__top-list-item .wh-blog-landing__story-image {
    margin-bottom: 0.55rem;
  }

  .wh-blog-webinars__trigger {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .wh-blog-recent__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wh-social-links-colorful {
  gap: 10px;
  margin-left: 0;
}

.wp-block-ced-blog-social-links.is-aligned-left .wh-social-links-colorful {
  justify-content: flex-start;
}

.wp-block-ced-blog-social-links.is-aligned-center .wh-social-links-colorful {
  justify-content: center;
}

.wp-block-ced-blog-social-links.is-aligned-right .wh-social-links-colorful {
  justify-content: flex-end;
}

.wh-social-links-colorful a {
  width: 50px;
  height: 50px;
  position: relative;
  display: block;
}

.wh-social-links-colorful a * {
  filter: brightness(0) invert(1);
  width: 40px;
  height: 35px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
