/**
 * Content Explorer Widget Styles
 * Premium Stacking Cards Implementation - White Theme refined
 */

.sp-content-explorer {
    padding: 0;
    margin: 0;
    background-color: #ffffff;
    font-family: var(--primaryFont);
    /* Break out of Elementor Boxed limits, matching Hero Banner & Product Grid */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.sp-content-explorer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-content-explorer .features-section {
    padding: 40px 0 0 0;
    min-height: auto;
    background-color: #ffffff;
    position: relative;
    overflow: visible !important;
    /* Critical for GSAP Pinning */
}

.sp-content-explorer .feature-caption {
    background: linear-gradient(24.92deg, #15997E 6.27%, #2ED8B6 94.96%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.sp-content-explorer .feature-heading {
    font-size: 40px !important;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.sp-content-explorer .feature-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.sp-content-explorer .btn-feature {
    background: linear-gradient(24.92deg, #15997E 6.27%, #2ED8B6 94.96%);
    color: white;
    padding: 0.85rem 1.85rem;
    border-radius: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(21, 153, 126, 0.25);
}

.sp-content-explorer .btn-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 153, 126, 0.4);
    color: white;
}

/* Stacking Cards Container */
.sp-content-explorer .feature-cards-stack {
    position: relative;
    padding-top: 40px;
}

.sp-content-explorer .feature-card-wrapper {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    color: #0f172a;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform-origin: center top;
    will-change: transform, opacity;
    max-width: 730px;
    min-height: 224px;
    height: auto;
    z-index: 1;
}

.sp-content-explorer .feature-card-wrapper:last-child {
    margin-bottom: 0;
}

.sp-content-explorer .feature-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sp-content-explorer .icon-box {
    background-color: #EBF7F5;
    color: #15997E;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sp-content-explorer .feature-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.015em;
}

.sp-content-explorer .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-content-explorer .feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 8px;
    color: #475569;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
}

.sp-content-explorer .feature-list li::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: #15997E;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Prevent Sidebar from jumping */
.sticky-lg-top {
    align-self: flex-start;
}

@media (min-width: 992px) {
    .js-stack-trigger {
        padding-bottom: 40px;
    }
}

@media (max-width: 991px) {
    .sp-content-explorer-container {
        padding: 0 24px;
    }

    .sp-content-explorer .features-section {
        padding: 24px 0 !important;
    }

    .sp-content-explorer .col-lg-5 {
        text-align: center;
        margin-bottom: 24px; /* Standardized to 24px */
    }

    .sp-content-explorer .feature-caption {
        margin-bottom: 24px !important;
    }

    .sp-content-explorer .feature-heading {
        margin-bottom: 24px !important;
    }

    .sp-content-explorer .feature-description {
        max-width: 100%;
        margin-bottom: 24px !important;
    }

    .sp-content-explorer .feature-card-wrapper {
        padding: 24px;
        margin-bottom: 24px;
        min-height: auto;
        transform: none !important;
        opacity: 1 !important;
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .sp-content-explorer-container {
        /* Inheriting 24px from 991px query */
    }

    .sp-content-explorer .feature-heading {
        font-size: 2.25rem;
    }

    .sp-content-explorer .feature-card-title {
        font-size: 1.35rem;
    }

    .sp-content-explorer .feature-card-header {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
}