/*
Theme Name: JNews - Child Theme
Version: 1.0.1
Theme URI: http://themeforest.net/?ref=jegtheme
Description: TechNews customized child theme for JNews.
Author: Jegtheme & TechNews
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    --accent-cyan: #06b6d4;
    --accent-orange: #d97706;
    --accent-purple: #7c3aed;
    --accent-green: #059669;
    
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-topbar: #181f2c;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-hover: 0 14px 30px -4px rgba(37,99,235,0.12), 0 8px 12px -4px rgba(0,0,0,0.06);
    
    --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
}

/* Reset & Global */
body, .jeg_viewport {
    font-family: var(--font-main) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.technews-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ================= TOP BAR ================= */
.tn-topbar {
    background-color: var(--bg-topbar);
    color: var(--text-light);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.tn-top-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 400;
}

.tn-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tn-top-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tn-top-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.tn-top-menu a:hover {
    color: #ffffff;
}

.tn-top-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.tn-top-socials a {
    color: #94a3b8;
    font-size: 13px;
    display: inline-flex;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.tn-top-socials a:hover {
    color: #38bdf8;
    transform: translateY(-1px);
}

/* ================= MAIN HEADER ================= */
.tn-header {
    background-color: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.tn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tn-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.tn-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.tn-logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    border-radius: 0 0 0 100%;
}

.tn-logo-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

.tn-logo-title .tech {
    color: var(--primary);
}

.tn-logo-title .vn-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin: 0 2px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.tn-logo-title .news {
    color: #0f172a;
}

.tn-logo-tagline {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: -0.1px;
}

/* Search */
.tn-header-search {
    flex: 1;
    max-width: 460px;
    position: relative;
}

.tn-search-form {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px 4px 3px 14px;
    transition: all 0.25s ease;
}

.tn-search-form:focus-within {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.tn-search-form input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-main);
    width: 100%;
    font-family: var(--font-main);
}

.tn-search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    outline: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tn-search-btn:hover {
    background-color: var(--primary-hover);
}

/* Header Banner */
.tn-header-banner {
    flex-shrink: 0;
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.tn-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(37,99,235,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 20px;
    border: 1px solid rgba(96,165,250,0.3);
}

.tn-banner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.tn-banner-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.tn-banner-arrow {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.2s;
    margin-left: 6px;
}

.tn-header-banner:hover .tn-banner-arrow {
    transform: translateX(3px);
}

/* ================= NAVBAR ================= */
.tn-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.tn-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.tn-nav-item {
    position: relative;
}

.tn-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.tn-nav-link:hover, .tn-nav-item.current-menu-item > .tn-nav-link {
    color: var(--primary);
}

.tn-nav-home {
    padding: 13px 18px;
    font-size: 15px;
    color: var(--primary);
    background-color: #f8fafc;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tn-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--primary);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
    list-style: none;
    margin: 0;
}

.tn-nav-item:hover .tn-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tn-nav-dropdown a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.tn-nav-dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ================= HERO SECTION ================= */
.tn-hero-section {
    margin-bottom: 30px;
}

.tn-hero-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
}

.tn-hero-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #1e293b;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

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

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

.tn-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.4) 40%, rgba(15,23,42,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.tn-hero-main {
    height: 420px;
}

.tn-hero-side-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tn-hero-side-card {
    height: 202px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #1e293b;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.tn-hero-side-card:hover .tn-hero-card-img {
    transform: scale(1.04);
}

.tn-hero-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: white;
}

/* Badges */
.tn-tag-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    width: fit-content;
    color: #ffffff;
}

