/* 
 * RONGINI HERO BANNER CSS
 * Modern Split-Layout Responsive Slider
 */

.editorial-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fdfbfb;
}

.editorial-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.ed-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ed-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* So the container grows to fit content if needed */
}

/* Base Layers */
.ed-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.ed-slide.active .ed-bg-image {
    transform: scale(1);
}

.ed-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Flex Container */
.ed-slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

/* Layout Modes */
.ed-layout-image-right {
    flex-direction: row;
}

.ed-layout-image-left {
    flex-direction: row-reverse;
}

/* Content Area */
.ed-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 50%;
    z-index: 3;
}

.ed-align-left { text-align: left; align-items: flex-start; }
.ed-align-center { text-align: center; align-items: center; }
.ed-align-right { text-align: right; align-items: flex-end; }

.ed-label {
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.ed-title {
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.ed-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 90%;
}

.ed-cta {
    display: inline-block;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    letter-spacing: 1px;
}
.ed-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Image Area */
.ed-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.ed-image-area img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

/* Navigation & Pagination */
.ed-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ed-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.ed-prev { left: 20px; }
.ed-next { right: 20px; }

.ed-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.ed-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.ed-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.ed-slide.active .animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}
.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}
.ed-slide.active .animate-fade-in {
    opacity: 1;
}

/* Delays for staggered effect */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive Mobile Layout */
@media (max-width: 992px) {
    .ed-slide-inner {
        padding: 2rem;
    }
    .ed-title {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .editorial-slider {
        min-height: 400px;
        height: auto;
    }
    .ed-slide {
        position: absolute;
        height: 100%;
    }
    .ed-slide.active {
        position: relative;
        height: auto;
    }
    
    .ed-slide-inner {
        flex-direction: column-reverse !important;
        padding: 1rem 1rem 3.5rem 1rem;
        justify-content: flex-end;
        text-align: center !important;
        align-items: center !important;
        gap: 0.5rem;
        height: auto;
    }
    
    .ed-content-area {
        max-width: 100%;
        align-items: center !important;
    }
    
    .ed-label {
        margin-bottom: 0.25rem;
        font-size: 12px !important;
        letter-spacing: 1px;
    }

    .ed-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }

    .ed-desc {
        max-width: 100%;
        font-size: 0.95rem !important;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .ed-cta {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .ed-image-area {
        margin-bottom: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .ed-image-area img {
        max-height: 280px;
    }
    
    .ed-nav {
        display: none;
    }
    
    .ed-pagination {
        bottom: 15px;
    }
}
