     @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

        * { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --primary: #0a2463;
            --primary-dark: #071940;
            --primary-light: #1e3a8a;
            --secondary: #d32f2f;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #f8f9fb;
            color: #111;
            overflow-x: hidden;
        }

        /* ===== HERO BANNER ===== */
        .brands-hero {
            background: radial-gradient(ellipse at 30% 50%, #1a3a8f 0%, #0d2060 40%, #071540 100%);
            position: relative;
            overflow: hidden;
            padding: 70px 20px 70px;
            text-align: center;
        }

        .brands-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
            background-size: 26px 26px;
            pointer-events: none;
        }


        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.12);
            border: 1.5px solid rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.92);
            padding: 8px 22px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-bottom: 24px;
            backdrop-filter: blur(8px);
        }

        .hero-title-white {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            color: #ffffff;
            font-size: clamp(30px, 5.5vw, 66px);
            line-height: 1.1;
            display: block;
        }

        .hero-title-yellow {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            color: #f5c518;
            font-size: clamp(30px, 5.5vw, 66px);
            line-height: 1.2;
            display: block;
        }

        .hero-subtitle {
            color: rgba(255,255,255,0.78);
            font-size: clamp(14px, 1.8vw, 18px);
            margin: 16px auto 38px;
            max-width: 540px;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 18px;
            flex-wrap: wrap;
            position: relative;
            z-index: 5;
        }

        .hero-stat-box {
            background: rgba(255,255,255,0.10);
            border: 1.5px solid rgba(255,255,255,0.18);
            border-radius: 18px;
            padding: 22px 44px;
            min-width: 150px;
            backdrop-filter: blur(12px);
            transition: transform 0.3s ease, background 0.3s;
        }

        .hero-stat-box:hover {
            background: rgba(255,255,255,0.18);
            transform: translateY(-4px);
        }

        .hero-stat-box .stat-num {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(26px, 3vw, 38px);
            font-weight: 800;
            color: #f5c518;
            display: block;
            line-height: 1;
        }

        .hero-stat-box .stat-label {
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            margin-top: 6px;
            font-weight: 500;
            display: block;
        }

        .breadcrumb-link {
            color: rgba(255,255,255,0.6);
            transition: color 0.2s;
            text-decoration: none;
            font-size: 13px;
        }
        .breadcrumb-link:hover { color: #fff; }

        /* ===== SEARCH BAR ===== */
        .search-wrap {
            position: relative;
            max-width: 420px;
        }
        .search-wrap input {
            width: 100%;
            padding: 12px 20px 12px 44px;
            border-radius: 50px;
            border: 2px solid #e5e7eb;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
            font-family: 'Inter', sans-serif;
            background: #fff;
        }
        .search-wrap input:focus { border-color: var(--primary); }
        .search-wrap svg {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
        }

        /* ===== BRAND CARDS ===== */
        .brand-card {
            background: #fff;
            border-radius: 16px;
            border: 2px solid #e8ecf4;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
            cursor: pointer;
            position: relative;
            text-decoration: none;
            display: block;
        }

        .brand-card:hover {
            transform: translateY(-6px) scale(1.01);
            border-color: var(--primary);
            box-shadow: 0 20px 50px rgba(10,36,99,0.15);
        }

        .brand-card .img-wrap {
            background: #f8f9fb;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 120px;
            padding: 20px;
            border-bottom: 1px solid #f0f2f8;
        }

        .brand-card .img-wrap img {
            max-height: 70px;
            max-width: 140px;
            object-fit: contain;
            transition: transform 0.3s ease;
            filter: grayscale(20%);
        }

        .brand-card:hover .img-wrap img {
            transform: scale(1.08);
            filter: grayscale(0%);
        }

        .brand-card .card-body {
            padding: 16px;
        }

        .brand-card h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
        }

        .brand-card p {
            font-size: 12px;
            color: #6b7280;
            line-height: 1.5;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .brand-card .view-products-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            padding: 5px 0;
            transition: gap 0.2s;
        }

        .brand-card:hover .view-products-tag { gap: 8px; }

        .brand-card .view-products-tag svg {
            width: 13px;
            height: 13px;
        }

        /* ===== HIDDEN CLASS ===== */
        .brand-item { transition: opacity 0.3s, transform 0.3s; }
        .brand-item.hidden-brand { display: none; }

        /* ===== PARTNER TYPES SECTION ===== */
        .partner-type-card {
            border-radius: 16px;
            padding: 28px;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        .partner-type-card:hover { transform: translateY(-4px); }

        /* ===== CTA SECTION ===== */
        .cta-section {
            background: linear-gradient(135deg, #071940 0%, #0a2463 60%, #1e3a8a 100%);
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            background-image:
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 50px 50px;
        }

        .no-results { display: none; }
        .no-results.show { display: flex; }

      @media (max-width: 640px) {
    .brands-hero {
        padding: 55px 14px 120px;
    }

    .hero-stats {
        gap: 14px;
        margin-bottom: 10px;
        z-index: 5;
    }

    .hero-stat-box {
        padding: 18px 28px;
        min-width: 165px;
    }

    .brands-hero::after {
        height: 70px;
        border-radius: 50% 50% 0 0 / 70px 70px 0 0;
        z-index: 1;
    }
}
/* Brands directory layout: keep page styling independent of CDN utilities. */
.brands-page .brands-hero { padding: 48px 24px 52px; }
.brands-page .brands-hero nav { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:26px; }
.brands-page .brands-hero nav svg { width:12px; height:12px; }
.brands-page .brands-hero h1 { margin:16px auto 0; max-width:920px; }
.brands-page .hero-badge { margin-bottom:0; font-size:11px; letter-spacing:1.6px; padding:8px 16px; }
.brands-page .hero-badge svg { width:16px; height:16px; flex-shrink:0; }
.brands-page .hero-title-white,
.brands-page .hero-title-yellow { font-size:clamp(28px, 3.8vw, 48px); line-height:1.18; }
.brands-page .hero-subtitle { max-width:620px; font-size:16px; line-height:1.7; margin:18px auto 28px; }
.brands-page .hero-stats { gap:12px; }
.brands-page .hero-stat-box { min-width:160px; padding:16px 24px; border-radius:12px; }
.brands-page .hero-stat-box .stat-num { font-size:27px; }
.brands-page .hero-stat-box .stat-label { color:#e0e7f4; font-size:12px; margin-top:8px; }
.brands-page .brands-toolbar { border-bottom:1px solid #e2e8f0; }
.brands-page .brands-toolbar > .container,
.brands-page #brandsGrid { max-width:1280px; margin-inline:auto; }
.brands-page .brands-toolbar > .container { padding:20px 24px; }
.brands-page .brands-toolbar > .container > div { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brands-page .search-wrap { width:360px; max-width:100%; }
.brands-page .search-wrap input { height:46px; border:1px solid #cbd5e1; border-radius:10px; color:#0f172a; }
.brands-page .search-wrap input:focus-visible { outline:3px solid #bfdbfe; outline-offset:2px; border-color:#0a2463; }
.brands-page #brandsGrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.brands-page .brand-item { min-width:0; }
.brands-page .brand-card { display:flex; flex-direction:column; height:100%; border:1px solid #e2e8f0; border-radius:16px; box-shadow:0 3px 10px rgba(15,23,42,.03); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.brands-page .brand-card:hover { transform:translateY(-4px); border-color:#a6b9dd; box-shadow:0 12px 28px rgba(10,36,99,.1); }
.brands-page .brand-card:focus-visible { outline:3px solid #2563eb; outline-offset:4px; }
.brands-page .brand-card .img-wrap { height:144px; padding:24px; background:#fff; flex-shrink:0; }
.brands-page .brand-card .img-wrap img { width:100%; height:82px; max-width:190px; max-height:82px; object-fit:contain; filter:none; }
.brands-page .brand-card .card-body { display:flex; flex-direction:column; flex:1; padding:20px; }
.brands-page .brand-card h3 { font-size:16px; line-height:1.4; margin:0 0 10px; }
.brands-page .brand-card p { font-size:13px; line-height:1.7; min-height:44px; margin:0 0 18px; color:#526175; }
.brands-page .brand-card .view-products-tag { margin-top:auto; padding-top:14px; border-top:1px solid #edf0f5; display:flex; justify-content:space-between; font-size:13px; }
@media (max-width:1024px) {
  .brands-page #brandsGrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
}
@media (max-width:700px) {
  .brands-page .brands-hero { padding:32px 20px 36px; }
  .brands-page .hero-subtitle { font-size:14px; }
  .brands-page .hero-stats { flex-wrap:nowrap; gap:8px; }
  .brands-page .hero-stat-box { min-width:0; flex:1; padding:14px 6px; }
  .brands-page .hero-stat-box .stat-num { font-size:22px; }
  .brands-page .hero-stat-box .stat-label { font-size:10px; }
  .brands-page .brands-toolbar > .container { padding:18px 16px; }
  .brands-page .brands-toolbar > .container > div { flex-direction:column; align-items:stretch; gap:12px; }
  .brands-page .search-wrap { width:100%; }
  .brands-page #brandsGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .brands-page .brand-card .img-wrap { height:110px; padding:16px; }
  .brands-page .brand-card .img-wrap img { height:64px; }
  .brands-page .brand-card .card-body { padding:14px; }
  .brands-page .brand-card h3 { font-size:14px; }
  .brands-page .brand-card p { font-size:12px; }
}
@media (max-width:380px) {
  .brands-page #brandsGrid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .brands-page .brand-card, .brands-page .brand-card img, .brands-page .hero-stat-box { transition:none; }
  .brands-page .brand-card:hover, .brands-page .brand-card:hover img, .brands-page .hero-stat-box:hover { transform:none; }
}
