/*
   COMPONENTS.CSS
   UI-componenten zoals:
   - knoppen
   - navigatie
   - dropdown menu's 
*/


/* TOEGANG MET WACHTWOORD KNOP */

.acces-with-password-btn {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: 1.1rem;
    color: white;
    background-color: rgb(10, 121, 104);;
    border: none;
    border-radius: 6px;
    cursor: pointer;

    /* subtiele animaties */
    transition: background-color 0.3s, transform 0.2s;
}

.acces-with-password-btn:hover {
    background-color: rgb(10, 121, 104);;
    transform: scale(1.05);
}


/* NAVIGATIE LINKS */

.main-nav a {
    text-decoration: none;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    font-weight: 500;

    /* kleurverandering bij hover */
    transition: color 0.2s ease;
}

/* bezochte links blijven zwart */
.main-nav a:visited {
    color: rgb(255, 255, 255);
}

/* hover werkt ook op visited links */
.main-nav a:hover,
.main-nav a:visited:hover {
    color: rgb(10, 121, 104);;
}

/* actieve pagina (bijv. Home) */
.main-nav a.active {
    display: inline-block;      /* of block als je wilt */
    padding: 10px 12px;         /* ruimte rondom de tekst */
    background-color: #000000;
    outline: 1px solid rgb(10, 121, 104);;
    border-radius: 4px;         /* optioneel */
}


.main-nav ul {
    display: flex;               /* horizontaal uitlijnen */
    justify-content: center;     /* in het midden van header */
    align-items: center;         /* verticale uitlijning */
    gap: 20px;                   /* ruimte tussen links */
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;          /* nodig voor absolute dropdown */
}



.dropdown {
    display: inline-block;      /* hoofdmenu-container inline */
    position: relative;
}

/* Dropdown submenu styling */

.dropdown ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;           /* direct onder hoofdmenu link */
    left: 0;
    width: 230px;        /* vaste breedte van submenu */
    overflow: hidden;
    display: block;

    /* Nieuwe styling voor overzicht */
    background-color: white; 
    color: rgb(255, 255, 255);         /* witte achtergrond */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* subtiele schaduw */
    border: 1px solid #ccc;           /* lichte outline */
    border-radius: 4px;               /* afgeronde hoeken */
    z-index: 1000;                     /* boven andere content */
    border: none; /* standaard geen border */
    box-shadow: none; /* standaard geen shadow */
}

/* dropdown items */
.dropdown li {
    height: 0;              /* verborgen toestand */
    overflow: hidden;
    transition: height 0.3s ease;
    display: block;
    width: 100%;
}

/* hover activeert dropdown */
.dropdown.hover:hover li {
    height: 40px;           /* zichtbaar bij hover */
}

/* alleen tonen bij hover */
.dropdown.hover:hover ul {
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* dropdown links */
.dropdown a {
    display: block;
    padding: 10px 12px;     /* ruimte binnen het item */
    line-height: normal;
    text-align: left;
    color: black;
    text-decoration: none;
}

/* hover effect voor dropdown items */
.dropdown a:hover {
    background-color: #ffffff;  /* lichte grijze hover */
    outline: 1px solid rgb(10, 121, 104);;  /* subtiele groene outline */
    border-radius: 4px;
}

/* Hover-effect voor menu-items zonder dropdown */
.hover-effect {
    display: block;
    padding: 10px 12px;
    line-height: normal;
    text-align: left;
    color: black;
    text-decoration: none;
    background-color: transparent; /* standaard geen achtergrond */
    transition: background-color 0.2s, outline 0.2s;
}

.hover-effect:hover {
    background-color: #f2f2f2;      /* lichte grijze hover */
    outline: 1px solid rgb(10, 121, 104);;       /* groene outline */
    border-radius: 4px;              /* optioneel: ronde hoeken */
}

.info-block ul li {
    text-align: left;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.link-block {
  display: flex;
  flex-direction: column;
  width: 300px;
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.link-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.link-text {
  padding: 15px;
}

.link-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.link-text p {
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
}

/* Responsive voor mobiel */
@media (max-width: 768px) {
  .links-container {
    flex-direction: column;
    align-items: center;
  }

  .link-block {
    width: 90%;
  }
}

.info-block {
  background-color: #f8f8f8;
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* CTA knop */
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #1f2937;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background-color: #111827;
  transform: translateY(-2px);
}

/* ===== HOOFDMENU LINKS (ook visited altijd wit) ===== */
.main-nav > ul > li > a,
.main-nav > ul > li > .dropdown > a,
.main-nav > ul > li > a:visited,
.main-nav > ul > li > .dropdown > a:visited {
    color: rgb(255, 255, 255);
}

/* Hover hoofdmenu */
.main-nav > ul > li > a:hover,
.main-nav > ul > li > .dropdown > a:hover {
    color: rgb(10, 121, 104);
}

/* ===== DROPDOWN SUBMENU LINKS ===== */
.dropdown ul a {
    color: #000;              /* standaard zwart */
}

/* visited submenu blijft zwart */
.dropdown ul a:visited {
    color: #000;
}

/* hover submenu */
.dropdown ul a:hover {
    color: rgb(10, 121, 104);
    background-color: #f2f2f2;
    outline: 1px solid rgb(10, 121, 104);
}

/* PARTNER LOGO - RESPONSIVE */
.partner-logo {
    margin-top: 20px;
    text-align: center; /* centreren onder de tekst */
}

.partner-logo img {
    width: 100%;         /* vult maximaal de container */
    max-width: 400px;    /* standaard maximale breedte */
    height: auto;        /* behoudt aspect ratio */
    object-fit: contain; /* voorkom vervorming */
    transition: all 0.3s ease; /* subtiele animatie bij resize */
}

/* Media query voor kleinere schermen */
@media (max-width: 768px) {
    .partner-logo img {
        max-width: 200px;  /* kleinere logo’s op mobiel */
    }
}

@media (max-width: 480px) {
    .partner-logo img {
        max-width: 150px;  /* nog kleiner op kleine telefoons */
    }
}

