/* ==========================================================================
 * Technews UI Upgrade - Bangkok Post Inspired Editorial Design (PC & Mobile)
 * Primary Accent: #024BE6 | Font: SF Pro Display
 * ========================================================================== */

:root {
    --tn-primary: #024BE6;
    --tn-primary-dark: #0239B5;
    --tn-primary-soft: #EBF1FF;
    --tn-ink: #14171F;
    --tn-ink-secondary: #4B5563;
    --tn-muted: #6B7280;
    --tn-border: #E5E7EB;
    --tn-surface: #FFFFFF;
    --tn-bg-subtle: #F5F6F8;
    --tn-container: 1240px;
}

/* Base Container & Viewport Overflow Protection */
#wrapper,
#main {
    overflow-x: clip;
    max-width: 100vw;
}

.tn-container {
    width: 100%;
    max-width: var(--tn-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Branded Fallback Graphic When a Post Has No Featured Image */
.tn-subcard-thumb:empty,
.tn-std-thumb:empty,
.tn-lead-thumb:empty,
.tn-mini-thumb:empty,
.tn-horiz-thumb:empty,
.tn-sp-card-thumb:empty,
.tn-interest-thumb:empty,
.tn-cat-feat-thumb:empty,
.tn-cat-quad-thumb:empty {
    background-color: #EEF3FF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Ctext x='50%25' y='55%25' dominant-baseline='middle' text-anchor='middle' fill='%23024BE6' fill-opacity='0.28' font-family='sans-serif' font-weight='800' font-size='15' letter-spacing='1'%3ETECHNEWS%3C/text%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 120px auto !important;
}

/* ==========================================================================
 * 1. HEADER (2-TIER BANGKOK POST STYLE)
 * ========================================================================== */
#header,
#header .header-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.tn-header-placeholder {
    display: none;
    width: 100%;
}

.tn-header-wrap {
    width: 100%;
    position: relative;
    z-index: 980;
    background-color: #FFFFFF;
}

/* Full 2-Tier Sticky Header with Shrunk Logo on Scroll */
.tn-header-wrap.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 990;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.14);
}

/* Tier 1: White Top Bar with Original Full-Color Technews Logo */
.tn-header-top {
    background-color: #FFFFFF;
    color: var(--tn-ink);
    position: relative;
    border-bottom: 1px solid #EEF1F6;
    transition: background-color 0.2s ease;
}

.tn-header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 86px;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: min-height 0.22s ease, padding 0.22s ease;
}

