/* ************************************/
/* category archive - VGVG palette      */
/* Class: category / cvn-post-cat       */
/* ************************************/


.category .blog-wrapper.page-wrapper {
  padding-top: 0;
}

.category .blog-wrapper>.row {
  margin-top: 28px;
}

.category .blog-wrapper>.row>.large-10,
.category .blog-wrapper>.row>.large-9,
.category .blog-wrapper>.row>.large-12 {
  flex-basis: 100%;
  max-width: 100%;
}

.category .post-sidebar,
.category #secondary {
  display: none;
}

.cvn-post-cat-after-header-block,
.cvn-post-cat-banner {
  position: relative;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.cvn-post-cat-banner {
  min-height: 230px;
  background-image:
    linear-gradient(90deg, rgba(250, 247, 252, 0.82) 0%, rgba(239, 231, 243, 0.28) 48%, rgba(239, 231, 243, 0.12) 100%),
    var(--cvn-post-cat-banner-image);
  background-position: center;
  background-size: cover;
}

.cvn-post-cat-banner__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 22px 15px 24px;
}

.cvn-post-cat-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(59, 15, 79, 0.26);
}

.cvn-post-cat-breadcrumbs a,
.cvn-post-cat-breadcrumbs span,
.cvn-post-cat-breadcrumbs .divider {
  color: inherit;
}

.cvn-post-cat-banner-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

#post-list {
  width: 100%;
}

.cvn-featured-posts {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(360px, 4fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 24px;
}

.cvn-featured-posts--has-side {
  align-items: stretch;
}

.cvn-featured-post {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.cvn-featured-post--main {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 0;
  border-radius: 12px;
  background: var(--panel, var(--white));
  box-shadow: 0 14px 34px rgba(59, 15, 79, 0.12);
}

.cvn-featured-posts--has-side .cvn-featured-post--main {
  align-self: stretch;
  height: auto;
  aspect-ratio: auto;
}

.cvn-featured-posts--has-side .cvn-featured-post--main .cvn-featured-post__image {
  position: absolute;
  inset: 0;
  height: auto;
}

.cvn-featured-post__image {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  border-radius: 0;
  background: var(--primary-20);
}

.cvn-featured-post__image img,
.cvn-featured-post__thumb img,
.cvn-post-card__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cvn-featured-post__image img {
  min-height: 0;
}

.cvn-featured-post__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 24px 22px;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(59, 15, 79, 0) 28%, rgba(59, 15, 79, 0.9) 100%);
}

.cvn-featured-post__label {
  display: inline-flex;
  align-self: flex-start;
  order: 1;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  pointer-events: auto;
}

.cvn-featured-post__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 3;
  margin: 10px 0 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.cvn-featured-post__date::before,
.cvn-featured-post__side-date::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(126, 39, 155, 0.22);
  flex: 0 0 12px;
}

.cvn-featured-post__title {
  order: 2;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.cvn-featured-post__title a {
  color: var(--white);
}

.cvn-featured-posts__side {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  row-gap: 4px;
  column-gap: 0;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.cvn-featured-post--side {
  position: relative;
  display: flex;
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 0;
  border-radius: 12px;
  background: var(--bg-light);
  box-shadow: inset 0 0 0 1px rgba(126, 39, 155, 0.08);
}

.cvn-featured-post--side+.cvn-featured-post--side {
  padding-top: 0;
}

.cvn-featured-post--side:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cvn-featured-post__thumb {
  display: block;
  flex: 0 0 132px;
  overflow: hidden;
  width: 132px;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: var(--primary-20);
}

.cvn-featured-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 0;
  background: transparent;
}

.cvn-featured-post__side-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 7px;
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.cvn-featured-post__label:hover,
.cvn-featured-post__side-label:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.cvn-featured-post__side-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cvn-featured-post__side-title a {
  color: inherit;
}

.cvn-featured-post__side-date {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.cvn-featured-post__side-date::before {
  display: none;
}

.cvn-post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
}

.cvn-post-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-light);
  box-shadow: inset 0 0 0 1px rgba(126, 39, 155, 0.08), 0 10px 24px rgba(31, 41, 55, 0.08);
}

.cvn-post-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  border-radius: 0;
  background: var(--primary-20);
}

.cvn-post-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.cvn-post-card__category {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 78px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.cvn-post-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 14px 16px 0;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cvn-post-card__title a {
  color: var(--primary-dark);
}

.cvn-post-card__title a:hover,
.cvn-featured-post__side-title a:hover {
  color: var(--primary);
}

.cvn-post-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.cvn-post-card__author a {
  color: var(--primary-dark);
}

.cvn-post-card__meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.cvn-post-card__meta-date::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.cvn-post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  padding: 0 16px 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category .page-numbers {
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .cvn-featured-posts {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cvn-featured-posts--has-side .cvn-featured-post--main {
    height: auto;
    aspect-ratio: 16 / 8;
  }

  .cvn-featured-posts__side {
    grid-template-rows: none;
  }

  .cvn-featured-post__thumb {
    flex-basis: 132px;
    width: 132px;
    height: auto;
    align-self: stretch;
  }
}

@media (max-width: 849px) {
  .cvn-post-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {

  .cvn-post-cat-banner,
  .cvn-post-cat-banner__inner {
    min-height: 132px;
  }

  .cvn-featured-posts--has-side .cvn-featured-post--main,
  .cvn-featured-post--main {
    aspect-ratio: 16 / 9;
  }

  .cvn-featured-post__overlay {
    padding: 48px 14px 14px;
    background: linear-gradient(180deg, rgba(59, 15, 79, 0) 18%, rgba(59, 15, 79, 0.94) 100%);
  }

  .cvn-featured-post__label {
    margin-bottom: 7px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .cvn-featured-post__title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .cvn-featured-post__date {
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
  }

  .cvn-featured-post__date::before {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }

  .cvn-featured-posts__side {
    row-gap: 6px;
  }

  .cvn-featured-post--side {
    align-items: stretch;
    min-height: 128px;
  }

  .cvn-featured-post__thumb {
    flex: 0 0 132px;
    width: 132px;
    height: auto;
    align-self: stretch;
  }

  .cvn-featured-post__body {
    padding: 12px 14px;
  }

  .cvn-featured-post__side-title {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.28;
  }

  .cvn-featured-post__side-date {
    font-size: 13px;
  }

  .cvn-post-card-grid {
    grid-template-columns: 1fr;
  }
}