.tn-tag-badge.blue { background-color: #2563eb; }
.tn-tag-badge.amber, .tn-tag-badge.orange { background-color: #d97706; }
.tn-tag-badge.green, .tn-tag-badge.emerald { background-color: #059669; }
.tn-tag-badge.purple { background-color: #7c3aed; }
.tn-tag-badge.darkblue { background-color: #1e40af; }

.tn-hero-title-main {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 10px;
}

.tn-hero-desc-main {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.tn-hero-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tn-read-more-link {
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    text-decoration: none;
}

.tn-hero-side-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= 2-COLUMN LAYOUT ================= */
.tn-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.tn-layout-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* ================= UNIFIED CATEGORY SECTION & FRAMED HEADERS ================= */
.tn-news-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 28px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tn-news-section:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.tn-section-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 0 !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    box-shadow: none !important;
    position: relative !important;
}

.tn-section-header::after,
.tn-section-header::before {
    display: none !important;
}

.tn-section-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-section-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-section-icon i {
    display: inline-block !important;
    line-height: 1 !important;
    font-size: 13px !important;
}

.tn-section-title {
    font-family: var(--font-heading) !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.tn-section-title::before,
.tn-section-title::after {
    display: none !important;
}

.tn-view-all-btn {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    background: #eff6ff !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    padding: 5px 13px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.tn-view-all-btn i {
    font-size: 10.5px !important;
    color: var(--primary) !important;
    transition: transform 0.2s ease !important;
}

.tn-view-all-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}

.tn-view-all-btn:hover i {
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

.tn-cards-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
}

.tn-post-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tn-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.tn-post-card-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background-color: #e2e8f0;
}

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

.tn-post-card:hover .tn-post-card-thumb img {
    transform: scale(1.06);
}

.tn-post-card-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    margin-bottom: 0;
    font-size: 10px;
    padding: 3px 8px;
}

.tn-post-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tn-post-card-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.tn-post-card-title a:hover {
    color: var(--primary);
}

.tn-post-card-excerpt {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tn-post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* ================= SIDEBAR ================= */
.tn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tn-sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tn-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.tn-widget-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 2px;
}

.tn-widget-title {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.2px !important;
}

.tn-widget-title::before,
.tn-widget-title::after {
    display: none !important;
}

.tn-widget-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    flex-shrink: 0 !important;
}

/* Popular Posts */
.tn-popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tn-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tn-popular-rank {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: #2563eb;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tn-popular-thumb {
    width: 68px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e2e8f0;
}

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

.tn-popular-content {
    flex: 1;
}

.tn-popular-title {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    text-decoration: none;
}

.tn-popular-title:hover {
    color: var(--primary);
}

.tn-popular-date {
    font-size: 11px;
    color: var(--text-light);
}

/* Categories */
.tn-category-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tn-category-item {
    border-bottom: 1px solid var(--border-light);
}

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

.tn-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tn-category-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tn-category-icon {
    color: var(--primary);
    font-size: 13px;
}

.tn-category-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.tn-category-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

.tn-category-link:hover .tn-category-count {
    background: var(--primary-light);
    color: var(--primary);
}

/* Newsletter Widget */
.tn-newsletter-widget {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.tn-newsletter-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(37,99,235,0.25);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #60a5fa;
    margin-bottom: 12px;
    border: 1px solid rgba(96,165,250,0.3);
}

.tn-newsletter-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.tn-newsletter-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 16px;
}

.tn-newsletter-form {
    display: flex;
    gap: 8px;
}

.tn-newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 12.5px;
    color: white;
    outline: none;
    font-family: var(--font-main);
}

.tn-newsletter-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
}

.tn-newsletter-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-main);
}

/* ================= FEATURES BAR ================= */
.tn-features-bar {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 30px;
}

.tn-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tn-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tn-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: #f1f5f9;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tn-feature-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px;
}

.tn-feature-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

/* ================= FOOTER ================= */
.tn-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 44px 0 20px;
    font-size: 13px;
}

.tn-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 36px;
}

.tn-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tn-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
}

.tn-footer-logo-text .vn-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    margin: 0 3px;
    letter-spacing: 0.5px;
}

.tn-footer-logo-text .domain {
    color: #38bdf8;
}

.tn-footer-logo-text span:not(.vn-badge) {
    color: #38bdf8;
}

.tn-footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 16px;
}

.tn-footer-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.tn-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
}

.tn-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.tn-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.tn-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.tn-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

/* ================= SINGLE ARTICLE ENHANCEMENTS ================= */
/* Suppress all intrusive JNews inline injected related boxes */
.jnews_inline_related_post_wrapper,
.jnews_inline_related_post,
.jeg_inline_related,
.jeg_inline_content {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-single-article {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.tn-single-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin: 12px 0 16px;
    color: var(--text-main);
}

.tn-entry-content h2 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.tn-entry-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px;
}

.tn-entry-content p {
    margin-bottom: 18px;
    color: #334155;
    font-size: 15.5px;
    line-height: 1.85;
}

.tn-entry-content ul, .tn-entry-content ol {
    margin: 16px 0 24px 20px;
    color: #334155;
    line-height: 1.8;
}

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

