.common-testimony-slider-wrapper {
    position: relative;
    width: 100%;
}

.common-testimony-swiper {
    padding: 50px 0;
    overflow: hidden;
}

.common-testimony-card {
    position: relative;
    background: #fff;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.common-testimony-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.common-testimony-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.common-testimony-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.common-testimony-read-more {
    display: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: -10px;
    margin-bottom: 20px;
    text-decoration: underline;
    align-self: flex-start;
}

.common-testimony-card.is-clamped .common-testimony-read-more {
    display: block;
}

/* Modal Popup */
.common-testimony-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.common-testimony-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.common-testimony-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 60px 40px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.common-testimony-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

.common-testimony-modal-body .common-testimony-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    margin-bottom: 40px;
}

.common-testimony-corner-icon {
    font-size: 4rem;
    color: #f0f0f0;
    position: absolute;
    z-index: -1;
    line-height: 1;
}

.common-testimony-corner-icon.top-left {
    top: -30px;
    left: -20px;
}

.common-testimony-corner-icon.bottom-right {
    bottom: -30px;
    right: -20px;
}

.common-testimony-footer {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.common-testimony-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.common-testimony-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.common-testimony-meta {
    flex: 1;
}

.common-testimony-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

.common-testimony-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.common-testimony-rating {
    margin-top: 5px;
    color: #ffcc00;
    font-size: 0.8rem;
}

/* Navigation */
.common-testimony-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.common-testimony-nav .swiper-button-next,
.common-testimony-nav .swiper-button-prev {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #000;
    cursor: pointer;
    padding: 12px;
}


.common-testimony-nav .swiper-button-next:after,
.common-testimony-nav .swiper-button-prev:after {
    display: none !important;
}

/* Clicked / Active States */
.common-testimony-nav .swiper-button-next:hover,
.common-testimony-nav .swiper-button-prev:hover,
.common-testimony-nav .is-clicked {
    background-color: #000;
    color: #fff;
    opacity: 1;
}

/* Pagination positioning */
.common-testimony-swiper .swiper-pagination {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    margin-top: 20px;
}

/* --- THEMES --- */

/* Normal */
.common-theme-normal .swiper-slide-active .common-testimony-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Blur Scaling */
.common-theme-blur-scaling .swiper-slide {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.common-theme-blur-scaling .swiper-slide:not(.swiper-slide-active) {
    filter: blur(5px);
    opacity: 0.5;
    transform: scale(0.85);
}

.common-theme-blur-scaling .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Center Scaling */
.common-theme-center-scaling .swiper-slide {
    transition: transform 0.6s ease;
    transform: scale(0.8);
}

.common-theme-center-scaling .swiper-slide-active {
    transform: scale(1.1);
    z-index: 2;
}

.common-theme-center-scaling .swiper-slide-prev,
.common-theme-center-scaling .swiper-slide-next {
    transform: scale(0.9);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .common-testimony-card {
        padding: 40px 25px;
    }

    .common-testimony-corner-icon {
        font-size: 3rem;
    }
}