/* =============================== */
/* 🧭 NAVIGATIE – BASISSTRUCTUUR   */
/* =============================== */

.kp-nav {
  background-color: #4b0082;
  padding: 10px 0;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.kp-menu {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.kp-menu > li {
  position: relative;
}

.kp-menu > li > a {
  text-decoration: none;
  color: white;
  background-color: #4b0082;
  padding: 8px 12px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}

/* Hover */
.kp-menu > li > a:hover {
  transform: translateY(-3px);
  background-color: #5c0a9e;
}

/* Onderstreepje bij hover */
.kp-menu > li > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -4px;
  height: 3px;
  background: #ffa500;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.kp-menu > li > a:hover::after {
  opacity: 1;
}

/* =============================== */
/* ⭐ ACTIEVE PAGINA               */
/* =============================== */

.kp-menu > li > a.active-page {
  background-color: #5c0a9e;
  transform: translateY(-3px);
  color: white;
}

.kp-menu > li > a.active-page::after {
  opacity: 1;
}

/* =============================== */
/* ✨ DROPDOWN MENU                */
/* =============================== */

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #3a0066;
  border-radius: 8px;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  z-index: 999;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.has-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #A7C7E7;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, padding-left 0.2s;
}

.has-dropdown .dropdown li a:hover {
  background: #5c0a9e;
  color: white;
  padding-left: 22px;
}

/* =============================== */
/* 📱 HAMBURGER MENU               */
/* =============================== */

.kp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.kp-hamburger span {
  width: 28px;
  height: 4px;
  background: white;
  border-radius: 3px;
}

/* =============================== */
/* 📱 MOBIEL LAYOUT                */
/* =============================== */

@media (max-width: 800px) {

  .kp-hamburger {
    display: flex;
  }

  .kp-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #4b0082;
    padding: 10px;
  }

  .kp-menu.show {
    display: flex;
  }

  .kp-menu > li > a {
    display: block;
    padding: 12px;
    border-radius: 0;
  }

  /* Dropdown mobiel */
  .has-dropdown .dropdown {
    position: static;
    border: none;
    background: #2e004f;
    padding-left: 20px;
    box-shadow: none;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }
}