/* ================= ULTRA-PREMIUM CODE BLOCK STYLING ================= */
/* Inline Code (inside paragraphs, lists, table cells) */
.tn-entry-content :not(pre) > code,
.tn-entry-content p > code,
.tn-entry-content li > code,
.tn-entry-content td > code,
.tn-entry-content th > code {
    background-color: #f1f5f9 !important;
    color: #0284c7 !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace !important;
    font-size: 0.88em !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    display: inline !important;
    white-space: normal !important;
}

/* Code Block Outer Wrapper */
.tn-code-block-wrap {
    margin: 18px 0;
    border-radius: 8px;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px -4px rgba(2, 6, 23, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tn-code-block-wrap:hover {
    box-shadow: 0 12px 28px -4px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.2);
}

/* Top Accent Gradient Border */
.tn-code-block-wrap::before {
    content: '';
    display: block;
    height: 1.5px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 35%, #8b5cf6 70%, #ec4899 100%);
    width: 100%;
}

/* Mac OS Style Window Header (Slim & Compact) */
.tn-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #151d2a 0%, #0f1521 100%);
    padding: 5px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    gap: 8px;
    min-height: 28px;
    box-sizing: border-box;
}

/* Traffic light dots */
.tn-code-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.tn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.tn-code-dots:hover .tn-dot {
    opacity: 0.9;
}

.tn-dot.red {
    background-color: #ff5f56;
    border: 1px solid #e0443e;
}

.tn-dot.yellow {
    background-color: #ffbd2e;
    border: 1px solid #dea123;
}

.tn-dot.green {
    background-color: #27c93f;
    border: 1px solid #1aab29;
}

/* Language / Terminal Tag Badge */
.tn-code-label {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1px 7px;
    border-radius: 12px;
    line-height: 1.4;
}

.tn-code-label i {
    color: #38bdf8;
    font-size: 10px;
}

/* Sleek Compact Copy Button */
.tn-copy-code-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    line-height: 1.4;
}

.tn-copy-code-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
    transform: translateY(-0.5px);
}

.tn-copy-code-btn:active {
    transform: scale(0.96);
}

.tn-copy-code-btn.copied {
    background: #059669 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.35) !important;
}

/* Pre tag styling (Compact & Sleek) */
.tn-entry-content pre {
    background: #090d16 !important;
    color: #f1f5f9 !important;
    padding: 11px 15px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    overflow-x: auto !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    white-space: pre !important;
    tab-size: 4 !important;
    -webkit-overflow-scrolling: touch;
}

/* Strip white badge / pill backgrounds from code tags inside pre */
.tn-entry-content pre code,
.tn-entry-content pre span,
.tn-code-block-wrap pre code {
    background: transparent !important;
    color: #f1f5f9 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: inherit !important;
    display: inline !important;
    font-weight: normal !important;
    box-shadow: none !important;
}

/* Custom Scrollbar for code blocks */
.tn-entry-content pre::-webkit-scrollbar {
    height: 6px;
}
.tn-entry-content pre::-webkit-scrollbar-track {
    background: #090d16;
}
.tn-entry-content pre::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
.tn-entry-content pre::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Responsive Table Wrapper */
.tn-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tn-table-responsive table {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse;
}

.tn-tag-item:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.tn-nav-box {
    transition: all 0.2s ease;
}

