* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box; /* Makes sure padding and borders don't cause elements to stretch */
}

/* General body style */
body {
    background-color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh; /* Ensure full height */
    overflow-x: hidden; /* Prevent horizontal overflow */
}
/* ---------------------------------------------------------------text block styling--------------------------------------- */

/* Common wrapper for text sections */
.text_wrapper {
    display: flex;
    justify-content: space-around;
    padding: 50px;
    color: white;
    width: 100%; /* Ensure it doesn't stretch beyond the parent */
    box-sizing: border-box; /* Prevents stretching */
}
/* Style the h2 element */
.filler_text_block h2 {
    border-bottom: 2px solid transparent; /* Make the border transparent initially */
    padding-bottom: 5px;
    padding-top: 5px;
    position: relative;
    overflow: hidden; /* Prevents the sliding line from going outside the element */
    
    /* Text fade-in animation */
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease 0.5s forwards; /* Fade in after a short delay */
}

/* The sliding line (initially hidden) */
.filler_text_block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; /* Initially no width */
    height: 2px; /* The thickness of the line */
    background-color: #66c27b; /* Color of the line */
    transition: width 1s ease; /* Smooth transition for the width change */
}

/* When the element becomes visible, slide in the line */
.filler_text_block h2.visible::after {
    width: 100%; /* Expand the line to full width */
}

/* Fade-in animation for text */
@keyframes fadeIn {
    to {
        opacity: 1; /* Fully visible */
    }
}

