/* Algemene stijlen */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    font-family: 'Tahoma';
    margin: 0;
    padding: 0;
    background-color: #FBF8F2;
    min-height: 100vh;
}

/* Navigatiebalk */
.navbar {
    display: flex;
    align-items: center;
    /* AANPASSING: Veranderd van space-between naar flex-start om links te groeperen */
    justify-content: flex-start;
    padding: 1rem;
    background-color: #7D060A;
    /* Relative positie nodig voor de absolute cart button */
    position: relative; 
}

.navbar img {
    max-width: 120px;
    width: 120px;
    height: auto;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.dropdown {
    position: relative;
}

/* Dropbtn (Lestijden en locaties) nu flexibel in breedte zoals de ankers */
.dropbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    color: black;
    padding: 0.4rem 0.8rem;
    margin: 0 0.25rem 0.4rem 0.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: #f0f0f0;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Navigatielinks */
.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    flex-grow: 0;
    margin-left: 2rem; 
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 0.25rem 0.4rem 0.25rem;
    padding: 0.4rem 0.8rem;
    background-color: #ffffff;
    text-decoration: none;
    color: black;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #b87171;
}

/* Proefles knop stijlen */
.trial-btn-container {
    text-align: center;
}

.trial-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    background-color: #E20A17;
    /* Rode kleur voor actie */
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    animation: pulse-red 2s infinite;
    /* Pulserende animatie */
}

.trial-btn:hover {
    background-color: #7D060A;
    /* Donkerrood bij hover */
    transform: scale(1.03);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 10, 23, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(226, 10, 23, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(226, 10, 23, 0);
    }
}
/* Einde nieuwe knop stijlen */

/* Hero sectie */
.hero {
    text-align: center;
    padding: 0 0 2rem 0;
}

.main-image {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: 3rem;
    color: #7D060A;
}

.hero h3 {
    margin-top: 0.5rem;
    font-size: 1.4rem;
    color: #7D060A;
    text-align: center;
    /* Gecentreerd */
}

/* Recente Gebeurtenissen Scroll Container */
.events-section {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #222;
}

.events-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 20px 30px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.events-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.events-scroll-container::-webkit-scrollbar-thumb {
    background: #7D060A;
    border-radius: 10px;
}

.event-card {
    min-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-left: 5px solid #E20A17;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.event-card h4 {
    margin-top: 0;
    color: #7D060A;
    font-size: 1.2rem;
}

.event-card p {
    margin: 5px 0;
    font-size: 0.95rem;
}
/* Einde Recente Gebeurtenissen stijlen */

/* Content sectie */
.content {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;

}

/* Wijziging: Afbeeldingen zijn nu vierkant met rounded corners (10px) */
.content .row .image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #7D060A;
    /* Rode kleur voor H2 */
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Lichte schaduw */
}


.row .image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
}

.image {
    background: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 250px;
}

.row p {
    flex: 1;
    margin: 0 2rem;
    line-height: 1.4;
}

/* Wat is Taekwondo sectie */
.wat-is-taekwondo {
    max-width: 800px;
    /* Blijft op 800px */
    width: 100%;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 1rem;
    line-height: 1.6;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wat-is-taekwondo h2 {
    color: #7D060A;
}

.wat-is-taekwondo p+p {
    margin-top: 1rem;
}

@media(max-width:768px) {
    .wat-is-taekwondo {
        padding: 1.5rem 1rem;
    }

    .row {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
}

/* Footer */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
}

.footer img {
    max-width: 120px;
    width: 120px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Mobiel */
@media(max-width:600px) {
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links a {
        margin: 0.4rem 0;
        width: 100%;
    }

    .content .row {
        flex-direction: column;
        text-align: center;
    }

    .content .row p {
        margin: 1rem 0;
    }

    .events-scroll-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Titels */
main h2,
main h3,
main h4 {
    margin-top: 1.5rem;
}

/* Formulier */
form {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
}

label {
    font-weight: bold;
    margin-top: 1rem;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 0.3rem;
}

/* Knop */
button {
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    background: #E20A17;
    color: white;
    transition: 0.2s;
    margin-top: 0.5rem;
}

button:hover {
    opacity: 0.85;
}

/* Pulsende knop animatie - alleen toegepast op de verzendknop */
#verstuur-knop {
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 10, 23, 0.6);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 0 12px 6px rgba(226, 10, 23, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 10, 23, 0);
    }
}

/* Mobiel */
@media(max-width:700px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
}

/* Hoofdcontent */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    overflow-y: auto;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #222;
}

/* Locaties */
.locatie {
    display: flex;
    align-items: flex-start;
    background: #fff;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.locatie-img {
    width: 200px;
    height: auto;
    border-radius: 6px;
    margin-right: 20px;
}

.locatie-info h2 {
    margin-top: 0;
    color: #5E5858;
}

