/* =========================================================
   💳 CARD – AFFILIATE (STRUCTURE)
========================================================= */

.rd-card--affiliate {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* =========================================================
   🧱 INNER LAYOUT
========================================================= */

.rd-card--affiliate .rd-card__inner {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: stretch;
}


/* =========================================================
   🖼️ IMAGE
========================================================= */

.rd-card--affiliate .rd-card__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}


/* =========================================================
   📦 CONTENT
========================================================= */

.rd-card--affiliate .rd-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}


/* =========================================================
   🔘 BUTTON GROUP
========================================================= */

.rd-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.rd-card__buttons .rd-card__cta {
  background: #ff6b35;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rd-card__buttons .rd-card__cta:hover {
  background: #e85a2a;
  transform: translateY(-1px);
}


/* =========================================================
   📊 GRID (AFFILIATE ONLY)
========================================================= */

.rd-card-grid--affiliate {
  display: grid;
  gap: 24px;
}

/* 1 kort */
.rd-card-grid--affiliate:has(.rd-card:only-child) {
  grid-template-columns: 1fr;
}

/* 2 kort */
.rd-card-grid--affiliate:has(.rd-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* 3+ kort */
.rd-card-grid--affiliate:has(.rd-card:nth-child(3)) {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}


/* =========================================================
   📱 RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .rd-card--affiliate .rd-card__inner {
    grid-template-columns: 1fr;
  }

  .rd-card--affiliate .rd-card__image img {
    height: 200px;
  }

  .rd-card--affiliate .rd-card__content {
    padding: 16px;
  }

}


.rd-card--affiliate {
  cursor: default;
}

.rd-card--affiliate:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.rd-card--affiliate:hover .rd-card__image img {
  transform: none;
}