/**
 * Homepage Slider Styles
 */

.astra-homepage-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-no-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

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

.slide-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.slide-heading {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.slide-subheading {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.slide-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #e74c3c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slide-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

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

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .astra-homepage-slider {
        height: 500px;
    }

    .slide-heading {
        font-size: 42px;
    }

    .slide-subheading {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .astra-homepage-slider {
        height: 400px;
    }

    .slide-heading {
        font-size: 32px;
    }

    .slide-subheading {
        font-size: 16px;
    }

    .slide-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .astra-homepage-slider {
        height: 350px;
    }

    .slide-heading {
        font-size: 24px;
    }

    .slide-subheading {
        font-size: 14px;
        padding: 0 20px;
    }

    .slide-content {
        padding: 20px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }

    .slide-button {
        transition: none;
    }

    .slider-arrow {
        transition: none;
    }

    .slider-dot {
        transition: none;
    }
}
