/* ================= BRANDS SECTION ================= */
.brands-section {
    padding: 100px 5% 100px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.brands-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 201, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brands-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(111, 168, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brands-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.brands-header {
    text-align: center;
    margin-bottom: 60px;
}

.brands-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(165, 201, 255, 0.15), rgba(111, 168, 255, 0.1));
    border: 1px solid rgba(30, 95, 216, 0.2);
    border-radius: 30px;
    color: #0B2C6B;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.brands-badge::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #A5C9FF, #6FA8FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0B2C6B;
    font-weight: 700;
}

.brands-header h2 {
    color: #0B2C6B;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.brands-header h2 span {
    background: linear-gradient(135deg, #A5C9FF, #1E5FD8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brands-header p {
    color: #6B7280;
    font-size: clamp(16px, 2vw, 18px);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Category Tabs (Optional) */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.category-tab {
    padding: 12px 28px;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 30px;
    color: #4B5563;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #A5C9FF;
    background: rgba(165, 201, 255, 0.1);
    color: #0B2C6B;
}

.category-tab.active {
    background: linear-gradient(135deg, #A5C9FF 0%, #6FA8FF 100%);
    border-color: #1E5FD8;
    color: #0B2C6B;
    box-shadow: 0 4px 12px rgba(111, 168, 255, 0.35);
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 30px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Card */
.brand-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px solid #F3F4F6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: .5rem;
}


.brand-card:hover::before {
    opacity: 1;
}

.brand-card:hover {
    border-color: #1E5FD8;
    box-shadow: 0 12px 35px rgba(11, 44, 107, 0.15);
    transform: translateY(-8px);
}

/* Brand Logo */
.brand-logo {
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: contain;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.brand-card:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Brand Name (fallback if no logo) */
.brand-name {
    color: #0B2C6B;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.brands-stats {
    margin-top: 80px;
    padding: 50px;
    background: linear-gradient(135deg, #0B2C6B 0%, #1E5FD8 100%);
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brands-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 201, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-number {
    color: #FFFFFF;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #A5C9FF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #A5C9FF;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 500;
}

/* Hidden category items */
.brand-card[data-category] {
    display: none;
}

.brand-card[data-category].show {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(165, 201, 255, 0.15) 0%, rgba(111, 168, 255, 0.1) 100%);
}

.button {
    position: relative;
    background: white;
    color: #0B2C6B;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: clamp(13px, 1.5vw, 14px);
    font-weight: 600;
    border: 1px solid rgba(30, 95, 216, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    z-index: 1;
    /* display: block; */
    display: block;
    width: 150px;
    text-align: center;
    margin: 1rem auto;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
    .brands-section {
        padding: 60px 5% 70px;
    }

    .brands-header {
        margin-bottom: 40px;
    }

    .category-tabs {
        gap: 8px;
        margin-bottom: 35px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
        gap: 20px;
    }

    .brand-card {
        padding: 25px;
        min-height: 130px;
    }

    .brand-logo {
        max-width: 110px;
    }

    .brands-stats {
        margin-top: 60px;
        padding: 40px 30px;
        gap: 30px;
    }
}

@media(max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-card {
        padding: 20px;
        min-height: 110px;
    }

    .brand-logo {
        max-width: 90px;
    }

    .brands-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 25px;
    }
}