.row-loc {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.row-loc p {
    margin: 0;
}

/* Video embed styling */
.video-embed-small {
    margin-top: 10px;
    width: 300px;
    height: 170px;
}

.video-embed-small iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer stijl */
.footer {
    background-color: #7D060A;
    color: white;
    padding: 20px 0;
    width: 100%;
    margin: 0;
}

/* Binnenkant van de footer */
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Footer logo */
.footer-top img {
    max-width: 120px;
    width: 120px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact tekst */
.footer-contact h3 {
    margin: 0 0 10px 0;
}

.footer-contact p {
    margin: 4px 0;
}

/* Voor Leerlingen – layout */
.leerlingen-section {
    margin-top: 30px;
}

.red-btn {
    display: inline-block;
    background: #7D060A;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s;
}

.red-btn:hover {
    opacity: 0.85;
}

/* Videokaarten */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: #ffffff;
    border: 2px solid #7D060A;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    transition: 0.25s;
}

.video-card:hover {
    background: #f7d7d7;
    transform: scale(1.02);
}

.video-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #7D060A;
}

/* Kaart met embedded video */
.video-embedded iframe {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    border: none;
}

/* Specifiek: laatste embedded video kleiner maken */
.video-card.video-embedded .video-embed-small {
    width: 100%;
    max-width: 280px;
    height: 160px;
    margin: 0 auto;
}

/* Videokaarten – responsive aanpassing */
@media(max-width:768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-card {
        padding: 15px;
    }

    .video-embedded iframe {
        height: 200px;
    }

    .video-card.video-embedded .video-embed-small {
        max-width: 100%;
        height: 180px;
    }
}


/* --- NIEUWE WEBSHOP & WINKELWAGEN STIJLEN --- */

/* Hoofdcontainer van de shop: Responsive grid */
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stijl voor de individuele productkaart */
.product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    border-top: 5px solid #E20A17;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 6px;
    display: block;
}

.product-card h3 {
    color: #7D060A;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.product-card .price {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Stijl voor maats- en optiekeuze */
.size-selector {
    margin: 15px 0;
    font-size: 0.95em;
    text-align: left;
}

.size-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #555;
}

.size-selector select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    font-family: inherit;
}

/* Stijl voor de Winkelwagen knop */
.add-to-cart-btn {
    background-color: #E20A17;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
}

.add-to-cart-btn:hover {
    background-color: #7D060A;
}

/* Notitie over de Banden (klein benoemd) */
.belt-note {
    background-color: #fcebeb;
    border: 2px solid #E20A17;
    color: #7D060A;
    padding: 15px;
    margin: 30px auto;
    border-radius: 8px;
    text-align: center;
    max-width: 900px;
    font-weight: bold;
    font-size: 1.1em;
}

/* --- WINKELWAGEN PAGINA STIJLEN --- */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: #7D060A;
    /* Donkerrood */
    color: white;
    font-weight: bold;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table td:nth-child(4),
.cart-table td:nth-child(5) {
    text-align: right;
    font-weight: bold;
    color: #E20A17;
    /* Actie Rood */
}

.empty-cart {
    text-align: center;
    padding: 50px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #fff;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-btn {
    background-color: transparent;
    color: #7D060A;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #E20A17;
}

.cart-summary {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.summary-box {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.summary-total {
    border-top: 2px solid #7D060A;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.2em;
    background-color: #2ecc71;
    /* Groen voor Afrekenen */
}

.checkout-btn:hover {
    background-color: #27ae60;
    opacity: 1;
    /* Override algemene button hover */
}

/* RONDE WINKELWAGEN KNOP STIJLEN VOOR NAVIGATIE */

.cart-btn-nav {
    position: absolute;
    top: 50%; 
    right: 15px; 
    transform: translateY(-50%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #E20A17;
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000; 
}

.cart-btn-nav:hover {
    background-color: #7D060A;
}

/* Stijl voor de teller (badge) */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #38c172;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    visibility: hidden;
}

/* Responsieve aanpassing voor kleine schermen */
@media (max-width: 600px) {
    /* Op mobiel zetten we de navigatielinks onder elkaar */
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Zorg dat de absolute knop op mobiel meeverhuist */
    .cart-btn-nav {
        top: 1rem;
        transform: none; 
    }

    .nav-links a {
        margin: 0.4rem 0;
        width: 100%;
    }
}
/*Voor leerlingen pagina video*/
video {
    max-width: 400px;
    height: auto;
}

/* --- NIEUWE STIJLEN VOOR DE 'VOOR LEERLINGEN' PAGINA --- */

/* Stijl voor de Wat Heb Je Nodig sectie: video naast tekst */
.benodigdheden-content {
    display: flex;
    gap: 30px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    margin-bottom: 20px;
}

.benodigdheden-content > div {
    flex-grow: 1; 
    min-width: 250px; 
}

.benodigdheden-content video {
    flex-shrink: 0; 
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px; 
}

/* Afbeelding voor Examen Syllabus */
.syllabus-image {
    display: block;
    max-width: 150px; /* Bepaal de grootte van de afbeelding */
    height: auto;
    margin: 15px 0 15px 0; /* Marge onder en boven de afbeelding */
    border-radius: 8px;
}

/* Responsive aanpassing voor de 'Wat heb je nodig' sectie op kleine schermen */
@media (max-width: 700px) {
    .benodigdheden-content {
        flex-direction: column; 
        align-items: center; 
        gap: 15px;
    }
    .benodigdheden-content > div {
        width: 100%;
        text-align: center; 
    }

    .syllabus-image {
        margin: 15px auto; 
    }
}