/* === Hero Layout met zijbanen === */
.hero-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-side {
  flex: 0 0 120px; /* vaste breedte voor zijbalken */
  background-color: rgba(255, 255, 255, 0.95); /* standaardkleur voor niet-homepage */
  opacity: 0.3;
}

/* === Hero middenblok === */
.hero {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem; /* zijkanten gelijk aan AED/EHaK */
  background-color: var(--kleur-body); /* fallback */
  box-sizing: border-box;
}

.hero-blok {
  max-width: 960px;
  width: 100%;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* visueel luchtig, maar binnen 960px */
}

/* === Hero Content === */
.hero-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px; /* past naast afbeelding */
}

.hero-text h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-family: var(--font-heading);
  color: var(--kleur-accent-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: var(--font-body);
  color: var(--kleur-tekst);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cta-line {
  font-weight: 600;
  font-family: var(--font-body);
}

/* === CTA-knoppen === */
.cta-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  background-color: var(--kleur-cta);
  color: var(--kleur-tekst);
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--kleur-cta-hover);
}

.cursus-button {
  background-color: var(--kleur-accent-dark);
  color: #ffffff;
}

.cursus-button:hover {
  background-color: var(--kleur-accent);
}

/* === Afbeelding === */
.hero-img {
  flex: 1 1 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem;
}

.hero-img img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* === Mobiel fix === */
@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
  }

  .hero-side {
    display: none;
  }

  .hero-blok {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text,
  .hero-img {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-img {
    justify-content: center;
    padding-right: 0;
    margin-top: 1rem;
  }

  .hero-img img {
    max-width: 300px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}