.tn-nav-box:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.tn-bottom-related, .tn-bottom-latest {
    margin-top: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tn-bottom-related .tn-cards-3col,
.tn-bottom-latest .tn-cards-3col {
    padding: 16px;
    background: #f8fafc;
}

/* ================= COMPREHENSIVE RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
    .technews-container { padding: 0 14px; }
    .tn-hero-grid { grid-template-columns: 1fr; }
    .tn-hero-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .tn-layout-grid { grid-template-columns: 1fr; gap: 24px; }
    .tn-features-grid { grid-template-columns: repeat(2, 1fr); }
    .tn-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 768px) {
    /* Topbar & Header */
    .tn-topbar { display: none; }
    .tn-header { padding: 12px 0; }
    .tn-header-banner { display: none; }
    .tn-header-inner { flex-wrap: wrap; gap: 12px; }
    
    .tn-logo { gap: 10px; }
    .tn-logo-icon { width: 38px; height: 38px; font-size: 22px; }
    .tn-logo-title { font-size: 21px; }
    .tn-logo-tagline { font-size: 10.5px; }
    
    .tn-header-search { order: 3; max-width: 100%; width: 100%; }
    .tn-search-form { padding: 2px 3px 2px 12px; }
    .tn-search-form input { font-size: 13px; }
    .tn-search-btn { width: 34px; height: 34px; }

    /* Touch-friendly Horizontal Scroll Navbar */
    .tn-navbar {
        top: 0;
        border-bottom: 1px solid var(--border-color);
        background: #ffffff;
    }
    .tn-nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 6px;
    }
    .tn-nav-inner::-webkit-scrollbar {
        display: none;
    }
    .tn-nav-menu {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 6px;
    }
    .tn-nav-link {
        padding: 6px 12px;
        font-size: 12.5px;
        background: #f8fafc;
        border-radius: 18px;
        border: 1px solid var(--border-color);
        white-space: nowrap;
    }
    .tn-nav-home {
        border-radius: 18px;
        padding: 6px 12px;
        background: #eff6ff;
        border: 1px solid rgba(37, 99, 235, 0.2);
    }
    .tn-nav-item.current-menu-item > .tn-nav-link {
        background: var(--primary);
        color: #ffffff !important;
        border-color: var(--primary);
    }
    .tn-nav-dropdown {
        display: none; /* Avoid dropdown clipping on mobile horizontal scroll */
    }

    /* Hero & Grids */
    .tn-hero-section { margin-bottom: 20px; }
    .tn-hero-main { height: 260px; }
    .tn-hero-side-grid { grid-template-columns: 1fr; gap: 12px; }
    .tn-hero-side-card { height: 180px; }
    .tn-hero-overlay { padding: 14px; }
    .tn-hero-side-overlay { padding: 12px; }
    .tn-hero-title { font-size: 18px !important; }
    
    .tn-cards-3col { grid-template-columns: 1fr; gap: 14px; }
    .tn-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .tn-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .tn-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Single Post Content */
    .tn-single-article {
        padding: 16px 14px;
        border-radius: 10px;
    }
    .tn-single-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }
    .tn-single-meta {
        gap: 8px;
        font-size: 12px;
    }
    .tn-entry-content {
        font-size: 15px;
    }
    .tn-entry-content h2 {
        font-size: 18px;
        margin: 24px 0 12px;
    }
    .tn-entry-content h3 {
        font-size: 16px;
        margin: 20px 0 10px;
    }
    .tn-entry-content p {
        font-size: 15px;
        line-height: 1.75;
        margin-bottom: 16px;
    }
    .tn-entry-content ul, .tn-entry-content ol {
        margin-left: 16px;
        padding-left: 0;
    }

    /* Mobile Code Block */
    .tn-code-block-wrap {
        margin: 20px 0;
        border-radius: 10px;
    }
    .tn-code-header {
        padding: 8px 12px;
    }
    .tn-code-dots .tn-dot {
        width: 10px;
        height: 10px;
    }
    .tn-code-label {
        font-size: 10.5px;
        padding: 2px 8px;
    }
    .tn-copy-code-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    .tn-entry-content pre {
        padding: 14px 16px !important;
        font-size: 12.5px !important;
        line-height: 1.65 !important;
    }

    /* Post Navigation & Extras */
    .tn-post-nav {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .tn-bottom-related .tn-cards-3col,
    .tn-bottom-latest .tn-cards-3col {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .technews-container { padding: 0 10px; }
    .tn-single-article { padding: 14px 10px; }
    .tn-hero-main { height: 230px; }
    .tn-code-label span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================
   Code & Pre Block — Fix overflow / tràn màn hình
   ============================================================ */

/* Container bài viết không được phép rộng hơn chính nó */
.tn-entry-content {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Khối code nhiều dòng: scroll ngang bên trong, không kéo giãn trang */
.tn-entry-content pre,
.tn-entry-content .wp-block-code,
.tn-entry-content .tn-code-block {
    max-width: 100%;
    overflow-x: auto;          /* cuộn ngang trong khung, không tràn */
    white-space: pre;          /* giữ định dạng gốc */
    word-break: normal;
    overflow-wrap: normal;
    box-sizing: border-box;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.7;
    padding: 18px 20px;
    margin: 20px 0;
    border: 1px solid #1e293b;
    /* Thanh scroll tùy chỉnh */
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

.tn-entry-content pre::-webkit-scrollbar { height: 6px; }
.tn-entry-content pre::-webkit-scrollbar-track { background: #0f172a; border-radius: 4px; }
.tn-entry-content pre::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.tn-entry-content pre::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Code trong pre: không wrap, giữ nguyên khoảng trắng */
.tn-entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

/* Inline code (trong đoạn văn): tự xuống dòng nếu dài */
.tn-entry-content p code,
.tn-entry-content li code,
.tn-entry-content td code,
.tn-entry-content h2 code,
.tn-entry-content h3 code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    white-space: pre-wrap;     /* xuống dòng nếu dài quá */
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

/* Blockquote trong bài viết */
.tn-entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: #f8faff;
    margin: 20px 0;
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
    overflow-x: hidden;
}

/* Bảng: scroll ngang thay vì tràn */
.tn-entry-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    font-size: 14px;
}
.tn-entry-content table th,
.tn-entry-content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    white-space: nowrap;
}
.tn-entry-content table th {
    background: #f1f5f9;
    font-weight: 700;
}

/* Hình ảnh trong bài viết */
.tn-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Mobile: giảm font-size code cho gọn hơn */
@media (max-width: 640px) {
    .tn-entry-content pre,
    .tn-entry-content .wp-block-code {
        font-size: 12px;
        padding: 14px 14px;
    }
}

/* ============================================================
   RESPONSIVE FIX — BÀI VIẾT TỪ SZ AI WRITER
   Áp dụng cho mọi nội dung bên trong .tn-entry-content
   và cả fallback JNews default layout khi không dùng single.php
   ============================================================ */

/* === GLOBAL: Đảm bảo toàn trang & bài viết không bao giờ tràn màn hình === */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.technews-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.tn-single-article {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.tn-entry-content,
.entry-content,
.post-content,
.jeg_inner_content,
.content-inner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Tất cả các phần tử khối trực tiếp trong bài viết không vượt 100% */
.tn-entry-content > *,
.entry-content > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* === PRE/CODE BLOCK: scroll ngang bên trong, không kéo trang === */
.tn-entry-content pre,
.entry-content pre,
.jeg_inner_content pre,
.content-inner pre {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
}

/* Code bên trong pre: không wrap, giữ nguyên format */
.tn-entry-content pre code,
.entry-content pre code,
.jeg_inner_content pre code {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    display: inline !important;
}

/* === INLINE CODE: wrap đẹp, không bị cắt giữa chữ === */
.tn-entry-content :not(pre) > code,
.tn-entry-content p > code,
.tn-entry-content li > code,
.tn-entry-content td > code,
.tn-entry-content th > code,
.tn-entry-content blockquote > code,
.tn-entry-content blockquote code,
.entry-content :not(pre) > code,
.jeg_inner_content :not(pre) > code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    display: inline !important;
    max-width: 100% !important;
}

/* === FIGURES & IMAGES: không bao giờ tràn === */
.tn-entry-content figure,
.entry-content figure,
.wp-block-image,
.wp-block-image figure,
.tn-ai-post-figure {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
}

.tn-entry-content img,
.entry-content img,
.jeg_inner_content img,
.wp-block-image img,
.tn-ai-post-figure img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 8px;
}

/* === IFRAMES & EMBEDS (YouTube, etc) === */
.tn-entry-content iframe,
.tn-entry-content video,
.tn-entry-content embed,
.tn-entry-content object,
.entry-content iframe,
.entry-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* === TABLE & WP-BLOCK-TABLE: responsive scroll wrapper === */
.tn-entry-content .wp-block-table,
.wp-block-table,
.tn-entry-content figure.wp-block-table,
.tn-table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.tn-entry-content table,
.entry-content table,
.jeg_inner_content table,
.wp-block-table table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.tn-entry-content table th,
.tn-entry-content table td,
.entry-content table th,
.entry-content table td {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

/* === BLOCKQUOTE: không tràn === */
.tn-entry-content blockquote,
.entry-content blockquote,
.jeg_inner_content blockquote {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* === 3-COLUMN CARDS & NAV: bảo vệ minmax(0, 1fr) === */
.tn-cards-3col {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.tn-post-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.tn-post-card,
.tn-nav-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* === JNEWS DEFAULT SINGLE: khi không dùng single.php custom === */
.jeg_post_content .content-inner,
.jeg_post_content .entry-content,
.jeg_main_content .entry-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
}

.jeg_post_content pre,
.jeg_main_content pre {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre !important;
    box-sizing: border-box !important;
}

/* === MOBILE SPECIFIC (< 768px) === */
@media (max-width: 768px) {
    /* Fix: JNews container tràn */
    .jeg_viewport,
    .jeg_main,
    .jeg_content,
    .jeg_wr,
    body {
        overflow-x: hidden !important;
    }

    /* Bài viết AI writer: padding phù hợp */
    .tn-entry-content,
    .entry-content,
    .jeg_inner_content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Pre blocks mobile: nhỏ gọn hơn */
    .tn-entry-content pre,
    .entry-content pre,
    .jeg_inner_content pre {
        font-size: 12px !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }

    /* Inline code mobile */
    .tn-entry-content :not(pre) > code,
    .entry-content :not(pre) > code {
        font-size: 12px !important;
        padding: 1px 5px !important;
    }

    /* Table cells: cho phép wrap text */
    .tn-entry-content table td,
    .tn-entry-content table th,
    .entry-content table td,
    .entry-content table th {
        white-space: normal !important;
        word-break: break-word !important;
        min-width: 80px;
    }

    /* Blockquote mobile */
    .tn-entry-content blockquote,
    .entry-content blockquote {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 14px !important;
    }

    /* H2, H3 headings mobile */
    .tn-entry-content h2,
    .entry-content h2 {
        font-size: 18px !important;
        word-break: break-word !important;
    }

    .tn-entry-content h3,
    .entry-content h3 {
        font-size: 16px !important;
        word-break: break-word !important;
    }

    /* Body text mobile */
    .tn-entry-content p,
    .entry-content p {
        font-size: 15px !important;
        line-height: 1.75 !important;
        word-break: break-word !important;
    }

    /* Lists mobile */
    .tn-entry-content ul,
    .tn-entry-content ol,
    .entry-content ul,
    .entry-content ol {
        padding-left: 20px !important;
        margin-left: 0 !important;
    }
}

/* === EXTRA SMALL (< 480px) === */
@media (max-width: 480px) {
    .tn-entry-content pre,
    .entry-content pre {
        font-size: 11px !important;
        padding: 10px !important;
        line-height: 1.6 !important;
    }

    .tn-entry-content h2,
    .entry-content h2 {
        font-size: 17px !important;
    }
}

/* =============================================================
   MAIN CATEGORY SECTIONS WITH SUBCATEGORY TABS
   ============================================================= */
.tn-section-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tn-section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tn-section-title a:hover {
    color: var(--primary);
}

.tn-section-count-badge {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 2px 9px;
    border-radius: 9999px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tn-section-right-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Subcategory Tabs & View All Button share the exact same style & effect */
.tn-cat-tab,
.tn-view-all-btn {
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    background: #eff6ff !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    padding: 5px 13px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
    user-select: none !important;
}

.tn-view-all-btn i {
    font-size: 10.5px !important;
    color: var(--primary) !important;
    transition: transform 0.22s ease !important;
}

/* Shared Hover Effect */
.tn-cat-tab:hover,
.tn-view-all-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-2px) !important;
}

.tn-view-all-btn:hover i {
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

/* Tab Active State (When Selected) */
.tn-cat-tab.active {
    background: #1e40af !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35) !important;
    transform: translateY(-1px) !important;
}

.tn-cat-tab:active,
.tn-view-all-btn:active {
    transform: scale(0.96) !important;
}

/* Tab Panels Animation */
.tn-tab-panel {
    animation: tnTabFade 0.22s ease-out forwards;
}

@keyframes tnTabFade {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .tn-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .tn-section-right-wrap {
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }
    .tn-section-right-wrap::-webkit-scrollbar {
        display: none !important;
    }
}

/* ==========================================================================
   SYSTEMZONEVN - MODERN TECH PAGES STYLING (ABOUT, CONTACT, PRIVACY, TERMS)
   ========================================================================== */

/* Page Hero Section */
.tn-page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    padding: 60px 0 55px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.2);
}

.tn-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%);
    pointer-events: none;
}

