/* ========================================
   Nheoweb Mobile Slider - Coverflow Style 
   ======================================== */

.nheo-mobile-slider-wrapper {
    position: relative;
    width: 100%;
    /* Add enough vertical padding to accommodate absolute titles and pagination */
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =======================================
   SWIPER & SLIDES
   ======================================= */
.nheo-mobile-swiper {
    width: 100%;
    overflow: visible !important;
    /* Removed padding-bottom so Swiper's height perfectly matches the screen item */
}

.nheo-mobile-swiper .swiper-wrapper {
    overflow: visible;
}

.nheo-slide-item {
    position: relative;
    /* Anchor for absolute title */
    display: flex;
    justify-content: center;
    width: 260px;
    /* Center align within Swiper if needed */
    margin: 0 auto;
    transition: transform 0.6s ease;
}

/* Frame for images (app screens) */
.nheo-slide-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background-color: #fff;
    border-radius: 28px;
    overflow: hidden;
    padding: 12px;
    /* Pad for the static frame's fake border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition-property: filter, opacity;
}

.nheo-slide-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* =======================================
   STATIC CENTER PHONE FRAME
   ======================================= */
.nheo-static-phone-frame {
    position: absolute;
    /* Perfect absolute center of the wrapper */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    /* Should match slide width */
    aspect-ratio: 9 / 19.5;
    background: transparent;
    border-radius: 36px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px #475569,
        inset 0 0 0 12px #1e293b;
    pointer-events: none;
    /* Let clicks pass to swiper */
    z-index: 10;
}

.nheo-static-notch {
    position: absolute;
    top: 12px;
    /* Accommodate the inset border */
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.nheo-static-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 5px;
    background-color: #475569;
    border-radius: 10px;
}

/* ===== SLIDE STATES (B1/B2 scaling) ===== */
.swiper-slide {
    opacity: 1 !important;
}

/* Ensure B1 & B2 exactly equal size using CSS transform instead of Coverflow math */
.swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.85);
    /* Scales B1 and B2 down cleanly */
}

.swiper-slide-active {
    transform: scale(1);
    z-index: 5;
}

/* Title Below Phone (Absolute so it doesn't skew center height) */
.nheo-slide-title {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    /* Allow long titles */
    margin-top: 18px;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.swiper-slide-active .nheo-slide-title {
    color: #ffffff;
    font-weight: 600;
}

/* Pagination Dots */
.nheo-swiper-pagination {
    bottom: -60px !important;
    text-align: center;
    position: absolute;
    left: 0;
    width: 100%;
}

.nheo-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: rgba(185, 185, 185, 0.3);
    opacity: 1;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.nheo-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--e-global-color-primary);
    width: 22px;
    border-radius: 10px;
}