/* Dynamic Testimonial Widget Styles */

.dtw-testimonial-wrapper {
    position: relative;
    width: 100%;
}

.dtw-testimonial-slider {
    width: 100%;
    overflow: hidden;
}

/* Slide Item */
.dtw-testimonial-item {
    position: relative;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Quote Icon */
.dtw-quote-icon {
    display: inline-flex;
    margin-bottom: 15px;
}

.dtw-quote-icon i,
.dtw-quote-icon svg {
    font-size: 40px;
    color: #e0e0e0;
}

.dtw-quote-bg {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    z-index: 0;
}

.dtw-quote-bg i,
.dtw-quote-bg svg {
    font-size: 80px;
}

/* Content */
.dtw-testimonial-content {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Client Info */
.dtw-client-info {
    margin-top: auto;
}

.dtw-client-image {
    margin-bottom: 15px;
}

.dtw-client-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.dtw-client-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #222;
}

.dtw-client-position {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Rating */
.dtw-rating {
    margin: 10px 0;
}

.dtw-rating i {
    font-size: 18px;
    margin-right: 3px;
}

.dtw-rating i.filled {
    color: #ffc107;
}

.dtw-rating i.empty {
    color: #e0e0e0;
}

/* Navigation Arrows */
.dtw-arrows {
    display: flex;
    align-items: center;
    z-index: 10;
}

.dtw-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dtw-arrow:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.dtw-arrow:hover i,
.dtw-arrow:hover svg {
    color: #fff;
    fill: #fff;
}

.dtw-arrow i,
.dtw-arrow svg {
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.dtw-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Arrows Positions */
.dtw-arrows-sides {
    position: static;
}

.dtw-arrows-sides .dtw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.dtw-arrows-sides .dtw-arrow-prev {
    left: -25px;
}

.dtw-arrows-sides .dtw-arrow-next {
    right: -25px;
}

.dtw-arrows-bottom {
    justify-content: center;
    margin-top: 20px;
}

.dtw-arrows-bottom .dtw-arrow-prev {
    margin-right: 10px;
}

.dtw-arrows-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.dtw-arrows-top-right .dtw-arrow-prev {
    margin-right: 10px;
}

.dtw-arrows-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.dtw-arrows-top-left .dtw-arrow-prev {
    margin-right: 10px;
}

/* Pagination/Dots */
.dtw-pagination {
    text-align: center;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.dtw-pagination.dtw-dots-top {
    margin-top: 0;
    margin-bottom: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    margin: 0 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #333;
}

/* Custom Dots */
.dtw-testimonial-wrapper .swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
    transition: width 0.3s ease;
}

/* Dynamic Bullets */
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(0.66);
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1);
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(0.8);
}

/* Fraction Pagination */
.swiper-pagination-fraction {
    font-size: 16px;
    color: #333;
}

/* Progress Bar Pagination */
.swiper-pagination-progressbar {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.swiper-pagination-progressbar-fill {
    background: #333;
    border-radius: 2px;
}

/* Layout Styles */

/* Style 1 - Classic */
.dtw-style-1 .dtw-testimonial-item {
    text-align: center;
}

.dtw-style-1 .dtw-client-image {
    display: inline-block;
}

/* Style 2 - Card */
.dtw-style-2 .dtw-testimonial-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.dtw-style-2 .dtw-client-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.dtw-style-2 .dtw-client-image {
    margin-right: 15px;
    margin-bottom: 0;
}

.dtw-style-2 .dtw-client-image img {
    width: 60px;
    height: 60px;
}

/* Style 3 - Minimal */
.dtw-style-3 .dtw-testimonial-item {
    background: transparent;
    border: none;
    padding: 20px;
    border-left: 3px solid #333;
}

.dtw-style-3 .dtw-testimonial-content {
    font-size: 18px;
}

/* Style 4 - Quote Highlight */
.dtw-style-4 .dtw-testimonial-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.dtw-style-4 .dtw-testimonial-content {
    color: #fff;
}

.dtw-style-4 .dtw-client-name {
    color: #fff;
}

.dtw-style-4 .dtw-client-position {
    color: rgba(255, 255, 255, 0.8);
}

.dtw-style-4 .dtw-quote-icon i,
.dtw-style-4 .dtw-quote-icon svg {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .dtw-arrows-sides .dtw-arrow-prev {
        left: 10px;
    }
    
    .dtw-arrows-sides .dtw-arrow-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .dtw-testimonial-item {
        padding: 20px;
    }
    
    .dtw-arrows-sides .dtw-arrow {
        width: 40px;
        height: 40px;
    }
    
    .dtw-arrows-sides .dtw-arrow i {
        font-size: 16px;
    }
    
    .dtw-arrows-sides .dtw-arrow-prev {
        left: 5px;
    }
    
    .dtw-arrows-sides .dtw-arrow-next {
        right: 5px;
    }
    
    .dtw-client-image img {
        width: 60px;
        height: 60px;
    }
}

/* Swiper fixes */
.dtw-testimonial-slider .swiper-slide {
    height: auto;
}

.dtw-testimonial-slider .swiper-wrapper {
    align-items: stretch;
}

/* Transition effects support */
.swiper-fade .swiper-slide {
    pointer-events: none;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}
