/* Hero Slider Styles */

.hero-slider {
    position: relative;
    overflow: hidden;
    /* No margin-top - hero nempel dengan header */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 700px; /* Increased height - less cropping */
    min-height: 700px;
    max-height: 700px;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Fill entire area - no gaps */
    background-position: center center; /* Selalu center */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Overlay - Lighter for clearer image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

/* Hero Content - Better spacing to prevent overlap */
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Reduced padding */
    padding-bottom: 40px;
    height: 100%;
    display: flex;
    align-items: center; /* Center content vertically */
}

/* Force ALL text to WHITE for maximum visibility */
.hero-title,
.hero-subtitle,
.hero-badge,
.hero-stats,
.hero-stats h3,
.hero-stats p,
.hero-buttons a {
    color: #ffffff !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.7),
        0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Mobile Responsive - Improved */
@media (max-width: 768px) {
    /* No margin-top on mobile either */
    
    .slider-wrapper {
        height: 550px; /* Increased height on mobile */
        min-height: 550px;
        max-height: 550px;
    }
    
    .hero-content {
        padding-top: 60px; /* Less padding on mobile */
        padding-bottom: 30px;
    }
    
    /* Ensure background image fills on mobile */
    .hero-slide {
        background-position: center center;
        background-size: cover; /* Fill entire area */
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 24px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider-wrapper {
        height: 600px; /* Increased height on tablet */
        min-height: 600px;
        max-height: 600px;
    }
    
    .hero-content {
        padding-top: 90px;
    }
}

/* Large Screens - Consistent height */
@media (min-width: 1920px) {
    .slider-wrapper {
        height: 750px; /* Taller on large screens */
        min-height: 750px;
        max-height: 750px;
    }
}
