.content-wrap,
.loop__container {
  display: flex;
  max-width: 1248px;
  padding: 0px 24px;
  align-items: flex-start;
  align-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin: auto;
}

@media screen and (min-width: 1248px) {
  .loop__container {
    min-width: 1248px;
  }
}

@media screen and (max-width: 1247px) {
  .loop__container {
    min-width: calc(100vw - 48px);
  }

  .tag__content .loop__container {
    min-width: 100vw;
  }
}

@media screen and (max-width: 767px) {
  .loop__container {
    padding: 0 var(--side-margin);
  }
}

/*=============card variants=============*/
.card-no-date .post-teaser__meta__author__date {
  display: none;
}
.card-no-date .post-teaser__text-container {
  min-height: 202px;
}

.card__marquee .post-teaser {
  transition: all 300ms;
  border-color: transparent;
  background: linear-gradient(0deg, #fff 0%, #fff 100%), #170f26;
}

.card__marquee .post-teaser:hover {
  transition: all 300ms;
  background: radial-gradient(
      43.66% 45.63% at 94.16% 100.02%,
      rgba(198, 147, 255, 0.2) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(0deg, #fff 0%, #fff 100%), #170f26;
  transform: translateY(-5px);
  box-shadow: #bdb6d5 0px 7px 29px 0px;
}

.card__marquee .post-teaser__title {
  font-size: 25.542px;
}

.card__marquee .post-teaser__meta__tags a {
  border-radius: 40px;
  background: var(--purps-surface-bg);
  color: var(--purps-dark-tone);
}

.card-no-tags .post-teaser__meta {
  display: none;
}
.card-no-tags .post-teaser__text-container {
  min-height: 205px;
}

.card-no-tags .post-teaser__exerpt__time {
  flex: 1;
}

.card-no-tags .post-teaser__header {
  flex: 1;
}

.card-no-tags .post-teaser__meta__author__date {
  margin-top: auto;
}

.card-no-name .post-teaser__meta__author__name {
  display: none;
}

@media screen and (max-width: 767px) {
  .card-no-tags .post-teaser__text-container {
    min-height: 156px;
  }

  .card__marquee .post-teaser {
    max-width: 94%;
  }

  .card__marquee .post-teaser:hover {
    transform: scale(0.98);
    box-shadow: transparent 0px 7px 29px 0px;
  }
}
/*=======================================*/

.post-teaser {
  max-width: 384px;
  padding: 16px;
  border: 1px solid var(--gray-g6, #e2e2e2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 150ms ease-in;
  cursor: pointer;
}

.post-teaser:hover {
  border-color: transparent;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transform: translate(-1px, -1px);
  transition: all 150ms ease-in;
}

.post-teaser a {
  text-decoration: none;
  color: var(--gray-g2);
}

.post-teaser__thumbnail {
  width: 100%;
  overflow: clip;
}

.post-card-image {
  border-radius: 12px;
  width: 100%;
  height: 225px;
  flex-shrink: 0;
  object-fit: cover;
}

.post-teaser__text-container {
  display: flex;
  min-height: 242px; /*271px*/
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  /* gap: 40px; */
}

.post-teaser__header {
  display: flex;
}

.post-teaser__header a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.post-teaser__title {
  font: var(--heading-1);
  font-size: 28px;
  line-height: 36px;
  line-height: 130%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-teaser__title a {
  color: var(--gray-g2);
  text-decoration: none;
}

.post-teaser__exerpt__time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-teaser__excerpt {
  min-height: 58px;
}

.post-teaser__excerpt p {
  font: var(--para-2);
  line-height: 24px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more__link {
  text-decoration: none;
}
.read-more__link:hover::after {
  content: none;
}

.post-teaser__meta__author__date {
  color: var(--gray-g3);
  font-family: "halyard-display-variable", sans-serif;
  font-variation-settings: "wght" 300;
  font-size: 16px;
  line-height: 100%;
  display: flex;
  gap: 6px;
}

.post-teaser__meta__author__name {
  padding-right: 6px;
  border-right: 1.5px solid var(--gray-g5);
}

.post-teaser__meta__tags {
  display: flex;
  gap: 12px;
  max-width: 352px;
  /* flex-wrap: wrap-reverse; */
  overflow: scroll;
  -ms-overflow-style: none; /*IE and Edge */
  scrollbar-width: none; /*Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.post-teaser__meta__tags::-webkit-scrollbar {
  display: none;
}
.post-teaser__meta__tags a {
  font: var(--caption-mweb);
  line-height: 100%;
  font-weight: 400;
  border-radius: 30px;
  background: var(--white);
  position: relative;
  z-index: 1;
  display: flex;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--gray-g2);
  text-decoration: none;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  border: 0.8px solid #d8d8d8;
}

.post-teaser__meta__tags > a:hover {
  color: var(--white);
  border-color: var(--candy);
  transition: all 150ms linear;
  will-change: border-color, color;
}

.post-teaser__meta__tags > a::after {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  content: "";
  width: 150%;
  height: 150%;
  background-color: var(--candy);
  transform: translateY(0);
  top: 105%;
  transition: transform 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  border-radius: 100% 100% 0 0;
  will-change: transform;
}

.post-teaser__meta__tags > a:hover::after {
  content: "";
  position: absolute;
  transform: translateY(-80%);
  transition: transform 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: transform;
}

.article__filter-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1248px;
  padding: 0px 24px;
  margin: 60px auto 40px auto;
}

.article__filter-container h2 {
  font-size: 36px;
  line-height: 54%; /* 19.44px */
}

.article__filter {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.article__filter {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.article__filter button {
  padding: 16px 32px;
  font: var(--subheading-2);
  color: var(--gray-g2);
  text-decoration: none;
  border-radius: 40px;
  border: none;
  background: #f6f4ff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  overflow: clip;
  color: var(--bg-primary);
  transition: all 150ms linear;
  will-change: color;
}

.article__filter button:hover {
  cursor: pointer;
  color: var(--white);
  border-color: var(--candy);
  transition: all 150ms linear;
  will-change: border-color, color;
}

.article__filter button::after {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  content: "";
  width: 150%;
  height: 150%;
  background-color: var(--candy);
  transform: translateY(0);
  top: 105%;
  left: -25%;
  transition: transform 150ms cubic-bezier(0.39, 0.575, 0.565, 1);
  border-radius: 100% 100% 0 0;
  will-change: transform;
}

.article__filter button:hover::after {
  content: "";
  position: absolute;
  transform: translateY(-80%);
  transition: transform 150ms cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: transform;
}

.article__filter button.selected {
  color: var(--white);
  background-color: var(--candy);
  transition: all 150ms linear;
  will-change: background-color, color;
}

.booster__featured {
  color: var(--candy);
}

.thumbnail__booster__featured {
  position: absolute;
  width: 200px;
}

.article__banner__feature__image .thumbnail__booster__featured {
  z-index: 1;
  width: 250px;
  transform: translateX(10px);
}
@media screen and (min-width: 360px) and (max-width: 500px) {
  .post-teaser {
    max-width: 100%;
  }
  .post-teaser:hover {
    border-color: var(--gray-g6, #e2e2e2);
    box-shadow: transparent 0px 7px 29px 0px;
    transform: scale(0.98);
  }
  .article__filter button:hover::after {
    transform: translateY(0);
  }
  .article__filter button:hover {
    color: var(--bg-primary);
  }
}

@media screen and (min-width: 501px) and (max-width: 767px) {
  .post-teaser {
    max-width: 327px;
    padding: 13.625px;
    /* border: 0.852px solid var(--gray-g6, #e2e2e2); */
    border-radius: 16px;
    gap: 20px;
    transition: all 150ms ease-in;
  }
}

@media screen and (max-width: 767px) {
  .content-wrap,
  .loop__container {
    max-width: 1200px;
    align-items: flex-start;
    align-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin: auto;
  }

  .post-card-image {
    border-radius: 8px;
    width: 100%;
    height: 191.602px;
    flex-shrink: 0;
  }
  .post-teaser__text-container {
    min-height: 181px;
    gap: 16px;
  }
  .post-teaser__title {
    font: var(--heading-2-mweb);
    line-height: 130%;
  }
  .post-teaser__excerpt p {
    font-size: 15px;
    line-height: 22px;
  }
  .post-teaser__meta__author__date {
    font-size: 13.625px;
  }

  .post-teaser__meta__tags {
    overflow: scroll;
    max-width: 295px;
  }
  .post-teaser__meta__tags a {
    border-radius: 25px;
    font-size: 12px;
    line-height: 100%;
    padding: 8px 20px;
  }

  .article__filter-container {
    gap: 20px;
    padding: 0px;
    margin: 40px auto 32px auto;
  }
  .article__filter-container h2 {
    font-size: 28px;
    line-height: 100%;
    padding: 0px 24px;
    width: 100%;
    display: inline-flex;
    align-items: center;
  }
  .article__filter {
    gap: 12px;
    padding-left: 24px;
    overflow: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  /* Hide scrollbar for Chrome, Safari and Opera */
  .article__filters::-webkit-scrollbar {
    display: none;
  }
  .article__filter button {
    padding: 16px 30px;
  }
  .article__filter button.selected {
    color: var(--white);
    background-color: var(--white);
    transition: all 150ms linear;
    will-change: background-color, color;
  }
  .article__filter button.selected::after {
    content: "";
    position: absolute;
    transform: translateY(-80%);
    transition: transform 150ms cubic-bezier(0.39, 0.575, 0.565, 1);
    will-change: transform;
  }
  .thumbnail__booster__featured {
    width: 125px;
  }

  .article__banner__feature__image .thumbnail__booster__featured {
    width: 150px;
    transform: translateX(5px);
  }
}

@media screen and (min-width: 375px) and (max-width: 480px) {
  .article__filter-container h2 {
    margin: 40px 24px 0px;
    padding: 0px;
    display: inline-flex;
    width: calc(100vw - var(--margin) * 2);
    align-items: center;
    justify-content: center;
  }
}

/* ARTICLE PAGE BANNER 
=============================*/

.bg__cloud__article {
  position: absolute;
  max-width: unset;
  transform: translate(0%, -22rem);
  opacity: 0;
  animation: cloud_article 50s linear infinite forwards;
}
@keyframes cloud_article {
  from {
    transform: translate(0%, -22rem);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(calc(-1 * (5452px - 100vw)), -22rem);
  }
}
.article__banner__wrapper {
  width: 100%;
  background-color: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

.article__banner {
  display: flex;
  max-width: 1248px;
  flex-wrap: wrap;
  padding: 248px 24px 206px;
  margin: auto;
  gap: 48px; /*24*/
  align-items: center;
  justify-content: center;
}

.article__banner__feature__image {
  flex-shrink: 0;
  flex: 0 0 650px; /*692*/
  border-radius: 27px;
  overflow-x: hidden;
}

.article__banner__image {
  height: 397px; /*442*/
  width: 100%;
  object-fit: cover;
  transition: transform 500ms ease-in-out;
  will-change: transform;
}

.article__banner__image:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 500ms ease-in-out;
  will-change: transform;
}

.article__banner__meta__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.article__banner__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: var(--white);
  flex: 0 0 483px;
  z-index: 1;
}

.article__banner .post__tags {
  border: none;
  padding: 0px;
}

.article__banner__title {
  margin: 0px;
  font: var(--display-3);
  padding-bottom: 4px;
}

.article__banner__title a {
  color: var(--white);
  text-decoration: none;
}

.article__banner__title a:hover {
  text-decoration: underline;
}

.article__banner__meta__author__name__text {
  text-decoration: none;
  font: var(--heading-3);
}

.article__banner__meta__author__name__text:hover {
  color: var(--candy);
}

.article__banner__meta__author__name__text:hover::after {
  content: none;
}

@media screen and (max-width: 767px) {
  .article__banner {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 142px 24px 72px;
    gap: 20px;
  }
  .article__banner__feature__image {
    flex: 0 0 220px;
    border-radius: 13px;
  }

  .article__banner__image {
    height: 220px;
    width: calc(100vw - 48px);
  }
  .article__banner__meta {
    gap: 7.557px;
    flex: 0 0 0px;
  }
  .article__banner .post__tags {
    width: calc(100vw);
    padding-left: 24px;
  }
  .article__banner__meta__container {
    gap: 6px;
    padding: 0px 24px;
  }
  .article__banner__meta__container .display-300-24 {
    font-size: 16px;
    line-height: 140%; /* 22.4px */
  }
  .article__banner__meta__author__name__text {
    font-size: 16px;
    line-height: 140%;
  }
  .bg__cloud__article {
    position: absolute;
    max-width: unset;
    transform: translate(0%, -10rem);
    opacity: 0;
    animation: cloud_article1 50s linear infinite forwards;
    height: 300px;
  }
  @keyframes cloud_article1 {
    from {
      transform: translate(0%, -10rem);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    to {
      opacity: 0;
      transform: translate(calc(-1 * (2460px - 100vw)), -10rem);
    }
  }
}
