.slider-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    user-select: none; /* Prevent text selection during drag */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider a {
    flex: 0 0 100%;
    width: 100%;
    display: block;
    position: relative; /* For positioning text over image */
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area while maintaining aspect ratio */
    display: block;
}

.slider-container button {
    position: absolute;
    top: 50%;
    display: flex;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transform: translateY(-50%);
    z-index: 1;
}

.slider-container .prev {
    left: 0;
}

.slider-container .next {
    right: 0;
}

.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Text block styles */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.slide-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

.slide-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: background 0.3s;
}

/* Mobile */
@media (max-width: 767px) {
    .slider-container {
        aspect-ratio: 768 / 768;
    }

    .slider a {
        aspect-ratio: 768 / 768;
    }

    .slider-container button {
        padding: 15px;
        font-size: 1rem;
    }

    .slide-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-subtitle {
        font-size: 1.2rem;
    }

    .slide-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .slider-container {
        aspect-ratio: 1024 / 800;
    }

    .slider a {
        aspect-ratio: 1024 / 800;
    }

    .slider-container button {
        padding: 20px;
    }

    .slide-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.5rem;
    }

    .slide-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .slider-container {
        aspect-ratio: 1920 / 600;
    }

    .slider a {
        aspect-ratio: 1920 / 600;
    }

    .slide-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .slide-title {
        font-size: 3rem;
    }

    .slide-subtitle {
        font-size: 1.5rem;
    }

    .slide-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .slide-button:hover {
        background: #218838;
    }
}