/* Algemene instellingen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html, body {
    background-color: #f4f4f4;
    width: auto;
    height: auto;
}

/* Header en Hero */
header {
    position: relative;
    padding: 0;
}

/* Zoekbalk */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 600px;
    padding: 0 20px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    background-color: #fff;
    color: #333;
}

#searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* ========== HERO-IMAGE ========== */
.hero-image {
  position: relative;
  background-image: url('images/interlaken.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-text {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  word-wrap: break-word;
}

.hero-text h1 {
  font-size: 4rem;
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
}

.hero-text p {
  font-size: 1.5rem;
  margin: 10px 0;
}

/* ========== KNOPPEN ========== */
.btn-primary,
.btn-secondary,
.cta-button {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  box-sizing: border-box;
}

.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }

.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

.cta-button { background-color: #28a745; font-size: 18px; }
.cta-button:hover { background-color: #218838; transform: scale(1.05); }

/* ========== NAVIGATIE ========== */
nav.topnav {
  background-color: #305178;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

nav.topnav a,
nav.topnav .dropbtn {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

nav.topnav a.active {
  background-color: #2f5680;
}

nav.topnav .dropdown {
  position: relative;
}

nav.topnav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

nav.topnav .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

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

nav.topnav a:hover,
nav.topnav .dropdown:hover .dropbtn {
  background-color: #447199;
}

/* Hamburger knop */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Containers en Secties */
.container, .section, .overlay-content, .country-item, .gallery-item, .highlight-item {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section h2, .highlights h2, .gallery h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.section h3 {
    font-size: 1.5rem;
    color: #28a745;
    margin-top: 10px;
}

/* Grid Layouts */
.countries-grid, .gallery-grid, .highlight-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Tabel */
.table-container {
    overflow-x: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    color: #555;
}

th {
    background-color: #305178;
    color: white;
    border: none;
}

tr:nth-child(even) { background-color: #f2f2f2; }
tr:hover { background-color: #f9f9f9; }

.side-header {
    font-weight: bold;
    background-color: #f9f9f9;
    width: 150px;
    border: none;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    body { font-size: 16px; }

    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1rem; }

    .btn-primary, .btn-secondary, .cta-button {
        font-size: 1rem;
        padding: 10px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .search-container {
        padding: 0 10px;
    }

    #searchInput {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    nav.topnav a,
    nav.topnav .dropbtn {
        width: 100%;
        padding: 10px;
    }

    nav.topnav .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #eaeaea;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 15px;
    }

    td {
        display: block;
        text-align: center;
        position: relative;
        padding-left: 50%;
        border: none;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
        color: #007bff;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 0.9rem; }

    .section h2 { font-size: 1.4rem; }
    .section h3 { font-size: 1.2rem; }

    .btn-primary, .btn-secondary, .cta-button {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .gallery-item::before {
        font-size: 1rem;
    }

    td::before {
        font-size: 0.9rem;
    }

    .highlight-item h3 { font-size: 1.2rem; }
    .highlight-item p { font-size: 0.95rem; }

    .container, .section, .overlay-content {
        padding: 10px;
    }
}
