:root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --text: #1e293b;
            --text-light: #475569;
            --bg: #f8fafc;
            --card: #ffffff;
            --border: #e2e8f0;
        }

        * { box-sizing: border-box; }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            margin: 0;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
        }

        header {
            background: rgba(255,255,255,0.92);
            backdrop-filter: saturate(180%) blur(12px);
            -webkit-backdrop-filter: saturate(180%) blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 72px;
            gap: 24px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            text-decoration: none;
            background: linear-gradient(90deg, #1e73be, #6cc24a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .logo span {
            -webkit-text-fill-color: inherit;
        }

        #main-nav {
            display: flex;
            align-items: center;
            gap: 36px;
        }

        @media (min-width: 993px) {
            .header-container {
                display: grid;
                grid-template-columns: 1fr auto 1fr;
            }

            #main-nav {
                display: contents;
            }

            .main-nav-list {
                grid-column: 1;
                grid-row: 1;
                justify-self: start;
            }

            .logo-link {
                grid-column: 2;
                grid-row: 1;
                justify-self: center;
            }

            .header-actions {
                grid-column: 3;
                grid-row: 1;
                justify-self: end;
            }
        }

        .main-nav-list {
            display: flex;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 26px;
        }

        .main-nav-list > li > a,
        .nav-dropdown-toggle {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.98rem;
            transition: color 0.2s;
        }

        .main-nav-list > li > a:hover,
        .main-nav-list > li > a.active {
            color: var(--primary);
        }

        .nav-dropdown {
            position: relative;
        }

        .nav-dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 5px;
            background: none;
            border: none;
            padding: 8px 0;
            cursor: pointer;
            font-family: inherit;
        }

        .nav-dropdown-toggle svg {
            transition: transform 0.2s;
        }

        .nav-dropdown:hover .nav-dropdown-toggle,
        .nav-dropdown:focus-within .nav-dropdown-toggle {
            color: var(--primary);
        }

        .nav-dropdown:hover .nav-dropdown-toggle svg,
        .nav-dropdown:focus-within .nav-dropdown-toggle svg {
            transform: rotate(180deg);
        }

        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            margin: 8px 0 0;
            padding: 8px;
            min-width: 200px;
            list-style: none;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 16px 32px rgba(15,23,42,0.12);
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -6px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 1100;
        }

        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, 0);
        }

        .nav-dropdown-menu li a {
            display: block;
            padding: 10px 14px;
            border-radius: 8px;
            color: var(--text);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .nav-dropdown-menu li a:hover {
            background: var(--bg);
            color: var(--primary);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-search form {
            display: flex;
            align-items: center;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 4px 4px 4px 16px;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }

        .header-search form:focus-within {
            background: #fff;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        }

        .header-search input {
            border: none;
            outline: none;
            background: transparent;
            width: 140px;
            font-size: 0.9rem;
            padding: 8px 4px;
        }

        .header-search button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.2s;
        }

        .header-search button:hover {
            background: var(--primary-dark);
        }

        .header-search {
            position: relative;
        }

        .header-search-suggestions {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.14);
            max-height: 320px;
            overflow-y: auto;
            z-index: 1000;
            text-align: left;
        }

        .header-search-suggestions.open {
            display: block;
        }

        .header-search-suggestions .suggestion-group-label {
            padding: 8px 14px 4px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text);
            opacity: 0.55;
        }

        .header-search-suggestions .suggestion-item {
            display: block;
            padding: 9px 14px;
            font-size: 0.88rem;
            color: var(--text);
            text-decoration: none;
            cursor: pointer;
        }

        .header-search-suggestions .suggestion-item:hover,
        .header-search-suggestions .suggestion-item.active {
            background: var(--bg);
        }

        .header-search-suggestions .suggestion-empty {
            padding: 10px 14px;
            font-size: 0.85rem;
            color: var(--text);
            opacity: 0.6;
        }

        .btn-ghost {
            padding: 9px 16px;
            border-radius: 8px;
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.92rem;
            white-space: nowrap;
            transition: background 0.2s, color 0.2s;
        }

        .btn-ghost:hover {
            background: var(--bg);
            color: var(--primary);
        }

        .btn-cta {
            padding: 9px 18px;
            border-radius: 8px;
            background: var(--primary);
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.92rem;
            white-space: nowrap;
            box-shadow: 0 2px 10px rgba(37,99,235,0.25);
            transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
        }

        .btn-cta:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(37,99,235,0.3);
        }

        .mobile-menu-toggle {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text);
        }

        .mobile-search {
            display: none;
        }

        @media (max-width: 992px) {
            .header-container {
                height: 68px;
                display: grid;
                grid-template-columns: 44px 1fr 44px;
                position: relative;
            }

            .logo-link {
                order: 2;
                justify-self: center;
            }

            #main-nav {
                display: none;
                flex-direction: column;
                align-items: stretch;
                position: absolute;
                top: 68px;
                left: 0;
                right: 0;
                background: white;
                padding: 20px;
                gap: 4px;
                border-bottom: 1px solid var(--border);
                box-shadow: 0 12px 24px rgba(0,0,0,0.1);
                max-height: calc(100vh - 68px);
                overflow-y: auto;
            }

            #main-nav.active {
                display: flex;
            }

            .main-nav-list {
                flex-direction: column;
                align-items: stretch;
                gap: 2px;
            }

            .main-nav-list > li > a {
                padding: 12px 4px;
                font-size: 1.02rem;
            }

            .nav-dropdown-toggle {
                pointer-events: none;
                color: var(--text);
                font-weight: 700;
                padding: 12px 4px 4px;
            }

            .nav-dropdown-toggle svg {
                display: none;
            }

            .nav-dropdown-menu {
                position: static;
                opacity: 1;
                pointer-events: auto;
                transform: none;
                box-shadow: none;
                border: none;
                background: transparent;
                padding: 0 0 0 12px;
                margin: 0;
            }

            .nav-dropdown-menu li a {
                padding: 10px 4px;
            }

            .header-actions {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                margin-top: 14px;
                padding-top: 14px;
                border-top: 1px solid var(--border);
            }

            .header-search form {
                border-radius: 10px;
            }

            .header-search input {
                width: 100%;
            }

            .btn-ghost,
            .btn-cta {
                text-align: center;
            }

            .mobile-menu-toggle {
                display: block;
                order: 1;
                justify-self: start;
            }

            .mobile-search {
                display: flex;
                order: 3;
                justify-self: end;
            }

            .mobile-search-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40px;
                height: 40px;
                flex-shrink: 0;
                background: none;
                border: none;
                color: var(--text);
                cursor: pointer;
                border-radius: 50%;
            }

            .mobile-search-toggle:hover {
                background: var(--bg);
            }

            .mobile-search-form {
                display: none;
            }

            .mobile-search.open {
                position: absolute;
                inset: 0;
                z-index: 1200;
                background: #fff;
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 0 12px;
            }

            .mobile-search.open .mobile-search-toggle {
                order: 2;
            }

            .mobile-search.open .mobile-search-form {
                display: flex;
                flex: 1;
                order: 1;
                position: relative;
            }

            .mobile-search-form input {
                width: 100%;
                border: 1px solid var(--border);
                border-radius: 999px;
                outline: none;
                background: var(--bg);
                padding: 10px 16px;
                font-size: 0.95rem;
            }

            .mobile-search-form input:focus {
                background: #fff;
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
            }

            .mobile-search-suggestions {
                display: none;
                position: absolute;
                top: calc(100% + 6px);
                left: 0;
                right: 0;
                background: #fff;
                border: 1px solid var(--border);
                border-radius: 12px;
                box-shadow: 0 8px 24px rgba(0,0,0,0.14);
                max-height: 320px;
                overflow-y: auto;
                z-index: 1000;
                text-align: left;
            }

            .mobile-search-suggestions.open {
                display: block;
            }

            .mobile-search-suggestions .suggestion-item {
                display: block;
                padding: 9px 14px;
                font-size: 0.88rem;
                color: var(--text);
                text-decoration: none;
            }

            .mobile-search-suggestions .suggestion-item:hover {
                background: var(--bg);
            }

            .mobile-search-suggestions .suggestion-empty {
                padding: 10px 14px;
                font-size: 0.85rem;
                color: var(--text);
                opacity: 0.6;
            }
        }
