/* ==========================================================================
   Testimonials — Video cards with floating effect
   ========================================================================== */

.ohwow-testimonials {
    padding: 80px 0;
}

/* ---- Header ---- */
.ohwow-testimonials__header {
    margin-bottom: 48px;
}

.ohwow-testimonials__tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    font-family: var(--ohwow-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    line-height: 1;
    margin-bottom: 20px;
}

.ohwow-testimonials__title {
    font-family: var(--ohwow-font-display, 'Outfit', sans-serif);
    font-size: 2.75rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* ---- Grid ---- */
.ohwow-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Card ---- */
.ohwow-testimonials__card {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    animation: ohwow-float 4s ease-in-out infinite;
}

.ohwow-testimonials__card:nth-child(2) {
    animation-delay: -1.3s;
}

.ohwow-testimonials__card:nth-child(3) {
    animation-delay: -2.6s;
}

.ohwow-testimonials__card:nth-child(3n+1) {
    animation-duration: 4.2s;
}

.ohwow-testimonials__card:nth-child(3n+2) {
    animation-duration: 3.8s;
}

.ohwow-testimonials__card:nth-child(3n+3) {
    animation-duration: 4.5s;
}

/* Card tag */
.ohwow-testimonials__card-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    font-family: var(--ohwow-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    line-height: 1;
    margin-bottom: 16px;
    align-self: flex-start;
}

/* ---- Media area ---- */
.ohwow-testimonials__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #d4d4d4;
    margin-bottom: 20px;
    cursor: pointer;
}

.ohwow-testimonials__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ohwow-testimonials__media:hover img {
    transform: scale(1.03);
}

/* Play button */
.ohwow-testimonials__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #BCED09;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.ohwow-testimonials__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(188, 237, 9, 0.4);
}

.ohwow-testimonials__play svg {
    width: 22px;
    height: 22px;
    color: #000;
    margin-left: 2px; /* optical centering for play triangle */
}

/* Video embedded state */
.ohwow-testimonials__media.is-playing img,
.ohwow-testimonials__media.is-playing .ohwow-testimonials__play {
    display: none;
}

.ohwow-testimonials__media.is-playing {
    aspect-ratio: 5 / 4;
}

.ohwow-testimonials__media iframe,
.ohwow-testimonials__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

/* ---- Info ---- */
.ohwow-testimonials__info {
    padding-top: 4px;
}

.ohwow-testimonials__name {
    font-family: var(--ohwow-font-display, 'Outfit', sans-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ohwow-testimonials__role {
    font-family: var(--ohwow-font-body, 'Inter', sans-serif);
    font-size: 0.875rem;
    color: #525252;
    margin: 0;
}

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

    .ohwow-testimonials__title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .ohwow-testimonials {
        padding: 48px 0;
    }

    .ohwow-testimonials__grid {
        grid-template-columns: 1fr !important;
    }

    .ohwow-testimonials__title {
        font-size: 1.75rem;
    }

    .ohwow-testimonials__card {
        animation: none;
    }
}
