.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e8bdff;
    padding-bottom: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
    margin-top: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
}

.reviewsBanner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 45px;
    padding-top: clamp(25px, calc(25px + (25 * ((100vw - 380px) / 170))), 50px);
    margin-bottom: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
}
.reviewsBanner img {
    width: clamp(28px, calc(28px + (22 * ((100vw - 300px) / 250))), 50px);
}
.reviewsBanner h1 {
    color: #1bfc54;
    -webkit-text-stroke: 1px black; /* Outline width and color */
    font-weight: bold;
    font-size: clamp(28px, calc(28px + (22 * ((100vw - 300px) / 250))), 50px);
    margin-left: clamp(5px, calc(5px + (5 * ((100vw - 300px) / 250))), 10px);
    white-space: nowrap;
}

/* Styling for the wrapper that holds all review items */
.reviewsTextWrapper {
    position: relative; /* Crucial for positioning individual review items */
    width: 100%;
    min-height: 150px; /* Give it a minimum height to prevent layout shifts */
    overflow: hidden; /* Hide content that overflows */
    display: flex;
    justify-content: center; /* Center the review items horizontally */
    align-items: center; /* Center the review items vertically */
}

/* Styling for each individual review item */
.review-item {
    position: absolute; /* Allows items to stack on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
    text-align: center; /* Center the text within each review item */
    box-sizing: border-box;
    padding: 0 20px; /* Add horizontal padding to the review text */
}

/* Styling for the currently active review item */
.review-item.active-review {
    opacity: 1; /* Make active review visible */
    position: relative; /* Active item takes up space in the flow, preventing collapse */
}

/* Ensure h2 elements within review items are centered and have no extra margins */
.review-item h2 {
    margin: 0; /* Remove default browser margins */
    padding: 5px 0; /* Add a little vertical padding */
    line-height: 1.4; /* Improve readability */
    font-size: clamp(16px, calc(16px + (14 * ((100vw - 300px) / 250))), 30px);
}

/* Your existing CSS for .reviewsContainer and navigation arrows remains */
.reviewsContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 1150px;
    padding-top: 0px;
    padding-bottom: 100px;
}

.nextReview, .previousReview {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(75px, calc(75px + (25 * ((100vw - 300px) / 250))), 100px);
    height: clamp(40px, calc(40px + (10 * ((100vw - 300px) / 250))), 50px);
    background-color: #A50cf8;
    border-radius: 25px;
    font-weight: bold;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    letter-spacing: 1px;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
}
.nextReview h1, .previousReview h1 {
    font-size: 1rem;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #1bfc54;
    -webkit-text-stroke: 1px black;
}

.previousReview {
    left: clamp(50px, calc(50px + (50 * ((100vw - 300px) / 250))), 10px);
    bottom: 20px;
}
.nextReview {
    right: clamp(50px, calc(50px + (50 * ((100vw - 300px) / 250))), 10px);
    bottom: 20px;
}

.nextReview:hover, .previousReview:hover {
    background-color: #1bfc54;
}
.nextReview:hover h1, .previousReview:hover h1 {
    color: #A50cf8;
}
.nextReview:hover .rightArrowDefault, .previousReview:hover .leftArrowDefault {
    opacity: 0;
    display: none;
}
.nextReview:hover .rightArrowHover, .previousReview:hover .leftArrowHover {
    opacity: 1;
    display: inline-block;
}

.rightArrowDefault, .leftArrowDefault {
    width: clamp(45px, calc(45px + (15 * ((100vw - 300px) / 250))), 60px);
    height: clamp(45px, calc(45px + (15 * ((100vw - 300px) / 250))), 60px);
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
}

.rightArrowHover, .leftArrowHover {
    width: clamp(45px, calc(45px + (15 * ((100vw - 300px) / 250))), 60px);
    height: clamp(45px, calc(45px + (15 * ((100vw - 300px) / 250))), 60px);
    display: none;
    transition: opacity 0.3s ease-in-out;
}

@media screen and (max-width: 1200px) {
    .reviewsContainer {
        width: 97vw;
        padding-left: 5px;
        padding-right: 5px;
    }
}


