/* Additional CSS to fix provider slider display and navigation - FIXED VERSION */

/* Ensure provider slider container is correctly set up for absolute positioning */
.provider-slider-container {
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: #0000008e;
    border-radius: 1rem;
    position: relative;
    overflow: hidden; /* Keep overflow hidden */
}

/* Main Swiper container adjustments - FIXED */
.provider-swiper {
    padding: 5px 40px;
    overflow: hidden !important; /* PERBAIKAN: Ganti dari visible ke hidden */
}

/* Swiper wrapper to ensure all slides are displayed correctly - FIXED */
.provider-swiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* PERBAIKAN: Hapus width: auto, biarkan Swiper mengatur */
}

/* Individual Swiper slides - FIXED */
.provider-swiper .swiper-slide {
    flex-shrink: 0 !important;
    /* PERBAIKAN: Hapus margin-right, gunakan spaceBetween di JavaScript */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: auto !important;
}

/* Provider logo item improvements */
.provider-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 10px 5px;
    filter: grayscale(70%);
    min-width: 80px;
    text-align: center;
}

.provider-logo-item.active,
.provider-logo-item:hover {
    transform: translateY(-3px);
    filter: grayscale(0%);
}

.provider-logo-placeholder {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--border-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.provider-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.provider-logo-item:hover .provider-logo {
    transform: scale(1.1);
}

.provider-name {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.provider-logo-item.active .provider-name,
.provider-logo-item:hover .provider-name {
    color: var(--text-light);
    font-weight: 600;
}

/* Swiper Navigation Buttons Positioning and Styling */
.provider-slider-container .swiper-button-next,
.provider-slider-container .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 11 !important;
    margin-top: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.provider-slider-container .swiper-button-prev {
    left: 5px !important;
}

.provider-slider-container .swiper-button-next {
    right: 5px !important;
}

.provider-slider-container .swiper-button-next:after,
.provider-slider-container .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

.provider-slider-container .swiper-button-next:hover,
.provider-slider-container .swiper-button-prev:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 767px) {
    /* PERBAIKAN: Gunakan selector yang konsisten */
    .provider-slider-container .swiper-button-next,
    .provider-slider-container .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    .provider-slider-container .swiper-button-next:after,
    .provider-slider-container .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    /* PERBAIKAN: Positioning yang tepat untuk setiap tombol */
    .provider-slider-container .swiper-button-prev {
        left: 3px !important;
    }
    
    .provider-slider-container .swiper-button-next {
        right: 3px !important;
    }
}


@media (max-width: 400px) {
    .provider-swiper .swiper-button-next,
    .provider-swiper .swiper-button-prev {
        display: none !important;
    }
}

/* Responsive adjustments for provider slider - FIXED */
@media (max-width: 480px) {
    .provider-swiper {
        padding: 5px 20px;
    }
    
    /* PERBAIKAN: Hapus margin-right dari semua breakpoint */
    .provider-logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .provider-name {
        font-size: 9px;
        max-width: 50px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    /* PERBAIKAN: Hapus margin-right */
    .provider-logo-placeholder {
        width: 65px;
        height: 65px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* PERBAIKAN: Hapus margin-right */
    .provider-logo-placeholder {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    /* PERBAIKAN: Hapus margin-right */
    .provider-logo-placeholder {
        width: 75px;
        height: 75px;
    }
}

@media (min-width: 1200px) {
    /* PERBAIKAN: Hapus margin-right */
    .provider-logo-placeholder {
        width: 80px;
        height: 80px;
    }
}

