/* =========================================================
   🧱 RD CARD – BASE
========================================================= */

.rd-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.rd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


/* =========================================================
   🔗 LINK
========================================================= */

.rd-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}


/* =========================================================
   🖼️ IMAGE
========================================================= */

.rd-card__image {
  position: relative;
}

.rd-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rd-card:hover .rd-card__image img {
  transform: scale(1.05);
}


/* =========================================================
   🌑 OVERLAY
========================================================= */

.rd-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-sm);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.1)
  );
}


/* =========================================================
   🏷️ TITLE
========================================================= */

.rd-card__title {
  font-size: var(--font-size-small);
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.3;
  color: var(--color-bg);
}


/* =========================================================
   🧩 GRID (GLOBAL)
========================================================= */

.rd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}


/* =========================================================
   📱 RESPONSIVE
========================================================= */

@media (max-width: 1023px) {
  .rd-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .rd-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}