/* =========================================================
   GLOBAL
========================================================= */

html {
    height: 100%;
    font-size: clamp(14px, 1.2vw, 18px);
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #1a3e78;
    background-image: url("images/achtergrond.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Typography */
body, h1, h2, h3, h4, h5, h6, td, th, label, input, textarea { 
    color: #1a3e78;
}

h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
p, li, label { font-size: clamp(18px, 1.4vw, 18px); }

a { text-decoration: none; transition: 0.2s ease; }
a:hover { color: #ff0000; }

/* =========================================================
   LAYOUT
========================================================= */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: auto;
}

.page-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 140px); 
    display: flex;
    flex-direction: column;
}

.page-scroll::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent no-repeat;
    background-size: cover;
}

.header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.logo-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1px;
}

.desktop-nav a.nav-btn,
.nav-dropdown .nav-main {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    color: #1a3e78;
    font-weight: bold;
    white-space: nowrap;
}

.desktop-nav a.nav-btn.active {
    color: #ff0000 !important;
}

.desktop-nav a:hover,
.nav-dropdown .nav-main:hover {
    background: #f2f2f2;
}

/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1a3e78;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f2f2f2;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* =========================================================
   BURGER MENU
========================================================= */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #1a3e78;
    transition: 0.3s;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a,
.mobile-dropdown-btn {
    display: block;
    margin-bottom: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    color: #1a3e78;
    font-weight: bold;
}

.mobile-dropdown-content {
    display: none;
    margin-top: -4px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 3px solid #1a3e78;
    border-radius: 0 0 6px 6px;
}

.mobile-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #1a3e78;
    font-weight: bold;
}

.leden-btn {
    padding: 10px 20px;
    background: lightblue;
    border-radius: 6px;
    color: blue !important;
    font-weight: bold;
}

/* =========================================================
   HERO / BUTTONS / CTA
========================================================= */

.hero { display: flex; align-items: center; gap: 40px; margin: 10px auto; }
.hero-img { width: 45%; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.hero-text { width: 65%; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { line-height: 1.6; }

.btn, .video-btn, .footer-btn { display: inline-block; padding: 6px 14px; border: 1px solid #dcdcdc; border-radius: 6px; font-size: 14px; font-weight: bold; text-align: center; transition: 0.2s ease; }
.btn, .video-btn { background: #336699; color: white; }
.footer-btn { background: transparent; color: white; }
.btn { min-width: 100px; margin-top: 10px; }
.video-btn:hover { transform: scale(1.1); }
.btn:hover, .footer-btn:hover { opacity: 0.85; }

.cta-section { display: flex; align-items: center; gap: 40px; margin: 20px auto; }
.cta-text h2 { color: #1a3e78; }
.cta-img { width: 50%; border-radius: 12px; object-fit: cover; }

/* =========================================================
   INFO BOXES (DYNAMIC SHRINK FIX)
========================================================= */

.info-boxes {
     display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.info-boxes .box {
    flex: 1;
    padding: clamp(10px, 2vw, 20px);
    border-radius: 12px;
    text-align: center;
    /* Text inside boxes also shrinks slightly */
    font-size: clamp(11px, 1vw, 13px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-boxes .box:nth-child(1) { background: #ffe0ef; }
.info-boxes .box:nth-child(2) { background: #fff4cc; }
.info-boxes .box:nth-child(3) { background: #e3f1ff; }
.info-boxes .box:nth-child(4) { background: #d9ecff; }

/* =========================================================
   VIDEOS (DYNAMIC SHRINK)
========================================================= */

.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: clamp(10px, 22vw, 25px); 
}

.video-thumb { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 4 / 3; 
    overflow: hidden; 
    border-radius: 12px; 
}

.video-thumb img { 
    width: 70%; 
    height: 60%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

.video-thumb:hover img { transform: scale(0.9); }

/* =========================================================
   GALLERY
========================================================= */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 35px; max-width: 1000px; margin: 40px auto; justify-items: center; }
.gallery-item { width: 100%; max-width: 220px; text-align: center; }
.gallery-item img { width: 80%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.gallery-item p { margin: 4px 0; font-size: clamp(14px, 1.4vw, 18px); }

/* =========================================================
   FOOTER (RESPONSIVE TEXT + BOTTOM POSITION)
========================================================= */

.footer {
    margin-top: auto; 
    background: #06325C;
    color: white;
    padding: clamp(10px, 1.5vw, 20px) 0;
    border-top: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 -4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    color: white;
    font-weight: bold;
    font-size: clamp(10px, 1.2vw, 16px) !important;
}

.footer-links { display: flex; align-items: center; }
.footer-nav a { margin: 0 10px; color: white; font-weight: bold; font-size: inherit; }
.footer-nav a:hover { color: #ff0000; }
.footer-btn { margin-left: 12px; font-size: clamp(9px, 0.9vw, 13px); }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .container { width: 92%; }
    .header { height: auto; padding: 10px 0; }
    .header-inner { flex-direction: row; justify-content: space-between; padding: 0 20px; }
    .logo-img { max-height: 80px; }
    .desktop-nav { display: none; }
    .burger { display: flex; position: absolute; right: 20px; bottom: 10px; z-index: 2000; }
    .mobile-nav { position: absolute; top: 100%; right: 0; width: 33vw; border-left: 1px solid #ddd; border-bottom: 1px solid #ddd; z-index: 9999; }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

.info-boxes {
  width: 100%;
  min-height: 160px;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 16px;
  box-sizing: border-box;
}
.info-boxes h2 {
  font-size: clamp(16px, 2vw, 22px);
}

.info-boxes p {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.4;
}
    /* Info boxes adjust to 2 columns on tablets */
   .info-boxes {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
}

@media (max-width: 600px) {
    /* Info boxes adjust to 1 column on small phones */
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .mobile-nav { display: none !important; }
    .desktop-nav { display: flex !important; justify-content: center; align-items: center; }
    .header-inner { flex-direction: column; align-items: center; justify-content: flex-end; }
}

/* =========================================================
   LANDSCAPE FIX
========================================================= */

@media (max-height: 500px) {
    .header { height: 70px; }
    .logo-img { max-height: 50px; }
    .page-scroll { height: calc(100vh - 70px); }
}