.tf-blog {
    background: #f5f7f8;
    color: #172033;
    min-height: 70vh;
}

.tf-blog-wrap {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
}

.tf-blog-hero {
    background: #fff;
    color: #172033;
    padding: 24px 0 22px;
    border-bottom: 1px solid #e1e6eb;
}

.tf-blog-hero .tf-blog-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 20px;
    align-items: center;
}

.tf-blog-kicker,
.tf-blog-category {
    color: #2f5d32;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
}

.tf-blog-hero h1,
.tf-blog-article h1 {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.tf-blog-hero h1 {
    font-size: 2rem;
}

.tf-blog-hero p {
    max-width: 720px;
    margin: 0;
    color: #536171;
    line-height: 1.45;
}

.tf-blog-search {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cfd7df;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.tf-blog-search input {
    flex: 1;
    border: 0;
    padding: 11px 14px;
    min-width: 0;
    max-width: none;
}

.tf-blog-search button {
    border: 0;
    width: 48px;
    background: #2f5d32;
    color: #fff;
}

.tf-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    padding: 18px 0 48px;
}

.tf-blog-layout--single {
    display: block;
}

.tf-blog-category-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 10px;
    scrollbar-width: thin;
    scrollbar-color: #b6c0cc transparent;
    -webkit-overflow-scrolling: touch;
}

.tf-blog-category-bar::-webkit-scrollbar {
    height: 6px;
}

.tf-blog-category-bar::-webkit-scrollbar-track {
    background: transparent;
}

.tf-blog-category-bar::-webkit-scrollbar-thumb {
    background: #b6c0cc;
    border-radius: 999px;
}

.tf-blog-category-bar a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #cfd7df;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.tf-blog-category-bar a.active,
.tf-blog-category-bar a:hover {
    border-color: #2f5d32;
    background: #2f5d32;
    color: #fff;
}

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

.tf-blog-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.tf-blog-card,
.tf-blog-featured-card {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.tf-blog-featured-card {
    display: block;
    color: #18202f;
    text-decoration: none;
    padding-bottom: 14px;
}

.tf-blog-featured-card img,
.tf-blog-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.tf-blog-featured-card span {
    display: block;
    color: #2f5d32;
    font-size: .74rem;
    font-weight: 800;
    padding: 12px 14px 4px;
}

.tf-blog-featured-card strong {
    display: block;
    padding: 0 14px;
    line-height: 1.35;
}

.tf-blog-card-media {
    display: grid;
    place-items: center;
    min-height: 150px;
    background: #eef4ef;
    color: #2f5d32;
    text-decoration: none;
    font-weight: 800;
}

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

.tf-blog-card h2 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 8px 0;
}

.tf-blog-card h2 a {
    color: #18202f;
    text-decoration: none;
}

.tf-blog-card p {
    color: #566074;
    line-height: 1.55;
}

.tf-blog-card time,
.tf-blog-meta {
    color: #778195;
    font-size: .85rem;
}

.tf-blog-empty {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 32px;
}

.tf-blog-ad {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
}

.tf-blog-ad--top {
    padding-top: 24px;
}

.tf-blog-ad--bottom {
    padding: 8px 0 10px;
}

.tf-blog-article {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 32px;
}

.tf-blog-breadcrumb {
    margin: 0 0 18px;
    font-size: .84rem;
}

.tf-blog-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.tf-blog-breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #697586;
}

.tf-blog-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: #a2adbb;
    font-weight: 700;
}

.tf-blog-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 220px;
    padding: 5px 8px;
    border: 1px solid #d8e0e8;
    border-radius: 999px;
    background: #fff;
    color: #2f5d32;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.tf-blog-breadcrumb a:hover {
    border-color: #2f5d32;
    background: #eef6ef;
}

.tf-blog-breadcrumb span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-blog-breadcrumb li[aria-current="page"] span {
    display: block;
    max-width: 300px;
    color: #536171;
    white-space: nowrap;
}

.tf-blog-article-head {
    text-align: center;
    margin-bottom: 28px;
}

.tf-blog-article h1 {
    font-size: 2.35rem;
    line-height: 1.12;
}

.tf-blog-article-head p {
    color: #566074;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0 auto 14px;
    max-width: 720px;
}

.tf-blog-meta {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.tf-blog-hero-image {
    margin: 0 0 30px;
}

.tf-blog-hero-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.tf-blog-content {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 30px;
    line-height: 1.78;
    font-size: 1rem;
}

.tf-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tf-blog-content h2,
.tf-blog-content h3 {
    margin-top: 1.6em;
}

.tf-blog-cta {
    text-align: center;
    margin: 26px 0 0;
}

.tf-blog-cta a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #2f5d32;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 800;
}

.tf-blog-share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
}

.tf-blog-share span {
    color: #566074;
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tf-blog-share a,
.tf-blog-share button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d9deea;
    background: #f7f8fb;
    color: #18202f;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.tf-blog-share a:hover,
.tf-blog-share button:hover,
.tf-blog-copy-link.is-copied {
    background: #2f5d32;
    color: #fff;
    border-color: #2f5d32;
}

.tf-blog-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 0;
}

