/* Hero Slider Styles */
.hero-slider-wrapper {
    position: relative;
    height: 412px;
    overflow: hidden;
    background: #f0f2f5;
    border-bottom: 1px solid var(--border-color);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.slider-img-2 img {
    position: relative;
    z-index: 10;
    object-fit: contain;
    width: 63%;
    float: right !important;
    transition: transform 0.5s ease;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-slide.bom-upload .hero-overlay {
    background: radial-gradient(ellipse at center, #db4e39db 40%, #DB4E39 100%);
}

/* Redundant definition removed - managed below */

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
    color: white; /* Default for dark slides */
}

.hero-slide.product-showcase .hero-text {
    max-width: 650px;
    color: var(--secondary-color);
}

.hero-slide.product-showcase .hero-text h1,
.hero-slide.product-showcase .hero-text p {
    color: var(--secondary-color);
    text-shadow: none;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-slide.active .hero-text h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-slide.active .hero-text p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.bottom-banner {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bottom-banner, .bottom-banner span {
    transition: all 0.3s ease;
}

.bottom-banner:hover, .bottom-banner:hover span {
    color: #db4e39 !important;
}

.bottom-banner i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.bottom-banner:hover i {
    transform: translateX(5px) !important;
    color: #db4e39 !important;
}

.banner-flag {
    height: 16px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Nav Dots */
.hero-nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 19;
    display: flex;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dot.active {
    background: #DB4E39 !important;
    transform: scale(1.2);
    border-radius: 10px !important;
    width: 25px !important;
}

/* Second Slide Dots (Light Background) */
.active-slide-1 .nav-dot {
    background: rgba(4, 40, 83, 0.2);
}

.active-slide-1 .nav-dot.active {
    background: #db4e39; /* Primary color */
    transform: scale(1.2);
}

.product-showcase .nav-dot {
    background: rgba(0, 0, 0, 0.2);
}

.product-showcase .nav-dot.active {
    background: #DB4E39;
}

.hero-slide.product-showcase .hero-overlay {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.95) 35%,
        rgba(255, 255, 255, 0) 50%);
    z-index: 5;
}

/* Premium Border Light Effect */


.evobrain-showcase-v2 .pulse-glow { animation: v2-pulse 2s infinite; }

/* Secondary Link Hover Overrides for Premium Slides */
.evobrain-showcase-v2 .bottom-banner {
    transition: all 0.3s ease !important;
}

.evobrain-showcase-v2 .bottom-banner:hover,
.evobrain-showcase-v2 .bottom-banner:hover span {
    color: #db4e39 !important;
}

.evobrain-showcase-v2 .bottom-banner i {
    transition: transform 0.3s ease !important;
}

.evobrain-showcase-v2 .bottom-banner:hover i {
    transform: translateX(5px) !important;
    color: #db4e39 !important;
}

.product-showcase .hero-text h1 {
    /* Inherits 44px from home_premium.css */
    color: var(--secondary-color) !important; /* Brand Secondary Color as requested */
}

.product-showcase .hero-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-shadow: none;
    color: var(--secondary-color) !important;
}

.showcase-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 1.5rem;
}

.showcase-feature-left {
    width: 100%;
}

.showcase-feature-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    border-left: none;
    border-top: none;
    padding-top: 0;
}

.showcase-feature .cta-button {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 8px;
    background: #db4e39;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    width: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 78, 57, 0.35);
    text-decoration: none;
}

.showcase-feature .cta-button:hover {
    background: #c53e2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 78, 57, 0.5);
}

.showcase-feature .bottom-banner {
    margin-top: 0;
    color: #1a202c;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.showcase-feature .bottom-banner i {
    color: #db4e39;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-video-spacer {
    width: 35%;
    flex-shrink: 0;
}

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

/* Responsive */
@media (max-width: 991px) {
    .hero-slider-wrapper {
        height: auto;
        min-height: 400px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text {
        width: 100% !important;
        text-align: center;
        max-width: 100% !important;
    }
    .hero-content .container {
        flex-direction: column;
        padding-bottom: 30px;
    }
    .hero-video, .hero-product-image, .hero-video-spacer {
        width: 100% !important;
        margin-top: 15px;
    }
    .hero-product-image {
        order: -1;
        margin-bottom: 20px;
    }
    .hero-product-image img {
        transform: none !important;
        max-width: 80%;
    }
    .xls-feature, .showcase-feature {
        max-width: 100%;
        margin: 0 auto;
    }
    .showcase-feature {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .showcase-feature-right {
        justify-content: center;
    }
}
