:root {
            --primary: #0A4D68;
            --primary-dark: #06384d;
            --accent: #047857;
            --secondary: #D97706;
            --bg-body: #FAFAF9;
            --bg-card: #FFFFFF;
            --text-main: #1C1917;
            --text-muted: #57534E;
            --border-subtle: #E7E5E4;
            --container-width: 1200px;
            --header-height: 90px;
        }

        [data-theme="dark"] {
            --bg-body: #0C0A09;
            --bg-card: #1C1917;
            --text-main: #F5F5F4;
            --text-muted: #A8A29E;
            --primary: #38BDF8;
            --accent: #34D399;
            --border-subtle: #292524;
        }

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

        html:focus-within { scroll-behavior: smooth; }

        body {
            font-family: 'Source Sans 3', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        a { text-decoration: none; color: inherit; transition: 0.2s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        :focus-visible {
            outline: 3px solid rgba(217, 119, 6, 0.55);
            outline-offset: 3px;
        }

        @media (prefers-reduced-motion: reduce) {
            html:focus-within { scroll-behavior: auto; }
            * { transition: none !important; animation: none !important; }
        }

        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Skip link */
        .skip-link {
            position: absolute;
            left: -9999px;
            top: 10px;
            background: var(--secondary);
            color: #fff;
            padding: 10px 14px;
            z-index: 3000;
            border-radius: 6px;
        }
        .skip-link:focus { left: 12px; }

        /* Top bar */
        .top-bar {
            background-color: #0A4D68;
            color: #fff;
            padding: 8px 0;
            font-size: 0.85rem;
            position: relative;
            z-index: 1002;
        }
        .top-bar .container {
            display: flex;
            justify-content: flex-end;
            gap: 20px;
            padding-right: 20px;
            align-items: center;
        }

        .theme-toggle {
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.35);
            color: #fff;
            padding: 6px 10px;
            border-radius: 999px;
        }
        .theme-toggle:hover { border-color: rgba(255,255,255,0.7); }

        .lang-selector {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .lang-selector select {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.35);
            color: #fff;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
            padding: 6px 10px;
            border-radius: 999px;
        }
        .lang-selector select option {
            background-color: #0A4D68;
            color: #fff;
        }

        /* Main header */
        .main-header {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-subtle);
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--header-height);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        .main-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.02em;
        }

        .nav-menu { display: flex; gap: 32px; }
        .nav-link {
            font-family: 'Source Sans 3', sans-serif;
            font-weight: 700;
            color: var(--text-muted);
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: relative;
        }
        .nav-link:hover, .nav-link.active { color: var(--primary); }

        .btn-outline {
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 999px;
            text-transform: uppercase;
            font-size: 0.85rem;
            font-weight: 800;
            letter-spacing: 0.05em;
        }
        .btn-outline:hover { background-color: var(--primary); color: #fff; }

        /* Page header */
        .page-header {
            padding: 56px 0 10px;
            text-align: center;
            background-color: var(--bg-body);
        }
        .page-header h1 {
            font-family: 'Playfair Display', serif;
            font-weight: 800;
            color: var(--primary);
            font-size: 3.25rem;
            letter-spacing: -0.03em;
            margin-bottom: 14px;
        }
        .page-header p {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 820px;
            margin: 0 auto;
        }

        .trust-row {
            max-width: 980px;
            margin: 26px auto 0;
            display: flex;
            justify-content: center;
            gap: 14px;
            flex-wrap: wrap;
            padding: 0 24px;
        }
        .trust-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            color: var(--text-muted);
            padding: 10px 12px;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.9rem;
        }
        .trust-pill strong { color: var(--primary); }

        /* Filter / search */
        .category-filter-section {
            background-color: var(--bg-body);
            padding: 18px 0 16px;
            position: sticky;
            top: var(--header-height);
            z-index: 900;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s, background-color 0.2s;
        }
        .category-filter-section.is-pinned {
            border-bottom: 1px solid var(--border-subtle);
            background-color: var(--bg-card);
        }

        .controls-row {
            display: flex;
            gap: 14px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            padding: 8px 0 6px;
        }

        .search-wrap {
            flex: 1;
            min-width: 240px;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            border-radius: 999px;
            padding: 10px 14px;
        }
        .search-wrap input {
            width: 100%;
            border: none;
            outline: none;
            background: transparent;
            color: var(--text-main);
            font-size: 0.95rem;
        }
        .search-hint {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 700;
        }

        .sort-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sort-wrap label {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 800;
        }
        .sort-wrap select {
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            color: var(--text-main);
            padding: 10px 12px;
            border-radius: 999px;
            font-weight: 700;
            cursor: pointer;
        }

        .category-scroll-container {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 10px 2px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            justify-content: center;
            flex-wrap: wrap;
        }
        .category-scroll-container::-webkit-scrollbar { display: none; }

        .category-btn {
            white-space: nowrap;
            padding: 10px 18px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background-color: var(--bg-card);
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s, color 0.2s, background-color 0.2s;
            flex-shrink: 0;
        }
        .category-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }
        .category-btn.active {
            background-color: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 6px 14px rgba(10, 77, 104, 0.18);
        }

        /* Articles */
        .articles-section { padding: 28px 0 100px; }
        .articles-header-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 0 14px;
            flex-wrap: wrap;
        }
        .articles-header-row h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }
        .results-count {
            font-size: 0.95rem;
            color: var(--text-muted);
            font-weight: 800;
        }

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 34px;
        }

        .article-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-subtle);
            transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
            display: block;
            height: 100%;
            border-radius: 14px;
            overflow: hidden;
        }
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 36px rgba(0,0,0,0.10);
            border-color: rgba(10, 77, 104, 0.55);
        }

        .card-img-container {
            height: 200px;
            overflow: hidden;
            position: relative;
            background: rgba(0,0,0,0.03);
        }
        .card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .article-card:hover .card-img { transform: scale(1.05); }

        .card-content {
            padding: 22px;
            display: flex;
            flex-direction: column;
            min-height: 210px;
        }

        .card-category {
            font-size: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--accent);
            margin-bottom: 10px;
        }

        .card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.35rem;
            line-height: 1.25;
            margin-bottom: 10px;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }

        .card-excerpt {
            font-size: 0.98rem;
            color: var(--text-muted);
            margin-bottom: 16px;
            flex-grow: 1;
        }

        .card-footer {
            border-top: 1px solid var(--border-subtle);
            padding-top: 14px;
            font-size: 0.9rem;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .meta-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 800;
        }

        /* No results */
        .no-results {
            display: none;
            border: 1px dashed var(--border-subtle);
            background: var(--bg-card);
            border-radius: 14px;
            padding: 22px;
            color: var(--text-muted);
            margin-top: 16px;
        }
        .no-results strong { color: var(--text-main); }

        .quick-actions {
            margin-top: 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .pill-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            font-weight: 900;
            color: var(--primary);
        }
        .pill-link:hover { border-color: var(--primary); transform: translateY(-1px); }

        /* Footer */
        footer {
            background-color: #1C1917;
            color: #A8A29E;
            padding: 80px 0 0;
            font-size: 0.95rem;
            border-top: 4px solid var(--accent);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 50px;
            padding-bottom: 60px;
        }
        .footer h4 {
            color: #fff;
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 25px;
            letter-spacing: 0.05em;
            position: relative;
        }
        .footer h4::after {
            content: '';
            display: block;
            width: 30px;
            height: 2px;
            background-color: var(--accent);
            margin-top: 10px;
        }
        .footer ul li { margin-bottom: 12px; }
        .footer ul li a {
            color: #A8A29E;
            transition: 0.2s;
            display: inline-block;
        }
        .footer ul li a:hover { color: #fff; transform: translateX(5px); }

        .social-row {
            display: flex;
            gap: 10px;
            margin-top: 16px;
        }
        .social-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.15);
            color: #E7E5E4;
            background: rgba(255,255,255,0.04);
        }
        .social-btn:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }

        .footer-bottom {
            border-top: 1px solid #333;
            padding: 30px 0;
            text-align: center;
            font-size: 0.85rem;
            background-color: #151312;
        }

        @media (max-width: 1024px) {
            .articles-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 820px) {
            .nav-menu { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
            .page-header h1 { font-size: 2.4rem; }
            .category-scroll-container { justify-content: flex-start; flex-wrap: nowrap; }
            .articles-grid { grid-template-columns: 1fr; }
            .controls-row { align-items: stretch; }
            .sort-wrap { width: 100%; justify-content: space-between; }
            .sort-wrap select { width: 100%; }
        }
