/* The Erickson Edge - Vibrant Light Studio UI (FULLY FIXED) */
.erickson-edge-section {
    padding: 120px 0;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
    color: #073F52;
}

/* Mesh Gradient Background */
.erickson-edge-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 183, 211, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.erickson-edge-section .container {
    display: flex !important;
    flex-direction: row; /* Desktop */
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Left Content */
.edge-sticky-content {
    flex: 0 0 40%;
    max-width: 40%;
}

.edge-badge {
    color: #E88755;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    display: block;
}

.edge-main-title {
    font-family: 'Wildstripe', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #073F52;
}

.edge-main-title span { color: #63B7D3; }

.edge-intro-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

/* Right Carousel Stage */
.edge-carousel-container {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    height: 500px;
}

.edge-insight-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.insight-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 30px 70px rgba(7, 63, 82, 0.08);
    border: 1px solid rgba(7, 63, 82, 0.03);
}

.insight-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.insight-slide[data-index="0"] { border-top: 8px solid #EBBC34; }
.insight-slide[data-index="1"] { border-top: 8px solid #63B7D3; }
.insight-slide[data-index="2"] { border-top: 8px solid #E88755; }

.insight-icon {
    width: 80px;
    height: 80px;
    background: #f8fbfd;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 35px;
}

.insight-slide h3 { font-family: 'Wildstripe', sans-serif; font-size: 2.4rem; margin-bottom: 20px; color: #073F52; }
.insight-slide h3 span { color: #63B7D3; }
.insight-slide p { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; line-height: 1.8; color: #666; }

/* Navigation */
.edge-carousel-nav {
    position: absolute;
    bottom: -70px;
    left: 0;
    display: flex;
    gap: 15px;
}

.nav-dot { width: 80px; height: 6px; background: #eee; border-radius: 3px; cursor: pointer; overflow: hidden; position: relative; }
.nav-progress { position: absolute; top: 0; left: 0; width: 0; height: 100%; background: #073F52; }

/* RESPONSIVE - THE NUCLEAR FIX */
@media (max-width: 992px) {
    .erickson-edge-section { padding: 60px 0 100px; }
    
    .erickson-edge-section .container {
        flex-direction: column !important; /* Force stack */
        gap: 50px !important;
        text-align: center !important;
        display: block !important; /* Switch to block to avoid flex row issues */
    }

    .edge-sticky-content {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 50px;
        display: block;
    }

    .edge-carousel-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 600px !important; /* Enforce height for absolute children */
        display: block;
        position: relative;
    }

    .edge-main-title { font-size: 2.8rem; }
    .insight-slide { padding: 40px 25px; }
    .edge-carousel-nav { bottom: -60px; left: 50%; transform: translateX(-50%); }
    .insight-icon { margin: 0 auto 30px; }
}

@media (max-width: 480px) {
    .edge-carousel-container { height: 750px !important; }
    .edge-main-title { font-size: 2.2rem; }
    .insight-slide h3 { font-size: 1.8rem; }
    .insight-slide p { font-size: 1rem; }
}
