.review-section {
    position: relative;
    background-color: #f6f6f7;
    /* #f0f4ff */
    padding-top: 40px;
    text-align: center;
    /* border-radius: 50px; */
    /* margin: 60px 0px 0 0px; */
}

.text-primary {
    font-family: 'Archivo Black';
    color: #1c1c1c !important;
    font-size: 40px;
    font-weight: 600;
}

.review-section p {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    word-spacing: 1px;
    display: inline-block;
    justify-content: center;
    color: #1c1c1c !important;
    position: relative;
    padding: 5px 15px 0 15px;
}

.review-section p:before,
.review-section p:after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: #6089BF;
    position: absolute;
    bottom: 10px;

}

.review-section p:before {
    left: -50px;
}

.review-section p::after {
    right: -50px;
}

.review-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 40px 0;
    width: 940px;
    /* Width for 3 videos, considering each is 300px + gap */
    margin: 0 auto;
    scroll-behavior: smooth;
}

.review-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* for the enlarge class */
/* .enlarged {
    transform: scale(1.2);
    z-index: 1000;
    position: relative;
} */
.enlarged {
    position: fixed;
    transform: scale(1.2);
    width: 25%;
    left: 40%;
    top: 20%;
    height: auto;
    z-index: 1030;
    /*it was 1000*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Add shadow for depth */
    border: none;
}

.review-card video {
    border-radius: 10px 10px 0 0;
}

.card-body {
    text-align: center;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(212 215 232 / 50%);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    border-radius: 30px;
}

.scroll-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#scroll-left {
    left: 10px;
}

#scroll-right {
    right: 10px;
}

.scroll-button img {
    width: 30px;
    height: 30px;
}

@media (max-width: 600px) {
    .review-scroll {
        width: 300px;
    }

    .enlarged {
        position: fixed;
        transform: scale(1.2);
        width: 50%;
        left: 25%;
        top: 35%;
        height: auto;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        /* Add shadow for depth */
        border: none;
    }

    #scroll-right {
        margin-top: 55px;
    }

    #scroll-left {
        margin-top: 55px;
    }

    .text-primary {
        font-size: 2rem;
        margin: 4px 2px 10px 2px;
        line-height: 1;
    }

    .text-secondary {
        text-align: center;
        line-height: 1.2;
    }


}

/* The overlay background */
.overlay {
    position: fixed;
    /* Fixed position to cover the entire window */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black */
    z-index: 1000;
    /* Ensure it is above all other content */
    display: none;
    /* Hidden by default */
    opacity: .8;
}

/* Carousel */
.carousel-item {
    position: relative;
    /* Needed for absolute positioning inside */
    min-height: 350px;
    /* Or whatever height you need */
}

.carousel-buttons {
    position: absolute;
    bottom: 10px;
    /* 10px from bottom */
    left: 20%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

#carouselExampleIndicators {
    background-color: #24285b !important;
    padding: 20px;
}

.big-carousel-div {
    margin: 0 30px;
}

#carouselExampleIndicators .w-100 {
    width: 45% !important;
    float: right;
    border-radius: 2px;
    margin-top: 30px;
}

/*Automatic & Rocotic Carousels  */
.carouselUpdated {
    color: white;
    /* padding: 20px 50% 20px 20px; */
    padding: 0px 45% 20px 20px;
}

.carouselUpdated h5 {
    font-family: system-ui !important;
    font-size: 2em;
    padding-bottom: 15px;
    padding-right: 15px;
}

.carouselUpdated p {
    color: white;
    font-family: system-ui !important;
    font-size: 1.2em;
    line-height: inherit;
    font-weight: 300;
    /* padding-right: 6em; */
    width: 95%;
    padding-bottom: 20px;
    /* padding-left: 20px; */
    padding-right: 10px;
}



.ContactButton1 {
    padding: 17px 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    margin: 30px 2px 0;
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
    /* Smooth transition */
}

.ContactButton1:hover {
    background-color: #6089BF;
    color: white;
    border-color: #24285b;

}

.ContactButton2 {
    background-color: #ffd926;
    padding: 17px 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    margin: 30px 2px 0;
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
    cursor: pointer;
}

.carousel a:hover {
    display: flex !important;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 600px) {

    .carousel-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 15px;
        /* Optional horizontal padding */
    }

    .carousel-buttons button {
        width: 100%;
        margin: 5px 0;
        padding: 13px 0;
    }

    .big-carousel-div {
        margin: 0 10px;
    }


    #carouselExampleIndicators .w-100 {
        width: 100% !important;
        padding-bottom: 10px;
        margin-top: 0;
    }

    .carouselUpdated h5 {
        padding-right: 0;
        font-size: 1.7em;
        text-align: start;
    }

    .carouselUpdated p {
        padding-right: 0;
        text-align: start;
        padding-bottom: 110px;
    }

    .carouselUpdated {
        padding: 15px 0px 15px 15px;
    }

}