/* Base styles remain the same */
.segmenten-container {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
}

.segmenten-sidebar {
    width: calc(2/12 * 100% - 40px);
}

.segmenten-content {
    width: calc(10/12 * 100% - 40px);
    flex-grow: 1;
}

.segmenten-sidebar .sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #181918;
    line-height: 1.3;
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #E4E8E6;
    position: relative;
}

.segmenten-sidebar .sidebar-title:nth-of-type(2) {
    margin-top: 50px;
}

.segmenten-sidebar ul.document-type-filters {
    list-style-type: none;
    padding-left: 0;
}

.segmenten-sidebar ul.document-type-filters li.filter-item {
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #181918;
    margin: 0 0 15px 0;
    max-width: fit-content;
}

.segmenten-sidebar ul.document-type-filters li.filter-item a {
    color: inherit;
}

.segmenten-sidebar ul.document-type-filters li.filter-item:hover,
.segmenten-sidebar ul.document-type-filters li.filter-item.active {
    border-bottom: 2px solid #EC6907;
}

.segmenten-content h1.segment-section-title {
    font-family: "Bernina Sans", Sans-serif;
    font-weight: bold;
    font-size: 27px;
    line-height: 1.3;
    color: #181918;
    margin: 0 0 24px 0;
}

.segmenten-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.segment-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(25% - 15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.segment-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.segment-item .wrapper {
    flex-grow: 1;
    background-color: var(--e-global-color-primary);
    border-radius: 6px 6px 0 0;
    padding: 32px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.segment-item .carousel-image img {
    width: 100%;
    object-fit: cover;
    margin-top: -50px;
}

.segment-item .wrapper .carousel-category,
.segment-item .wrapper .carousel-title {
    color: #FFFFFF;
    line-height: 1.3;
}

.segment-item .wrapper .carousel-category {
    font-size: 14px;
}

.segment-item .wrapper .carousel-title {
    flex-grow: 1;
    font-size: 18px;
    font-family: "Bernina Sans", Sans-serif;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 70px;
}

.segment-item .carousel-taxonomies {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
    line-height: 1.3;
    color: #181918;
}

.segmenten-sidebar .sidebar-title .toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 15px;
}

@media screen and (max-width: 1024px) {
    .segmenten-container {
        flex-direction: column;
        gap: 20px;
    }

    .segmenten-sidebar,
    .segmenten-content {
        width: 100%;
    }

    .segmenten-sidebar {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 20px;
    }

    .segmenten-sidebar .sidebar-title {
        cursor: pointer;
    }

    .segmenten-sidebar .sidebar-title:nth-of-type(2) {
        margin-top: 0;
    }

    .segment-item {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width: 767px) {
    .segment-item .wrapper .carousel-title {
        font-size: 14px;
    }

    .segment-item .carousel-taxonomies,
    .segment-item .wrapper .carousel-category {
        font-size: 10px;
    }

    .segment-item .carousel-taxonomies {
        align-items: flex-start;
    }

    .segmenten-content h1.segment-section-title {
        font-size: 20px;
    }
}