.tn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.tn-hero-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tn-hero-title span.highlight {
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tn-hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 780px;
    margin: 0 auto;
}

/* Breadcrumbs Bar */
.tn-page-breadcrumbs {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 13.5px;
    color: #64748b;
}

.tn-page-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.tn-page-breadcrumbs a:hover {
    text-decoration: underline;
}

.tn-page-breadcrumbs span.sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.tn-page-breadcrumbs span.current {
    color: #1e293b;
    font-weight: 600;
}

/* Stats Counter Grid */
.tn-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: -35px auto 45px;
    position: relative;
    z-index: 5;
}

.tn-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.tn-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
}

.tn-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.tn-stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tn-stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* General Content Card */
.tn-content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}

.tn-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.tn-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tn-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Pillar Grid (About Us) */
.tn-pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.tn-pillar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tn-pillar-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.12);
    transform: translateY(-3px);
}

.tn-pillar-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.tn-pillar-icon-box.blue { background: #dbeafe; color: #1d4ed8; }
.tn-pillar-icon-box.purple { background: #f3e8ff; color: #7e22ce; }
.tn-pillar-icon-box.emerald { background: #d1fae5; color: #047857; }
.tn-pillar-icon-box.amber { background: #fef3c7; color: #b45309; }

.tn-pillar-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.tn-pillar-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tn-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tn-pillar-tag {
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Values Grid */
.tn-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tn-value-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tn-value-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tn-value-item h4 i {
    color: #2563eb;
}

.tn-value-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Contact Grid */
.tn-contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

.tn-contact-form-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.tn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.tn-form-group {
    margin-bottom: 18px;
}

.tn-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.tn-form-group label span.req {
    color: #ef4444;
}

.tn-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tn-form-control:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.tn-form-control {
    min-height: 130px;
    resize: vertical;
}

.tn-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.tn-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.tn-submit-btn:active {
    transform: translateY(0);
}

/* Contact Info Cards Side */
.tn-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tn-contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.tn-contact-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.tn-contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tn-contact-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.tn-contact-card-body p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.5;
}

.tn-contact-card-body a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.tn-contact-card-body a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.tn-faq-box {
    margin-top: 40px;
}

.tn-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tn-faq-item.active {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.tn-faq-question {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15.5px;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background 0.2s ease;
}

.tn-faq-question:hover {
    background: #f8fafc;
    color: #2563eb;
}

.tn-faq-question i {
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.tn-faq-item.active .tn-faq-question i {
    transform: rotate(180deg);
    color: #2563eb;
}

.tn-faq-answer {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    display: none;
    border-top: 1px solid #f1f5f9;
}

.tn-faq-item.active .tn-faq-answer {
    display: block;
    padding-top: 16px;
}

/* Policy & Terms Layout */
.tn-policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.tn-policy-sidebar {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.tn-policy-sidebar-title {
    font-size: 14.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tn-policy-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tn-policy-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tn-policy-nav a:hover,
.tn-policy-nav a.active {
    background: #eff6ff;
    color: #2563eb;
}

.tn-policy-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 44px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tn-policy-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.tn-policy-section:last-child {
    margin-bottom: 0;
}

.tn-policy-section h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.tn-policy-section h2 i {
    color: #2563eb;
    font-size: 18px;
}

.tn-policy-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 10px;
}

.tn-policy-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 14px;
}

.tn-policy-section ul, 
.tn-policy-section ol {
    margin: 0 0 18px;
    padding-left: 22px;
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.tn-policy-section li {
    margin-bottom: 8px;
}

.tn-alert-box {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14.5px;
    line-height: 1.65;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tn-alert-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.tn-alert-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tn-alert-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.tn-alert-box i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive Rules for Custom Pages */
@media (max-width: 1024px) {
    .tn-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }
    .tn-pillar-grid {
        grid-template-columns: 1fr;
    }
    .tn-values-grid {
        grid-template-columns: 1fr;
    }
    .tn-contact-layout {
        grid-template-columns: 1fr;
    }
    .tn-policy-layout {
        grid-template-columns: 1fr;
    }
    .tn-policy-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .tn-page-hero {
        padding: 40px 0 35px;
        text-align: center;
    }
    .tn-hero-title {
        font-size: 28px;
    }
    .tn-hero-lead {
        font-size: 15px;
    }
    .tn-stats-grid {
        grid-template-columns: 1fr;
    }
    .tn-content-card,
    .tn-contact-form-box,
    .tn-policy-content {
        padding: 24px 18px;
    }
    .tn-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}