/* ===== RESET ===== */
.zp-video-steps {
    box-sizing: border-box;
    background: transparent;
}

.zp-video-steps *,
.zp-video-steps *::before,
.zp-video-steps *::after {
    box-sizing: inherit;
}

.zp-video-steps h1,
.zp-video-steps h2,
.zp-video-steps h3,
.zp-video-steps h4,
.zp-video-steps h5,
.zp-video-steps h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== CONTAINER ===== */
.zp-vs-container {
    margin: 0 auto;
    width: 100%;
}

/* ===== CARD GRID ===== */
.zp-vs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CARD ===== */
.zp-vs-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 4px 4px 12px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    aspect-ratio: 343 / 443;
}

.zp-vs-card:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 20px 6px rgba(0, 0, 0, 0.15);
}

.zp-vs-card:focus-visible {
    outline: 2px solid #FFD200;
    outline-offset: 3px;
}

.zp-vs-card-image {
    position: absolute;
    inset: 0;
}

.zp-vs-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zp-vs-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        182deg,
        rgba(13, 14, 52, 0) 17%,
        rgba(13, 14, 52, 1) 99%
    );
    pointer-events: none;
}

/* ===== PLAY BUTTON ===== */
.zp-vs-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    pointer-events: none;
}

.zp-vs-card:hover .zp-vs-card-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.zp-vs-card-play img {
    display: block;
}

/* ===== CARD BODY ===== */
.zp-vs-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 24px 27px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zp-vs-card-step {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #FFD200;
    line-height: normal;
}

.zp-vs-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zp-vs-card-title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.zp-vs-card-desc {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

/* ===== MOBILE PAGINATION (hidden by default) ===== */
.zp-vs-pagination {
    display: none;
}

/* ===== LIGHTBOX (reuse from existing) ===== */
.zp-video-steps .zp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.zp-video-steps .zp-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.zp-video-steps .zp-lightbox-content {
    position: relative;
    width: 80%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    z-index: 1;
}

.zp-video-steps .zp-lightbox-content.is-vertical {
    width: min(420px, 92vw, calc(80vh * 9 / 16));
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 16;
}

.zp-video-steps .zp-lightbox > .zp-lightbox-close {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 16px) !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    appearance: none;
    background: #FF7A1A;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.zp-video-steps .zp-lightbox > .zp-lightbox-close svg {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.zp-video-steps .zp-lightbox > .zp-lightbox-close:hover {
    opacity: 0.85;
}

.zp-video-steps .zp-lightbox-video,
.zp-video-steps .zp-lightbox-video iframe,
.zp-video-steps .zp-lightbox-video video {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== RESPONSIVE: TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    .zp-vs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .zp-vs-card-title {
        font-size: 20px;
    }

    .zp-vs-card-desc {
        font-size: 16px;
    }

    .zp-vs-card-body {
        padding: 16px 20px;
    }
}

/* ===== RESPONSIVE: MOBILE (≤767px) ===== */
@media (max-width: 767px) {
    .zp-vs-grid {
        display: block;
    }

    .zp-vs-card {
        display: none;
        aspect-ratio: auto;
        min-height: 400px;
    }

    .zp-vs-card.active {
        display: block;
    }

    .zp-vs-pagination {
        display: flex;
        margin-bottom: 20px;
        background: rgba(13, 14, 52, 0.8);
        border-radius: 8px;
        padding: 6px;
        gap: 10px;
        justify-content: center;
    }

    .zp-vs-page {
        flex: 0 0 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        box-sizing: border-box;
        background: #EAEEF5;
        border: 1px solid #EAEEF5;
        color: #ffffff;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.2s, color 0.2s;
        padding: 0;
        min-width: 0;
    }

    .zp-vs-page.active {
        background-color: #FFD200;
        border: 1px solid var(--zp-vs-active-border-color, #0D0E34) !important;
        color: #0D0E34;
    }

    .zp-vs-page:focus-visible {
        outline: 2px solid #FFD200;
        outline-offset: 2px;
    }

    .zp-vs-card-body {
        padding: 16px 20px;
    }

    .zp-vs-card-title {
        font-size: 18px;
    }

    .zp-vs-card-desc {
        font-size: 15px;
    }

    .zp-vs-card-step {
        font-size: 11px;
    }

    .zp-video-steps .zp-lightbox-content {
        width: 95%;
    }

    .zp-vs-card-play img {
        width: 56px;
        height: 56px;
    }
}
