/* Moved out of Categories.aspx (was an inline <style> block) */
/* ═══════════════════════════════════════════════════
           CATEGORIES PAGE — ENTERPRISE B2B DIRECTORY v3
           Palette: #378B95 | #F5833D | #98CE44 | #17272D | #F4F8F9
           ═══════════════════════════════════════════════════ */

        .cat-page-bg { background: #F4F8F9; }

        /* ── Hero ── */
        .cat-hero {
            position: relative;
            overflow: hidden;
            isolation: isolate;
            color: #fff;
            padding: 26px 0 24px;
            background:
                radial-gradient(circle at 85% 15%, rgba(255,255,255,.24), transparent 20rem),
                radial-gradient(circle at 15% 85%, rgba(255,255,255,.15), transparent 18rem),
                linear-gradient(135deg, #d85c18, #f5833d);
        }
        .cat-hero:before {
            content: "";
            position: absolute;
            z-index: -2;
            width: 280px;
            height: 280px;
            inset-inline-start: -80px;
            top: -90px;
            border-radius: 50%;
            border: 1.5px solid rgba(255,255,255,0.40);
            box-shadow:
                0 0 0 35px rgba(255,255,255,0.16),
                0 0 0 75px rgba(255,255,255,0.08);
            pointer-events: none;
        }
        .cat-hero:after {
            display: none !important;
        }

        .cat-hero .container { position: relative; z-index: 2; }
        .cat-hero > .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }
        .cat-hero-left { flex: 1; min-width: 280px; }
        .cat-hero-bc {
            font-size: 12px;
            color: rgba(255,255,255,0.7);
            margin-bottom: 6px;
        }
        .cat-hero-bc a { color: rgba(255,255,255,0.85); text-decoration: none; }
        .cat-hero-bc a:hover { color: #fff; }
        .cat-hero-bc .sep { margin: 0 5px; }
        .cat-hero h1 {
            font-size: 34px;
            font-weight: 700;
            color: #fff;
            margin: 0 0 4px;
            line-height: 1.3;
        }
        .cat-hero-desc {
            font-size: 13px;
            color: rgba(255,255,255,0.88);
            margin: 0;
            line-height: 1.5;
            max-width: 520px;
        }
        /* ── Hero Category Bar Chart (Top 5 Sectors) ── */
        .cat-hero-chart-widget {
            backdrop-filter: blur(10px);
            min-width: 320px;
            max-width: 440px;
        }
        .cat-chart-header {
            font-size: 12px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .bl-chart-bars.cat-hero-bars {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            height: 94px;
            padding-bottom: 24px;
            position: relative;
        }
        .bl-chart-bars.cat-hero-bars .bar-col {
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            position: relative;
            cursor: pointer;
        }
        .bl-chart-bars.cat-hero-bars .bar {
            width: 100%;
            border-radius: 5px 5px 2px 2px;
            transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s, background 0.2s;
            position: relative;
        }
        .bl-chart-bars.cat-hero-bars .bar-1 { background: rgba(255,255,255,0.45); }
        .bl-chart-bars.cat-hero-bars .bar-2 { background: rgba(255,255,255,0.58); }
        .bl-chart-bars.cat-hero-bars .bar-3 { background: rgba(255,255,255,0.72); }
        .bl-chart-bars.cat-hero-bars .bar-4 { background: rgba(255,255,255,0.85); }
        .bl-chart-bars.cat-hero-bars .bar-5 { background: #ffffff; box-shadow: 0 0 12px rgba(255,255,255,0.8); }

        .bl-chart-bars.cat-hero-bars .bar-col:hover .bar {
            transform: scaleY(1.08);
            background: #ffffff !important;
            box-shadow: 0 0 16px rgba(255,255,255,0.9);
        }

        .bl-chart-bars.cat-hero-bars .bar-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-6px);
            background: #17272D;
            color: #fff;
            padding: 5px 9px;
            border-radius: 6px;
            font-size: 10.5px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s, transform 0.2s;
            z-index: 10;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            text-align: center;
        }
        .bl-chart-bars.cat-hero-bars .bar-col:hover .bar-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(-10px);
        }
        .bl-chart-bars.cat-hero-bars .bar-label {
            position: absolute;
            bottom: -20px;
            font-size: 9px;
            color: rgba(255,255,255,0.92);
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 600;
        }

        /* ── Toolbar ── */
        .cat-toolbar {
            background: #fff;
            border-bottom: 1px solid #e2e8ed;
            padding: 12px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .cat-toolbar .container {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        .cat-tb-search {
            flex: 1; min-width: 240px; max-width: none; position: relative;
        }
        .cat-tb-search input {
            width: 100%;
            height: 42px;
            padding: 0 38px 0 38px;
            border: 1px solid #d1d9de;
            border-radius: 8px;
            font-size: 14px;
            background: #F4F8F9;
            outline: none;
            color: #17272D;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }
        .cat-tb-search input:focus {
            border-color: #f5833d;
            box-shadow: 0 0 0 2px rgba(245,131,61,0.18);
            background: #fff;
        }
        .cat-tb-search input::placeholder { color: #8fa3ad; }
        .cat-tb-sico {
            position: absolute; top: 50%; transform: translateY(-50%);
            color: #8fa3ad; font-size: 14px; pointer-events: none; left: 12px;
        }
        [dir="rtl"] .cat-tb-sico { left: auto; right: 12px; }
        .cat-tb-clear {
            position: absolute; top: 50%; transform: translateY(-50%);
            right: 6px; background: none; border: none;
            color: #8fa3ad; font-size: 12px;
            cursor: pointer; padding: 5px 8px; border-radius: 4px;
            display: none;
        }
        .cat-tb-clear.visible { display: block; }
        .cat-tb-clear:hover { color: #c0392b; background: #fef2f2; }
        [dir="rtl"] .cat-tb-clear { right: auto; left: 6px; }
        .cat-tb-count {
            font-size: 13px; color: #5f7a85; white-space: nowrap;
        }
        .cat-tb-count strong { color: #f5833d; font-weight: 700; }

        /* ── Toolbar Left Stats Group & Icon-Only Actions ── */
        .cat-tb-left-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-inline-start: auto;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        .cat-tb-stats {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .cat-tb-stat-box {
            background: #ffffff;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            height: 42px;
            padding: 0 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
            white-space: nowrap;
            box-sizing: border-box;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        }
        .cat-tb-stat-box:hover {
            border-color: #f5833d;
            box-shadow: 0 4px 10px rgba(245,131,61,0.12);
            transform: translateY(-1px);
        }
        .cat-tb-stat-box strong {
            font-size: 13.5px;
            font-weight: 800;
            color: #f5833d;
            line-height: 1;
        }
        .cat-tb-stat-box span {
            font-size: 11px;
            font-weight: 600;
            color: #5f7a85;
            line-height: 1;
        }
        .cat-tb-actions { display: flex; gap: 6px; }
        .cat-tb-btn {
            width: 42px;
            height: 42px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #ffffff;
            border: 1px solid #d1d9de;
            color: #378b95;
            font-size: 15px;
            cursor: pointer;
            white-space: nowrap;
            box-sizing: border-box;
            transition: all 0.15s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        }
        .cat-tb-btn:hover {
            background: #378b95;
            color: #ffffff;
            border-color: #378b95;
            box-shadow: 0 4px 10px rgba(55,139,149,0.25);
        }
        .cat-tb-btn i { margin: 0; font-size: 14px; }

        /* ══════════════════════════════════════
           ACCORDION ROW LISTING
           ══════════════════════════════════════ */
        #content {
            position: relative;
            isolation: isolate;
        }
        #content > .container {
            position: relative;
            z-index: 2;
        }

        #content:before {
            content: "";
            position: absolute;
            z-index: -1;
            width: 480px;
            height: 480px;
            inset-inline-end: -180px;
            top: 20%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(245,131,61,.06) 0%, transparent 70%);
            pointer-events: none;
        }
        #content:after {
            content: "";
            position: absolute;
            z-index: -1;
            width: 550px;
            height: 550px;
            inset-inline-start: -240px;
            bottom: 10%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(245,131,61,.05) 0%, transparent 70%);
            pointer-events: none;
        }
        .cat-list { padding: 10px 0 40px; }

        /* ── Row ── */
        .cat-row {
            position: relative;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(10px);
            border: 1px solid #e2e8ed;
            border-radius: 12px;
            margin-bottom: 12px;
            overflow: hidden;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .cat-row:hover {
            border-color: #fcd5c0;
            box-shadow: 0 4px 16px rgba(245,131,61,0.08);
        }

        /* Row header — always visible */
        .cat-row-hd {
            position: relative; z-index: 1;
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 20px 28px;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s;
        }
        .cat-row-hd:hover { background: #fafcfd; }
        .cat-row-ico {
            width: 80px; height: 80px;
            border-radius: 14px;
            background: linear-gradient(135deg, #fff4ed, #fde4d4);
            padding: 8px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cat-row-ico img {
            width: 64px; height: 64px; object-fit: contain;
        }
        .cat-row-info { flex: 1; min-width: 0; }
        .cat-row-title {
            font-size: 18px; font-weight: 700;
            color: #17272D; margin: 0; line-height: 1.3;
        }
        .cat-row-title a { color: inherit; text-decoration: none; }
        .cat-row-title a:hover { color: #f5833d; }
        .cat-row-desc {
            font-size: 12.5px; color: #7a939d;
            margin-top: 3px; line-height: 1.45;
            max-width: 550px;
        }
        .cat-row-stats {
            display: flex; gap: 16px; margin-top: 5px;
            font-size: 12px; color: #7a939d; font-weight: 500;
        }
        .cat-row-stats strong { color: #f5833d; font-weight: 700; font-size: 14px; margin-inline-end: 3px; }
        .cat-row-catid {
            display: inline-block; margin-inline-start: 8px;
            font-size: 13px; color: #b0bec5; font-weight: 500;
        }

        /* Row numbering */
        .cat-row-num {
            width: 30px; height: 30px;
            border-radius: 50%;
            background: #F4F8F9;
            color: #8fa3ad;
            font-size: 13px; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            border: 1px solid #e2e8ed;
        }

        /* Tender count badge */
        .cat-row-badge {
            background: #fff4ed;
            color: #f5833d;
            font-size: 16px; font-weight: 800;
            padding: 8px 18px;
            border-radius: 24px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Browse CTA */
        .cat-row-cta {
            padding: 9px 18px;
            background: #f5833d;
            color: #fff;
            border: none;
            border-radius: 7px;
            font-size: 13px; font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.15s;
        }
        .cat-row-cta:hover { background: #e06822; color: #fff; }
        .cat-row-cta i { margin-inline-start: 5px; font-size: 11px; }

        /* Expand toggle arrow */
        .cat-row-arrow {
            font-size: 16px; color: #9cb3bd;
            flex-shrink: 0;
            transition: transform 0.25s, color 0.2s;
            width: 34px; height: 34px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 50%;
            background: #F4F8F9;
        }
        .cat-row.expanded .cat-row-arrow {
            transform: rotate(180deg); color: #f5833d;
            background: #fff4ed;
        }

        /* ── Subcategories panel ── */
        .cat-row-body {
            position: relative; z-index: 1;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: #fafcfd;
            border-top: 0 solid #e2e8ed;
        }
        .cat-row.expanded .cat-row-body {
            border-top: 1px solid #e9eff3;
            padding: 0;
        }
        .cat-row-subs {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .cat-row-subs li { display: block; }
        .cat-row-subs li a {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px;
            color: #53666d;
            font-size: 12.5px; font-weight: 500;
            text-decoration: none;
            background: transparent;
            border-bottom: 1px solid #f0f4f7;
            transition: background 0.12s, color 0.12s;
        }
        /* Light vertical line in middle between column 1 and column 2 */
        .cat-row-subs li:nth-child(odd) a {
            border-inline-end: 1px solid #e8eef2;
        }
        .cat-row-subs li a:hover {
            background: #fff8f4;
            color: #f5833d;
        }

        .cat-sub-text {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
            flex: 1;
        }
        .cat-sub-title {
            font-size: 13.5px;
            font-weight: 700;
            color: #17272D;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .cat-row-subs li a:hover .cat-sub-title {
            color: #f5833d;
        }
        .tg2-cat-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #fff4ed;
            color: #f5833d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
            margin-inline-end: 10px;
            transition: background 0.15s, color 0.15s;
        }
        .cat-row-subs li a:hover .tg2-cat-icon {
            background: #f5833d;
            color: #ffffff;
        }
        .cat-sub-desc-ico {
            font-size: 10px;
            color: inherit;
            opacity: 0.75;
            margin-inline-end: 4px;
            flex-shrink: 0;
        }
        .cat-sub-id {
            font-size: 11px;
            color: #9cb3bd;
            font-weight: 500;
        }
        .cat-sub-desc {
            font-size: 11.5px;
            color: #7a939d;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .cat-sub-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            margin-inline-start: 12px;
        }
        .cat-sub-count {
            background: #fff4ed;
            color: #f5833d;
            font-size: 12px; font-weight: 700;
            padding: 3px 10px;
            border-radius: 6px;
            flex-shrink: 0;
            transition: background 0.2s, color 0.2s;
        }
        .cat-row-subs li a:hover .cat-sub-count {
            background: #f5833d;
            color: #ffffff;
        }
        .cat-sub-hover-ico {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #e06822;
            color: #ffffff;
            font-size: 11px;
            opacity: 0;
            transform: translateX(8px);
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            margin-inline-start: 4px;
            box-shadow: 0 4px 10px rgba(224, 104, 34, 0.3);
        }
        html[dir="rtl"] .cat-sub-hover-ico, [dir="rtl"] .cat-sub-hover-ico {
            transform: translateX(-8px);
        }
        .cat-row-subs li a:hover .cat-sub-hover-ico {
            opacity: 1;
            transform: translateX(0);
        }

        /* ── No Results ── */
        .cat-no-results {
            text-align: center; padding: 60px 20px;
        }
        .cat-no-results i {
            font-size: 48px; color: #d1d9de; margin-bottom: 12px; display: block;
        }
        .cat-no-results h5 { color: #5f7a85; font-size: 16px; font-weight: 500; }

        /* ── Responsive ── */
        @media (max-width: 992px) {
            .cat-hero > .container { flex-direction: column; text-align: center; }
            .cat-hero-desc { max-width: none; }
            .cat-hero-stats { justify-content: center; }
            .cat-row-subs { grid-template-columns: repeat(2, 1fr); }
            .cat-row-cta { display: none; }
        }
        @media (max-width: 600px) {
            .cat-hero { padding: 16px 0 14px; }
            .cat-hero h1 { font-size: 18px; }
            .cat-hero-desc { font-size: 12px; }
            .cat-hero-stats { gap: 4px; }
            .cat-hs { padding: 7px 12px; min-width: 70px; }
            .cat-hs-num { font-size: 16px; }
            .cat-hs-lbl { font-size: 9px; }
            .cat-toolbar { position: relative; }
            .cat-tb-actions { width: 100%; justify-content: flex-end; }
            .cat-row-subs { grid-template-columns: 1fr; }
            .cat-row-hd { padding: 12px 14px; gap: 10px; }
            .cat-row-badge { font-size: 11px; padding: 4px 10px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .cat-row-body, .cat-row-arrow, .cat-row-cta,
            .cat-tb-search input { transition: none; }
        }
