/* Mobile Testimonials Styles - Completely separate from desktop */

@media (max-width: 768px) {
    /* Hide desktop testimonials completely */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile testimonials */
    .mobile-only {
        display: block !important;
    }
    
    /* Mobile testimonials container */
    .mobile-testimonials {
        padding: 0;
        margin-top: 60px;
        margin-bottom: 80px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Mobile title */
    .mobile-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #324e8a;
        margin: 20px;
        text-align: center;
        font-family: var(--font-heading);
    }

    /* Mobile testimonials grid */
    .mobile-testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }

    /* Mobile testimonial card - compact by default */
    .mobile-testimonial-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        border: 1px solid #f0f0f0;
        margin-bottom: 15px;
        display: flex;
        flex-direction: row;
        min-height: 120px;
        position: relative;
        transition: all 0.3s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(50, 78, 138, 0.1);
    }

    .mobile-testimonial-card:active {
        transform: scale(0.98);
    }

    /* Expanded state */
    .mobile-testimonial-card.expanded {
        flex-direction: column;
        max-height: none;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Image container */
    .mobile-testimonial-image {
        width: 100px;
        height: 100px;
        overflow: hidden;
        position: relative;
        background: #f5f5f5;
        flex-shrink: 0;
        margin: 10px;
        border-radius: 8px;
    }

    .mobile-testimonial-card.expanded .mobile-testimonial-image {
        width: 100%;
        height: 200px;
        margin: 0;
        border-radius: 0;
    }

    .mobile-testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .mobile-testimonial-image .placeholder-image {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #324e8a 0%, #5A4FCF 100%);
    }

    /* Content container */
    .mobile-testimonial-content {
        padding: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-testimonial-card.expanded .mobile-testimonial-content {
        padding: 20px;
    }

    .mobile-testimonial-content h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.25rem;
        font-family: var(--font-heading);
        line-height: 1.2;
    }

    .mobile-testimonial-role {
        font-size: 0.75rem;
        color: var(--text-light);
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .mobile-testimonial-preview {
        font-size: 0.875rem;
        color: var(--text);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-testimonial-card.expanded .mobile-testimonial-preview {
        display: none;
    }

    .mobile-testimonial-text {
        font-size: 0.875rem;
        line-height: 1.6;
        color: var(--text);
        display: none;
    }

    .mobile-testimonial-card.expanded .mobile-testimonial-text {
        display: block;
    }

    .mobile-testimonial-stars {
        display: none;
        margin-bottom: 10px;
    }

    .mobile-testimonial-card.expanded .mobile-testimonial-stars {
        display: flex;
        gap: 2px;
        font-size: 1rem;
    }

    .mobile-expand-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 50%;
        color: #324e8a;
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-testimonial-card.expanded .mobile-expand-btn {
        top: 15px;
        transform: rotate(180deg) translateY(50%);
        background: #324e8a;
        color: white;
    }
}

/* Desktop should not be affected */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
