/*
Theme Name: Understrap Child
Theme URI: https://understrap.com
Description: Child theme for Understrap tailored for EFIVE Organics.
Author: Antigravity
Author URI: https://deepmind.google
Template: understrap
Version: 1.0.0
*/

/* Override parent theme link underline in entry content */
.entry-content p a:not(.btn) {
    text-decoration: none;
}

/* ============================================================
   Testimonial Section – "Customer Says" layout
   ============================================================ */

/* 3-column grid: card | image | card */
.efive-testi-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Testimonial Card */
.efive-testi-card {
    background: #f6f5f3;
    border-radius: 24px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    transition: box-shadow 0.4s ease;
}
.efive-testi-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Quote text */
.efive-testi-card__quote {
    font-family: sans-serif !important;
    font-style: normal !important;
    font-size: 1.25rem !important;
    line-height: 1.65;
    color: #1a1a1a;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* Author row */
.efive-testi-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

/* Avatar image */
.efive-testi-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.06);
}

/* Name & role */
.efive-testi-card__name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}
.efive-testi-card__role {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: #777;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Center Hero Image */
.efive-testi-hero {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    min-height: 340px;
}
.efive-testi-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Floating badge at bottom-center of image */
.efive-testi-hero__badge {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.efive-testi-hero__badge-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.efive-testi-hero__badge-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.efive-testi-hero__badge-role {
    font-family: 'Manrope', sans-serif;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    margin: 2px 0 0;
    line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .efive-testi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .efive-testi-hero {
        grid-column: 1 / -1;
        max-height: 360px;
        order: -1;
        margin-bottom: 8px;
    }
    .efive-testi-hero__img {
        max-height: 360px;
    }
}
@media (max-width: 640px) {
    .efive-testi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .efive-testi-hero {
        grid-column: 1;
        max-height: 280px;
    }
    .efive-testi-hero__img {
        max-height: 280px;
    }
    .efive-testi-card {
        padding: 28px 24px 24px;
        min-height: auto;
    }
    .efive-testi-card__quote {
        font-size: 0.95rem;
    }
}
