:root {
    --bg: #ffffff;
    --text: #102033;
    --muted: #5a6878;
    --line: #dce5ee;
    --soft: #f4f8fb;
    --soft-green: #edf8f3;
    --brand: #0b6d4f;
    --brand-dark: #064d3a;
    --brand-light: #e5f5ee;
    --accent: #f5b642;
    --shadow: 0 18px 35px rgba(15, 58, 77, .08);
    --shadow-soft: 0 12px 26px rgba(15, 58, 77, .05);
    --radius: 8px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 32px));
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.brand-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-image img {
    width: auto;
    height: 54px;
    max-width: 260px;
    object-fit: contain;
}

.primary-nav {
    display: block;
}

.primary-nav .menu,
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-nav a {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
    padding: 8px 0;
}

.primary-nav a:hover {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    display: block;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    background:
        radial-gradient(circle at top right, rgba(11, 109, 79, .12), transparent 34%),
        linear-gradient(180deg, var(--soft-green) 0%, #ffffff 100%);
    padding: 74px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.15;
}

h1 {
    font-size: clamp(38px, 5vw, 62px);
}

h2 {
    font-size: clamp(28px, 3vw, 38px);
}

h3 {
    font-size: 21px;
}

.hero-copy {
    max-width: 700px;
    color: var(--muted);
    font-size: 19px;
    margin: 0;
}

.hero-search {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 14px;
    font-size: 16px;
    outline: none;
}

.hero-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 109, 79, .12);
}

.hero-search button {
    border: 0;
    border-radius: var(--radius);
    padding: 14px 20px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.hero-search button:hover {
    background: var(--brand-dark);
}

.hero-panel,
.category-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 22px;
    box-shadow: var(--shadow);
}

.hero-panel strong,
.hero-panel a,
.category-panel strong,
.category-panel a {
    display: block;
}

.hero-panel strong,
.category-panel strong {
    margin-bottom: 12px;
    color: var(--text);
}

.hero-panel a,
.category-panel a {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    color: var(--brand);
    font-weight: 900;
}

.section {
    padding: 58px 0;
}

.section-muted {
    background: var(--soft);
}

