/**
 * Sweets Website
 * =============================================================
 * File: home-offers-slider.css
 * Description: Styles for the Home Offers Slider
 * =============================================================
 */

.c-home-offers-slider {
    position: relative;
    overflow: hidden;
}

.homeOffersSwiper {
    height: auto !important;
}

.homeOffersSwiper .swiper-wrapper {
    height: auto !important;
}

.c-home-offers__banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.c-home-offers__banner img {
    object-fit: contain; /* Changed from cover to contain to respect image aspect ratio */
    width: 100%;
    height: auto; /* Remove fixed height constraints */
}

.c-home-offers__overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Custom Navigation Styling */
.swiper-nav-custom {
    color: #fff !important;
    background: rgba(123, 31, 31, 0.5);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-nav-custom::after {
    font-size: 1.25rem !important;
}

.swiper-nav-custom:hover {
    background: rgba(123, 31, 31, 0.8);
    transform: scale(1.1);
}

/* Pagination Overrides */
.offers-pagination .swiper-pagination-bullet {
    background: #d67a18;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.offers-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #7b1d1d;
    width: 25px;
    border-radius: 5px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .c-home-offers-slider {
        padding: 3rem 0;
    }
    .c-home-offers__banner img {
        min-height: 200px;
    }
    .swiper-nav-custom {
        display: none; /* Hide nav on mobile */
    }
}
