/**
 * Testimonial Card Widget Styles
 * 
 * Post-like layout with image/video on top, followed by date, name, and text.
 * Includes responsive carousel functionality and hover effects.
 */

/* Base Widget Structure */
.testimonial-card-widget {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 40px; /* Space for pagination at bottom */
    box-sizing: border-box;
}

/* Swiper Slide */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Media Section - Image/Video */
.testimonial-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.testimonial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.testimonial-card:hover .testimonial-media img {
    transform: scale(1.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    color: white;
}

.video-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
}

/* Card Content */
.testimonial-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Service Name */
.testimonial-service-name {
    font-size: 14px;
    color: #AD8330;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Client Name */
.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 15px 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    flex-grow: 1;
}

/* Navigation Arrows */
.testimonial-card-widget .swiper-button-prev,
.testimonial-card-widget .swiper-button-next {
    color: #AD8330;
}

.testimonial-card-widget .swiper-button-prev:after,
.testimonial-card-widget .swiper-button-next:after {
    font-size: 24px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .testimonial-name {
        font-size: 18px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .testimonial-card-content {
        padding: 15px;
    }
    
    .testimonial-media {
        height: 180px;
    }
    .testimonial-name {
        font-size: 15px;
        margin-top: 12px;
    }
    .testimonial-service-name {
        font-size: 13px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .testimonial-card-widget .swiper-button-prev:after,
    .testimonial-card-widget .swiper-button-next:after {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .testimonial-card-content {
        padding: 12px;
    }
    
    .testimonial-media {
        height: 160px;
    }
    .testimonial-name {
        font-size: 14px;
        margin-top: 10px;
    }
    .testimonial-service-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .testimonial-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .testimonial-card-widget .swiper-button-prev:after,
    .testimonial-card-widget .swiper-button-next:after {
        font-size: 18px;
    }
}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-media img {
        transition: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .testimonial-card:hover .testimonial-media img {
        transform: none;
    }
}
