/* Gerelateerde Toepassingen */
.section-toepassing-related {
    padding: 60px 0px 0px 0px;
}

/* Subcategorie Filters (outline style) - boven de titel */
.section-toepassing-related .subcategory-filters {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.section-toepassing-related .related-title {
    font-family: 'Impact', sans-serif;
    font-size: 36px;
    line-height: 1.22;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.section-toepassing-related .related-title .title-dark {
    color: #15463E;
}
.section-toepassing-related .related-title .title-light {
    color: #C1D59F;
}
.section-toepassing-related .subcategory-filter-button {
    height: 35px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid #15463E;
    border-radius: 100px;
    font-size: 14px;
    line-height: 1.57;
    letter-spacing: 0.029em;
    color: #15463E;
    text-decoration: none;
    transition: all 0.3s ease;
}
.section-toepassing-related .subcategory-filter-button:hover {
    background-color: #15463E;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* AJAX results container transition */
.section-toepassing-related .subcategory-results {
    transition: opacity 0.3s ease;
}

/* Hoofdcategorie Buttons (filled style) */
.section-toepassing-related .main-category-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.section-toepassing-related .subcategory-top-filters a{
    color: grey
}
.section-toepassing-related .active,
.section-toepassing-related .subcategory-top-filters a:hover{
    color: black !important;
}
.section-toepassing-related .main-category-button {
    height: 35px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C1D59F;
    border-radius: 100px;
    font-size: 14px;
    line-height: 1.57;
    letter-spacing: 0.029em;
    color: #15463E;
    text-decoration: none;
    transition: all 0.3s ease;
}

.toepassing-related .main-category-button:hover {
    background-color: #a8bf85;
    transform: translateY(-2px);
}

.toepassing-related .related-items {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.toepassing-related .related-category-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.toepassing-related .related-category-name {
    font-size: 14px;
    line-height: 1.57;
    letter-spacing: 0.029em;
    color: #15463E;
    text-align: center;
}

.toepassing-related .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.toepassing-related .related-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.toepassing-related .related-item:hover {
    transform: translateY(-5px);
}

.toepassing-related .related-item-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.toepassing-related .related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.toepassing-related .related-item-title {
    font-size: 16px;
    line-height: 1.5;
    color: #15463E;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-toepassing-related .subcategory-buttons{
        gap: 8px;
        justify-content: flex-start;
    }
    .section-toepassing-related .subcategory-filter-button{
        padding: 0px 12px;
        flex: 47% 0 1;
        text-align: center;
        height: 55px;
    }
    .toepassing-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .toepassing-hero .hero-text {
        padding-right: 0;
    }

    .toepassing-hero .hero-images {
        max-width: 100%;
        margin-left: 0;
    }

    .toepassing-content-block .content-block-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .toepassing-content-block .content-block-left,
    .toepassing-content-block .content-block-right {
        justify-self: stretch;
    }

    .toepassing-overlap .overlap-images {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .toepassing-overlap .overlap-image-1,
    .toepassing-overlap .overlap-image-2 {
        justify-self: stretch;
    }

    .toepassing-overlap .overlap-image-1 {
        margin-top: -60px; /* Less overlap on tablet */
    }

    .toepassing-related .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toepassing-carousel-section .carousel-track {
        padding: 0 calc((100vw - 768px) / 2 - 150px);
    }
}

@media (max-width: 768px) {
    .toepassing-hero {
        padding: 60px 0 0 0;
        margin-bottom: -20px; /* Less overlap on mobile */
    }

    .toepassing-hero .hero-title,
    .toepassing-content-block .content-block-title,
    .toepassing-related .related-title {
        font-size: 28px;
    }

    .toepassing-overlap .overlap-image-1 {
        margin-top: -40px; /* Less overlap on mobile */
    }

    .toepassing-carousel-section .carousel-slide {
        width: 300px;
        height: 200px;
    }

    .toepassing-carousel-section .carousel-track {
        gap: 16px;
        padding: 0 calc((100vw - 320px) / 2 - 125px);
    }

    .toepassing-related .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .toepassing-carousel-section .carousel-slide {
        width: 250px;
        height: 160px;
    }

    .toepassing-hero .hero-title,
    .toepassing-content-block .content-block-title,
    .toepassing-related .related-title {
        font-size: 24px;
    }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .toepassing-hero {
    background-color: #15463E;
}

[data-bs-theme="dark"] .toepassing-content-block .content-block-text {
    color: #F4F3EA;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-prev {
    border-color: #C1D59F;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-prev svg path {
    fill: #C1D59F;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-prev:hover {
    background-color: #C1D59F;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-prev:hover svg path {
    fill: #15463E;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-next {
    background-color: #C1D59F;
    border-color: #C1D59F;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-next svg path {
    fill: #15463E;
}

[data-bs-theme="dark"] .carousel-arrow.carousel-next:hover {
    background-color: #a8bf85;
}