.tf-blog-post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 118px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    color: #18202f;
    text-decoration: none;
}

.tf-blog-post-nav-card span {
    color: #2f5d32;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tf-blog-post-nav-card strong {
    line-height: 1.35;
}

.tf-blog-post-nav-card small {
    color: #778195;
}

.tf-blog-post-nav-card--next {
    text-align: right;
    align-items: flex-end;
}

.tf-blog-related {
    padding: 18px 0 54px;
}

.tf-blog-gallery {
    margin: 24px auto 0;
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 16px;
    max-width: 100%;
    overflow: hidden;
}

.tf-blog-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tf-blog-gallery-head h2 {
    font-size: 1.1rem;
    margin: 0;
}

.tf-blog-gallery-head span {
    color: #778195;
    font-size: .85rem;
}

.tf-blog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.tf-blog-gallery-item {
    display: block;
    padding: 0;
    border: 0;
    background: #eef1f6;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    max-height: 180px;
    box-shadow: inset 0 0 0 1px rgba(17,24,39,.08);
}

.tf-blog-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .16s ease;
}

.tf-blog-gallery-item:hover img {
    transform: scale(1.03);
}

.tf-gallery-viewer[hidden] {
    display: none;
}

.tf-gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: rgba(8, 13, 24, .92);
    padding: 58px 64px;
}

.tf-gallery-viewer img {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.tf-gallery-close,
.tf-gallery-prev,
.tf-gallery-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.tf-gallery-close {
    right: 18px;
    top: 18px;
}

.tf-gallery-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.tf-gallery-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.tf-gallery-count {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(255,255,255,.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
}

.tf-blog-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .tf-blog-hero .tf-blog-wrap {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tf-blog-layout {
        grid-template-columns: 1fr;
    }

    .tf-blog-featured,
    .tf-blog-grid,
    .tf-blog-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 620px) {
    .tf-blog-hero {
        padding: 16px 0 14px;
    }

    .tf-blog-hero h1 {
        font-size: 1.55rem;
        margin-bottom: 4px;
    }

    .tf-blog-article h1 {
        font-size: 1.85rem;
    }

    .tf-blog-hero p {
        font-size: .92rem;
        line-height: 1.35;
    }

    .tf-blog-search {
        border-radius: 9px;
    }

    .tf-blog-search input {
        padding: 10px 12px;
    }

    .tf-blog-search button {
        width: 44px;
    }

    .tf-blog-layout {
        padding-top: 12px;
    }

    .tf-blog-category-bar {
        gap: 6px;
        margin: 0 calc((100vw - 100%) / -2) 12px;
        padding: 0 calc((100vw - 100%) / 2) 6px;
        scrollbar-width: none;
    }

    .tf-blog-category-bar::-webkit-scrollbar {
        height: 0;
    }

    .tf-blog-category-bar a {
        min-height: 32px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: .84rem;
    }

    .tf-blog-featured,
    .tf-blog-grid,
    .tf-blog-grid--related {
        grid-template-columns: 1fr;
    }

    .tf-blog-content {
        padding: 20px;
    }

    .tf-blog-ad {
        width: min(100% - 24px, 860px);
    }

    .tf-blog-ad--top {
        padding-top: 14px;
    }

    .tf-blog-ad--bottom {
        padding: 4px 0 8px;
    }

    .tf-blog-article {
        width: min(100% - 24px, 860px);
        padding-top: 20px;
    }

    .tf-blog-breadcrumb {
        margin-bottom: 14px;
        font-size: .82rem;
        line-height: 1.45;
        overflow: hidden;
    }

    .tf-blog-breadcrumb ol {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tf-blog-breadcrumb-home {
        display: none;
    }

    .tf-blog-breadcrumb ol::-webkit-scrollbar {
        height: 0;
    }

    .tf-blog-breadcrumb a {
        max-width: 150px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .tf-blog-breadcrumb a:hover {
        background: transparent;
        border-color: transparent;
        text-decoration: underline;
    }

    .tf-blog-breadcrumb li[aria-current="page"] span {
        max-width: 170px;
    }

    .tf-blog-breadcrumb li + li::before {
        content: ">";
        margin-right: 4px;
        color: #9aa6b2;
    }

    .tf-blog-post-nav {
        grid-template-columns: 1fr;
    }

    .tf-blog-post-nav > span {
        display: none;
    }

    .tf-blog-post-nav-card--next {
        text-align: left;
        align-items: flex-start;
    }

    .tf-blog-gallery {
        padding: 12px;
    }

    .tf-blog-gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tf-blog-gallery-item {
        max-height: 140px;
    }

    .tf-gallery-viewer {
        padding: 56px 12px 58px;
    }

    .tf-gallery-viewer img {
        max-height: calc(100vh - 140px);
    }

    .tf-gallery-prev,
    .tf-gallery-next {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .tf-gallery-prev {
        left: 18px;
    }

    .tf-gallery-next {
        right: 18px;
    }
}
