/* POS Features Widget Styling - Full Screen Edition */

.sp-pos-features {
    /* Break out of Elementor Boxed limits */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    font-family: var(--primaryFont);
    padding: 0 40px 40px; /* Top padding removed to prevent double gaps */
}

.sp-pos-feature-item {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Reduced from 75vh for contained look */
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Reduced from 60px for tighter clustering */
    border-radius: 2rem;
    background: #f8fafc;
}

@media (min-width: 768px) {
    .sp-pos-feature-item {
        flex-direction: row;
    }

    .sp-pos-feature-item.reverse {
        flex-direction: row-reverse;
    }

    .sp-pos-media-side,
    .sp-pos-text-side {
        width: 50%;
        height: 100%;
    }
}

/* Media Side */
.sp-pos-media-side {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: var(--borderRadiusLg);
}

.sp-pos-media-side img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    transition: transform 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.sp-pos-slider,
.sp-pos-slider .swiper-wrapper,
.sp-pos-slider .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

.sp-pos-feature-item:hover .sp-pos-media-side img {
    transform: scale(1.05);
}

/* Text Side */
.sp-pos-text-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 3rem 1.5rem;
}

.sp-pos-text-content {
    width: 100%;
    max-width: 540px;
}

.sp-pos-features__header {
    text-align: center;
    padding: 0 0 30px; /* Reduced from 50px */
    max-width: 100%; /* Respect parent 1200px */
    margin: 0 auto;
}

.sp-pos-features__header .section-title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 800; /* Increased for bolder impact */
    color: #111827;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: var(--primaryFont);
    text-wrap: balance; /* Prevents awkward single-word widows/orphans */
    letter-spacing: -0.5px;
}

.sp-pos-features__header .section-desc {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.sp-pos-feature-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    /* 2.25rem = 36px */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #111827;
    font-family: var(--primaryFont);
}

.sp-pos-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nexros-teal);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.sp-pos-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Button Styles */
.sp-pos-btn-wrap {
    margin-top: 2.5rem;
}

.sp-pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--nexros-teal);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 4px;
    /* Slightly square like the image */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0;
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.sp-pos-btn:hover {
    background-color: #000000;
    color: var(--nexros-teal) !important;
    transform: translateY(-3px);
}

.sp-pos-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sp-pos-btn:hover i {
    transform: translateX(4px);
}

/* Checklist Styles */
.sp-pos-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-pos-checklist li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1.25rem;
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--primaryFont);
}

.sp-pos-checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--nexros-teal);
    font-size: 1.1rem;
}

/* Slider Overrides within Media Side */
.sp-pos-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.sp-pos-slider .counter {
    position: absolute;
    top: 40px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 700;
    z-index: 10;
}

.sp-pos-slider-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.sp-pos-slider-nav .nav-btn {
    background: #ffffff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: #111827;
    font-size: 1.2rem;
}

.sp-pos-slider-nav .nav-btn:hover {
    background: var(--nexros-teal);
    color: #000000;
    transform: translateY(-5px);
}

.sp-pos-slider .swiper-slide {
    height: 100%;
}

/* --- OPTIMIZED RESPONSIVE SECTION --- */

/* TABLET & SMALL LAPTOP (992px - 1199px) */
@media (max-width: 1199px) {
    .sp-pos-feature-item {
        min-height: 450px;
    }
}

/* TABLET PORTRAIT (768px - 991px) */
@media (max-width: 991px) {
    .sp-pos-features {
        padding: 0 20px 20px; /* Top padding removed */
    }

    .sp-pos-features__header {
        padding-bottom: 20px;
    }

    .sp-pos-feature-item {
        min-height: 400px;
        margin-bottom: 20px;
    }

    .sp-pos-text-side {
        padding: 40px !important;
    }

    .sp-pos-feature-title {
        font-size: 24px;
        margin-bottom: 1rem;
    }

    .sp-pos-description, 
    .sp-pos-checklist li {
        font-size: 1rem;
    }

    /* Adjust Slider Navigation for Tablet */
    .sp-pos-slider-nav .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* MOBILE OPTIMIZATION (< 767px) */
@media (max-width: 767px) {
    .sp-pos-feature-item {
        display: flex;
        flex-direction: column !important; /* Force media on top, text below */
        min-height: auto;
        border-radius: 1.5rem;
    }

    .sp-pos-media-side {
        width: 100%;
        height: 300px; /* Fixed height for mobile images */
    }

    .sp-pos-text-side {
        width: 100%;
        padding: 30px 20px !important;
    }

    .sp-pos-features__header .section-title {
        margin-bottom: 1rem;
    }

    .sp-pos-features__header .section-desc {
        font-size: 1.1rem;
    }

    .sp-pos-feature-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .sp-pos-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .sp-pos-checklist li {
        font-size: 0.95rem;
        padding-left: 30px;
        margin-bottom: 0.8rem;
    }

    .sp-pos-checklist li::before {
        font-size: 0.9rem;
    }

    /* Adjust Slider Elements for Mobile */
    .sp-pos-slider .counter {
        top: 20px;
        left: 20px;
        padding: 5px 15px;
        font-size: 0.8rem;
    }

    .sp-pos-slider-nav {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .sp-pos-slider-nav .nav-btn {
        width: 44px;
        height: 44px;
    }

    .sp-pos-btn-wrap {
        margin-top: 1.5rem;
        width: 100%;
    }

    .sp-pos-btn {
        width: 100%; /* Full width button on mobile for better UX */
        justify-content: center;
        padding: 12px 24px;
    }
}

/* SMALL MOBILE ( < 480px) */
@media (max-width: 480px) {
    .sp-pos-media-side {
        height: 240px;
    }
    
    .sp-pos-feature-title {
        font-size: 20px;
    }
}