/* ══ Hide scrollbars ══ */
        .mega-col-cat,
        .mega-col-sub,
        .mega-col-sub2 {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .mega-col-cat::-webkit-scrollbar,
        .mega-col-sub::-webkit-scrollbar,
        .mega-col-sub2::-webkit-scrollbar { display: none; }
        .mega-parent { position: relative; }

        .mega-panel {
            display: none;
            position: absolute;
            /* FIX: top:100% + padding-top:8px = no gap,
               but panel visually still sits 8px below.
               The padding area is hoverable → no flicker. */
            top: 100%;
            padding-top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: min(440px, 96vw);
            background: transparent; /* transparent wrapper */
            z-index: 9999;
            /* no overflow:hidden here — inner div handles it */
            flex-direction: column;
        }

        /* The actual visible card sits inside */
        .mega-panel-inner {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 24px 64px rgba(0,0,0,.18);
            border: 1px solid #e8edf5;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: width .2s ease;
        }

        .mega-panel.has-sub2-open {
            width: min(660px, 96vw);
        }

        /* FIX 2: Show panel on hover of parent,
           AND keep it open when mouse is inside panel
           (using JS-controlled .is-open class instead
           of pure CSS :hover so X button can close it) */
        .mega-parent:hover .mega-panel,
        .mega-panel.is-open { display: flex; }

        .mega-panel.align-right { left: auto; right: 0; transform: none; }
        .mega-panel.align-left  { left: 0;    transform: none; }

        /* ── Header bar ── */
        .mega-header-bar {
            background: linear-gradient(135deg, #0a2463, #1a3a7a);
            color: #fff;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        .mega-header-bar span { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
        .mega-header-bar a    { font-size:11px; font-weight:700; color:#fbbf24; text-decoration:none; }

        /* FIX 3: X close button */
        .mega-close-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            border: none;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            line-height: 1;
            flex-shrink: 0;
            transition: background .15s;
            margin-left: 10px;
        }
        .mega-close-btn:hover { background: rgba(255,255,255,0.3); }

        .mega-header-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ── Body ── */
        .mega-body { display:flex; flex:1; overflow:hidden; }

        /* Col 1 — Categories */
        .mega-col-cat {
            width: 200px; min-width: 200px;
            background: #e8eef8;
            border-right: 1px solid #d0d9f0;
            padding: 10px 0;
            overflow-y: auto;
            max-height: 420px;
        }

        /* Col 2 — Subcategories */
        .mega-col-sub {
            width: 220px; min-width: 220px;
            background: #f8faff;
            border-right: 1px solid #e8edf5;
            padding: 10px 0;
            overflow-y: auto;
            max-height: 420px;
        }
        .cat-sub-panel        { display:none; flex-direction:column; }
        .cat-sub-panel.active { display:flex; }

        /* Col 3 — Sub2 */
        .mega-col-sub2 {
            width: 0;
            min-width: 0;
            background: #f0f4ff;
            padding: 0;
            overflow-y: auto;
            max-height: 420px;
            overflow: hidden;
            transition: width .18s ease, padding .18s ease;
        }
        .mega-col-sub2.visible {
            width: 220px;
            min-width: 220px;
            padding: 10px 0;
            overflow-y: auto;
        }

        .sub2-list-panel        { display:none; flex-direction:column; }
        .sub2-list-panel.active { display:flex; }

        /* Shared item style */
        .mega-sub-btn {
            display: flex; align-items: center; justify-content: space-between;
            width: 100%; padding: 10px 16px;
            font-size: 12.5px; font-weight: 600; color: #334155;
            cursor: pointer; transition: all .15s;
            border-left: 3px solid transparent;
            background: none;
            border-top: none; border-right: none; border-bottom: none;
            text-align: left;
            text-decoration: none;
        }
        .mega-sub-btn:hover,
        .mega-sub-btn.active {
            background: #fff; color: #0a2463;
            border-left-color: #c0392b;
        }
        .mega-sub-btn .count-badge {
            font-size: 10px; font-weight: 700;
            background: #e0e7ff; color: #0a2463;
            padding: 1px 7px; border-radius: 20px; flex-shrink: 0;
        }
        .mega-sub-btn.active .count-badge { background: #fee2e2; color: #c0392b; }

        /* Arrow for sub2 */
        .mega-sub-btn .sub2-arrow { font-size:14px; color:#cbd5e1; flex-shrink:0; }
        .mega-sub-btn.active .sub2-arrow { color:#c0392b; }

        /* ══════════════════════════════════════
           SEARCH DROPDOWN
        ══════════════════════════════════════ */
        .search-header-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:linear-gradient(135deg,#0a2463,#1a3a7a); color:#fff; }
        .search-header-bar span { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
        .search-header-bar a    { font-size:11px; font-weight:700; color:#fbbf24; text-decoration:none; }
        .search-item { display:flex; align-items:center; border-bottom:1px solid #f1f5f9; cursor:pointer; transition:background .15s; }
        .search-item:hover { background:#f8faff; }
        .search-item-img-wrap { width:68px; min-width:68px; height:68px; background:#f8faff; display:flex; align-items:center; justify-content:center; border-right:1px solid #f1f5f9; padding:8px; }
        .search-item-img-wrap img { width:100%; height:100%; object-fit:contain; }
        .search-item-body { flex:1; padding:10px 14px; min-width:0; }
        .search-item-category { font-size:10px; font-weight:700; color:#0a2463; text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; opacity:.7; }
        .search-item-name { font-size:13px; font-weight:700; color:#1e293b; line-height:1.35; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .search-item-sub  { font-size:11px; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .search-footer { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:#f8faff; border-top:1px solid #e8edf5; }
        .search-footer-left { font-size:11px; color:#94a3b8; }
        .search-footer-btn { font-size:12px; font-weight:700; color:#0a2463; background:#fff; border:1.5px solid #0a2463; padding:5px 14px; border-radius:20px; cursor:pointer; transition:all .2s; }
        .search-footer-btn:hover { background:#0a2463; color:#fff; }
        .search-empty { padding:32px 20px; text-align:center; }
        .search-empty-title { font-size:14px; font-weight:700; color:#475569; margin-bottom:6px; }
        .search-empty-sub   { font-size:12px; color:#94a3b8; }
        mark.sh { background:#fef08a; color:#1e293b; padding:0 2px; border-radius:2px; }

        /* ══════════════════════════════════════
           WIDE-GRID MEGA MENU — CATEGORY CARDS
           (added — this markup shipped in header.php's
           redesign but never got matching CSS, so every
           <svg> icon inside it rendered at its raw
           intrinsic size instead of the intended ~18px)
        ══════════════════════════════════════ */
        .mega-cat-card {
            border: 1px solid #eef1f8;
            border-radius: 12px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            transition: border-color .15s, box-shadow .15s;
        }
        .mega-cat-card:hover {
            border-color: #c7d3ee;
            box-shadow: 0 6px 18px rgba(10,36,99,.08);
        }
        .mega-cat-title {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            margin-bottom: 8px;
        }
        .mega-cat-icon {
            width: 34px; height: 34px; min-width: 34px;
            border-radius: 9px;
            background: #e8eef8;
            color: #0a2463;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .mega-cat-icon svg { width: 18px; height: 18px; }
        .mega-cat-name {
            font-size: 13.5px; font-weight: 800; color: #0a2463;
            flex: 1; line-height: 1.25;
        }
        .mega-cat-count {
            font-size: 10px; font-weight: 700;
            background: #f1f5f9; color: #64748b;
            padding: 2px 7px; border-radius: 20px; flex-shrink: 0;
        }
        .mega-cat-list { list-style: none; margin: 0 0 8px; padding: 0; }
        .mega-cat-list li { margin-bottom: 2px; }
        .mega-cat-list a {
            display: block; font-size: 12px; color: #475569; text-decoration: none;
            padding: 4px 2px 4px 44px;
            transition: color .15s;
        }
        .mega-cat-list a:hover { color: #c0392b; }
        .mega-cat-viewall {
            margin-top: auto; font-size: 11.5px; font-weight: 700; color: #0a2463;
            text-decoration: none; padding-left: 44px;
        }
        .mega-cat-viewall:hover { color: #c0392b; }

        /* ── Mega header bar: icon / titles / search / link ── */
        .mega-header-icon {
            width: 34px; height: 34px; min-width: 34px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(255,255,255,.15); border-radius: 9px; flex-shrink: 0;
        }
        .mega-header-icon svg { width: 18px; height: 18px; }
        .mega-header-titles { display: flex; flex-direction: column; margin-right: auto; flex-shrink: 0; }
        .mega-header-title { font-size: 13.5px; font-weight: 800; }
        .mega-header-sub { font-size: 10.5px; opacity: .75; font-weight: 600; }
        .mega-header-search {
            flex: 1; max-width: 320px; margin: 0 16px; display: flex; align-items: center;
            background: rgba(255,255,255,.12); border-radius: 20px; padding: 7px 14px; gap: 8px;
        }
        .mega-header-search svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
        .mega-header-search input {
            background: transparent; border: none; outline: none; color: #fff; font-size: 12.5px; width: 100%;
        }
        .mega-header-search input::placeholder { color: rgba(255,255,255,.6); }
        .mega-header-link { font-size: 11.5px; font-weight: 700; color: #fbbf24; text-decoration: none; white-space: nowrap; }

        /* ── Empty-search state ── */
        .mega-empty { text-align: center; padding: 56px 20px; grid-column: 1 / -1; }
        .mega-empty-icon { width: 44px; height: 44px; margin: 0 auto 12px; color: #cbd5e1; }
        .mega-empty-icon svg { width: 100%; height: 100%; }
        .mega-empty-title { font-size: 14px; font-weight: 700; color: #475569; margin-bottom: 4px; }
        .mega-empty-sub { font-size: 12px; color: #94a3b8; }
        .mega-empty-sub a { color: #0a2463; font-weight: 700; text-decoration: none; }

        /* ── Footer bar ── */
        .mega-footer {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 22px; background: #f8faff; border-top: 1px solid #e8edf5; flex-shrink: 0;
        }
        .mega-footer-text { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; font-weight: 600; }
        .mega-footer-icon { width: 16px; height: 16px; color: #0a2463; flex-shrink: 0; }
        .mega-footer-link {
            display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #0a2463; text-decoration: none;
            border: 1.5px solid #0a2463; padding: 6px 14px; border-radius: 20px; transition: all .15s;
        }
        .mega-footer-link:hover { background: #0a2463; color: #fff; }
        .mega-footer-link svg { width: 14px; height: 14px; }

        /* ══════════════════════════════════════
           MOBILE ACCORDION
        ══════════════════════════════════════ */
        .mob-sub-panel      { display:none; }
        .mob-sub-panel.open { display:block; }

        p{
            text-align: justify;
        }