:root {
    --bg: #f4f8f4;
    --surface: #ffffff;
    --surface-soft: #eef7f0;
    --text: #16211a;
    --muted: #5a6860;
    --line: #d5e2d8;
    --brand: #0f8a4b;
    --brand-dark: #0a6a39;
    --accent: #f0b429;
    --danger: #d1293d;
    --container: 1240px;
    --radius: 14px;
    --shadow: 0 14px 30px rgba(9, 46, 25, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ecf5ee 0%, #f9fcf9 240px, #f4f8f4 100%);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a:hover,
a:focus {
    color: var(--brand);
}

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

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

.site-main {
    padding: 20px 0 40px;
}

.topbar {
    background: #10291a;
    color: #d7e7dc;
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

.topbar-text {
    opacity: 0.9;
    text-align: right;
}

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.site-branding {
    min-width: 0;
}

.logo-text {
    display: inline-block;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.7vw, 2.6rem);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #12381f;
}

.site-description {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-field {
    border: 1px solid var(--line);
    border-radius: 999px;
    min-width: 260px;
    padding: 9px 14px;
    background: var(--surface);
}

.search-submit {
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
}

.primary-nav {
    background: var(--surface);
    border-block: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 600;
    padding: 9px 12px;
}

#primary-menu,
.primary-nav .menu,
#footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#primary-menu a,
.primary-nav .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a29;
}

#primary-menu a:hover,
#primary-menu .current-menu-item > a,
.primary-nav .menu a:hover,
.primary-nav .menu .current_page_item > a,
.primary-nav .menu .current-menu-item > a {
    background: #e4f6ea;
    color: var(--brand);
}

.primary-nav .menu > li {
    list-style: none;
}

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

.secondary-nav {
    background: #edf8f1;
    border-bottom: 1px solid var(--line);
}

#secondary-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    align-items: center;
}

#secondary-menu a {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #2d4836;
    font-weight: 700;
}

.breaking-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.breaking-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    min-height: 42px;
}

.breaking-label {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--danger);
}

.breaking-track {
    overflow: hidden;
}

.breaking-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker 24s linear infinite;
}

.breaking-list li {
    position: relative;
}

.breaking-list li::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8ab39a;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-35%); }
}

.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
}

.front-layout {
    display: grid;
    gap: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
}

.hero-main,
.hero-side,
.news-block,
.site-sidebar,
.widget,
.no-results,
.ad-slot,
.newsletter-box,
.trending-box,
.category-block,
.single-post {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-card {
    overflow: hidden;
}

.post-card-thumb {
    display: block;
    background: #e2efe5;
}

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

.post-card-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #d9eadc, #eef8f0);
}

.post-card-body {
    padding: 14px 16px 18px;
}

.hero-title {
    margin: 8px 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: 0.2px;
}

.post-card-title {
    margin: 8px 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.post-meta-item:not(:last-child)::after {
    content: "|";
    margin-left: 7px;
    color: #9fa9c0;
}

.hero-side {
    padding: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.hero-side-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #e0ebdf;
}

.hero-side-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hero-side-item h3 {
    margin: 5px 0 0;
    font-size: 1.05rem;
    line-height: 1.34;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #deebdf;
    padding: 16px;
}

.section-head h2 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.55rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8dfce;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #296944;
    background: #eef9f1;
}

.view-all {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand);
}

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

.post-grid-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 340px;
    gap: 24px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.split-main {
    display: grid;
    gap: 18px;
}

.split-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.category-block {
    overflow: hidden;
}

.trending-box,
.newsletter-box {
    padding: 16px;
}

.trending-box h2,
.newsletter-box h2 {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.trending-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 9px;
}

.newsletter-form {
    display: grid;
    gap: 10px;
}

.newsletter-form input {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
}

.newsletter-form button {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ad-slot {
    border: 1px dashed #7ca892;
    border-radius: 10px;
    color: #2d6e4b;
    background: #edf8f1;
    min-height: 90px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.ad-slot-vertical {
    min-height: 320px;
}

.home-widget-area .widget {
    padding: 14px;
}

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

.archive-header {
    margin-bottom: 14px;
}

.archive-header h1 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 2rem;
}

.single-area .single-post {
    padding: 18px;
}

.single-header h1 {
    margin: 10px 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.14;
}

.single-content > * {
    margin-top: 0;
    margin-bottom: 1em;
}

.single-content p,
.single-content li {
    font-size: 1.06rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.2px;
}

.single-thumb {
    margin: 0 0 14px;
}

.single-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5ebf8;
}

.post-nav {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.widget {
    padding: 14px;
    margin-bottom: 16px;
}

.widget-title {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

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

.pagination-wrap {
    margin-top: 18px;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    min-width: 36px;
    text-align: center;
}

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

.no-results {
    padding: 22px;
}

.btn-inline {
    display: inline-block;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
}

.site-footer {
    margin-top: 30px;
    background: #122819;
    color: #d8e8de;
    padding-top: 24px;
}

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

.footer-col .widget {
    background: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col .widget-title {
    color: #fff;
}

.footer-bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

#footer-menu {
    gap: 8px;
}

#footer-menu a {
    opacity: 0.9;
}

.breadcrumbs {
    margin-bottom: 14px;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumbs li {
    font-size: 0.83rem;
    color: #55665b;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #8ba091;
}

.breadcrumbs a {
    color: #2b5f43;
    font-weight: 600;
}

.breadcrumbs span {
    font-weight: 600;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 1200px) {
    .layout-two-col,
    .split-layout {
        grid-template-columns: 1fr 320px;
    }

    .post-grid,
    .post-grid-tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .masthead {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field {
        min-width: 0;
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
    }

    #primary-menu,
    .primary-nav .menu {
        display: none;
        width: 100%;
        padding-bottom: 8px;
    }

    .primary-nav.is-open #primary-menu,
    .primary-nav.is-open .menu,
    .primary-nav.is-open .menu ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .layout-two-col,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        order: 2;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .topbar-text {
        display: none;
    }

    .post-grid,
    .post-grid-tight {
        grid-template-columns: 1fr;
    }

    .section-head {
        padding: 12px;
    }

    .section-head h2 {
        font-size: 1.4rem;
    }
}

