/**
 * Brands Slider Styles
 */

.al-brands-slider-container {
    padding: 20px 90px 70px 90px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.al-brand-link {
    text-decoration: none !important;
    display: block;
    color: inherit !important;
    width: 100%;
    outline: none;
}

.al-brand-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 15px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    cursor: grab;
}

.al-brand-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border-color: #d0d0d0;
    transform: translateY(-5px);
}

.al-brand-logo-wrap {
    width: 100%;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.al-brand-card:hover .al-brand-logo-wrap img {
    filter: grayscale(0%);
}

.al-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: capitalize;
}

/* Swiper specific styles */
.al-brands-slider-container .swiper-pagination {
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    left: 0;
    z-index: 2;
}

.al-brands-slider-container .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.al-brands-slider-container .swiper-pagination-bullet-active {
    background: #FF0000;
    opacity: 1;
    width: 24px;
    height: 4px;
    border-radius: 99px;
}

.al-brands-slider-container .swiper-button-next,
.al-brands-slider-container .swiper-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: calc(50% - 25px); /* Dynamically center relative to the card track (half of vertical padding difference) */
    transform: translateY(-50%);
    margin-top: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.al-brands-slider-container .swiper-button-next {
    right: 25px;
}

.al-brands-slider-container .swiper-button-prev {
    left: 25px;
}

.al-brands-slider-container .swiper-button-next:hover,
.al-brands-slider-container .swiper-button-prev:hover {
    background: #333;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.al-brands-slider-container .swiper-button-next:after,
.al-brands-slider-container .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .al-brands-slider-container {
        padding: 20px 15px 45px 15px;
    }
    .al-brands-slider-container .swiper-button-next,
    .al-brands-slider-container .swiper-button-prev {
        display: none !important;
    }
    .al-brand-card {
        padding: 15px 10px;
    }
    .al-brand-logo-wrap {
        height: 45px;
        margin-bottom: 10px;
    }
}
