/* Homepage Autoplay Image Slider */
.slider {
    margin: 50px auto;
    width: 90%;
    max-width: 2000px;
    height: auto;
    aspect-ratio: 16 / 9; /* Proporção perfeita 16:9 widescreen */
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.slider input {
    display: none;
}

.slides {
    width: 400%;
    height: 100%; /* Respeita a altura do slider proporcional */
    display: flex;
}

.slide {
    width: 25%;
    position: relative;
    transition: 1s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sliding Logic */
#radio1:checked~.slides .first {
    margin-left: 0;
}

#radio2:checked~.slides .first {
    margin-left: -25%;
}

#radio3:checked~.slides .first {
    margin-left: -50%;
}

#radio4:checked~.slides .first {
    margin-left: -75%;
}

/* Bullet Navigation */
.manual-navigation {
    position: absolute;
    width: 100%;
    bottom: 20px;
    right: auto;
    left: 20px;
    display: flex;
    justify-content: center;
    z-index: 99;
}

.manual-btn {
    border: 2px solid #c40808;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 40px;
}

.manual-btn:hover {
    background-color: #c40808;
}

#radio1:checked~.manual-navigation .manual-btn:nth-child(1),
#radio2:checked~.manual-navigation .manual-btn:nth-child(2),
#radio3:checked~.manual-navigation .manual-btn:nth-child(3),
#radio4:checked~.manual-navigation .manual-btn:nth-child(4) {
    background-color: #c40808;
}

/* Responsividade Slider (Aspect-ratio reduz a altura proporcionalmente de forma automática) */


/* Pause/Play Button */
.slider-pause-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-pause-btn:hover {
    background-color: #c40808;
    border-color: #c40808;
    transform: scale(1.1);
}

/* SWIPER OVERRIDES */
.swiper-pagination-bullet-active { background-color: #c40808 !important; }
.swiper-button-next:after, .swiper-button-prev:after { color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); font-size: 2rem !important; }
.swiper-button-next:hover:after, .swiper-button-prev:hover:after { color: #c40808; }
