/* Slider Styles */
.slider-container {
    position: relative;
    width: 80%;
    /* Changed from 100% */
    max-width: 1400px;
    margin: 0 auto;
    /* Center the slider */
    height: 600px;
    /* Increased from 500px */
    overflow: hidden;
    background: var(--dark);
    border-radius: 15px;
    /* Rounded corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Shadow for depth */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed from contain to cover */
    object-position: center;
    /* Center the image */
    background: var(--dark);
    border-radius: 15px;
    /* Match container */
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    animation: slideUp 0.8s ease-out;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 20px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Dark Theme Slider */
[data-theme="dark"] .slider-arrow {
    background: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .slider-arrow:hover {
    background: rgba(212, 175, 55, 0.5);
}

[data-theme="dark"] .slider-dot {
    background: rgba(212, 175, 55, 0.5);
}

[data-theme="dark"] .slider-dot.active {
    background: var(--gold);
}

/* Tablet Responsive */
@media (max-width: 968px) {
    .slider-container {
        width: 95%;
        /* Slightly wider on tablet */
        height: 450px;
        /* Increased from 400px */
    }

    .slide-content {
        bottom: 30px;
        left: 20px;
        right: 20px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .slider-container {
        width: 100%;
        height: 220px;
        /* Reduced height for landscape images */
        border-radius: 0;
        /* Full width looks better with square corners */
        border-left: none;
        border-right: none;
    }

    .slide img {
        object-fit: contain;
        /* Show full image */
        background: #000;
    }

    .slide-content {
        bottom: 15px;
        left: 10px;
        right: 10px;
    }

    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 5px;
        text-shadow: 2px 2px 4px #000;
    }

    .slide-content p {
        display: none;
    }
}