﻿
body {
    /* 1. THE CONTAINER - This fixes the "cutting" issue */
    #mainSlider

{
    position: relative;
    width: 100%;
    /* Updated ratio to 1920 / 400 to match your specific source images */
    aspect-ratio: 1920 / 600;
    background: #fff;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
}

/* 2. IMAGE SETTINGS */
.customSlide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

    .customSlide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .customSlide img {
        width: 100%;
        height: 100%;
        /* 'cover' ensures no blank spaces on left/right */
        object-fit: cover;
        /* This keeps the top from being cut off if the screen is weirdly shaped */
        object-position: top center;
        display: block;
    }

/* 3. MOBILE SPECIFIC FIXES */
@media (max-width: 768px) {
    #mainSlider {
        /* Change the ratio slightly for mobile if the banner text looks too small */
        aspect-ratio: 16 / 9;
    }

    .sliderBtn {
        display: none !important; /* Arrows are hard to click on mobile, use swipe */
    }

    .slider-indicators {
        bottom: 10px;
    }
}

/* 4. BUTTONS & DOTS */
.sliderBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

    .sliderBtn:hover {
        background: rgba(0, 0, 0, 0.7);
    }

#prevBtn {
    left: 15px;
}

#nextBtn {
    right: 15px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #52fff5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slider-dot.active {
        background: 00fff1;
        transform: scale(1.3);
        box-shadow: rgb(0 0 0 / 50%);
    }
}
