#reviews {
    background-color: var(--primary-color);
    padding: 2rem 1rem;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll for #reviews only */
    overflow-y: visible; /* Allow vertical scroll and avoid layout issues */
}

#reviews h3 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#reviews .underline {
    width: 25%; /* Consistent with other sections */
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 2rem auto;
}

.swiper-container {
    max-width: 100%; /* Ensure the slider doesn't exceed the viewport width */
    width: 100%;
    position: relative; /* Set relative positioning for the container */
    margin: 0 auto;
}

.swiper-slide {
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    padding: 5rem;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.swiper-slide h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem;
}

.swiper-slide .organization {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color); /* Correct color variable */
    z-index: 10; /* Ensure buttons are above the content */
    position: absolute; /* Position relative to .swiper-container */
    width: 5px; /* Size of the buttons */
    height: 5px;
    cursor: pointer; /* Add pointer cursor */
}
.swiper-button-prev {
    left: 25px; /* Position button to the left */
}

.swiper-button-next {
    right: 20px; /* Position button to the right */
}

@media (min-width: 768px) {
    #reviews .underline {
        width: 8%; /* Adjust line length for larger screens */
        height: 4px;
        background-color: var(--secondary-color);
        margin: 0 auto 2rem auto;
    }
}