.topic-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card,
.post-card,
.list-card,
.category-list-card,
.empty-state,
.widget,
.note-box,
.page-card,
.page-help-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.topic-card {
    padding: 22px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.topic-card p,
.post-card p,
.list-card p,
.category-list-card p,
.empty-state p,
.widget,
.note-box p {
    color: var(--muted);
}

.topic-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.post-card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.post-card a {
    display: block;
    height: 100%;
}

.post-thumb {
    aspect-ratio: 16 / 9;
    background: var(--soft);
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}

.post-card-body span,
.read-more {
    color: var(--brand);
    font-weight: 900;
}

.post-category {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.page-header,
.article-header {
    background:
        radial-gradient(circle at top right, rgba(11, 109, 79, .12), transparent 34%),
        linear-gradient(180deg, var(--soft-green) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding: 56px 0;
}

.archive-description {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--brand);
    font-weight: 800;
}

.breadcrumbs span {
    color: var(--muted);
}

.post-list {
    display: grid;
    gap: 16px;
}

.list-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.list-thumb {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    overflow: hidden;
    border-radius: var(--radius);
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.article-layout {
    align-items: start;
    padding-top: 38px;
    padding-bottom: 58px;
}

.article-content {
    min-width: 0;
}

.article-content a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content h2 {
    margin-top: 36px;
}

.article-content p {
    color: #334155;
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: var(--soft);
}

.featured-image {
    margin-bottom: 28px;
}

.featured-image img {
    border-radius: var(--radius);
}

.related-posts {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.related-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

.related-card strong {
    display: block;
    color: var(--text);
    line-height: 1.35;
}

.related-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.article-aside {
    display: grid;
    gap: 18px;
}

.sidebar {
    display: grid;
    gap: 18px;
}

.widget,
.note-box {
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.widget-title {
    margin-top: 0;
}

.widget ul {
    margin: 0;
    padding-left: 18px;
}

.widget li {
    margin-bottom: 7px;
}

.widget a {
    color: var(--brand);
    font-weight: 800;
}

.widget_search {
    padding: 20px;
}

.widget_search .wp-block-search__label,
.widget_search label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.widget_search .wp-block-search__inside-wrapper,
.widget_search form,
.search-form {
    display: flex;
    gap: 8px;
}

.widget_search .wp-block-search__input,
.widget_search input[type="search"],
.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 12px 13px;
    font-size: 15px;
    outline: none;
}

.widget_search .wp-block-search__input:focus,
.widget_search input[type="search"]:focus,
.search-form input[type="search"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 109, 79, .12);
}

.widget_search .wp-block-search__button,
.widget_search input[type="submit"],
.search-form input[type="submit"],
.search-submit {
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.widget_search .wp-block-search__button:hover,
.widget_search input[type="submit"]:hover,
.search-form input[type="submit"]:hover,
.search-submit:hover {
    background: var(--brand-dark);
}

.empty-state {
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.page-hero {
    background:
        radial-gradient(circle at top right, rgba(11, 109, 79, .14), transparent 34%),
        linear-gradient(180deg, var(--soft-green) 0%, #ffffff 100%);
    padding: 64px 0 44px;
    border-bottom: 1px solid var(--line);
}

.page-hero-copy {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.page-section {
    background: #fff;
}

.page-card {
    padding: 34px;
    box-shadow: var(--shadow);
}

.page-card h2:first-child {
    margin-top: 0;
}

.page-help-box {
    margin-top: 18px;
    border-color: #cfe7dc;
    background: #f2fbf7;
    padding: 20px;
}

.page-help-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.page-help-box p {
    margin: 0;
    color: var(--muted);
}

.category-hero {
    background:
        radial-gradient(circle at top right, rgba(11, 109, 79, .14), transparent 32%),
        linear-gradient(180deg, var(--soft-green) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding: 62px 0;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
    align-items: center;
}

.category-description {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.category-description p {
    margin: 0;
}

.category-topic-header {
    margin-bottom: 22px;
}

.container-reset {
    width: 100%;
}

.category-list-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-list-thumb {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--soft);
}

.category-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-list-body h2 {
    font-size: 24px;
}

.category-list-body p {
    color: var(--muted);
}

.site-footer {
    background: #0c1f2e;
    color: #e8f0f6;
    padding: 42px 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer p,
.site-footer a {
    color: #b9c7d4;
}

.site-footer ul {
    margin: 0;
    padding-left: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 28px;
    padding-top: 18px;
    font-size: 14px;
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.page-numbers {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 8px 12px;
    color: var(--brand);
    font-weight: 800;
}

.page-numbers.current {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

@media (max-width: 860px) {
    .container,
    .narrow {
        width: min(100% - 28px, var(--max));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-image img {
        height: 42px;
        max-width: 210px;
    }

    .menu-toggle {
        display: grid;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 8px;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu,
    .primary-nav ul {
        display: grid;
        gap: 2px;
        align-items: stretch;
    }

    .primary-nav a {
        padding: 12px 14px;
        border-radius: 6px;
        color: var(--text);
        font-size: 15px;
    }

    .primary-nav a:hover {
        background: var(--soft);
        color: var(--brand);
    }

    .hero {
        padding: 46px 0;
    }

    .hero-grid,
    .layout,
    .category-hero-grid,
    .category-list-card {
        grid-template-columns: 1fr;
    }

    .topic-grid,
    .post-grid,
    .footer-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 1fr;
    }

    .hero-search {
        flex-direction: column;
    }

    .category-panel {
        display: none;
    }

    .category-list-body h2 {
        font-size: 21px;
    }

    .page-hero,
    .category-hero {
        padding: 44px 0 32px;
    }

    .page-card {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 36px;
    }

    .hero-copy,
    .category-description,
    .page-hero-copy {
        font-size: 17px;
    }

    .widget_search .wp-block-search__inside-wrapper,
    .widget_search form,
    .search-form {
        flex-direction: column;
    }

    .widget_search .wp-block-search__button,
    .widget_search input[type="submit"],
    .search-form input[type="submit"],
    .search-submit {
        width: 100%;
    }
}
.home-seo-block {
    max-width: 880px;
}

.home-seo-block p {
    color: var(--muted);
    font-size: 18px;
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.home-link-grid a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--brand);
    padding: 14px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.home-link-grid a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

@media (max-width: 860px) {
    .home-link-grid {
        grid-template-columns: 1fr;
    }
}