
section.recept-latest {
  background-color: var(--primary-color);
  padding-block: clamp(60px, 8vw, 100px);
}



.recepten-latest__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.recepten-latest__left h2 {
  color: var(--success-color);
}

.recepten-latest__left p {
  color: #fff;
  padding-bottom: 0.5rem;
}

@media (min-width: 769px) {
  .recepten-latest__left {
    padding-right: clamp(20px, 4vw, 80px);
  }
}

.recepten-latest__right {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  justify-content: flex-start;
}

/* cards */
.latest-card {
  flex: 1;
  position: relative;
  transition: all 0.25s ease;
}

.latest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.latest-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.latest-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay */
.latest-card__overlay {
  position: absolute;
  bottom: -2rem;
  left: 20px;
  right: 20px;

  background: #fff;
  border-radius: var(--radius);
  padding: 20px;

  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transition: all 0.25s ease;
}

.latest-card__overlay:hover {
  transform: translateY(-6px);
}

/* titel */
.latest-card__title-wrap {
  display: flex;
  align-items: center;
}

.latest-card__overlay h4 {
  margin: 0;
  color: var(--primary-color);
  padding-right: 5px;
}

.latest-card__badge {
  color: var(--secondary-color);
}



@media (max-width: 768px) {

  .recepten-latest__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .recepten-latest__right {
    flex-direction: column;  
    align-items: center;
  }

  .latest-card {
    width: 100%;
    max-width: 400px;
  }

}