.heol-articles {
  --heol-gap: 24px;
  --heol-radius: 18px;
  --heol-title-color: #ffffff;
  --heol-overlay: rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--heol-gap);
  margin: 0;
  padding: 0;
}

.heol-articles__card {
  position: relative;
  border-radius: var(--heol-radius);
  overflow: hidden;
  background: #1f2a28;
  height: 400px;
}

.heol-articles__card:nth-child(4n + 1) {
  grid-column: 1 / span 7;
}

.heol-articles__card:nth-child(4n + 2) {
  grid-column: 8 / span 3;
}

.heol-articles__card:nth-child(4n + 3) {
  grid-column: 1 / span 3;
}

.heol-articles__card:nth-child(4n + 4) {
  grid-column: 4 / span 7;
}

.heol-articles__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.heol-articles__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  line-height: 0;
}

.heol-articles__media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.heol-articles__media--empty {
  background: linear-gradient(135deg, rgba(15, 45, 40, 0.85), rgba(14, 29, 27, 0.95));
}

.heol-articles__image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

.heol-articles__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

.heol-articles__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 22px;
  z-index: 2;
}

.heol-articles__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--heol-overlay);
  z-index: -1;
}

.heol-articles__icon {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.heol-articles__icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.heol-articles__title {
  margin: 0;
  color: var(--heol-title-color);
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;;
}

@media (max-width: 900px) {
  .heol-articles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .heol-articles__card {
    height: 400px;
  }

  .heol-articles__card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .heol-articles {
    grid-template-columns: 1fr;
  }

  .heol-articles__card {
    height: 250px;
  }

  .heol-articles__overlay {
    padding: 16px;
  }

  .heol-articles__icon {
    width: 28px;
    height: 28px;
  }

  .heol-articles__icon img {
    width: 16px;
    height: 16px;
  }
}
