.custom-testimonial-section {
    position: relative;
    padding: 60px 0 50px;
    background: #f8fbff;
    font-family: var(--text-font);

}

.custom-testimonial-section .sec-title h2 {
    font-size: 42px;
    line-height: 52px;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.custom-testimonial-section .sec-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--theme-color);
    border-radius: 2px;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.testimonial-column {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
    margin-bottom: 40px;
}

.custom-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-bubble {
    position: relative;
    padding: 40px 39px 20px;
    background: #fff;
    border-radius: 20px;
    flex-grow: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 56, 102, 0.05);
    border: 1px solid rgba(0, 56, 102, 0.05);
    display: flex;
    flex-direction: column;
}

.custom-testimonial-card:hover .testimonial-bubble {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 56, 102, 0.1);
    border-color: rgba(var(--theme-color-rgb), 0.2);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgb(241 103 62 / 24%);
    font-size: 80px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

.testimonial-bubble p {
    position: relative;
    z-index: 2;
    font-size: 20px;
    line-height: 34px;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f4f8;
    padding-top: 10px;
    gap: 20px;
    margin-top: auto;
}

.author-img {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.custom-testimonial-card:hover .author-img {
    transform: scale(1.05);
    border-color: var(--theme-color);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 17px;
    color: var(--theme-color);
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsiveness */
@media only screen and (max-width: 1199px) {
    .author-img {
        width: 110px;
        height: 110px;
    }
}

@media only screen and (max-width: 991px) {
    .testimonial-column {
        flex: 0 0 100%;
        max-width: 100%;
            margin-bottom: 13px;
    }

    .custom-testimonial-section .sec-title h2 {
        font-size: 34px;
        line-height: 44px;
    }

    .author-img {
        width: 130px;
        height: 130px;
    }
}

@media only screen and (max-width: 767px) {
    .testimonial-bubble {
        padding: 18px 18px 27px;
    }

    .testimonial-bubble p {
        font-size: 18px;
        line-height: 28px;
        text-align: center;
    }

    .author-img {
        width: 100px;
        height: 100px;
    }

    .author-info h4 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .author-img {
        margin: 0 auto;
    }
}