/* ==========================================================================
   SHARED TESTIMONIAL CARD STYLES
   Used by both home.php and testimonials.php
   ========================================================================== */

/* Testimonial Grid Layout */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Testimonial Card Base */
.testi-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.testi-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

/* Video Thumbnail Container */
.testi-video-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
}

.testi-video-thumb img.thumb-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testi-card:hover .testi-video-thumb img.thumb-bg {
    transform: scale(1.05);
}

/* Play Icon */
.testi-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.testi-video-thumb:hover .testi-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Rating Row */
.testi-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.google-logo {
    width: 20px;
    height: 20px;
}

.rating-number {
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.stars {
    color: #FBBF24;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

/* Testimonial Text */
.testi-text {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    min-height: 48px;
}

/* Author Section */
.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-details p {
    font-size: 13px;
    color: #9CA3AF;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}