.testimonials {
    padding: 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .testimonials h2 {
        margin-bottom: 30px;
        font-size: 24px;
        padding: 0 15px;
    }
}

/* Testimonial Carousel Wrapper */
.testimonials__carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 !important; /* Explicitly remove rounded corners */
    width: 100%;
}

/* Testimonial Slides Container */
.testimonials__slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

/* Single Testimonial Container */
.testimonial {
    background: #F9E6EA;
    padding: 40px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    border-radius: 0 !important; /* Explicitly remove rounded corners */
}

@media (max-width: 768px) {
    .testimonial {
        padding: 25px 20px;
        padding-bottom: 70px;
    }
}

/* Testimonial Content Wrapper */
.testimonial__content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .testimonial__content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Author Image */
.testimonial__image {
    flex-shrink: 0;
}

.testimonial__image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #212529;
}

@media (max-width: 768px) {
    .testimonial__image img {
        width: 60px;
        height: 60px;
    }
}

/* Text Content */
.testimonial__text-content {
    flex: 1;
    min-width: 0; /* Important for flex child text overflow */
    width: 100%;
    max-width: 100%;
}

/* Quote */
.testimonial__quote {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 25px 0;
    font-style: italic;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    padding-left: 30px; /* Space for quote mark */
}

.testimonial__quote::before {
    content: '"';
    font-size: 60px;
    line-height: 0;
    color: #c60c30;
    position: absolute;
    left: -5px;
    top: 25px;
}

@media (max-width: 768px) {
    .testimonial__quote {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
        padding-left: 20px;
    }
    
    .testimonial__quote::before {
        font-size: 40px;
        left: -3px;
        top: 15px;
    }
}

/* Author Info */
.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .testimonial__author {
        text-align: center;
    }
}

.testimonial__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial__name a {
    color: #c60c30;
    text-decoration: none;
    transition: color 0.3s ease;
}

.testimonial__name a:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* If no LinkedIn link, show name in default color */
.testimonial__name-text {
    /* Uses default text color */
}

.testimonial__position {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .testimonial__name {
        font-size: 15px;
    }
    
    .testimonial__position {
        font-size: 13px;
    }
}

/* Navigation Buttons - Inside testimonial box */
.testimonials__navigation {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

/* Bootstrap button overrides for testimonial navigation */
.testimonials__nav-btn.btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .testimonials__navigation {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .testimonials__nav-btn.btn {
        min-width: 36px;
        height: 36px;
        font-size: 18px;
    }
}