/* Algemene opmaak */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

header {
  background: linear-gradient(to right, #1EB53A, #00A3DD);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
header img {
  height: 80px;
}

.banner-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #e8f5ff;
}
.hero h1 {
  font-size: 2em;
  max-width: 600px;
  text-align: center;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.left-col {
  flex: 1 1 300px;
  max-width: 300px;
}
.right-col {
  flex: 3 1 600px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.card img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 15px;
}

footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

.main-nav {
  background-color: #000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.main-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 20;
}

.main-nav .nav-links a,
.dropbtn {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 1em;
}

.language-flags {
  display: flex;
  gap: 15px;
  align-items: center;
}

.language-flags img {
  width: 28px;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #FFD700;
  transition: transform 0.2s ease;
}

.language-flags img:hover {
  transform: scale(1.1);
}

/* Mobiel: vlaggen onder menu */
@media (max-width: 768px) {
  .sticky-nav {
    flex-direction: column;
    align-items: center;
  }

  .language-flags {
    margin-top: 10px;
  }
}

/* Tabs voor verhalenpagina */
.tabs {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tab-button {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #e9ecef;
  border: 1px solid #ccc;
  margin: 5px;
}
.tab-button.active {
  background-color: #0d6efd;
  color: white;
}

.verhaal-container {
  display: none;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.verhaal-container.active {
  display: flex;
}

.foto-paneel img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}
.foto-paneel h3 {
  margin-top: 10px;
  color: #333;
}

.brieven-paneel {
  flex: 2;
  min-width: 300px;
  position: relative;
}

.carousel {
  position: relative;
  overflow: visible;
  background: #eee;
  border-radius: 8px;
}

.brief {
  display: none;
  width: 100%;
  margin-bottom: 10px;
}

.brief.active {
  display: block;
}

@media (max-width: 768px) {
  .media-frame {
    max-height: 300px;
  }
}

.carousel-controls {
  margin-top: 10px;
  text-align: center;
}
.carousel-controls button {
  padding: 10px 20px;
  margin: 0 10px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.carousel-controls button:hover {
  background-color: #0b5ed7;
}

/* Doneerknop in Tanzania-stijl */
.btn-tanzania {
  background: linear-gradient(45deg, #17B636, #FFD400, #00A0E3, #000000);
  color: white;
  border: none;
}
.btn-tanzania:hover {
  opacity: 0.9;
}

/* Bestuursweergave */
.board-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.board-card img {
  width: 150px;
  border-radius: 8px;
  flex-shrink: 0;
}
.board-card div {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 600px) {
  .board-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .board-card div {
    text-align: left;
    width: 100%;
  }
}

.verhaal-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.foto-paneel {
  max-width: 300px;
}

.qr-code {
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
}

.brieven-paneel .brief img,
.brieven-paneel .brief iframe {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .language-flags {
    padding-top: 10px;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.btn-kenya {
  background-color: #b22222;
  color: white;
  border: 2px solid black;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-kenya:hover {
  background-color: #006400;
  border-color: white;
}

.media-frame {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Dropdown navigatie */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  border: none;
  color: #FFD700;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(to bottom, #1EB53A, #000, #FF0000);
  min-width: 180px;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: 2px solid white;
  border-radius: 4px;
  z-index: 999;
  overflow: hidden;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.3);
}

.dropdown-content a:hover {
  background-color: #FFD700;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}