.tn-header-wrap.is-stuck .tn-header-top-inner {
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.tn-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tn-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tn-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.tn-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tn-header-top .tn-logo-img {
    height: 62px;
    width: auto;
    max-height: 62px;
    object-fit: contain;
    filter: none !important;
    display: block;
    transition: height 0.22s ease, max-height 0.22s ease;
}

.tn-header-wrap.is-stuck .tn-header-top .tn-logo-img {
    height: 38px;
    max-height: 38px;
}

.tn-logo-text {
    color: var(--tn-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tn-icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1E293B !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tn-icon-btn:hover,
.tn-icon-btn:focus-visible,
.tn-icon-btn[aria-expanded="true"] {
    background-color: var(--tn-primary-soft) !important;
    color: var(--tn-primary) !important;
}

/* Floating Search Popover Dropdown */
.tn-search-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tn-search-popover {
    display: none !important;
    position: absolute;
    top: calc(100% + 14px);
    right: -6px;
    width: 390px;
    max-width: calc(100vw - 32px);
    background-color: #FFFFFF !important;
    border: 1px solid var(--tn-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    z-index: 9950;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box;
}

.tn-search-popover.is-open {
    display: block !important;
}

.tn-search-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 19px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-left: 1px solid var(--tn-border);
    border-top: 1px solid var(--tn-border);
    transform: rotate(45deg);
}

.tn-search-form {
    margin: 0 !important;
}

.tn-search-field-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F3F4F6;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tn-search-field-group:focus-within {
    background: #FFFFFF;
    border-color: var(--tn-primary);
}

.tn-search-field-icon {
    color: var(--tn-muted);
    flex-shrink: 0;
}

.tn-search-input {
    flex: 1;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: none !important;
    background: transparent !important;
    color: var(--tn-ink) !important;
    font-size: 14.5px !important;
    box-shadow: none !important;
    outline: none !important;
}

.tn-search-submit {
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 6px !important;
    background: var(--tn-primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-transform: none !important;
    line-height: 36px !important;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.tn-search-submit:hover {
    background: var(--tn-primary-dark) !important;
}

/* Tier 2: Primary Blue (#024BE6) Category Bar with White Text */
.tn-header-nav {
    background-color: var(--tn-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.tn-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tn-nav-item {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
}

/* Subtle translucent white pipe | divider on #024BE6 bar */
.tn-nav-item + .tn-nav-item::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.28);
    margin: 0 2px;
}

.tn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition: color 0.18s ease, background-color 0.18s ease, padding 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tn-header-wrap.is-stuck .tn-nav-link {
    padding-top: 9px;
    padding-bottom: 9px;
}

.tn-nav-link .tn-chevron {
    color: rgba(255, 255, 255, 0.78);
    transition: transform 0.2s ease, color 0.2s ease;
}

.tn-nav-item:hover > .tn-nav-link,
.tn-nav-item.is-active > .tn-nav-link {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.14);
}

.tn-nav-item.is-active > .tn-nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px 3px 0 0;
}

.tn-nav-item:hover > .tn-nav-link .tn-chevron,
.tn-nav-item.is-active > .tn-nav-link .tn-chevron {
    color: #FFFFFF;
}

.tn-nav-item:hover > .tn-nav-link .tn-chevron {
    transform: rotate(180deg);
}

/* Dropdown Subcategories */
.tn-subnav {
    position: absolute;
    top: 100%;
    left: 4px;
    min-width: 230px;
    background: #FFFFFF;
    border: 1px solid var(--tn-border);
    border-top: 2px solid var(--tn-primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 950;
}

.tn-nav-item:hover > .tn-subnav,
.tn-nav-item:focus-within > .tn-subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tn-subnav-item {
    margin: 0 !important;
}

.tn-subnav-link {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500 !important;
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tn-subnav-link:hover,
.tn-subnav-item.is-active > .tn-subnav-link {
    background-color: var(--tn-primary-soft);
    color: var(--tn-primary) !important;
}

/* Top-Down Full-Width Mega Menu Overlay (Bangkok Post Directory Style) */
.tn-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99998;
}

.tn-drawer-backdrop.is-open {
    display: block !important;
}

.tn-megamenu-overlay {
    position: fixed;
    top: -110vh;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 92vh;
    background: #FFFFFF;
    z-index: 99999;
    transform: none !important;
    visibility: hidden;
    opacity: 0;
    transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.28s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
}

.tn-megamenu-overlay.is-open {
    top: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tn-mega-topbar {
    background-color: var(--tn-primary);
    padding: 14px 0;
    flex-shrink: 0;
}

.tn-mega-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tn-mega-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: #FFFFFF !important;
    font-size: 26px;
    font-weight: 800;
}

.tn-mega-logo-img {
    height: 44px;
    width: auto;
    max-height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

.tn-mega-close {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease;
}

.tn-mega-close:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
}

.tn-mega-body {
    padding: 32px 0 46px;
    background: #FFFFFF;
}

.tn-mega-search-row {
    margin-bottom: 34px;
}

.tn-mega-search-form {
    display: flex;
    align-items: center;
    max-width: 720px;
    margin: 0 !important;
    border: 1.5px solid #D1D5DB;
    border-radius: 999px;
    background: #F3F4F6;
    padding: 4px 18px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tn-mega-search-form:focus-within {
    background: #FFFFFF;
    border-color: var(--tn-primary);
}

.tn-mega-search-form input {
    flex: 1;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14.5px !important;
    color: var(--tn-ink) !important;
}

.tn-mega-search-form button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--tn-primary) !important;
    padding: 0 4px !important;
    margin: 0 !important;
    height: 40px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tn-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 36px;
    align-items: start;
}

.tn-mega-col-block {
    min-width: 0;
}

.tn-mega-cat-heading {
    width: 100% !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin: 0 0 12px !important;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--tn-primary);
    letter-spacing: 0.01em !important;
}

.tn-mega-cat-heading a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tn-mega-cat-heading a:hover {
    color: var(--tn-primary) !important;
}

.tn-mega-sublist {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tn-mega-sublist li {
    margin: 0 !important;
}

.tn-mega-sublist a {
    display: inline-block;
    font-size: 14.5px;
    font-weight: 500 !important;
    color: #4B5563 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, transform 0.15s ease;
}

.tn-mega-sublist a:hover {
    color: var(--tn-primary) !important;
    transform: translateX(3px);
}

/* ==========================================================================
 * 2. HOMEPAGE - HERO SECTION & MOST RECENT (MỚI NHẤT)
 * ========================================================================== */
.tn-home-wrapper {
    background: #FFFFFF !important;
}

.tn-hero-section {
    padding: 20px 0 32px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-dateline {
    font-size: 12px;
    font-weight: 500;
    color: var(--tn-muted);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.tn-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* Slider */
.tn-hero-slider {
    position: relative;
}

.tn-hero-slides {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0F172A;
    aspect-ratio: 16 / 9.4;
}

.tn-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    margin: 0 !important;
}

.tn-hero-slide.is-active {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tn-hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.tn-hero-slide-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.tn-hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.tn-hero-slide-link:hover .tn-hero-slide-media img {
    transform: scale(1.03);
}

.tn-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.04) 30%, rgba(10, 15, 28, 0.88) 100%);
}

.tn-hero-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 30px;
    z-index: 3;
}

.tn-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tn-hero-badge {
    background: var(--tn-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.tn-hero-date {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.tn-hero-headline {
    color: #FFFFFF !important;
    font-size: clamp(22px, 2.5vw, 32px) !important;
    line-height: 1.26 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bangkok Post Horizontal Bar Dots */
.tn-hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.tn-hero-dot {
    width: 34px;
    height: 4px !important;
    min-height: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 2px !important;
    background-color: #D1D5DB !important;
    cursor: pointer;
    transition: background-color 0.25s ease, width 0.25s ease;
}

.tn-hero-dot.is-active {
    background-color: var(--tn-primary) !important;
    width: 44px;
}

/* 4 Sub-featured Cards Below Slider */
.tn-hero-subgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.tn-subcard-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tn-bg-subtle);
    margin-bottom: 10px;
}

.tn-subcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-subcard:hover .tn-subcard-thumb img {
    transform: scale(1.04);
}

.tn-subcard-meta,
.tn-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    color: var(--tn-muted);
    margin-bottom: 6px;
}

.tn-meta-cat {
    color: var(--tn-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
}

.tn-meta-pipe {
    color: #CBD5E1;
}

.tn-subcard-title {
    font-size: 15.5px !important;
    line-height: 1.38 !important;
    margin: 0 !important;
}

.tn-subcard-title a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-subcard-title a:hover {
    color: var(--tn-primary) !important;
}

/* Right Column: MỚI NHẤT (8 items + THÊM button aligned flush to bottom) */
.tn-hero-grid {
    align-items: stretch;
}

.tn-hero-recent {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tn-recent-header {
    border-bottom: 2px solid var(--tn-ink);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.tn-recent-heading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 19px;
    font-weight: 700 !important;
    color: var(--tn-ink) !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -0.01em;
}

.tn-recent-heading:hover {
    color: var(--tn-primary) !important;
}

.tn-recent-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    margin: 0 !important;
    border-bottom: 1px solid var(--tn-border);
}

.tn-recent-bullet {
    color: var(--tn-primary);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    flex-shrink: 0;
}

.tn-recent-link {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600 !important;
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tn-recent-link:hover {
    color: var(--tn-primary) !important;
}

.tn-recent-more-wrap {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: center;
}

.tn-recent-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 38px;
    padding: 0 24px;
    border: 1.5px solid #9CA3AF;
    border-radius: 10px;
    background: #FFFFFF;
    color: #6B7280 !important;
    font-size: 13.5px;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tn-recent-more-btn:hover {
    border-color: var(--tn-primary);
    color: var(--tn-primary) !important;
    background-color: var(--tn-primary-soft);
}

/* ==========================================================================
 * 3. HOMEPAGE - EDITORIAL BODY & SIDEBAR (ĐỌC NHIỀU NHẤT + VIDEO REVIEWS)
 * ========================================================================== */
.tn-home-body {
    padding: 36px 0 56px;
}

.tn-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-body-fullwidth {
    width: 100%;
}

.tn-cat-block {
    margin-bottom: 44px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-cat-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tn-block-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 18px;
    border-bottom: 2px solid var(--tn-ink);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.tn-block-title {
    width: auto !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin: 0 !important;
    position: relative;
    flex-shrink: 0;
}

.tn-block-title a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-block-title a:hover {
    color: var(--tn-primary) !important;
}

.tn-block-subcats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.tn-block-subcats a {
    font-size: 13.5px;
    font-weight: 500 !important;
    color: var(--tn-muted) !important;
    text-decoration: none !important;
}

.tn-block-subcats a:hover {
    color: var(--tn-primary) !important;
}

.tn-block-more {
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600 !important;
    color: var(--tn-primary) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Lead Card */
.tn-lead-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
}

.tn-lead-thumb,
.tn-std-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tn-bg-subtle);
}

.tn-lead-thumb img,
.tn-std-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-lead-card:hover .tn-lead-thumb img,
.tn-std-card:hover .tn-std-thumb img,
.tn-split-main:hover .tn-std-thumb img {
    transform: scale(1.03);
}

.tn-lead-title {
    font-size: 22px !important;
    line-height: 1.32 !important;
    margin: 0 0 10px !important;
}

.tn-lead-title a,
.tn-std-title a,
.tn-mini-title a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-lead-title a:hover,
.tn-std-title a:hover,
.tn-mini-title a:hover {
    color: var(--tn-primary) !important;
}

.tn-lead-excerpt,
.tn-std-excerpt {
    font-size: 14.5px;
    line-height: 1.58;
    color: var(--tn-ink-secondary);
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-cards-3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tn-cards-4col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.tn-full-1plus4-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.tn-full-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tn-std-thumb.is-tall {
    aspect-ratio: 16 / 10.6;
    margin-bottom: 14px;
}

.tn-lead-card.is-wide {
    grid-template-columns: 1.08fr 1fr;
    gap: 28px;
    margin-bottom: 26px;
}

.tn-lead-title.is-xxl,
.tn-std-title.is-xxl {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
}

.tn-cards-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 20px;
}

.tn-std-card .tn-std-thumb,
.tn-split-main .tn-std-thumb {
    margin-bottom: 10px;
}

.tn-std-title {
    font-size: 16.5px !important;
    line-height: 1.38 !important;
    margin: 0 0 6px !important;
}

.tn-std-title.is-xl {
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.tn-compact-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    padding-top: 18px;
    border-top: 1px solid var(--tn-border);
}

.tn-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

.tn-split-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tn-mini-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.tn-mini-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10.5;
    background: var(--tn-bg-subtle);
}

.tn-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tn-mini-title {
    font-size: 15px !important;
    line-height: 1.38 !important;
    margin: 0 0 4px !important;
}

.tn-mini-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-mini-date {
    font-size: 12px;
    color: var(--tn-muted);
}

/* Right Sidebar Sticky */
.tn-sidebar-sticky {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ĐỌC NHIỀU NHẤT Box (Screenshot #4) */
.tn-most-viewed-box {
    background: #FFFFFF;
    border: 1px solid var(--tn-border);
    border-radius: 12px;
    padding: 20px 22px;
}

.tn-mv-header {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1.5px solid var(--tn-ink);
}

.tn-mv-pill {
    display: inline-block;
    background: var(--tn-primary);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.tn-mv-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-mv-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    margin: 0 !important;
    border-bottom: 1px solid #F1F5F9;
}

.tn-mv-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tn-mv-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tn-primary);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.tn-mv-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600 !important;
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-mv-title:hover {
    color: var(--tn-primary) !important;
}

/* VIDEO REVIEWS Card (Screenshot #5) */
.tn-video-reviews-card {
    background: #FFFFFF;
    border: 1px solid var(--tn-border);
    border-radius: 12px;
    padding: 22px;
}

.tn-vr-header {
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-vr-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--tn-primary) !important;
    text-transform: uppercase;
    margin: 0 !important;
    letter-spacing: 0.02em;
}

.tn-vr-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-vr-item {
    margin: 0 !important;
    border-bottom: 1px solid #F1F5F9;
}

.tn-vr-item:last-child {
    border-bottom: none;
}

.tn-vr-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 0;
    text-decoration: none !important;
    color: var(--tn-ink) !important;
}

.tn-vr-icon {
    font-size: 15px;
    line-height: 1.4;
    flex-shrink: 0;
}

.tn-vr-text {
    font-size: 15px;
    line-height: 1.42;
    font-weight: 600;
    color: var(--tn-ink);
    transition: color 0.15s ease;
}

.tn-vr-link:hover .tn-vr-text {
    color: var(--tn-primary);
}

/* ==========================================================================
 * 4. CATEGORY & SUBCATEGORY ARCHIVE (BANGKOK POST STYLE)
 * ========================================================================== */
.tn-category-archive {
    background: #FFFFFF;
    padding: 34px 0 60px;
}

.tn-cat-masthead {
    text-align: center;
    margin-bottom: 32px;
}

.tn-cat-parent-heading {
    font-size: clamp(28px, 3.4vw, 40px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--tn-ink) !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 16px !important;
}

.tn-cat-parent-heading a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-cat-parent-heading a:hover {
    color: var(--tn-primary) !important;
}

.tn-cat-divider {
    width: 100%;
    height: 1px;
    background-color: #1F2937;
}

.tn-cat-subbar {
    padding: 14px 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tn-cat-subbar::-webkit-scrollbar {
    display: none;
}

.tn-cat-sublist {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.tn-cat-subitem {
    margin: 0 !important;
}

.tn-cat-subitem a {
    font-size: 14px;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tn-cat-subitem a:hover,
.tn-cat-subitem.is-active a {
    color: var(--tn-primary) !important;
    border-bottom-color: var(--tn-primary);
}

/* Top 1 + 4 Featured Grid (Screenshot #8) */
.tn-cat-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 44px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-cat-feat-thumb,
.tn-cat-quad-thumb {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tn-bg-subtle);
}

.tn-cat-feat-thumb {
    aspect-ratio: 16 / 11.2;
    margin-bottom: 16px;
}

.tn-cat-quad-thumb {
    aspect-ratio: 16 / 10.2;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tn-cat-feat-thumb img,
.tn-cat-quad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-cat-feat-main:hover .tn-cat-feat-thumb img,
.tn-cat-quad-card:hover .tn-cat-quad-thumb img {
    transform: scale(1.03);
}

.tn-white-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #FFFFFF;
    color: var(--tn-ink);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tn-cat-feat-title {
    font-size: 24px !important;
    line-height: 1.32 !important;
    margin: 0 0 8px !important;
}

.tn-cat-feat-title a,
.tn-cat-quad-title a,
.tn-horiz-title a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-cat-feat-title a:hover,
.tn-cat-quad-title a:hover,
.tn-horiz-title a:hover {
    color: var(--tn-primary) !important;
}

.tn-cat-feat-date,
.tn-cat-quad-date {
    display: block;
    font-size: 13px;
    color: var(--tn-muted);
    margin-bottom: 10px;
}

.tn-cat-feat-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--tn-ink-secondary);
    margin: 0 !important;
}

.tn-cat-feat-quad {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tn-cat-quad-title {
    font-size: 16px !important;
    line-height: 1.38 !important;
    margin: 0 0 6px !important;
}

.tn-cat-quad-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Archive Body + Sidebar (Screenshot #9) */
.tn-cat-body {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.tn-horiz-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.tn-horiz-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--tn-border);
}

.tn-horiz-card:last-child {
    border-bottom: none;
}

.tn-horiz-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tn-bg-subtle);
}

.tn-horiz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-horiz-card:hover .tn-horiz-thumb img {
    transform: scale(1.03);
}

.tn-horiz-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
}

