.cards-block {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Algemene card-styling */
.card {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  text-decoration: none;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.card:hover {
  transform: scale(1.02);
}

.card-content {
  padding: 20px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.card-title-row h3 {
  font-family: var(--h3-font-family);
  font-size: var(--h3-font-size);
  font-weight: var(--h3-font-weight);
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

.card-text p {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  margin: 0;
  line-height: 1.4;
}

.arrow-button {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.arrow-button::after {
  content: '→';
  display: block;
  text-align: center;
  line-height: 36px;
  color: var(--text-color);
}

/* === Layout: Type 1 (3 kolommen) === */
.cards-block.layout-type1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cards-block.layout-type1 .card {
  width: calc((100% - 40px) / 3);
  height: 574px;
  align-items: flex-end;
}

.cards-block.layout-type1 .card-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.cards-block.layout-type1 .card-inner {
  justify-content: flex-end;
  align-items: flex-start;
}

/* === Layout: Type 2 (4 kolommen grid met iconen) === */
.cards-block.layout-type2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.cards-block.layout-type2 .card {
  height: 212px;
  background-color: #f5f1e8;
  background-image: none !important;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
}

.cards-block.layout-type2 .card-content {
  background: none;
  padding: 0;
  z-index: 2;
}

.cards-block.layout-type2 .card-title-row h3 {
  color: var(--text-color);
}

.cards-block.layout-type2 .arrow-button {
  background: var(--primary-color);
}

.cards-block.layout-type2 .arrow-button::after {
  color: var(--text-color);
}

.cards-block.layout-type2 .card-icon {
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 0;
  display: block;
  opacity: 0.1;
}

.cards-block.layout-type2 .card-icon img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === Responsive gedrag === */
@media (max-width: 1024px) {
  .cards-block.layout-type1 .card {
    width: calc((100% - 20px) / 2);
  }

  .cards-block.layout-type2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cards-block.layout-type1 .card {
    width: 100%;
  }

  .cards-block.layout-type2 {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .cards-block.layout-type2 .card {
    height: auto;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-block.layout-type2 .card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cards-block.layout-type2 .arrow-button {
    align-self: flex-start;
  }

  .cards-block.layout-type2 .card-icon {
    width: 100px;
    height: 100px;
    bottom: -10px;
    right: -10px;
  }
}
