.testimonials-section {
    padding: 0.5rem 1rem;
    background-color: var(--bg-alt);
}

/* ---- 3-Column Grid ---- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Rectangular Card ---- */
.testi-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(45, 49, 66, 0.06);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.testi-card:hover {
    background: var(--light-yellow);
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.12);
    transform: translateY(-3px);
}

.testi-card-top {
    background: linear-gradient(135deg, var(--accent, #FF8C42), #FFB366);
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

.testi-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.testi-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
}

.testi-card-stars {
    font-size: 1rem;
    color: #FF5E9B;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.testi-card-text {
    font-size: 0.9rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testi-card-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.testi-card-author strong {
    font-weight: 700;
    color: var(--fg);
    font-size: 0.9rem;
}
.testi-card-author span {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testi-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ---- Old Styles (kept for other pages) ---- */
.testimonial-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: fixed;
    text-align: center;
    margin-bottom: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.testimonial-top {
    background: linear-gradient(135deg, #FF8C42, #FFB366);
    padding: 40px 20px 80px;
    position: relative;
}

.testimonial-label {
    font-family: 'Dancing Script', cursive;
    color: #fff;
    font-size: 2.0rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-img-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
}

.testimonial-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-bottom {
    padding: 80px 30px 40px;
}

.testimonial-stars {
    color: #FF8C42;
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-stars.pink {
    color: #FF5E9B;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--fg-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    min-height: 100px;
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--fg);
    margin-bottom: 5px;
}

.testimonial-sub {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .testimonial-top {
        padding: 30px 15px 60px;
    }
    
    .testimonial-label {
        font-size: 2.2rem;
    }
    
    .testimonial-img-wrapper {
        width: 110px;
        height: 110px;
        bottom: -50px;
    }
    
    .testimonial-bottom {
        padding: 70px 20px 30px;
    }
}