.tn-horiz-excerpt {
    font-size: 14.5px;
    line-height: 1.58;
    color: var(--tn-ink-secondary);
    margin: 0 0 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-horiz-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--tn-ink-secondary);
}

.tn-horiz-author,
.tn-horiz-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Circular-Thumbnail "ĐỌC NHIỀU NHẤT" Sidebar (Screenshot #9) */
.tn-circle-sidebar-box {
    background: #FFFFFF;
}

.tn-circle-sb-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--tn-ink) !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px;
    position: relative;
}

.tn-circle-sb-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2.5px;
    background: var(--tn-primary);
}

.tn-circle-sb-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-circle-sb-item {
    margin: 0 !important;
    border-bottom: 1px solid #F1F5F9;
}

.tn-circle-sb-item:last-child {
    border-bottom: none;
}

.tn-circle-sb-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none !important;
}

.tn-circle-sb-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tn-bg-subtle);
}

.tn-circle-sb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tn-circle-sb-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--tn-ink);
    transition: color 0.15s ease;
}

.tn-circle-sb-link:hover .tn-circle-sb-title {
    color: var(--tn-primary);
}

/* Pagination */
.tn-pagination ul.page-numbers {
    list-style: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0 !important;
    padding: 0 !important;
}

.tn-pagination ul.page-numbers li {
    margin: 0 !important;
}

