        /* 2026-09-24: tighten body padding-top on homepage only.
           Global rule in modern-ui.css:12 is `padding-top: 75px !important`
           to keep content clear of the ~60px fixed navbar plus a buffer.
           On the homepage that buffer shows as a visible gray strip between
           navbar and the dark hero (founder screenshot 2026-09-24). Reduce
           to match the actual navbar height so the hero abuts the nav
           seamlessly. Scoped to this page's inline <style>, does not affect
           other views. */
        body {
            padding-top: 62px !important;
            background-color: var(--gray-50, #f8f9fa);
        }
        @media (max-width: 768px) {
            body { padding-top: 56px !important; }
        }
        @media (max-width: 576px) {
            body { padding-top: 52px !important; }
        }

        /* Navigation Tab Cards */
        .nav-tab {
            height: auto;
            min-height: 60px;
            margin-top: 0;
            padding: 6px 4px;
        }

        /* Card Improvements */
        .card {
            background: var(--white, #ffffff);
            border: 1px solid var(--gray-200, #e9ecef);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
            border-color: var(--gray-300, #dee2e6);
        }

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

        /* Links */
        a {
            text-decoration: none;
            color: var(--gray-800, #343a40);
        }

        a:hover {
            color: var(--primary-color, #0066FB);
        }

        /* Button Bar Styling */
        .nav-button-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            padding: 16px;
            background: var(--white, #ffffff);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            margin-bottom: 20px;
        }

        /* Digital Manual Button */
        .btn-digital-manual {
            background: #1a5276;
            border: none;
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 10px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
            transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .btn-digital-manual:hover {
            background: #1f6fa0;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(26, 82, 118, 0.4);
            color: white;
        }

        .btn-digital-manual:active {
            transform: translateY(0);
        }

        .btn-digital-manual i {
            margin-right: 8px;
            font-size: 1rem;
        }

        /* Icon Card Improvements */
        .icon-card {
            background: var(--white, #ffffff);
            border-radius: 16px;
            padding: 20px 16px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--gray-200, #e9ecef);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .icon-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
            border-color: var(--primary-light, #4d94ff);
        }

        .icon-card .icon-wrapper {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            background: var(--gray-100, #f1f3f5);
            transition: all 0.3s ease;
        }

        .icon-card:hover .icon-wrapper {
            background: rgba(0, 102, 251, 0.1);
            transform: scale(1.05);
        }

        /* Section Dividers */
        .section-divider {
            background: var(--white, #ffffff);
            padding: 12px 20px;
            margin: 24px 0 16px 0;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .section-divider p {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--gray-800, #343a40);
        }

        /* Grid Improvements */
        .icon-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 16px;
            padding: 16px 0;
        }

        @media (max-width: 768px) {
            .icon-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }

            .icon-card {
                padding: 12px 8px;
            }

            .icon-card .icon-wrapper {
                width: 48px;
                height: 48px;
            }

            .btn-digital-manual {
                font-size: 0.8rem;
                padding: 10px 18px;
                min-height: 44px; /* Touch-friendly */
            }

            /* Button bar horizontal scroll on mobile */
            .nav-button-bar,
            .mx-auto.h4.d-block.text-center {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
                padding: 12px;
            }

            .nav-button-bar .btn,
            .mx-auto.h4.d-block.text-center .btn {
                font-size: 12px;
                padding: 10px 14px;
                min-height: 44px; /* Touch-friendly */
            }

            .section-divider {
                padding: 10px 16px;
                margin: 16px 0 12px 0;
            }

            .section-divider p {
                font-size: 1rem;
            }
        }

        @media (max-width: 576px) {
            .icon-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .icon-card {
                padding: 10px 6px;
            }

            .icon-card .icon-wrapper {
                width: 40px;
                height: 40px;
                margin-bottom: 8px;
            }

            .btn-digital-manual {
                font-size: 0.75rem;
                padding: 8px 14px;
            }

            .mx-auto.h4.d-block.text-center .btn {
                font-size: 11px;
                padding: 8px 12px;
            }

            .section-divider p {
                font-size: 0.9rem;
            }
        }

        /* Extra small phones */
        @media (max-width: 375px) {
            .icon-grid {
                gap: 6px;
            }

            .icon-card {
                padding: 8px 4px;
            }

            .icon-card .icon-wrapper {
                width: 36px;
                height: 36px;
            }

            .btn-digital-manual {
                font-size: 0.7rem;
                padding: 8px 12px;
            }

            .mx-auto.h4.d-block.text-center .btn {
                font-size: 10px;
                padding: 6px 10px;
            }
        }

        /* Hero Section — 2026-07-30: thinner + tighter typography now that
           the pill CTAs are gone and the primary actions live in Row 0 tiles
           below. Hero's job shrunk to: brand + tagline + let the search bar
           and tiles carry the CTA weight. */
        .home-hero {
            background: linear-gradient(135deg, #0a2342 0%, #1a5276 100%);
            padding: 12px 16px 10px;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .home-hero-heading {
            font-family: 'Source Serif Pro', Georgia, serif;
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.2;
            margin: 0 0 3px;
            letter-spacing: -0.4px;
        }
        .home-hero-sub {
            font-size: 12.5px;
            color: #dbeafe;
            line-height: 1.4;
            margin: 0;
            letter-spacing: 0.1px;
        }
        .home-hero-value {
            font-size: 12.5px;
            color: #ffffff;
            font-weight: 600;
            letter-spacing: 0.3px;
            margin: 0 0 14px;
            opacity: 0.9;
        }
        .home-hero-btns {
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .home-hero-btn {
            display: inline-flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .home-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); color: #fff; }
        /* 2026-07-30: hero CTAs restyled to match the mini book-cover palette
           family used in the tile rows below — purple (AI), emerald (rules),
           amber (gazettes). Each colour signals its destination + reads
           strongly against the dark-navy hero background. */
        .hero-btn-gpt {
            background: linear-gradient(135deg, #7c3aed, #5b21b6);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.40);
        }
        .hero-btn-laws {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.40);
        }
        .hero-btn-gazettes {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.40);
        }
        .hero-btn-gazettes:hover { color: #ffffff; }

        /* ── ExciseGPT Search Bar ── */
        .home-search-box {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            margin: -8px 0 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border: 1px solid #e8eaf6;
            position: relative;
        }
        .home-search-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 700;
            color: #1a237e;
        }
        .home-search-header i {
            font-size: 18px;
            color: #059669;
        }
        .home-search-field {
            display: flex;
            align-items: center;
            background: #f5f7ff;
            border: 2px solid #c5cae9;
            border-radius: 12px;
            padding: 4px 4px 4px 14px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .home-search-field:focus-within {
            border-color: #0066FB;
            box-shadow: 0 0 0 3px rgba(0,102,251,0.12);
        }
        .home-search-field input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 15px;
            padding: 10px 0;
            color: #1a1a2e;
            outline: none;
        }
        .home-search-field input::placeholder {
            color: #9e9e9e;
            font-size: 14px;
        }
        .home-search-field button {
            background: linear-gradient(135deg, #059669, #34d399);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.15s;
        }
        .home-search-field button:hover { transform: scale(1.05); }
        .home-search-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }
        .hss-chip {
            background: #f0f4ff;
            border: 1px solid #dde3f7;
            color: #3949ab;
            font-size: 11px;
            padding: 5px 10px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .hss-chip:hover {
            background: #3949ab;
            color: white;
            border-color: #3949ab;
        }
        .home-search-autocomplete {
            position: absolute;
            left: 16px;
            right: 16px;
            top: 86px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            z-index: 50;
            max-height: 200px;
            overflow-y: auto;
        }
        .hsa-item {
            padding: 10px 14px;
            font-size: 13px;
            color: #333;
            cursor: pointer;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hsa-item:last-child { border-bottom: none; }
        .hsa-item:hover { background: #f0f4ff; }
        .hsa-item i { color: #9e9e9e; font-size: 12px; }

        /* Search results inline */
        .home-search-results {
            margin-top: 12px;
            border-top: 1px solid #e8eaf6;
            padding-top: 10px;
            max-height: 400px;
            overflow-y: auto;
        }
        .home-search-results .hsr-loading {
            text-align: center;
            padding: 20px;
            color: #888;
            font-size: 13px;
        }
        .home-search-results .hsr-gpt-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: linear-gradient(135deg, #f5f3ff, #ede9fe);
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
        }
        .home-search-results .hsr-gpt-bar:hover { background: #ede9fe; }
        .home-search-results .hsr-gpt-bar i.fa-robot { color: #7c3aed; font-size: 18px; }
        .home-search-results .hsr-gpt-bar span { flex: 1; font-size: 13px; color: #344054; }
        .home-search-results .hsr-gpt-bar strong { color: #5b21b6; }
        .home-search-results .hsr-gpt-bar .hsr-arrow { color: #7c3aed; font-size: 12px; }

        @media (max-width: 375px) {
            .home-hero-heading { font-size: 17px; }
            .home-hero-sub     { font-size: 11.5px; }
            .home-hero         { padding: 10px 12px 8px; }
        }

        /* Section Headers */
        .home-section-header {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: #fff;
            background: linear-gradient(135deg, #1a365d, #2c5282);
            border-bottom: none;
            padding: 6px 14px !important;
            padding: 10px 16px;
        }

        .home-section-header i {
            color: rgba(255,255,255,0.8);
            margin-right: 6px;
        }

        /* Disclaimer Bar */
        .disclaimer-bar {
            margin-top: 12px;
            margin-bottom: 8px;
        }

        .disclaimer-content {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: #fef3cd;
            border: 1px solid #ffc107;
            border-radius: 10px;
            padding: 12px 14px;
            font-size: 12px;
            line-height: 1.5;
            color: #664d03;
        }

        .disclaimer-icon {
            font-size: 18px;
            color: #997404;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .disclaimer-content p {
            margin: 0;
            font-size: 11px;
        }
        /* 2026-09-24 cleanup: 200+ lines of dead CSS removed here. The
           old Quick Access Feature Row (.quick-access-row, .quick-access-item,
           .quick-access-icon, .quick-access-label) and the eight gradient
           tile classes (.qa-laws-cover, .qa-gr-cover, .qa-forms-cover,
           .qa-subscribe-cover, .qa-manual-cover, .qa-links-cover,
           .qa-recharge-cover, .qa-ai-cover) plus .qa-cover-image,
           .qa-mc-title/.qa-mc-sub/.qa-mc-badge, .qa-badge and the six
           .qa-digital/.qa-notif/.qa-brand/.qa-locate/.qa-links/.qa-gpt
           gradient utilities were all rendered obsolete by the flagship
           book-cover + newspaper 4-card layout (commits 0f86a0de and
           f1f8fda9). Zero DOM references remained; verified with grep
           before removal. */

        /* Expandable Useful Links Panel */
        #usefulLinksPanel {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            margin: 0 2px;
        }
        /* Useful Links Grid - matches quick-access style */
        .useful-links-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            padding: 10px 6px;
        }
        .useful-link-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none !important;
            color: #343a40;
            padding: 12px 4px 8px;
            border-radius: 14px;
            background: #fff;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        .useful-link-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            color: #343a40;
            text-decoration: none !important;
        }
        .useful-link-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 6px;
            font-size: 18px;
            color: white;
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        .useful-link-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 12px;
        }
        .useful-link-item:hover .useful-link-icon {
            transform: scale(1.1);
        }
        .useful-link-label {
            font-size: 10px;
            font-weight: 600;
            text-align: center;
            line-height: 1.2;
            color: #495057;
        }
        .useful-link-label-mr {
            display: block;
            font-size: 9px;
            font-weight: 700;
            text-align: center;
            line-height: 1.15;
            color: #495057;
            margin-top: 1px;
        }
        @media (max-width: 576px) {
            .useful-link-label-mr { font-size: 8px; }
        }
        .ul-elearn { background: linear-gradient(135deg, #6366f1, #818cf8); }
        .ul-gras { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
        .ul-ecr { background: linear-gradient(135deg, #10b981, #34d399); }
        .ul-scm { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
        .ul-online { background: linear-gradient(135deg, #0066FB, #4d94ff); }
        .ul-excise { background: linear-gradient(135deg, #8B0000, #A0522D); }
        .ul-gr { background: linear-gradient(135deg, #ec4899, #f472b6); }
        .ul-gazette { background: linear-gradient(135deg, #14b8a6, #5eead4); }
        @media (max-width: 576px) {
            .useful-links-grid { gap: 6px; padding: 8px 4px; }
            .useful-link-icon { width: 44px; height: 44px; border-radius: 10px; }
            .useful-link-item { padding: 10px 2px 6px; border-radius: 12px; }
            .useful-link-label { font-size: 9px; }
        }
        @media (max-width: 375px) {
            .useful-links-grid { gap: 4px; }
            .useful-link-icon { width: 40px; height: 40px; }
            .useful-link-label { font-size: 8px; }
            .useful-link-item { padding: 8px 2px 5px; }
        }

        /* Exam Prep Card */
        .exam-prep-card-home {
            background: white;
            border-radius: 14px;
            margin: 0 0 10px;
            box-shadow: 0 4px 16px rgba(3, 105, 161, 0.2);
            overflow: hidden;
            text-decoration: none;
            display: block;
            border: 1px solid rgba(3, 105, 161, 0.15);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .exam-prep-card-home:hover, .exam-prep-card-home:active {
            transform: translateY(-2px);
            box-shadow: 0 6px 22px rgba(3, 105, 161, 0.3);
            color: inherit;
            text-decoration: none;
        }
        .exam-prep-card-home .epc-header {
            background: linear-gradient(135deg, #0369a1, #0ea5e9);
            padding: 13px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .exam-prep-card-home .epc-icon {
            font-size: 32px;
            color: white;
            flex-shrink: 0;
        }
        .exam-prep-card-home .epc-title {
            font-size: 15px;
            font-weight: 700;
            color: white;
            margin: 0;
            line-height: 1.3;
        }
        .epc-badge-home {
            display: inline-block;
            background: rgba(255,255,255,0.25);
            color: white;
            font-size: 9px;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 8px;
            margin-left: 7px;
            vertical-align: middle;
            letter-spacing: 0.5px;
            animation: pulse 2s infinite;
        }
        .exam-prep-card-home .epc-sub {
            font-size: 12px;
            color: rgba(255,255,255,0.85);
            margin: 2px 0 0;
        }
        .exam-prep-card-home .epc-body {
            padding: 11px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .exam-prep-card-home .epc-chips {
            flex: 1;
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
        }
        .exam-prep-card-home .epc-chip {
            background: #e0f2fe;
            color: #0369a1;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        .exam-prep-card-home .epc-cta {
            background: linear-gradient(135deg, #0369a1, #0ea5e9);
            color: white;
            font-size: 13px;
            font-weight: 700;
            padding: 7px 16px;
            border-radius: 20px;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
        }
        @media (max-width: 400px) {
            .exam-prep-card-home .epc-cta {
                width: 100%;
                justify-content: center;
            }
        }

        /* Licensee + Officer Tool Cards */
        .tool-section-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 14px;
            text-decoration: none;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            margin-bottom: 10px;
            border: 2px solid transparent;
            transition: all 0.2s;
        }
        .tool-section-card:hover, .tool-section-card:active {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        }
        .tool-section-card .tsc-icon {
            width: 48px; height: 48px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px; flex-shrink: 0;
        }
        .tool-section-card .tsc-title {
            font-size: 15px; font-weight: 700; margin: 0 0 2px;
        }
        .tool-section-card .tsc-sub {
            font-size: 11px; opacity: 0.75; margin: 0;
        }
        .tsc-licensee { background: #e8eaf6; border-color: #1a237e33; color: #1a237e; }
        .tsc-licensee .tsc-icon { background: #1a237e; color: white; }
        .tsc-officer  { background: #fff3e0; border-color: #e6510033; color: #e65100; }
        .tsc-officer  .tsc-icon { background: #e65100; color: white; }
        .tsc-legal    { background: #ede7f6; border-color: #4a148c33; color: #4a148c; }
        .tsc-legal    .tsc-icon { background: #4a148c; color: white; }
        .tsc-revenue  { background: #fff8e1; border-color: #ff8f0033; color: #e65100; }
        .tsc-revenue  .tsc-icon { background: #ff8f00; color: white; }

