/* OWLgrip Testimonials — slider styles */

.owlgrip-test-section {
    font-family: 'Barlow', sans-serif;
    -webkit-font-smoothing: antialiased;
    --owlgrip-per-view: 3;
}

/* ── Section header ── */
.owlgrip-test-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
    margin-bottom: 48px;
}
.owlgrip-test-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FF8200;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.owlgrip-test-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: #FF8200;
}
.owlgrip-test-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.03;
    letter-spacing: -0.01em;
    color: #212721;
    margin: 0;
}
.owlgrip-test-title em {
    font-style: italic;
    font-weight: 300;
    color: #7F9C90;
}
.owlgrip-test-intro {
    font-size: 15px;
    color: #7F9C90;
    line-height: 1.7;
    margin: 0;
    align-self: end;
}

/* ── Slider shell ── */
.owlgrip-test-slider {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* ── Prev / Next — desktop side arrows ── */
.owlgrip-test-prev,
.owlgrip-test-next {
    flex-shrink: 0;
    width: 44px;
    background: #EEEEE8;
    border: 1px solid rgba(33,39,33,0.14);
    color: #212721;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, opacity 0.18s;
    padding: 0;
    outline: none;
}
.owlgrip-test-prev:hover,
.owlgrip-test-next:hover {
    background: #FF8200;
    border-color: #FF8200;
    color: #fff;
}
.owlgrip-test-prev:disabled,
.owlgrip-test-next:disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}
/* Only show side arrows when slider is needed */
.owlgrip-test-section:not(.owlgrip-test-needs-slider) .owlgrip-test-prev,
.owlgrip-test-section:not(.owlgrip-test-needs-slider) .owlgrip-test-next {
    display: none;
}

/* ── Viewport (clips overflow) ── */
.owlgrip-test-viewport {
    flex: 1;
    overflow: hidden;
    outline: 1px solid rgba(33,39,33,0.14);
    min-width: 0;
}

/* ── Track ── */
.owlgrip-test-track {
    display: flex;
    transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    user-select: none;
    gap: 1px;
    background: rgba(33,39,33,0.14);
}
.owlgrip-test-track:active { cursor: grabbing; }

/* ── Card ── */
.owlgrip-test-card {
    background: #EEEEE8;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
    flex: 0 0 calc(100% / var(--owlgrip-per-view) - 1px);
    min-width: 0;
    box-sizing: border-box;
}
.owlgrip-test-card:hover { background: #FFFFFF; }

/* ── Category tag ── */
.owlgrip-test-tag {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #154734;
    background: rgba(21,71,52,0.07);
    border: 1px solid rgba(21,71,52,0.14);
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 16px;
    align-self: flex-start;
}

/* ── Stars ── */
.owlgrip-test-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}
.owlgrip-test-stars span            { color: #FFB500; font-size: 13px; line-height: 1; }
.owlgrip-test-stars .owlgrip-star-empty { color: rgba(33,39,33,0.15); }

/* ── Quote ── */
.owlgrip-test-quote {
    font-size: 15px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    color: #212721;
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
    flex: 1;
}
.owlgrip-test-quote::before { content: '\201C'; }
.owlgrip-test-quote::after  { content: '\201D'; }

/* ── Author ── */
.owlgrip-test-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(33,39,33,0.10);
    margin-top: auto;
}
.owlgrip-test-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F7F7F4;
    border: 1px solid rgba(33,39,33,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #FF8200;
    flex-shrink: 0;
}
.owlgrip-test-name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    color: #212721;
}
.owlgrip-test-role {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    color: #7F9C90;
    margin-top: 2px;
}

/* ── Dots + mobile nav row ── */
.owlgrip-test-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

/* Mobile prev/next inside footer row (hidden on desktop) */
.owlgrip-test-prev-mob,
.owlgrip-test-next-mob {
    display: none;
}

.owlgrip-test-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.owlgrip-test-section:not(.owlgrip-test-needs-slider) .owlgrip-test-dots {
    display: none;
}
.owlgrip-test-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(33,39,33,0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    flex-shrink: 0;
}
.owlgrip-test-dot.is-active {
    background: #FF8200;
    transform: scale(1.3);
}
.owlgrip-test-dot:hover:not(.is-active) {
    background: rgba(33,39,33,0.4);
}

/* ════════════════════════════════════════
   MOBILE  (< 640px)
   - Side arrows hidden, replaced by row below
   - 1 card full width
   - Stacked header
════════════════════════════════════════ */
@media (max-width: 639px) {
    .owlgrip-test-header {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }
    .owlgrip-test-intro {
        max-width: 100%;
    }

    /* Hide side arrows on mobile */
    .owlgrip-test-prev,
    .owlgrip-test-next {
        display: none !important;
    }

    .owlgrip-test-card {
        padding: 24px 20px 20px;
    }

    /* Show inline prev/next buttons next to dots */
    .owlgrip-test-section.owlgrip-test-needs-slider .owlgrip-test-prev-mob,
    .owlgrip-test-section.owlgrip-test-needs-slider .owlgrip-test-next-mob {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #EEEEE8;
        border: 1px solid rgba(33,39,33,0.14);
        color: #212721;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: background 0.18s, color 0.18s;
    }
    .owlgrip-test-prev-mob:hover,
    .owlgrip-test-next-mob:hover {
        background: #FF8200;
        border-color: #FF8200;
        color: #fff;
    }
    .owlgrip-test-prev-mob:disabled,
    .owlgrip-test-next-mob:disabled {
        opacity: 0.28;
        cursor: default;
        pointer-events: none;
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 899px) {
    .owlgrip-test-header {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 32px;
    }
}