.tn-pagination .page-numbers a,
.tn-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--tn-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--tn-ink);
    text-decoration: none !important;
}

.tn-pagination .page-numbers .current,
.tn-pagination .page-numbers a:hover {
    background: var(--tn-primary);
    border-color: var(--tn-primary);
    color: #FFFFFF !important;
}

/* ==========================================================================
 * 5. SINGLE POST (BÀI VIẾT CHI TIẾT + RIGHT SIDEBAR)
 * ========================================================================== */
.blog-single.page-wrapper {
    background: var(--tn-bg-subtle);
    padding: 28px 0 48px !important;
}

.tn-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tn-single-main,
.tn-single-sidebar,
.tn-body-main,
.tn-body-sidebar,
.tn-cat-list-col,
.tn-cat-sidebar,
.tn-hero-main,
.tn-hero-recent {
    min-width: 0 !important;
    max-width: 100% !important;
}

.tn-single-main article.post {
    background: #FFFFFF;
    border-radius: 12px;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tn-single-main .article-inner {
    padding: 28px 36px 22px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.blog-single .entry-header,
.blog-single .entry-header-text {
    padding: 0 !important;
    margin: 0 !important;
}

/* Category - Subcategory Breadcrumb (No Home, No Title) */
.tn-post-cat-breadcrumb {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tn-muted);
}

.tn-cat-crumb-link {
    color: var(--tn-primary) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.tn-cat-crumb-link:hover {
    text-decoration: underline !important;
}

.tn-crumb-sep {
    margin: 0 6px;
    color: #9CA3AF;
}

.blog-single .entry-title {
    font-size: clamp(25px, 2.85vw, 34px) !important;
    line-height: 1.28 !important;
    color: var(--tn-ink) !important;
    margin: 0 0 14px !important;
    text-align: left !important;
}

/* Meta bar: Author + "11 tháng 11, 2026" on left, Views on right */
.blog-single .thong-tin-post.tn-single-meta-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    float: none !important;
    width: 100% !important;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tn-border);
    font-size: 14.5px;
    color: var(--tn-muted);
}

