/* ================= BASIC RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 120px;
    /* Reduced from 230px to better match navbar height; adjust if needed */
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #1f1f1f;
    background: url('img/forest.jpg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    /* Base font size for better scaling */
}

/* ================= CONTAINER ================= */
.container {
    width: 95%;
    max-width: 1200px;
    /* Added max-width to prevent over-stretching on large screens */
    margin: 0 auto;
    font-size: 1em;
    /* Use em for relative sizing */
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 1.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1900px;
    /* Prevent navbar from being too wide on large screens */
    padding: 16px 0;
    /* Slightly reduced padding for smaller screens */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.navbar.hidden {
    transform: translate(-50%, -140%);
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Changed to 100% for full use of navbar width */
    padding: 0 -5%;
    /* Added padding for better spacing */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    /* Reduced gap for mobile */
    text-decoration: none;
}

.navbar-brand img {
    height: 60px;
    /* Reduced from 84px for better mobile fit */
    width: auto;
    object-fit: contain;
}

.navbar-brand span {
    font-size: 1.9em;
    /* Relative sizing */
    font-weight: 900;
    color: #3440eb;
}

.navbar-nav {
    display: flex;
    gap: 1em;
    /* Relative gap */
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 8px 20px;
    /* Slightly reduced */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: #3440eb;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9em;
    /* Relative */
    transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, #3440eb, #5f6dff);
    color: #fff;
    transform: translateY(-1px);
}

.navbar-nav .active .nav-link {
    background: linear-gradient(135deg, #3440eb, #5f6dff);
    color: #fff;
    box-shadow: 0 6px 18px rgba(52, 64, 235, 0.35);
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #3440eb;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ================= SECTION BLOCKS ================= */
.section-block {
    border-radius: 32px;
    margin: 3% auto;
    padding: 3%;
    max-width: 70%;
    /* Increased from 80% for better mobile use */
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    background: linear-gradient(180deg, #9fc9ff 0%, #dfeeff 45%, #ffffff 100%);
    backdrop-filter: blur(12px);
}

/* ================= AGENDA SECTION BLOCKS ================= */

/* GLOBAL TABLE STYLE (agenda, deelnemers, sessies) */
.section-block table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 12px;
    border: 1px solid black;
    overflow: hidden;
    background: transparent;
    /* Changed to white for better readability */
}

/* Table header */
.section-block thead tr {
    background: #3440eb;
    color: #fff;
}

.section-block th {
    padding: 12px 12px;
    /* Same as your header: 12px top/bottom + 12px left/right */
    text-align: left;
    /* Consistent left alignment */
    vertical-align: top;
}

/* Table body */
.section-block td {
    padding: 12px 12px;
    /* Same as your header: 12px top/bottom + 12px left/right */
    text-align: left;
    /* Consistent left alignment */
    vertical-align: top;
}

/* Alternating rows */
.section-block tbody tr:nth-child(even) {
    background: #f7f9ff;
}

/* Hover effect (optional but recommended) */
.section-block tbody tr:hover {
    background: #e3e9ff;
}

/* Rounded corners on header */
.section-block thead tr th:first-child {
    border-top-left-radius: 12px;
}

.section-block thead tr th:last-child {
    border-top-right-radius: 12px;
}

/* Rounded corners on last row */
.section-block tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.section-block tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* ================= HERO ================= */
.hero.section-block {
    background: linear-gradient(180deg, #9fc9ff 0%, #dfeeff 45%, #ffffff 100%);
    margin-top: 140px;
    /* Adjusted for navbar height */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* Reduced gap */
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5em;
    /* Relative sizing */
    margin-bottom: 1em;
}

.hero-text p {
    font-size: 1em;
    margin-bottom: 1.5em;
    max-width: 100%;
    /* Full width on mobile */
}

.btn-primary {
    display: inline-block;
    background: #3440eb;
    color: #fff;
    padding: 0.8em 2em;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1em;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #5f6dff;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image .circle-border {
    width: 80vw;
    /* Dynamic width */
    max-width: 400px;
    /* Cap for large screens */
    height: auto;
    aspect-ratio: 1/1;
    /* Keep circle */
    border-radius: 50%;
    border: 5px solid #7b57b2;
    /* Reduced border */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel img {
    width: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
}

.carousel img.active {
    position: relative;
    opacity: 1;
}

/* ================= EXPECT ================= */
.expect.section-block {
    background: linear-gradient(180deg, #9fc9ff 0%, #dfeeff 45%, #ffffff 100%);
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Auto-fit for responsive */
    gap: 80px;
    align-items: start;
}

.expect-text h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.expect-text p {
    font-size: 1em;
    margin-bottom: 1em;
}

.expect-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* ================= CONTACT BAR ================= */
.contact {
    background: #1b145c;
    color: #fff;
    padding: 2em 0;
}

.contact-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item img {
    width: 30px;
    /* Reduced */
}

.contact-item h4 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ================= CONTACT PAGE – ORGANISATOREN (FIXED) ================= */

.contact-organisatie .container {
    max-width: 1100px;
}

.organisatoren-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Auto-fit */
    gap: 5%;
    align-items: stretch;
}

.organisator-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.organisator-card>img {
    width: 120px;
    /* Reduced */
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: block;
}

.organisator-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.organisator-card p {
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
}

/* Contact rows */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(52, 64, 235, 0.06);
    text-decoration: none;
    color: #3440eb;
    font-weight: 600;
    transition: background 0.2s ease;
}

.contact-links a:hover {
    background: rgba(52, 64, 235, 0.12);
}

.contact-links img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ================= CONTACT PAGE – WINKEL PUUR ================= */
.winkel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.winkel-image img {
    width: 100%;
    /* Changed to 100% for dynamic scaling */
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.winkel-info h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.winkel-info p {
    font-size: 1em;
    margin-bottom: 10px;
}

.winkel-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #3440eb;
    text-decoration: none;
    margin-bottom: 10px;
}

.winkel-links img {
    width: 20px;
}

.winkel-puur {
    background: linear-gradient(180deg, #9fc9ff 0%, #dfeeff 45%, #ffffff 100%);
}

/* ================= WINKEL PUUR – OPENINGSTIJDEN ================= */

.openingstijden ul {
    list-style: none;
    padding: 0;
}

.openingstijden li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.openingstijden li:last-child {
    border-bottom: none;
}

.openingstijden li.closed {
    opacity: 0.45;
}

.openingstijden li.closed span:last-child {
    font-weight: 500;
}

.openingstijden li.today {
    background: rgba(52, 64, 235, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
}

/* ================= WINKEL PUUR – BUTTONS ================= */

.winkel-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 700;
    color: #3440eb;
    border: 2px solid #3440eb;
    transition: 0.25s ease;
}

.btn-secondary:hover {
    background: #3440eb;
    color: #fff;
    transform: translateY(-2px);
}

/* ================= FOOTER ================= */
.footer {
    background: #190734;
    color: #fff;
    text-align: center;
    padding: 1.5em 0;
    font-size: 0.875em;
    width: 100%;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1400px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .expect-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .navbar-nav .nav-link {
        padding: 8px 16px;
        font-size: 0.875em;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 0.875em;
    }

    .organisatoren-grid,
    .winkel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        /* Smaller base font */
    }

    .navbar {
        padding: 10px 0;
        border-radius: 24px;
        top: 0;
        width: 100%;
        left: 0;
        transform: none;
    }

    .nav-container {
        flex-direction: column;
        padding: 0;
    }

    .navbar-brand {
        margin-bottom: 10px;
    }

    .navbar-nav {
        display: none;
        /* hidden by default */
        flex-direction: row;
        /* ← horizontal instead of column */
        flex-wrap: nowrap;
        /* prevent wrapping to new line */
        justify-content: center;
        gap: 8px;
        /* smaller gap for mobile */
        width: 100%;
        padding: 12px 5%;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 0 0 24px 24px;
        margin-top: 8px;
    }

    .navbar-nav.show {
        display: flex;
        /* Show when active */
    }

    .hamburger {
        display: flex;
        /* Show hamburger on mobile */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .section-block {
        max-width: 95%;
        margin: 6% auto;
        /* ← doubled from 3% */
        padding: 6% 5%;
        /* also a bit more breathing room inside */
    }

    .section-block table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82em;
    }

    .section-block th,
    .section-block td {
        white-space: nowrap;
        font-size: 0.875em;
        padding: 8px;
        min-width: 80px;
        /* prevent super-narrow columns */
    }

    .section-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.75em;
    }

    .navbar-nav .nav-link {
        padding: 10px;
        font-size: 1em;
        text-align: center;
    }

    @media (max-width: 768px) {
        .organisator-card {
            padding: 24px 18px 32px 18px;
            /* more bottom padding */
            min-height: auto;
            /* let it grow naturally */
        }

        .contact-links {
            margin-top: 20px;
            /* instead of auto — more predictable */
        }

        /* Make sure the whole grid container has enough padding */
        .contact-organisatie .container {
            padding-bottom: 60px;
        }
    }
}

@media (max-width: 480px) {
    .hero-image .circle-border {
        max-width: 300px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        /* Full width buttons on small mobile */
        text-align: center;
    }

    .winkel-buttons {
        flex-direction: column;
    }
}
