/*
* ----------[ALL SLIDERS]--------*
*/

.custom-slider {
    position: relative;
    overflow: hidden;
}

.custom-slider.et_pb_section {
    padding-top: 12vh;
}

.custom-slider .slides-container {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.custom-slider .slides-container .et_pb_column {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    width: 100%; /* Ensure the container spans full width */
}

.custom-slider .slide {
    flex: 0 0 100%; /* Each slide takes up full width */
    width: 100%;
    opacity: 0;
    position: relative;
}

.custom-slider .slide h3 {
    letter-spacing: 4px;
    line-height: 1;
    font-family: var(--bodyFont);
    color: var(--yellow);
}

.custom-slider .slide .et_pb_blurb_description {
    letter-spacing: 1px;
    max-width: 750px;
}

.slider-nav-row .et_pb_column {
    display: flex;
    justify-content: flex-start;
}

.custom-slider .nav-item {
    color: var(--white);
    cursor: pointer;
    letter-spacing: 1px;
}

.custom-slider .nav-item:hover, .custom-slider .nav-item.active {
    color: var(--yellow);
}

.custom-slider .et_pb_main_blurb_image {
    margin-bottom: 0;
}

/*
* ----------[HOMEPAGE - VALUES SLIDER]--------*
*/

#values-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 100%;
    height: 50%;
    transform: translateY(-50%);
    background-image: url('https://protectioncoll.wpenginepowered.com/wp-content/uploads/2024/09/vector-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/*
* ----------[PRINCIPLES SLIDER]--------*
*/

#principles-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Light-opacity black overlay */
    z-index: 1; /* Ensure the overlay appears above the background */
    pointer-events: none; /* Allow clicks to pass through the overlay */
}


@media screen and (min-width: 981px) {
    .slider-nav-row .et_pb_column {
        gap: 65px;
    }

    .custom-slider .slider-title h2 {
        margin-bottom: 4vh;
    }

    .slider-nav-row .et_pb_column {
        flex-direction: row;
    }

    .custom-slider .slides-container {
        min-height: 450px;
        margin-bottom: 30px;
    }

    .custom-slider .slide h3 {
        font-size: var(--biggestFontMin);
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 980px) {
    .slider-nav-row .et_pb_column {
        flex-direction: column;
        gap: 8px;
    }

    .custom-slider .slide h3 {
        font-size: var(--mediumFontMax);
        margin-bottom: 5px;
    }

    .nav-item {
        margin-bottom: 5px!important;
    }

    .custom-slider .slides-container {
        min-height: 400px;
    }

    .custom-slider .slide .et_pb_blurb_description {
        max-height: 280px;
        overflow-y: scroll;
        font-size: var(--smallestFontMin);
        line-height: 1.2;
        padding-right: 15px;
    }
}