/* Custom styles for the [all_product_brands_carousel] shortcode */

/* Scope everything to .cb-brand-carousel-unique */

/* Ensure the container relative positioning for arrow placement */
.cb-brand-carousel-unique.carousel-container-posts {
    position: relative;
    padding: 0 40px;
    /* Add padding for arrows */
}

/* --- Navigation Arrows --- */
/* Target specific brand carousel buttons inside the new wrapper */
.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-prev.brand-carousel-prev,
.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-next.brand-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border-radius: 50%;
    color: var(--bp-primary, #6366f1);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

/* Specific positioning */
.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-prev.brand-carousel-prev {
    left: -20px;
    /* Adjust as needed */
}

.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-next.brand-carousel-next {
    right: -20px;
}

/* Hover Effects for Arrows */
.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-prev.brand-carousel-prev:hover,
.cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-next.brand-carousel-next:hover {
    background: var(--bp-primary, #6366f1);
    color: #ffffff;
    border-color: var(--bp-primary, #6366f1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
    opacity: 1;
}

/* --- Brand Cards --- */
/* Override generic .card styles inside this carousel only */
.cb-brand-carousel-unique .carousel-inner .card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Make them square-ish for logos */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    height: auto;
    min-height: 160px;
}

/* Hover Effect for Cards */
.cb-brand-carousel-unique .carousel-inner .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* Image containment */
.cb-brand-carousel-unique .carousel-inner .card .carousel-card-image {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.cb-brand-carousel-unique .carousel-inner .card img {
    max-width: 80%;
    max-height: 50%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Hover: Color + Scale */
.cb-brand-carousel-unique .carousel-inner .card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Heading Styling --- */
/* Ensure the standard header styles work here */
.cb-brand-carousel-unique .carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cb-brand-carousel-unique h2.purpose-heading {
    text-align: left;
    /* Default left */
    margin-bottom: 0 !important;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-prev.brand-carousel-prev {
        left: -10px;
    }

    .cb-brand-carousel-unique .brand-carousel-wrapper-relative .carousel-next.brand-carousel-next {
        right: -10px;
    }

    .cb-brand-carousel-unique {
        padding: 0 20px;
    }
}