.blog-single .tn-single-meta-bar .author {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: auto !important;
    float: none !important;
}

.blog-single .tn-single-meta-bar .author .info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 0 !important;
    color: #374151;
    font-weight: 500;
}

.blog-single .tn-single-meta-bar .author img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
}

.blog-single .tn-single-meta-bar .luot-xem {
    width: auto !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--tn-muted);
}

/* Clean Editorial Spacing Inside Article Body (.entry-content) */
.blog-single .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 17.5px !important;
    line-height: 1.74 !important;
    color: #1F2937 !important;
}

.blog-single .entry-content > *:first-child {
    margin-top: 0 !important;
}

.blog-single .entry-content p {
    margin: 0 0 18px !important;
    line-height: 1.74 !important;
}

.blog-single .entry-content p:last-child {
    margin-bottom: 0 !important;
}

.blog-single .entry-content h2 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin: 28px 0 12px !important;
    color: var(--tn-ink) !important;
}

.blog-single .entry-content h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin: 24px 0 10px !important;
    color: var(--tn-ink) !important;
}

.blog-single .entry-content h4 {
    font-size: 18px !important;
    line-height: 1.42 !important;
    margin: 20px 0 8px !important;
    color: var(--tn-ink) !important;
}

.blog-single .entry-content ul,
.blog-single .entry-content ol {
    margin: 0 0 18px 22px !important;
    padding: 0 !important;
}

.blog-single .entry-content li {
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
}

.blog-single .entry-content figure,
.blog-single .entry-content .wp-caption,
.blog-single .entry-content [id^="attachment_"],
.blog-single .entry-content .wp-block-image {
    margin: 22px auto !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.blog-single .entry-content img,
.blog-single .entry-content iframe,
.blog-single .entry-content video,
.blog-single .entry-content embed,
.blog-single .entry-content table {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
}

.blog-single .entry-content figcaption,
.blog-single .entry-content .wp-caption-text {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: var(--tn-muted) !important;
    text-align: center;
    padding-top: 8px !important;
    margin: 0 !important;
}

.blog-single .post-sapo {
    margin: 0 0 22px !important;
    padding: 2px 0 2px 16px !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
}

.blog-single #toc_container {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin: 0 0 22px !important;
    width: 100% !important;
}

/* Single Right Sidebar Cards (Screenshot #12 exact match) */
.tn-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tn-sp-widget {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tn-sp-widget-title {
    font-size: 17.5px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.tn-sp-card-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tn-sp-card {
    margin: 0 !important;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.tn-sp-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.tn-sp-card-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tn-bg-subtle);
    margin-bottom: 10px;
}

.tn-sp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-sp-card:hover .tn-sp-card-thumb img {
    transform: scale(1.03);
}

.tn-sp-card-heading {
    font-size: 16.5px !important;
    line-height: 1.38 !important;
    font-weight: 600 !important;
    margin: 0 0 6px !important;
}

.tn-sp-card-heading a {
    color: #222222 !important;
    text-decoration: none !important;
}

.tn-sp-card-heading a:hover {
    color: var(--tn-primary) !important;
}

.tn-sp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #7A7A7A;
}

.tn-sp-card-author {
    font-weight: 600;
    color: #5C5C5C;
}

