/* Testimonial Section */
.testimonial-section {
    text-align: left;
    padding: 20px 20px 20px 20px;
  	color: #333333;
	background: #fff;
	overflow: hidden;
}

/* Section Heading */
.testimonial-section h2 {
    font-size: 32px;
    color: #333E48; 
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Testimonial Container */
.testimonial-container {
	background: #fff;
    position: relative;
    max-width: 80%;
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: left;
    overflow: hidden;
}

/* Responsive Width */
@media (min-width: 1200px) {
    .testimonial-container {
        max-width: 1000px;
    }
}

/* Testimonial Slider (Holds Testimonials) */
.testimonial-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Testimonial Box */
.testimonial {
    width: 90%; /* Keeps text inside container */
    text-align: left;
    color: #333333;
    padding: 20px 50px; /* Adds spacing inside */
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease, transform 0.6s ease-in-out;
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    margin: 0 auto; /* Centers the testimonial */
}

/* Active Testimonial */
.testimonial.active {
    opacity: 1;
    transform: translateX(0%);
    position: relative;
}

/* Animations for Sliding Testimonials */
.testimonial.exiting-left {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial.exiting-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Testimonial Author */
.testimonial h3 {
    font-size: 18px;
    font-weight: bold;
    color: black;
    margin-top: 12px;
    padding-left: 20px; /* Pushes name slightly away from button */
}

/* Navigation Buttons */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2E7369;
    border: none;
    color: #ffffff;
    font-size: 26px;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

/* Hover Effect */
.prev-btn:hover, .next-btn:hover {
    background: #2E7369;
}

/* Positioning Navigation Buttons */
.prev-btn {
    left: 10px; /* Slightly adjusted */
}

.next-btn {
    right: 10px; /* Slightly adjusted */
}

.testimonial-section h2 {
  color: #333E48;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0px 0px 6px 6px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonial-container {
        max-width: 90%;
        padding: 30px;
        height: auto;
    }

    .testimonial {
        font-size: 18px;
        line-height: 1.6;
        padding: 20px 30px; /* Adjusts padding for smaller screens */
    }

    .prev-btn, .next-btn {
        font-size: 20px;
        padding: 8px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}/* CSS Document */