/* Keyframe animation for sliding in the line */
@keyframes slideIn {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Delay the animation for the "Over ons" section */
.over_ons h2.visible::after {
    animation: slideIn 1s ease 0.5s forwards; /* Add a 0.5s delay */
}

/* Normal animation for the "Onze missie" section */
.onze_missie h2.visible::after {
    animation: slideIn 1s ease forwards;
}

.filler_text_block {
    padding: 40px;
}
.filler_text_block p{
    padding-top: 30px;
}

@media (max-width: 600px) {
    .text_wrapper {
        flex-direction: column; /* Stack blocks on smaller screens */
    }
}

/* ---------------------------------------------------------Private Section Style--------------------------------------------- */
/* Common styles for both private-section and consumer-section */
.private-section,
.consumer-section {
    position: relative;
    width: 92%; /* Full width */
    overflow: hidden;
    color: white; /* White text */
    padding: 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box; /* Prevents overflow */
}

/* Slide-in effect for background image with gradient (private section from left) */
.private-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(
            rgba(0, 0, 0, 0.5), /* Dark overlay */
            rgba(0, 0, 0, 0.5)
        ), url('../img/fiets-parking1.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0% 100%);
    animation: slideIn 1s forwards; /* Slide-in animation from left */
    z-index: 1; /* Background image stays below the text */
}

/* Slide-in effect for background image with gradient (consumer section from right) */
.consumer-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%; /* Start off-screen to the right */
    width: 100%;
    height: 100%;
    background: linear-gradient(
            rgba(0, 0, 0, 0.5), /* Dark overlay */
            rgba(0, 0, 0, 0.5)
        ), url('../img/fiets-parking2.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0% 100%);
    animation: slideInRight 1s forwards; /* Slide-in animation from right */
    z-index: 1; /* Background image stays below the text */
}

/* Container for text within each section */
.private-info,
.consumer-info {
    position: relative;
    z-index: 2; 
    max-width: 600px; 
    padding: 10px;
    color: white;
}

.private-info {
    margin-right: auto;
    text-align: left;
}

.consumer-info {
    margin-left: auto; 
    
}

/* Styling for headings and paragraphs within the sections */
.private-name,
.private-description,
.consumer-name,
.consumer-description {
    color: white; 
}
.private-name,
.consumer-name{
    font-size: 30px;
}

/* Align the button */
.consumer-button,
.private-button {
    display: inline-block;
    width: 150px;
    background-color: #66c27b;
    border-radius: 4px;
    margin-top: 20px;
    padding: 10px;
    color: white;
    font-weight: bold;
}

/* Slide-in animation keyframes (for private section, slide from left) */
@keyframes slideIn {
    to {
        left: 0; /* Move the background image into view from the left */
    }
}

/* Slide-in animation keyframes (for consumer section, slide from right) */
@keyframes slideInRight {
    to {
        right: 0; /* Move the background image into view from the right */
    }
}

/* ---------------------------------------------------------home number of units---------------------------------------------- */

.number_of_units {
    background: linear-gradient(90deg, #66c27b 0%, rgba(59,163,89,1) 35%, rgba(27,96,47,1) 100%);
    padding: 40px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.number_of_units::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    pointer-events: none;
}

.number_of_units span {
    position: relative;
    font-size: 1.2rem;
    padding: 10px;
    margin: 0;
}

.number_of_units span:first-child {
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.number_of_units span:last-child {
    font-size: 1.3rem;
    padding-top: 15px;
}

/* Additional Hover Effect */
.number_of_units:hover {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}


/* Testimonial carousel styles */
.testimonial-carousel {
    width: 80%;
    margin: 0 auto;
    padding: 50px 0;
}

.testimonial-slide {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-slide p {
    font-style: italic;
    color: white;
}

.testimonial-slide .author {
    margin-top: 15px;
    font-weight: bold;
    color: white;
}

/* Slick Slider navigation arrows */
.slick-prev, .slick-next {
    background-color: #333;
    border-radius: 50%;
    z-index: 1;
}

.slick-prev {
    left: -40px;
}

.slick-next {
    right: -40px;
}

/* Festival container styles */
.festival-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box; /* Prevent stretching */
}

/* Title styling */
.title {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
    border-bottom: 5px solid #66c27b;
}

/* Grid for festival items */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%; /* Ensure the grid takes full width */
    max-width: 1000px; /* Max width to avoid stretching */
    box-sizing: border-box; /* Prevents overflow */
}

/* Festival item styles */
.festival-grid a {
    display: block;
    padding: 15px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

/* Hover effect */
.festival-grid a:hover {
    transform: translateY(-5px);
}

/* Green underline effect */
.festival-grid a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-bottom: 3px solid #66c27b;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.festival-grid a:hover::after {
    transform: scaleX(1);
}

/* Responsive Text Blocks */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .text_wrapper {
        padding: 20px; /* Minder padding op mobiele schermen */
        text-align: center; /* Zorg voor centrale uitlijning */
    }
	.filler_text_block{
		padding: 10px;
	}

    .filler_text_block h2 {
        font-size: 1.5em; /* Kleinere fontgrootte */
    }

    .filler_text_block p {
        font-size: 1rem; /* Pas de fontgrootte aan */
    }
}

/* Responsive Private and Consumer Sections */
@media (max-width: 600px) {
    .private-info, .consumer-info {
        margin: 0 auto; /* Centraal uitlijnen */
        text-align: center; /* Voor betere leesbaarheid */
    }

    .private-name, .consumer-name {
        font-size: 1.5rem; /* Kleinere titels */
    }

    .private-description, .consumer-description {
        font-size: 1rem; /* Tekstgrootte aanpassen */
    }

    .consumer-button, .private-button {
        width: 100%; /* Volledige breedte op mobiel */
        font-size: 1rem; /* Knoptekst aanpassen */
    }
}

/* Responsive Number of Units */
@media (max-width: 600px) {
    .number_of_units {
        font-size: 1rem; /* Tekstgrootte aanpassen */
        padding: 20px; /* Minder padding */
    }

    .number_of_units span:first-child {
        font-size: 1.2rem; /* Kleinere titels */
    }

    .number_of_units span:last-child {
        font-size: 1rem; /* Kleinere subtitels */
    }
}

/* Responsive Testimonial Carousel */
@media (max-width: 600px) {
    .testimonial-carousel {
        width: 90%; /* Zorg voor een bredere weergave op mobiele schermen */
        padding: 20px 0; /* Minder padding */
    }

    .testimonial-slide {
        padding: 15px; /* Compactere stijl */
    }

    .testimonial-slide p, .testimonial-slide .author {
        font-size: 1rem; /* Kleiner lettertype */
    }
}

/* Responsive Festival Grid */
@media (max-width: 600px) {
    .festival-container {
        padding: 10px; /* Less padding */
    }

    .festival-grid {
        grid-template-columns: repeat(2, 1fr); /* Show 2 columns on mobile */
        gap: 10px; /* Smaller gap between items */
    }

    .festival-grid a {
        padding: 10px; /* More compact blocks on mobile */
    }
}