/* ==========================================================================
 * 5A. FACEBOOK-STYLE POST REACTIONS & ENGAGEMENT BAR
 * ========================================================================== */
.tn-fb-reactions-wrap {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid var(--tn-border);
    user-select: none;
}

.tn-fb-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    color: var(--tn-muted);
}

.tn-fb-summary-bar[hidden] {
    display: none !important;
}

.tn-fb-summary-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tn-fb-top-emojis {
    display: inline-flex;
    align-items: center;
}

.tn-fb-mini-emoji {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F3F4F6;
    border: 2px solid #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    margin-left: -5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tn-fb-mini-emoji:first-child {
    margin-left: 0;
}

.tn-fb-total-text {
    font-size: 14px;
    color: var(--tn-ink-secondary);
    font-weight: 500;
}

.tn-fb-summary-comments {
    font-size: 14px;
    color: var(--tn-muted) !important;
    text-decoration: none !important;
}

.tn-fb-summary-comments:hover {
    text-decoration: underline !important;
    color: var(--tn-primary) !important;
}

.tn-fb-actions-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 2px;
}

.tn-fb-like-container,
.tn-fb-share-container {
    position: relative;
    display: flex;
}

/* Share Popover Menu (Drops cleanly BELOW Share button, 100% opaque white) */
.tn-fb-share-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 230px;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    z-index: 920;
    opacity: 1 !important;
    flex-direction: column;
    gap: 2px;
}

.tn-fb-share-menu.is-open {
    display: flex !important;
}

.tn-share-option {
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tn-ink) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.tn-share-option:hover {
    background-color: #F3F4F6 !important;
    color: var(--tn-primary) !important;
}

.tn-fb-share-btn.is-copied {
    color: #059669 !important;
    background-color: #ECFDF5 !important;
}

.tn-fb-action-btn {
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #4B5563 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.tn-fb-action-btn:hover {
    background-color: #F3F4F6 !important;
    color: var(--tn-ink) !important;
}

.tn-fb-action-btn:active {
    transform: scale(0.98);
}

.tn-fb-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
}

/* Floating Facebook 7-Emoji Dock */
.tn-fb-dock {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.94);
    transform-origin: bottom left;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 60;
    pointer-events: none;
}

/* Invisible hover bridge so moving mouse from button to dock never closes dock */
.tn-fb-dock::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.tn-fb-like-container:hover .tn-fb-dock,
.tn-fb-like-container.is-dock-open .tn-fb-dock {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tn-fb-dock-item {
    position: relative;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tn-fb-dock-emoji {
    font-size: 28px;
    line-height: 1;
    display: block;
}

.tn-fb-dock-item:hover,
.tn-fb-dock-item:focus-visible {
    transform: translateY(-7px) scale(1.32);
}

.tn-fb-dock-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.9);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease;
}

.tn-fb-dock-item:hover .tn-fb-dock-tooltip {
    opacity: 1;
}

/* ==========================================================================
 * 5B. COMMENTS SECTION UX/UI (PIXEL-ALIGNED + ADMIN VERIFIED BADGE)
 * ========================================================================== */
#comments.tn-comments-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 26px 36px;
    margin-top: 22px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tn-comments-header {
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid var(--tn-ink);
}

.tn-comments-heading {
    width: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--tn-ink) !important;
    margin: 0 !important;
}

.tn-comments-heading-text {
    display: inline-block;
    line-height: 1;
}

.tn-comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--tn-primary-soft);
    color: var(--tn-primary);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

/* Verified Blue Checkmark Badge */
.tn-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.tn-verified-badge svg {
    width: 15px;
    height: 15px;
    display: block;
}

/* Override legacy Flatsome #comments .comment-respond rules */
#comments .tn-comment-respond {
    background: transparent !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#comments .tn-comment-form {
    margin: 0 !important;
}

.tn-reply-to-title {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--tn-ink) !important;
    margin: 0 0 12px 58px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tn-reply-to-title:empty,
.tn-reply-to-title:has(#cancel-comment-reply-link[style*="none"]) {
    display: none !important;
    margin: 0 !important;
}

.tn-cancel-reply a {
    font-size: 12.5px;
    font-weight: 600;
    color: #DC2626 !important;
    background: #FEF2F2;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Shared 44px Avatar + 14px Gap = 58px Left Axis for Perfect Vertical Alignment */
.tn-compose-grid {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.tn-cmt-fields-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 12px 58px !important;
}

.tn-cmt-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600 !important;
    color: #374151;
    margin-bottom: 6px;
}

.tn-req {
    color: #EF4444;
}

.tn-cmt-field input {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1.5px solid var(--tn-border) !important;
    border-radius: 10px !important;
    background: #F9FAFB !important;
    color: var(--tn-ink) !important;
    font-size: 14.5px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tn-cmt-field input:focus {
    background: #FFFFFF !important;
    border-color: var(--tn-primary) !important;
    outline: none !important;
}

.tn-compose-box textarea {
    width: 100% !important;
    min-height: 104px;
    margin: 0 !important;
    padding: 13px 16px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    background: #F8FAFC !important;
    color: var(--tn-ink) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    resize: vertical;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tn-compose-box textarea:focus {
    background: #FFFFFF !important;
    border-color: var(--tn-primary) !important;
    outline: none !important;
}

/* Footer row aligned strictly under the textarea (margin-left: 58px) */
.tn-cmt-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 0 58px !important;
}

.tn-compose-user-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--tn-muted);
}

.tn-compose-as {
    display: inline-flex;
    align-items: center;
}

