/* MGC Safety Nets - Slider Stylesheet */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
    animation: slideUp 1s ease;
}

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

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: white;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: white;
    color: #1a1a2e;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-dots .dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slider-container {
        max-height: 400px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 5px;
        gap: 10px;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        max-height: 300px;
    }
    
    .slide-content {
        padding: 50px;
    }
    
    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .cta-btn {
        padding: 10px 25px;
        font-size: 12px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Slide Animation Effects */
.slide.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Placeholder background gradients for slides when no image - Light overlay */
.slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(0,102,204,0.25), rgba(0,51,102,0.25));
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(255,102,0,0.25), rgba(204,51,0,0.25));
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(0,153,51,0.25), rgba(0,102,34,0.25));
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, rgba(102,0,204,0.25), rgba(51,0,102,0.25));
}

.slide:nth-child(5) {
    background: linear-gradient(135deg, rgba(204,0,102,0.25), rgba(102,0,51,0.25));
}

.slide:nth-child(6) {
    background: linear-gradient(135deg, rgba(255,153,0,0.25), rgba(204,102,0,0.25));
}