/* Banner Slider Styles */

.banner-slider-wrapper {
    width: 100%;
    margin: 0 auto;
}

.banner-slider {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.swiper-wrapper {
    width: 100%;
}

/* Slide Content Container */
.banner-slide-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-height: 500px;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
}

.banner-slide-content:active {
    cursor: grabbing;
}

/* Left Side: Text Content */
.banner-slide-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.banner-slide-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: black;
}

.banner-slide-title-mobile {
    font-family: 'Roboto', sans-serif;
    display: none;
}

.banner-slide-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 30px 0;
}

.banner-slide-description p {
    margin: 0 0 15px 0;
}

.banner-slide-description p:last-child {
    margin-bottom: 0;
}

.banner-slide-button {
    margin-top: 0;
}

.banner-slide-button a {
    display: inline-block;
}

/* Right Side: Image */
.banner-slide-image {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.banner-img {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-img::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/banner-img-cover.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.banner-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}

/* Navigation Controls */
.banner-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

.banner-slider-button {
    background-color: #f8f8fa;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
    z-index: 10;
}

.banner-slider-button:hover {
    background-color: #F05046;
    color: black;
}

.banner-slider-button svg {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto;
}

.banner-slider-button-prev,
.banner-slider-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.banner-slider-button-prev {
    left: 20px;
}

.banner-slider-button-next {
    right: 20px;
}

/* Pagination Dots */
.banner-slider-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #777;
    border-radius: 50%;
    cursor: pointer;
    transform: scaleX(1);
    transform-origin: center;
    opacity: 0.6;
    will-change: transform, opacity, background-color;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, background-color 0.35s ease;
}

.swiper-pagination-bullet-active {
    background-color: black;
    transform: scaleX(2);
    opacity: 1;
    border-radius: 4px;
}

div.banner-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .banner-slide-content {
        min-height: 400px;
        height: 100%;
        gap: 0;
        padding: 0;
    }

    .banner-slide-text {
        padding: 30px;
    }

    .banner-slide-title {
        font-size: 2rem;
    }

    .banner-slide-description {
        font-size: 0.95rem;
    }

    .banner-img {
        height: 100%;
        width: 100%;
    }

    .banner-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/* Mobile Styles (below 768px) */
@media (max-width: 768px) {
    .banner-slide-content {
        max-height: none;
        flex-direction: column;
        min-height: auto;
        height: auto;
        gap: 0;
        padding: 0;
    }

    .banner-slide-text {
        width: 100%;
        order: 2;
        padding: 20px;
        flex-direction: column;
    }

    .banner-slide-image {
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 350px;
        order: 1;
        position: relative;
    }

    .banner-slide-title-desktop {
        display: none;
    }

    .banner-slide-title-mobile {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 15px 0;
        padding: 20px;
        background: #ffffffad;
        text-align: center;
        box-sizing: border-box;
        color: black;
        z-index: 999;
    }

    .banner-slide-description {
        font-size: 0.9rem;
    }

    .banner-img {
        height: auto;
        width: 100%;
        min-height: 250px;
        max-height: 350px;
    }

    div.banner-img img {
        height: auto;
        width: 100%;
        min-height: 250px;
        max-height: 350px;
        object-fit: cover;
    }

    /* Move controls to bottom on mobile */
    .banner-slider-controls {
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        flex-wrap: nowrap;
        margin-top: 0;
    }

    .banner-slider-button-prev,
    .banner-slider-button-next {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .banner-slider-pagination {
        flex: 1;
        margin: 0 15px;
    }
}

/* Small Mobile Styles (below 480px) */
@media (max-width: 480px) {
    .banner-slide-content {
        padding: 0;
        gap: 0;
    }

    .banner-slide-text {
        padding: 15px;
        flex-direction: column;
    }

    .banner-slide-image {
        height: auto;
        max-height: 250px;
        position: relative;
    }

    .banner-slide-title-desktop {
        display: none;
    }

    .banner-slide-title-mobile {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0 0 15px 0;
        padding: 15px;
        background: #ffffffad;
        text-align: center;
        box-sizing: border-box;
        color: black;
    }

    .banner-slide-description {
        font-size: 0.85rem;
    }

    .banner-img {
        height: auto;
        width: 100%;
        max-height: 250px;
    }

    div.banner-img img {
        height: auto;
        width: 100%;
        max-height: 250px;
        object-fit: cover;
    }

    .banner-slider-button {
        width: 35px;
        height: 35px;
    }

    .banner-slider-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Button Styling */
.banner-slide-button .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8c8f96;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid #8c8f96;
    font-weight: 600;
}

.banner-slide-button .btn:hover {
    background-color: transparent;
    color: #8c8f96;
}

.banner-slide-button .btn-primary {
    background-color: #8c8f96;
    color: #fff;
}

.banner-slide-button .btn-primary:hover {
    background-color: transparent;
    color: #8c8f96;
}

/* Swiper Additional Styles */
.swiper {
    padding: 0;
    margin: 0;
}

.swiper-slide {
    width: 100%;
    height: auto;
}

/* Fix for Swiper Autoplay */
.swiper-autoplay {
    display: none;
}