/* =============================================================================
   Exclusive Widgets — Stacked Scroll Layout
   Brand colors:
     accent       #35AB7D   hover-accent  #1e7a52   accent-bg  rgba(53,171,125,.10)
     dark         #030C09   muted         #4A4D4C   faint      #6B7280
     surface      #F4F4F4   card          #ffffff   border     #E5E7EB
   ============================================================================= */

.ew-stacked-wrapper {
    position: relative;
    width: 100%;
}

.ew-stacked-container {
    position: relative;
    width: 100%;
}

.ew-stacked-slide {
    position: sticky;
    top: 0;
    width: 100%;
	height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
	padding: 60px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    overflow: hidden !important;
    z-index: 1;
}

.ew-stacked-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ew-stacked-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.ew-stacked-slide:not(.active) {
    transform: scale(0.95);
}

.ew-stacked-slide.active {
    transform: scale(1);
}

.ew-stacked-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 24px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Text content ────────────────────────────────────────────────────── */
.ew-stacked-text-content {
    max-width: 55%;
    display: flex;
    flex-direction: column;
	align-items: center;
	text-align: center;
    gap: 12px;
}

.ew-stacked-title {
    font-size: 32px;
    line-height: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
	margin: 0 !important;
}

.ew-stacked-text {
    font-size: 16px;
    line-height: 26px;
    color: #cccccc;
}

/* ── Image ───────────────────────────────────────────────────────────── */
.ew-stacked-image {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
}

.ew-stacked-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ew-stacked-slide.active .ew-stacked-image img {
    transform: scale(1.05);
}

/* ── Animations ──────────────────────────────────────────────────────── */
.ew-stacked-slide.active .ew-stacked-text-content {
    animation: fadeInUp 0.8s ease forwards;
}

.ew-stacked-slide.active .ew-stacked-image {
    animation: fadeInScale 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Responsive ──────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 991px) {
    .ew-stacked-slide {
        padding: 40px;
    }
    
    .ew-stacked-content {
        gap: 30px;
        padding: 10px;
    }
    
    .ew-stacked-text-content,
    .ew-stacked-image {
        max-width: 100%;
        width: 100%;
    }
    
    .ew-stacked-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .ew-stacked-text {
        text-align: center;
        font-size: 1rem;
    }
    
    .ew-stacked-image img {
        min-height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ew-stacked-slide {
        padding: 32px 0;
		height: 740px;
        align-items: center;
    }
    
    .ew-stacked-content {
        gap: 20px;
        padding: 5px;
        height: 100%;
        justify-content: center;
    }
    
    .ew-stacked-text-content {
        max-width: 100%;
        padding: 10px;
        text-align: center;
    }
    
    .ew-stacked-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .ew-stacked-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .ew-stacked-image {
        max-width: 100%;
        width: 80%;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .ew-stacked-image img {
        min-height: 343px;
        max-height: 450px;
        width: 100%;
        object-fit: cover;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ew-stacked-slide {
        padding: 12px 0;
		height: 730px !important;
    }
    
    .ew-stacked-content {
        gap: 16px;
    }
	
	.ew-stacked-text-content{
		width: 100%;
	}
    
    .ew-stacked-title {
        font-size: 28px;
		line-height: 34px;
    }
    
    .ew-stacked-text {
        font-size: 16px;
		line-height: 24px;
    }
    
    .ew-stacked-image {
        width: 90%;
        border-radius: 12px;
    }
    
    .ew-stacked-image img {
        min-height: 343px;
        max-height: 495px;
    }
}