#testimonials {
    width: 100%;
    height: max-content;
    padding: 20px;
}

.testimonials {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.testimonials-heading {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonials-heading-left h2 {
    font-size: var(--h5);
    color: var(--heading-color);
    background-image: url(/assets/text-mask.png);
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.testimonials-heading-right p {
    font-size: var(--small);
    color: var(--text-color);
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

@media (min-width: 425px) {
    .testimonials-heading-left h2 {
        font-size: var(--h4);
    }

    .testimonials-heading-right p {
        font-size: var(--body);
    }

}

@media (min-width: 768px) {
    #testimonials {
        padding: 40px;
    }

    .testimonials-heading-left h2 {
        font-size: var(--h3);
        max-width: 500px;
    }

    .testimonials-heading-right p {
        font-size: var(--body);
        text-align: justify;
    }
}

@media (min-width: 1024px) {
    #testimonials {
        padding: 60px;
    }

    .testimonials-heading {
        flex-direction: row;
        gap: 50px;
    }

    .testimonials-heading-left {
        width: 50%;
    }

    .testimonials-heading-right {
        width: 50%;
    }

    .testimonials-heading-left h2 {
        text-align: left;
    }

    .testimonials-heading-right p {
        text-align: justify;
    }
}

@media (min-width: 1440px) {
    .testimonials-heading-left h2 {
        font-size: var(--h2);
        max-width: 600px;
    }

    .testimonials-heading-right p {
        font-size: var(--large);
    }
}

/* Testimonials Content */
.testimonials-content {
    width: 100%;
    position: relative;
    margin-top: 30px;
    padding: 0 4px;
}

.testimonials-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.testimonials-track {
    display: flex;
    align-items: stretch;
}

/* Ensure all swiper slides have equal height */
.testimonials-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Alternative CSS-only solution for equal heights */
.testimonials-carousel .swiper-wrapper {
    align-items: stretch;
}

@media (min-width: 768px) {
    .testimonials-carousel .swiper-slide {
        height: auto;
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .testimonials-carousel .swiper-slide {
        height: auto;
        min-height: 420px;
    }
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    height: 100%;
    width: 100%;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
    border-radius: 24px 24px 0 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.testimonial-stars i {
    color: #FFB800;
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(255, 184, 0, 0.3));
    transition: all 0.2s ease;
}

.testimonial-card:hover .testimonial-stars i {
    color: #FFA000;
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(255, 160, 0, 0.4));
}

.testimonial-rating {
    font-size: var(--small);
    font-weight: 700;
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    padding: 6px 12px;
    border-radius: 16px;
    min-width: 42px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 8px 0;
}

.testimonial-feedback {
    font-size: var(--body);
    color: #374151;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    padding: 24px;
    background: rgba(59, 130, 246, 0.03);
    border-radius: 16px;
    border-left: 4px solid var(--blue-500);
    margin: 0;
}

.testimonial-feedback::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 32px;
    color: var(--blue-500);
    font-family: 'Georgia', serif;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-feedback::after {
    content: '"';
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 32px;
    color: var(--blue-500);
    font-family: 'Georgia', serif;
    line-height: 1;
    opacity: 0.7;
}

/* Testimonial Footer */
.testimonial-footer {
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    padding-top: 24px;
    margin-top: auto;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 16px -8px -8px -8px;
}

.testimonial-company {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.company-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .company-avatar {
    transform: scale(1.05);
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover .company-avatar::before {
    opacity: 1;
}

.company-info h4 {
    font-size: var(--body);
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: 0.3px;
}

.company-info p {
    font-size: var(--small);
    color: #6b7280;
    margin: 4px 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}



/* Responsive Design */
@media (max-width: 479px) {
    .testimonial-card {
        padding: 20px;
        min-height: 260px;
        border-radius: 14px;
    }
    
    .testimonial-feedback {
        font-size: var(--small);
        padding: 16px;
    }
    
    .testimonial-stars i {
        font-size: 16px;
    }
    
    .testimonial-rating {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .company-avatar {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .company-info h4 {
        font-size: var(--small);
    }
    
    .company-info p {
        font-size: 10px;
    }
    
    .testimonial-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}

@media (min-width: 480px) {
    .testimonial-card {
        padding: 28px;
        min-height: 300px;
        border-radius: 20px;
    }
    
    .testimonial-feedback {
        padding: 20px;
    }
    
    .testimonial-stars i {
        font-size: 18px;
    }
    
    .company-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

@media (min-width: 640px) {
    .testimonials-content {
        margin-top: 45px;
        padding: 0 8px;
    }
    
    .testimonial-card {
        padding: 32px;
        min-height: 320px;
    }
    
    .testimonial-feedback {
        font-size: var(--large);
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .testimonial-card {
        min-height: 360px;
        padding: 32px;
        border-radius: 22px;
    }
    
    .testimonials-content {
        margin-top: 55px;
        padding: 0 12px;
    }
    
    .testimonial-feedback {
        font-size: var(--large);
        padding: 26px;
    }
    
    .testimonial-stars i {
        font-size: 20px;
    }
    
    .company-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .testimonial-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .testimonial-card {
        min-height: 380px;
        padding: 36px;
    }
    
    .testimonial-feedback {
        padding: 28px;
    }
    
    .testimonial-stars i {
        font-size: 22px;
    }
    
    .company-avatar {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        padding: 36px;
        min-height: 400px;
        border-radius: 24px;
    }

    .testimonial-feedback {
        font-size: var(--body);
        padding: 30px;
    }
    
    .testimonial-stars i {
        font-size: 22px;
    }
    
    .company-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .company-info h4 {
        font-size: var(--large);
    }
    
    .testimonial-header {
        margin-bottom: 22px;
        padding-bottom: 16px;
    }
}

@media (min-width: 1280px) {
    .testimonial-card {
        padding: 40px;
        min-height: 420px;
    }
    
    .testimonial-feedback {
        font-size: var(--h6);
        padding: 32px;
    }
    
    .testimonial-stars i {
        font-size: 24px;
    }
    
    .company-avatar {
        width: 62px;
        height: 62px;
        font-size: 25px;
    }
}

@media (min-width: 1440px) {
    .testimonial-card {
        padding: 44px;
        min-height: 440px;
        border-radius: 26px;
    }
    
    .testimonial-feedback {
        font-size: var(--h6);
        padding: 34px;
        border-radius: 18px;
    }
    
    .testimonial-header {
        margin-bottom: 26px;
        padding-bottom: 18px;
    }
    
    .testimonial-stars i {
        font-size: 24px;
    }
    
    .testimonial-rating {
        padding: 7px 14px;
        font-size: var(--body);
    }
    
    .company-avatar {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
    
    .company-info h4 {
        font-size: var(--h6);
    }

    .swiper {
        padding: 40px 0 !important;
    }
}

@media (min-width: 1600px) {
    .testimonial-card {
        padding: 48px;
        min-height: 460px;
        border-radius: 28px;
    }
    
    .testimonial-feedback {
        padding: 36px;
        border-radius: 20px;
    }
    
    .testimonial-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
    
    .testimonial-stars i {
        font-size: 26px;
    }
    
    .testimonial-rating {
        padding: 8px 16px;
    }
    
    .company-avatar {
        width: 66px;
        height: 66px;
        font-size: 27px;
    }
}