.related-article {
  display: block;
  border-radius: 24px;
  background-color: transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.related-article:hover {
  transform: translateY(-4px);
}

.related-article:hover .related-article__icon svg {
  transform: translateX(4px);
}

[dir="rtl"] .related-article:hover .related-article__icon svg {
  transform: translateX(-4px);
}

.related-article__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.related-article__badge {
  position: absolute;
  top: 45px;
  left: -20px;
  z-index: 10;
  width: fit-content;
  padding: 0 30px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  rotate: -15deg;
}

[dir="rtl"] .related-article__badge {
  left: auto;
  right: -20px;
}

.related-article__badge-text {
  color: #FFFFFC;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  z-index: 2;
}

.related-article__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--badge-color, #F8AC1A);
  mask-image: url("images/badge.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("images/badge.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  z-index: 1;
}

.related-article__card {
  background-color: #FFFFFC;
  border-radius: 24px;
  width: 100%;
  overflow: hidden;
}

.related-article__card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-article__media {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 200px;
  max-height: 200px;
  align-self: end;
}

.related-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-article__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-article__title {
  color: #003DA6;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.related-article__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.related-article__description {
  color: #071D4C;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.related-article__icon {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.related-article__icon svg {
  transition: transform 0.2s ease;
  width: 24px;
  height: 24px;
}

.related-article--revamp-v1 {
  padding: 4px 0 0 22px;
}

[dir="rtl"] .related-article--revamp-v1 {
  padding: 4px 22px 0 0;
}

.related-article--revamp-v1 .related-article__badge {
  top: 69px;
  left: -20px;
  height: 40px;
  padding: 0 12px;
  min-width: 158px;
  max-width: none;
}

[dir="rtl"] .related-article--revamp-v1 .related-article__badge {
  left: auto;
  right: -20px;
}

.related-article--revamp-v1 .related-article__badge-text {
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -0.48px;
  white-space: nowrap;
}

.related-article--revamp-v1 .related-article__card-inner {
  padding: 20px;
  gap: 20px;
}

.related-article--revamp-v1 .related-article__media {
  width: 160px;
  height: 160px;
  max-width: 160px;
  max-height: 160px;
}

.related-article--revamp-v1 .related-article__content {
  gap: 8px;
}

.related-article--revamp-v1 .related-article__title {
  font-size: 16px;
  line-height: 19.2px;
}

.related-article--revamp-v1 .related-article__footer {
  gap: 4px;
  align-items: flex-end;
}

.related-article--revamp-v1 .related-article__description {
  font-size: 14px;
  line-height: 16.8px;
  letter-spacing: -0.42px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.related-article--revamp-v1 .related-article__description * {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}

.related-article--revamp-v1 .related-article__description :where(p, h1, h2, h3, h4, h5, h6, li, div)::after {
  content: " ";
}

.related-article--revamp-v1 .related-article__description br {
  display: none;
}

.related-article--revamp-v1 .related-article__icon {
  width: 52px;
  height: 52px;
}
