/* Testimonial Carousel Styles */

.tc-wrapper {
    position: relative;
    padding: 20px 0 60px;
    overflow: hidden;
    /* Default clipping */
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.tc-wrapper *,
.tc-wrapper *::before,
.tc-wrapper *::after {
    box-sizing: border-box;
}

.tc-wrapper.is-overflow-visible {
    overflow: visible !important;
}

.tc-wrapper[data-card-animation="true"]:not(.tc-animation-ready) .tc-card {
    opacity: 0;
    visibility: hidden;
}

.tc-wrapper.is-overflow-visible .swiper-slide {
    transition: opacity 0.4s ease;
}

.tc-wrapper.is-overflow-visible .swiper-slide-active,
.tc-wrapper.is-overflow-visible .swiper-slide-next,
.tc-wrapper.is-overflow-visible .swiper-slide-prev,
.tc-wrapper.is-overflow-visible .swiper-slide-duplicate-active,
.tc-wrapper.is-overflow-visible .swiper-slide-duplicate-next,
.tc-wrapper.is-overflow-visible .swiper-slide-duplicate-prev {
    opacity: 1;
}

.tc-wrapper .swiper-slide {
    height: auto;
    display: flex;
}

.tc-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.tc-wrapper.has-hover-zoom .tc-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.tc-quote-icon {
    color: #E84B2A;
    margin-bottom: 20px;
    opacity: 0.15;
    line-height: 1;
}

.tc-quote-icon svg {
    display: block;
    transition: all 0.3s ease;
}

.tc-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
    overflow-wrap: anywhere;
}

.tc-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.tc-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.tc-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
    min-width: 0;
}

.tc-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.tc-position {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.tc-company {
    font-size: 14px;
    color: #E84B2A;
}

.tc-rating {
    margin-top: 8px;
    color: #ffb400;
    font-size: 12px;
    display: flex;
    gap: 2px;
}

/* Navigation */
.tc-nav {
    position: absolute;
    top: 50%;
    left: -30px;
    right: -30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.tc-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.tc-arrow:hover {
    background: #E84B2A;
    color: #fff;
    transform: scale(1.1);
}

.tc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative !important;
    bottom: 0 !important;
}

.tc-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.tc-dots .swiper-pagination-bullet-active {
    opacity: 1;
    background: #E84B2A;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1200px) {
    .tc-nav {
        left: 0;
        right: 0;
        top: auto;
        bottom: -70px;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 880px) {
    .tc-wrapper {
        padding-bottom: 52px;
    }

    .tc-card {
        padding: 32px;
        border-radius: 22px;
    }
}

@media (max-width: 767px) {
    .tc-wrapper {
        padding-bottom: 48px;
    }

    .tc-card {
        padding: 28px;
        border-radius: 20px;
    }

    .tc-content {
        font-size: 16px;
        line-height: 1.55;
    }

    .tc-footer {
        gap: 12px;
    }
}