.tn-compose-as strong {
    color: var(--tn-ink);
    font-weight: 600 !important;
    margin-left: 4px;
}

.tn-compose-user-meta a {
    color: var(--tn-primary) !important;
    font-weight: 500;
    text-decoration: none !important;
}

.tn-compose-user-meta a:hover {
    text-decoration: underline !important;
}

.tn-logged-sep {
    color: #CBD5E1;
}

.tn-cmt-submit-actions {
    margin-left: auto;
}

#comments input.tn-cmt-submit-btn {
    background-color: var(--tn-primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
    padding: 0 22px !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
}

#comments input.tn-cmt-submit-btn:hover {
    background-color: var(--tn-primary-dark) !important;
}

/* Comment List & Facebook-style Clean Comment Bubbles */
ol.tn-comment-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid #EEF2F6;
}

.tn-comment-item {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: none !important;
}

.tn-comment-item:last-child {
    margin-bottom: 0 !important;
}

.tn-comment-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.tn-comment-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #E2E8F0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
    background-size: 64%;
    background-position: center 75%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.tn-comment-avatar img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    border: 1px solid #E2E8F0;
    margin: 0 !important;
}

.tn-comment-main {
    min-width: 0;
}

.tn-comment-bubble {
    background: #F3F5F8;
    border-radius: 14px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

.tn-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tn-comment-author {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600 !important;
    color: var(--tn-ink) !important;
}

.tn-comment-author a {
    font-weight: 600 !important;
    font-style: normal !important;
    color: var(--tn-ink) !important;
    text-decoration: none !important;
}

.tn-comment-author a:hover {
    color: var(--tn-primary) !important;
}

.tn-comment-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    font-size: 11.5px;
    line-height: 1;
    font-weight: 600;
    color: var(--tn-primary);
    background: #E2ECFF;
    padding: 0 8px;
    border-radius: 999px;
}

.tn-comment-awaiting {
    font-size: 13px;
    color: #B45309;
    background: #FEF3C7;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 6px 0 8px !important;
}

.tn-comment-content {
    font-size: 15px;
    line-height: 1.58;
    color: #1F2937;
}

.tn-comment-content p {
    margin: 0 0 6px !important;
}

.tn-comment-content p:last-child {
    margin-bottom: 0 !important;
}

.tn-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 0 6px;
    font-size: 12.5px;
    line-height: 1.2;
}

.tn-comment-time {
    color: var(--tn-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.tn-comment-time:hover {
    color: var(--tn-primary) !important;
}

.tn-action-dot {
    color: #CBD5E1;
}

.tn-cmt-reply a,
.tn-cmt-edit a {
    font-weight: 600;
    color: #4B5563 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tn-cmt-reply a:hover,
.tn-cmt-edit a:hover {
    color: var(--tn-primary) !important;
}

/* Nested Replies Aligned to Avatar Column */
.tn-comment-list ul.children,
.tn-comment-list ol.children {
    list-style: none !important;
    margin: 14px 0 0 58px !important;
    padding: 0 0 0 18px !important;
    border-left: 2px solid #E2E8F0;
}

/* Inline Reply Box when clicking "Trả lời" */
.tn-comment-item #respond.tn-comment-respond {
    margin: 12px 0 8px 58px !important;
    padding: 16px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0;
    border-radius: 12px !important;
}

.tn-no-comments-yet,
.tn-comments-closed {
    font-size: 14.5px;
    color: var(--tn-muted) !important;
    text-align: center;
    padding: 18px 0 4px;
    margin: 0 !important;
    border-top: 1px solid #F1F5F9;
}

.tn-cmt-nav-links {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
}

.tn-cmt-nav-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tn-primary) !important;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    #comments.tn-comments-box {
        padding: 20px 16px;
    }

    .tn-fb-dock {
        left: -6px;
        padding: 5px 7px;
        gap: 3px;
    }

    .tn-fb-dock-item {
        width: 35px !important;
        height: 35px !important;
        min-height: 35px !important;
    }

    .tn-fb-dock-emoji {
        font-size: 24px;
    }

    .tn-fb-action-btn {
        font-size: 13.5px !important;
        padding: 0 6px !important;
        gap: 5px;
    }

    .tn-compose-grid,
    .tn-comment-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .tn-comment-avatar,
    .tn-comment-avatar img {
        width: 36px !important;
        height: 36px !important;
    }

    .tn-cmt-fields-row,
    .tn-cmt-submit-row,
    .tn-reply-to-title {
        margin-left: 0 !important;
    }

    .tn-cmt-fields-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tn-cmt-submit-actions {
        width: 100%;
    }

    #comments input.tn-cmt-submit-btn {
        width: 100%;
    }

    .tn-comment-list ul.children,
    .tn-comment-list ol.children {
        margin-left: 18px !important;
        padding-left: 12px !important;
    }

    .tn-comment-item #respond.tn-comment-respond {
        margin-left: 0 !important;
    }
}

/* Bottom Full-Width "Có thể bạn quan tâm" Section on Single Post */
.tn-single-bottom-interest {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--tn-border);
}

.tn-bottom-interest-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--tn-ink);
    padding-bottom: 10px;
    margin-bottom: 26px;
}

.tn-bottom-interest-title {
    width: auto !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    color: var(--tn-ink) !important;
    text-transform: uppercase;
    margin: 0 !important;
}

.tn-bottom-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tn-interest-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.tn-interest-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tn-bg-subtle);
}

