/* ==========================================
   Brand Card Section
========================================== */

.brand-card-section {
    width: 100%;
    background-color: var(--web-bgcolor);
}

/* Header */
.brand-card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-bottom: 15px;
}

.brand-card-title {
    width: 100%;
    margin: 0;
    color: var(--web-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.brand-card-view-all {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--web-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.brand-card-view-all:hover {
    color: var(--web-primary);
    text-decoration: none;
    transform: translateY(-50%) translateX(3px);
}

.brand-card-view-all i {
    font-size: 11px;
}

/* Slider */
.brand-card-carousel {
    width: 100%;
    padding: 8px 3px 16px;
}

.brand-card-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.brand-card-carousel .owl-item {
    display: flex;
    height: auto;
}

.brand-card-slide {
    width: 100%;
    height: 100%;
    padding: 2px;
}

/* Main Card */
.brand-card-link {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    flex-direction: column;
    overflow: hidden;
    background: var(--web-secondary);
    border: 4px solid var(--web-secondary);
    border-radius: 22px;

    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-card-link:hover {
    transform: translateY(-5px);
    box-shadow:
        0 5px 0 rgba(0, 166, 176, 0.28),
        0 16px 30px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

/* Image */
.brand-card-image {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #edf4fb;
    border-radius: 17px 17px 0 0;
}

.brand-card-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    background: #edf4fb;
    transition: transform 0.35s ease;
}

.brand-card-link:hover .brand-card-image img {
    transform: scale(1.05);
}

/* Brand Name Footer */
.brand-card-name {
    display: flex;
    min-height: 52px;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

/* Owl Navigation */
.brand-card-carousel .owl-nav {
    margin-top: 10px;
    text-align: center;
}

.brand-card-carousel .owl-nav button.owl-prev,
.brand-card-carousel .owl-nav button.owl-next {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    color: #08bfc9 !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.brand-card-carousel .owl-nav button:hover {
    color: #ffffff !important;
    background: #08d7df !important;
}

.brand-card-carousel .owl-dots {
    display: none !important;
}

/* RTL */
html[dir="rtl"] .brand-card-view-all {
    right: auto;
    left: 0;
}

html[dir="rtl"] .brand-card-view-all:hover {
    transform: translateY(-50%) translateX(-3px);
}

/* Desktop */
@media (min-width: 1200px) {
    .brand-card-link {
        min-height: 265px;
    }

    .brand-card-image {
        height: 210px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .brand-card-title {
        font-size: 20px;
    }

    .brand-card-link {
        min-height: 220px;
        border-radius: 18px;
    }

    .brand-card-image {
        height: 170px;
        border-radius: 14px 14px 0 0;
    }

    .brand-card-name {
        min-height: 47px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brand-card-header {
        min-height: 36px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .brand-card-title {
        padding: 0 65px;
        font-size: 18px;
    }

    .brand-card-view-all {
        font-size: 12px;
        gap: 4px;
    }

    .brand-card-carousel {
        padding: 5px 2px 12px;
    }

    .brand-card-link {
        min-height: 185px;
        border-width: 3px;
        border-radius: 16px;
    }

    .brand-card-image {
        height: 140px;
        border-radius: 12px 12px 0 0;
    }

    .brand-card-name {
        min-height: 42px;
        padding: 7px 5px;
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .brand-card-title {
        padding: 0 58px;
        font-size: 16px;
    }

    .brand-card-image {
        height: 125px;
    }

    .brand-card-name {
        min-height: 39px;
        font-size: 11px;
    }
}