.main-article,
.small-row-article-card,
.small-column-article-card,
.extra-small-row-article-card {
  display: flex;
  position: relative;
  flex-direction: column;
  border-radius: 15px;
  box-sizing: border-box;
  padding: 15px;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  gap: 20px;
}

.main-article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: linear-gradient(154deg, #f23d4c 16.07%, #f99f38 83.87%);
  z-index: -1;
}

.main-article::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: #fff;
  border-radius: 13px;
  z-index: -1;
}

.extra-small-row-article-card {
  gap: 10px;
}

.small-row-article-card,
.extra-small-row-article-card {
  flex-direction: row;
  padding: 0;
  align-items: center;
}

.main-article > a > img,
.small-row-article-card > a > img,
.small-column-article-card > a > img,
.extra-small-row-article-card > a > img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px !important;
}

.main-article > a > img {
  height: auto;
}

.small-row-article-card > a > img {
  width: auto;
  max-width: 350px !important;
  height: auto !important;
}

.small-column-article-card > a > img {
  max-width: 100% !important;
  height: auto;
}

.extra-small-row-article-card > a > img {
  max-width: 180px !important;
  width: 180px !important;
  height: auto;
}

.main-article > div,
.small-column-article-card > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.small-column-article-card > div {
  gap: 10px;
}

.article-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.article-header > p {
  color: #101820;
  font-family: "Poppins" sans-serif;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 300;
  line-height: normal;
  margin: 0;
}

.small-row-article-card .article-header > p,
.extra-small-row-article-card .article-header {
  display: none;
}

.category-pill {
  width: fit-content;
  padding: 8px 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--color);
  font-size: 1.125rem;
  background: color-mix(in srgb, var(--color) 20%, transparent);
}

.small-row-article-card .category-pill,
.small-column-article-card .category-pill,
.extra-small-row-article-card .category-pill {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.article-excerpt {
  color: #101820;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
}

.main-article .article-excerpt,
.small-column-article-card .article-excerpt,
.small-row-article-card .article-excerpt,
.extra-small-row-article-card .article-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.read-article-btn {
  color: #101820;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01rem;
  flex: 1;
  align-content: end;
}

.extra-small-row-article-card .read-article-btn {
  display: none;
}

.read-article-btn img {
  width: 10px;
  height: 10px;
  border-radius: 0;
}

/* img.size-card-extra-small {
  width: 180px !important;
  max-height: auto;
  object-fit: cover;
} */

@media screen and (max-width: 768px) {
  .main-article {
    padding: 10px;
  }

  .small-row-article-card {
    flex-direction: column;
  }

  .small-column-article-card {
    padding: 0px;
  }

  .article-content,
  .image-link {
    width: 100%;
  }

  .main-article > a > img,
  .small-row-article-card > a > img,
  .small-column-article-card > a > img {
    width: 100%;
    max-width: 100% !important;
    /* height: 200px !important; */
  }
}