.tn-interest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tn-interest-card:hover .tn-interest-thumb img {
    transform: scale(1.04);
}

.tn-interest-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.tn-interest-heading {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin: 0 0 10px !important;
}

.tn-interest-heading a {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-interest-heading a:hover {
    color: var(--tn-primary) !important;
}

@media (max-width: 1024px) {
    .tn-bottom-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tn-bottom-interest-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
 * 6. FOOTER (EDITORIAL 2-COLUMN: LOGO CENTERED LEFT, CONTACT RIGHT, #024BE6 BAR)
 * ========================================================================== */
.tn-site-footer {
    border-top: 3px solid var(--tn-primary);
    background-color: #F6F8FC;
    margin-top: 0;
}

.tn-footer-main {
    padding: 48px 0;
}

.tn-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.tn-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 32px;
    border-right: 1px solid #DDE3EE;
    min-height: 150px;
}

.tn-footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.tn-footer-brand-logo {
    width: 430px !important;
    max-width: 88% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.tn-footer-brand-text {
    font-size: 36px;
    font-weight: 800;
    color: var(--tn-primary);
    letter-spacing: -0.03em;
}

.tn-footer-contact {
    padding-left: 20px;
}

.tn-footer-heading {
    width: auto !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em !important;
    color: var(--tn-primary) !important;
    margin: 0 0 18px !important;
    padding-bottom: 10px;
    position: relative;
}

.tn-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2.5px;
    background-color: var(--tn-primary);
    border-radius: 2px;
}

.tn-footer-contact-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tn-footer-contact-list li {
    margin: 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tn-ink-secondary);
}

.tn-fc-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background-color: var(--tn-primary-soft);
    color: var(--tn-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -1px;
}

.tn-fc-label {
    color: var(--tn-muted);
    font-weight: 500;
    white-space: nowrap;
}

.tn-fc-val {
    color: var(--tn-ink);
    font-weight: 500;
}

strong.tn-fc-val {
    font-weight: 600 !important;
}

.tn-fc-link {
    color: var(--tn-ink) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tn-fc-link:hover {
    color: var(--tn-primary) !important;
}

/* Bottom #024BE6 Copyright Strip */
.tn-footer-bottom {
    background-color: var(--tn-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 0;
}

.tn-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tn-copyright {
    margin: 0 !important;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.92) !important;
    text-align: center;
}

.tn-copyright strong {
    color: #FFFFFF;
    font-weight: 700 !important;
}

/* ==========================================================================
 * 7. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
 * ========================================================================== */
@media (max-width: 1024px) {
    .tn-hero-grid,
    .tn-body-layout,
    .tn-cat-body,
    .tn-single-grid,
    .tn-full-1plus4-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .tn-sidebar-sticky {
        position: static;
    }

    /* Enable smooth horizontal scroll strip on Tablet (<= 1024px) too */
    .tn-nav-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tn-nav-list::-webkit-scrollbar {
        display: none;
    }

    .tn-nav-list .tn-subnav {
        display: none !important;
    }

    .tn-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .tn-hero-subgrid,
    .tn-cards-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tn-sp-card-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 849px) {
    .tn-header-top-inner {
        min-height: 62px;
    }

    .tn-header-wrap.is-stuck .tn-header-top-inner {
        min-height: 46px;
    }

    .tn-header-top .tn-logo-img {
        height: 44px;
        max-height: 44px;
    }

    .tn-header-wrap.is-stuck .tn-header-top .tn-logo-img {
        height: 32px;
        max-height: 32px;
    }

    /* Horizontal scrollable category bar on mobile */
    .tn-header-nav .tn-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tn-nav-link {
        padding: 11px 10px;
        font-size: 13px;
    }

    .tn-cat-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .tn-horiz-card {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 16px;
    }

    .tn-footer-main {
        padding: 36px 0;
    }

    .tn-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tn-footer-brand {
        border-right: none;
        border-bottom: 1px solid #DDE3EE;
        padding-right: 0;
        padding-bottom: 24px;
        min-height: auto;
    }

    .tn-footer-brand-logo {
        width: 280px !important;
        max-width: 78% !important;
        height: auto !important;
    }

    .tn-footer-contact {
        padding-left: 0;
    }

    .tn-footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .tn-footer-quicklinks {
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .tn-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tn-search-popover {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }

    .tn-search-popover::before {
        display: none;
    }

    .tn-mega-body {
        padding: 20px 0 32px;
    }

    .tn-mega-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .tn-hero-slides {
        aspect-ratio: 16 / 10.5;
    }

    .tn-hero-slide-overlay {
        padding: 18px 16px;
    }

    .tn-hero-headline {
        font-size: 19px !important;
    }

    .tn-hero-subgrid,
    .tn-cards-3col,
    .tn-cards-4col,
    .tn-cards-2col,
    .tn-compact-2col,
    .tn-split-grid,
    .tn-full-quad-grid,
    .tn-cat-feat-quad,
    .tn-sp-card-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .tn-lead-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .tn-horiz-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tn-cat-subbar {
        padding: 12px 4px 6px;
    }

    .tn-cat-sublist {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 18px;
        padding-bottom: 2px;
    }

    .tn-cat-subitem a {
        white-space: nowrap;
        font-size: 13px;
    }

    .tn-single-main .article-inner {
        padding: 20px 16px !important;
    }

    #comments .comment-respond {
        padding: 16px !important;
    }

    .comment-form-author,
    .comment-form-email {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
