/* Card Style 2 – Horizontal Cards */

.cards-carousel .swiper-slide > article.custom-card.style-2 {
  max-width: 820px;
  height: auto;
}


article.custom-card.style-2 {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(174, 177, 199, 0.10);
  background: #1F2028;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.10);
  max-width: 820px;
  box-sizing: border-box;
  position: relative;
}

article.custom-card.style-2 .card-thumbnail {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
}

article.custom-card.style-2 .card-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(174, 177, 199, 0.10);
}

article.custom-card.style-2 .card-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-grid-style-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.card-grid-style-2 > article.custom-card.style-2 {
  flex: 1 1 600px;
  max-width: 820px;
}

@supports (display: grid) {
  .card-grid-style-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 32px;
  }

  .card-grid-style-2 > article.custom-card.style-2 {
    width: 100%;
    max-width: 820px;
  }
}

article.custom-card.style-2 a.card-thumbnail {
  line-height: normal;
}

article.custom-card.style-2 a.card-thumbnail:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  article.custom-card.style-2 {
    flex-direction: column;
    max-width: 100%;
  }

  article.custom-card.style-2 .card-thumbnail,
  article.custom-card.style-2 .card-content {
    max-width: 100%;
    flex: 1 1 100%;
  }

  article.custom-card.style-2 .card-thumbnail img {
    width: 100%;
    height: auto;
  }
}