/* PMI HomeV2 — testimonial.css */
/* Pixel-matched to screenshot: pill label, play button, orange bar above name, navy subtitle, pill dots */

.v2-testimonial, .v2-testimonial *, .v2-testimonial *::before, .v2-testimonial *::after { box-sizing: border-box; margin: 0; padding: 0; }

.elementor-widget-pmiv2_testimonial .elementor-widget-container { padding: 0 !important; margin: 0 !important; }
.elementor-section:has(.v2-testimonial), .e-con:has(.v2-testimonial) {
    padding: 0 !important;
    --padding-top: 0 !important; --padding-bottom: 0 !important;
    --padding-left: 0 !important; --padding-right: 0 !important;
}

.v2-testimonial {
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    padding: 72px 0;
}

.v2-testimonial__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.v2-testimonial__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
}

.v2-testimonial__header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pill badge — matches screenshot exactly */
.v2-testimonial__label-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

.v2-testimonial__heading {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.v2-testimonial__h-dark   { color: #111827; }
.v2-testimonial__h-orange { color: #f97316; }

/* Arrow buttons */
.v2-testimonial__arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 6px;
}

.v2-testimonial__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.v2-testimonial__arrow:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    transform: scale(1.08);
}

.v2-testimonial__arrow:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

/* ── Slider ── */
.v2-testimonial__slider { position: relative; }

.v2-testimonial__slide {
    display: none;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: flex-start;
}

.v2-testimonial__slide.is-active {
    display: grid;
    animation: slideIn 0.4s ease both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Photo card ── */
.v2-testimonial__photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 3.8;
    background: #2a3a5c;
    flex-shrink: 0;
}

.v2-testimonial__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.v2-testimonial__photo-card:hover .v2-testimonial__photo { transform: scale(1.04); }

.v2-testimonial__photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0f2d58 0%, #1a8fe8 100%);
}

/* Play button */
.v2-testimonial__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    z-index: 3;
}

.v2-testimonial__play-btn:hover {
    background: rgba(249,115,22,0.75);
    transform: translate(-50%, -50%) scale(1.1);
}

.v2-testimonial__play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.v2-testimonial__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
}

/* Photo overlay */
.v2-testimonial__photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 18px;
    background: linear-gradient(to top, rgba(10,18,40,0.96) 0%, rgba(10,18,40,0.3) 80%, transparent 100%);
    z-index: 2;
}

/* Orange bar above label — matches screenshot */
.v2-testimonial__photo-orange-bar {
    width: 28px;
    height: 2.5px;
    background: #f97316;
    border-radius: 2px;
    margin-bottom: 8px;
}

.v2-testimonial__person-role-lbl {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.v2-testimonial__person-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 3px;
}

.v2-testimonial__person-title {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}

/* ── Quote content ── */
.v2-testimonial__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
}

/* Quote icon — light peach/orange as in screenshot */
.v2-testimonial__quote-icon {
    font-size: 52px;
    line-height: 0.7;
    color: rgba(249,115,22,0.3);
    font-family: Georgia, serif;
    display: block;
    letter-spacing: -4px;
}

/* Subtitle — dark navy bold, matches screenshot */
.v2-testimonial__subtitle {
    font-size: 22px;
    font-weight: 800;
    color: #1a2844;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.v2-testimonial__quote {
    font-size: 16px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.8;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0;
}

.v2-testimonial__quote p { margin: 0; }

/* Separator line */
.v2-testimonial__divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

/* Footer row */
.v2-testimonial__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.v2-testimonial__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.v2-testimonial__date svg { flex-shrink: 0; color: #f97316; }

/* Read Full Story — bold dark blue matches screenshot */
.v2-testimonial__story-link {
    font-size: 13px;
    font-weight: 700;
    color: #1a2844;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.v2-testimonial__story-link:hover { color: #f97316; gap: 8px; }
.v2-testimonial__story-link:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; border-radius: 2px; }

/* ── Dots — pill shaped as in screenshot ── */
.v2-testimonial__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-testimonial__dot {
    height: 8px;
    border-radius: 4px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, width 0.3s ease;
    width: 24px;
}

.v2-testimonial__dot.is-active {
    background: #f97316;
    width: 32px;
}

.v2-testimonial__dot:disabled {
    cursor: default;
    opacity: 0.5;
}

.v2-testimonial__dot:not(.is-active):not(:disabled):hover { background: #9ca3af; }
.v2-testimonial__dot:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .v2-testimonial__slide.is-active { grid-template-columns: 300px 1fr; gap: 36px; }
}

@media (max-width: 900px) {
    .v2-testimonial__slide.is-active { grid-template-columns: 1fr; gap: 28px; }
    .v2-testimonial__photo-card { aspect-ratio: 4/3; max-width: 360px; }
    .v2-testimonial__heading { font-size: 28px; }
}

@media (max-width: 640px) {
    .v2-testimonial { padding: 48px 0; }
    .v2-testimonial__heading { font-size: 24px; }
    .v2-testimonial__subtitle { font-size: 17px; }
    .v2-testimonial__header { flex-direction: column; align-items: flex-start; }
    .v2-testimonial__photo-card { max-width: 100%; }
    .v2-testimonial__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
    .v2-testimonial__inner { padding: 0 16px; }
    .v2-testimonial__play-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
