/* ============================================================
   TESTIMONIAL SECTION - HOME PAGE
   Grid 3-col like Framer reference image
   ============================================================ */

.hp-testimonials {
    margin-top: 80px;
    padding: 0 0 40px;
}

.hp-testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}

.hp-testimonials-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hp-testimonials-title-accent {
    color: #111827;
}

.hp-testimonials-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 3-column masonry-like grid */
.hp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Each card */
.hp-testi-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hp-testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
    border-color: #e5e7eb;
}

.hp-testi-quote {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.65;
    flex-grow: 1;
    margin: 0;
}

.hp-testi-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 1px;
}

.hp-testi-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hp-testi-info {
    flex-grow: 1;
    min-width: 0;
}

.hp-testi-info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-testi-info span {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-testi-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tablet: 2 col grid */
@media (max-width: 991.98px) {
    .hp-testi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile: 2-col true zigzag */
@media (max-width: 575.98px) {
    .hp-testimonials {
        margin-top: 40px;
        padding: 0 0 20px;
    }

    .hp-testimonials-header {
        margin-bottom: 24px;
    }

    .hp-testimonials-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hp-testimonials-subtitle {
        font-size: 0.82rem;
    }

    /* 2-col grid with row auto height so zigzag offset works */
    .hp-testi-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
        align-items: start; /* critical: rows don't stretch to equal height */
    }

    /* Odd cards: normal position */
    .hp-testi-card:nth-child(odd) {
        transform: translateY(0);
    }

    /* Even cards: shift down to create clear visible zigzag */
    .hp-testi-card:nth-child(even) {
        transform: translateY(32px);
    }

    /* Compact card styles */
    .hp-testi-card {
        padding: 10px;
        gap: 6px;
        border-radius: 12px;
    }

    .hp-testi-quote {
        font-size: 0.65rem;
        line-height: 1.45;
    }

    .hp-testi-stars {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hp-testi-footer {
        gap: 6px;
    }

    .hp-testi-avatar {
        width: 24px;
        height: 24px;
    }

    .hp-testi-info strong {
        font-size: 0.62rem;
    }

    .hp-testi-info span {
        font-size: 0.56rem;
    }

    .hp-testi-badge {
        width: 22px;
        height: 22px;
    }

    .hp-testi-badge i {
        font-size: 0.6rem !important;
    }
}
