.tf-blog {
    background: var(--bg-base, #f6f8fa);
    color: var(--text-primary, #1a1f2e);
    min-height: 70vh;
}

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

.tf-blog-hero {
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a1f2e);
    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: var(--accent, #e30000);
    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: var(--accent, #e30000);
    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: var(--accent, #e30000);
    background: var(--accent, #e30000);
    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: var(--accent, #e30000);
    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: var(--accent, #e30000);
    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-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 28px 0 8px;
}

.tf-blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border, #d0d7de);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a1f2e);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

a.tf-blog-page-link:hover,
.tf-blog-page-link.is-current {
    border-color: var(--accent, #e30000);
    background: var(--accent, #e30000);
    color: #fff;
}

.tf-blog-page-ellipsis {
    padding: 0 3px;
    color: var(--text-muted, #6e7681);
}

.tf-blog-page-summary {
    margin: 0 0 12px;
    color: var(--text-muted, #6e7681);
    font-size: .83rem;
    text-align: center;
}

.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: var(--accent, #e30000);
    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: var(--accent, #e30000);
    background: var(--accent-light, #fff2f2);
}

.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-content table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b6c0cc transparent;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #fff;
}

.tf-blog-content table::-webkit-scrollbar {
    height: 8px;
}

.tf-blog-content table::-webkit-scrollbar-track {
    background: #eef2f6;
    border-radius: 999px;
}

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

.tf-blog-content thead,
.tf-blog-content tbody,
.tf-blog-content tr {
    width: 100%;
}

.tf-blog-content th,
.tf-blog-content td {
    padding: 13px 16px;
    border-bottom: 1px solid #e6ebf0;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
    white-space: normal;
}

.tf-blog-content th {
    background: #f3f6f8;
    color: #172033;
    font-weight: 800;
    font-size: .92rem;
}

.tf-blog-content td {
    color: #243044;
}

.tf-blog-content tr:nth-child(even) td {
    background: #fafbfc;
}

.tf-blog-content tr:last-child th,
.tf-blog-content tr:last-child td {
    border-bottom: 0;
}

.tf-blog-content caption {
    caption-side: bottom;
    padding: 10px 4px 0;
    color: #667085;
    font-size: .86rem;
    text-align: left;
}

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

.tf-blog-cta a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--accent, #e30000);
    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-reactions {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fffaf5;
    text-align: center;
}

.tf-blog-reactions-head h2 { margin: 0; font-size: 1.3rem; color: #182230; }
.tf-blog-reactions-head p { margin: .35rem 0 1.1rem; color: #667085; }
.tf-blog-reactions .lang-ta { display: none; }
body.lang-ta .tf-blog-reactions .lang-en { display: none; }
body.lang-ta .tf-blog-reactions .lang-ta { display: inline; }
.tf-blog-reaction-options { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.tf-blog-reaction {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .65rem .9rem;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tf-blog-reaction:hover { border-color: var(--accent, #e30000); transform: translateY(-1px); }
.tf-blog-reaction.is-selected { border-color: var(--accent, #e30000); background: #fff0e8; color: #9b2c0c; }
.tf-blog-reaction strong { min-width: 1.3em; color: inherit; }
.tf-blog-reaction-icon { font-size: 1.15rem; line-height: 1; }
.tf-blog-reactions.is-saving .tf-blog-reaction { opacity: .65; cursor: wait; }
.tf-blog-reaction-status { min-height: 1.4em; margin: .75rem 0 0; color: #667085; font-size: .9rem; }
.tf-blog-reaction-login { display: inline-block; color: #c2410c; font-weight: 600; }

@media (max-width: 560px) {
    .tf-blog-reactions { padding: 1.25rem .85rem; }
    .tf-blog-reaction-options { display: grid; grid-template-columns: 1fr; }
    .tf-blog-reaction { justify-content: center; width: 100%; }
}

.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: var(--accent, #e30000);
    color: #fff;
    border-color: var(--accent, #e30000);
}

.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: var(--accent, #e30000);
    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-content table {
        min-width: 560px;
        margin: 18px -4px;
        max-width: calc(100% + 8px);
    }

    .tf-blog-content th,
    .tf-blog-content td {
        padding: 11px 12px;
        font-size: .92rem;
    }

    .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;
    }
}
