/**
 * DataFirefly Brand Carousel
 * @author DataFirefly
 */

.dfbc-section {
    padding: 40px 0;
    overflow: hidden;
}

/* Header */
.dfbc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.dfbc-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    font-style: italic;
}

.dfbc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border: 1px solid #bbb;
    border-radius: 20px;
    padding: 7px 18px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dfbc-view-all:hover {
    background-color: #232323;
    border-color: #232323;
    color: #fff;
    text-decoration: none;
}

/* Carousel wrapper — no side padding, arrows overlap */
.dfbc-carousel-wrapper {
    position: relative;
}

/* Brand card */
.dfbc-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 24px 18px;
    min-height: 110px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.dfbc-brand-card:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Logo */
.dfbc-brand-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Fallback text */
.dfbc-brand-name-fallback {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    word-break: break-word;
}

/* Navigation arrows — solid dark blue circles overlapping the carousel */
.dfbc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1b2a4a;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dfbc-nav:hover {
    background: #0f1d38;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.dfbc-nav svg {
    width: 18px;
    height: 18px;
}

.dfbc-nav-prev {
    left: -19px;
}

.dfbc-nav-next {
    right: -19px;
}

.dfbc-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination dots */
.dfbc-pagination {
    text-align: center;
    margin-top: 16px;
}

.dfbc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.dfbc-pagination .swiper-pagination-bullet-active {
    background: #1b2a4a;
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .dfbc-nav-prev {
        left: -16px;
    }

    .dfbc-nav-next {
        right: -16px;
    }
}

@media (max-width: 767px) {
    .dfbc-section {
        padding: 24px 0;
    }

    .dfbc-title {
        font-size: 1.15rem;
    }

    .dfbc-brand-card {
        min-height: 85px;
        padding: 16px 12px;
    }

    .dfbc-brand-logo {
        max-height: 45px;
    }

    .dfbc-nav {
        width: 32px;
        height: 32px;
    }

    .dfbc-nav svg {
        width: 15px;
        height: 15px;
    }

    .dfbc-nav-prev {
        left: -12px;
    }

    .dfbc-nav-next {
        right: -12px;
    }
}
