/* --- Desktop Hero Slider --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    z-index: 2;
}

/* --- Navigation Buttons --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: #ffffff;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.carousel-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.current-indicator {
    background-color: #da291c;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
.mobile-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-slider-track {
    display: flex;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.mobile-slide-item,
.mobile-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

/* --- Hero Slider Visibility Toggles --- */

.hero-slider {
    display: block !important;
    height: 400px;
    max-height: 400px;
    background-image: url('../assets/banners/hero-slider-desktop-background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-slider-mobile {
    display: none !important;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 991px) {
    .hero-slider {
        display: none !important;
    }
    .hero-slider-mobile {
        display: block !important;
        position: relative;
        width: 100%;
        min-height: 380px;
        overflow: hidden;
    }
    .mobile-slider-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    .mobile-slider-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-slide-text {
        text-align: center;
        padding: 24px 16px 8px;
    }
    .mobile-slide-text h2 {
        font-size: 24px;
        font-weight: 700;
        color: #1a2733;
        margin-bottom: 8px;
    }
    .text-underline {
        width: 60px;
        height: 3px;
        background-color: #007bb5;
        margin: 0 auto 15px auto;
    }
    .mobile-slide-text p {
        font-size: 16px;
        color: #1a2733;
    }
    .mobile-slide-image {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 20px 20px;
    }
    .mobile-slide-image img {
        max-width: 90%;
        max-height: 180px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .mobile-slider-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    .mobile-slider-dots .dot {
        width: 25px;
        height: 6px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 4px;
        display: inline-block;
        transition: background-color 0.3s ease;
    }
    .mobile-slider-dots .dot.active {
        background-color: #da291c;
    }
}

@media (max-width: 767px) {
    .mobile-slide-text h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .mobile-slide-text h2 {
        font-size: 20px;
    }
    .mobile-slide-image img {
        max-height: 235px;
    }
}
