/* ─────────────────────────────────────────────
   Success Story Slider — Testimonial Layout
   No hardcoded font families.
───────────────────────────────────────────── */

/* ── Wrapper ── */
.ssw-wrapper {
    position: relative;
}

/* ── Header: centred text + arrows top-right ── */
.ssw-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.ssw-header-text {
    max-width: 560px;
    text-align: center;
}

.ssw-section-title {
    margin: 0 0 10px;
    line-height: 1.2;
}

.ssw-section-sub {
    margin: 0;
    line-height: 1.6;
}

.ssw-nav-arrows {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.ssw-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    padding: 0;
    color: inherit;
}

.ssw-nav-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
    flex-shrink: 0;
}

.ssw-nav-btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.ssw-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ── Viewport & Track ── */
.ssw-viewport {
    overflow: hidden;
    width: 100%;
}

.ssw-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    align-items: stretch;
}

/* ── Card ── */
.ssw-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* width set by JS */
}

/* ── Video / Media Area ── */
.ssw-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #2a2a2a;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

/* Pure dark background when no featured image is set */
.ssw-media.ssw-no-image {
    background-color: #1e1e1e;
}

.ssw-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay — sits on top of image */
.ssw-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* When no image, hide overlay so the plain dark bg colour shows cleanly */
.ssw-media.ssw-no-image .ssw-media-overlay {
    display: none;
}

/* Centred play wrap */
.ssw-play-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ssw-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    color: #fff;
    padding: 0;
}

.ssw-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.ssw-media[data-video]:hover .ssw-play-btn {
    background: rgba(255,255,255,0.35);
    transform: scale(1.08);
}

.ssw-play-label {
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0.9;
}

/* Name overlay — bottom left of video */
.ssw-media-name {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    z-index: 4;
    color: #fff;
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

/* clickable cursor on video */
.ssw-media[data-video] {
    cursor: pointer;
}

/* ── Card Body ── */
.ssw-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

/* ── Avatar + Name row ── */
.ssw-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ssw-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ssw-avatar-placeholder {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.ssw-avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

.ssw-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ssw-card-name {
    font-weight: 600;
    line-height: 1.3;
}

.ssw-card-role {
    font-size: 12px;
    opacity: 0.65;
    line-height: 1.3;
}

/* ── Quote ── */
.ssw-card-text {
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* ── Stars ── */
.ssw-stars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.ssw-star svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ssw-star.filled {
    color: #f5a623;
}

.ssw-star.empty {
    color: #ccc;
}

/* ── Dots ── */
.ssw-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ssw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.ssw-dot.active {
    background: #333;
    transform: scale(1.35);
}

/* ── Video Modal ── */
.ssw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ssw-modal.open {
    opacity: 1;
    pointer-events: all;
}

.ssw-modal-box {
    position: relative;
    width: min(860px, 92vw);
    background: #000;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ssw-modal.open .ssw-modal-box {
    transform: scale(1);
}

.ssw-modal-video-wrap {
    position: relative;
    padding-top: 56.25%;
}

.ssw-modal-video-wrap iframe,
.ssw-modal-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ssw-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ssw-modal-close:hover { opacity: 1; }

.ssw-modal-title {
    padding: 12px 18px;
    background: #111;
    color: #ccc;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ssw-nav-arrows {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 12px;
    }
    .ssw-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
