/*
Theme Name: Tin Gia Xe Liquid 2026
Theme URI: https://tingiaxe.com
Author: Tin Gia Xe
Author URI: https://tingiaxe.com
Description: Liquid glass WordPress theme generated from the approved static interface in news/Test while preserving Tin Gia Xe SEO titles, descriptions, schema, search index, tools and content helpers.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tingiaxe
*/
/* Base Resets */

:root {

    --tingiaxe-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

}

html,

body,

button,

input,

select,

textarea {

    font-family: var(--tingiaxe-font-sans);

}

body {

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    background-color: #F8FAFC;

    color: #111827;

}

/* Focus & Accessibility */

*:focus-visible {

    outline: 2px solid #2563EB;

    outline-offset: 2px;

}

.skip-link {

    position: absolute;

    top: -100px;

    left: 1rem;

    background: #2563EB;

    color: #fff;

    padding: .75rem 1.25rem;

    border-radius: .5rem;

    font-weight: 600;

    font-size: .875rem;

    z-index: 9999;

    transition: top .2s ease-in-out;

    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);

}

.skip-link:focus-visible {

    top: 1rem;

}

/* Search Scrollbar */

.search-scroll::-webkit-scrollbar {

    width: 5px;

}

.search-scroll::-webkit-scrollbar-track {

    background: #F1F5F9;

    border-radius: 4px;

}

.search-scroll::-webkit-scrollbar-thumb {

    background: #CBD5E1;

    border-radius: 4px;

}

.search-scroll::-webkit-scrollbar-thumb:hover {

    background: #94A3B8;

}

/* Hide scrollbar utility */

.hide-scrollbar::-webkit-scrollbar {

    display: none;

}

.hide-scrollbar {

    -ms-overflow-style: none;

    scrollbar-width: none;

}

/* Shared Header System */

.site-header {

    background-color: rgba(255,255,255,.95);

    backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(226,232,240,.85);

    box-shadow: 0 1px 2px rgba(15,23,42,.04);

    position: sticky;

    top: 0;

    z-index: 50;

}

.brand-mark {

    width: 2rem;

    height: 2rem;

    border-radius: .875rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 1.125rem;

    font-weight: 900;

    background: linear-gradient(135deg, #2563EB, #06B6D4);

    box-shadow: 0 1px 2px rgba(15,23,42,.12);

    transition: transform .2s ease;

}

.brand-link:hover .brand-mark {

    transform: scale(1.05);

}

.nav-pill {

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px;

    background: #F8FAFC;

    border: 1px solid rgba(226,232,240,.9);

    border-radius: 999px;

}

.nav-link {

    font-size: 14px;

    font-weight: 650;

    padding: 7px 14px;

    border-radius: 999px;

    color: #334155;

    transition: all .2s ease;

}

.nav-link:hover {

    background: #FFFFFF;

    color: #2563EB;

    box-shadow: 0 1px 2px rgba(15,23,42,.05);

}

.nav-link.is-active {

    background: #FFFFFF;

    color: #2563EB;

    font-weight: 800;

    box-shadow: 0 1px 2px rgba(15,23,42,.08);

}

/* Shared Footer System */

.site-footer {

    position: relative;

    border-top: 1px solid #E5E7EB;

    background:

        radial-gradient(circle at top left, rgba(37,99,235,.055), transparent 24rem),

        radial-gradient(circle at top right, rgba(6,182,212,.055), transparent 22rem),

        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

    color: #334155;

}

.footer-gradient-line {

    height: 3px;

    background: linear-gradient(90deg, #2563EB, #06B6D4);

}

.footer-inner {

    max-width: 1180px;

    margin: 0 auto;

    padding: 1.875rem 1rem 1.25rem;

}

.footer-main-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 1.35rem;

    align-items: start;

}

@media (min-width: 768px) {

    .footer-main-grid {

        grid-template-columns: 1.2fr 1fr;

        gap: 1.75rem;

    }

    .footer-brand-column {

        grid-column: 1 / -1;

        max-width: 620px;

    }

}

@media (min-width: 1024px) {

    .footer-inner {

        padding: 2.5rem 1.25rem 1.375rem;

    }

    .footer-main-grid {

        grid-template-columns: 1.55fr .75fr .85fr .85fr .65fr;

        gap: 2rem;

    }

    .footer-brand-column {

        grid-column: auto;

        max-width: none;

    }

}

.footer-brand {

    display: inline-flex;

    align-items: center;

    gap: .75rem;

    color: #0F172A;

    text-decoration: none;

}

.footer-brand-mark {

    width: 2.25rem;

    height: 2.25rem;

    border-radius: .9rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    font-weight: 900;

    background: linear-gradient(135deg, #2563EB, #06B6D4);

    box-shadow: 0 8px 20px rgba(37,99,235,.18);

}

.footer-brand-text {

    font-size: 1.2rem;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -.035em;

}

.footer-description {

    margin-top: 1rem;

    color: #475569;

    font-size: .875rem;

    line-height: 1.75;

}

.footer-disclaimer {

    margin-top: 1rem;

    max-width: 100%;

    border: 1px solid #E5E7EB;

    border-radius: 1rem;

    background: rgba(255,255,255,.86);

    box-shadow: 0 4px 12px rgba(15,23,42,.03);

    padding: .75rem .875rem;

    color: #475569;

    font-size: .875rem;

    line-height: 1.5;

}

.footer-social {

    display: flex;

    flex-wrap: wrap;

    gap: .65rem;

    margin-top: 1.25rem;

}

.footer-social-link {

    width: 2.375rem;

    height: 2.375rem;

    border: 1px solid #E5E7EB;

    border-radius: .75rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #475569;

    background: #FFFFFF;

    text-decoration: none;

    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;

}

.footer-social-link:hover {

    transform: translateY(-2px);

    color: #2563EB;

    border-color: rgba(37,99,235,.25);

    background: #EFF6FF;

}

.footer-nav-column {

    min-width: 0;

}

.footer-heading {

    margin: 0 0 .875rem;

    color: #0F172A;

    font-size: .8125rem;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.footer-link-list {

    display: grid;

    gap: .4rem;

    margin: 0;

    padding: 0;

    list-style: none;

}

.footer-link {

    display: inline-flex;

    width: fit-content;

    align-items: center;

    color: #475569;

    font-size: .875rem;

    line-height: 1.45;

    padding: .35rem 0;

    text-decoration: none;

    transition: color .18s ease, transform .18s ease;

}

.footer-link:hover {

    color: #2563EB;

    transform: translateX(2px);

}

.footer-bottom {

    display: flex;

    flex-direction: column;

    gap: .75rem;

    margin-top: 1.75rem;

    padding-top: 1.1rem;

    border-top: 1px solid #E5E7EB;

    color: #64748B;

    font-size: .875rem;

}

.footer-bottom a {

    color: #475569;

    text-decoration: none;

    transition: color .18s ease;

}

.footer-bottom a:hover {

    color: #2563EB;

}

@media (min-width: 768px) {

    .footer-bottom {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

    }

}

@media (prefers-reduced-motion: reduce) {

    .brand-mark,

    .footer-social-link,

    .footer-link {

        transition: none;

        transform: none;

    }

    .brand-link:hover .brand-mark,

    .footer-social-link:hover,

    .footer-link:hover {

        transform: none;

    }

}

/* --- PREMIUM UI SYSTEM --- */

.site-shell {

    background: 

        radial-gradient(circle at top left, rgba(37,99,235,.04), transparent 28rem),

        radial-gradient(circle at top right, rgba(6,182,212,.04), transparent 24rem),

        #F8FAFC;

}

.top-gradient-bar {

    height: 3px;

    background: linear-gradient(90deg, #2563EB, #06B6D4);

}

.text-gradient {

    background: linear-gradient(90deg, #2563EB, #06B6D4);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}

.soft-gradient {

    background: 

        radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 35%),

        radial-gradient(circle at top right, rgba(6,182,212,.10), transparent 32%),

        linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);

}

.premium-card {

    border: 1px solid #E5E7EB;

    border-radius: 1rem;

    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);

    box-shadow: 0 1px 2px rgba(17,24,39,.04);

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;

    display: flex;

    flex-direction: column;

}

/* Interactive Cards Only */

a.premium-card:hover, button.premium-card:hover {

    transform: translateY(-2px);

    border-color: rgba(37,99,235,.28);

    box-shadow: 0 10px 24px rgba(17,24,39,.08);

    z-index: 10;

}

.icon-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 2.25rem;

    height: 2.25rem;

    border-radius: .875rem;

    color: #2563EB;

    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.12));

    flex-shrink: 0;

}

.icon-badge svg {

    width: 1.25rem;

    height: 1.25rem;

}

.feature-card {

    position: relative;

    overflow: hidden;

}

.feature-card::before {

    content: "";

    position: absolute;

    inset: 0 0 auto 0;

    height: 3px;

    background: linear-gradient(90deg, #2563EB, #06B6D4);

}

.motion-safe-fade {

    animation: fadeUp .32s ease both;

}

@keyframes fadeUp {

    from { opacity: 0; transform: translateY(8px); }

    to { opacity: 1; transform: translateY(0); }

}

@media (prefers-reduced-motion: reduce) {

    .motion-safe-fade { animation: none; }

    .premium-card { transition: none; }

    .premium-card:hover { transform: none; box-shadow: 0 1px 2px rgba(17,24,39,.04); border-color: #2563EB; }

}

/* WordPress specific overrides */

.wp-block-image img {

    max-width: 100%;

    height: auto;

}

.alignleft {

    float: left;

    margin-right: 1.5rem;

    margin-bottom: 1rem;

}

.alignright {

    float: right;

    margin-left: 1.5rem;

    margin-bottom: 1rem;

}

.aligncenter {

    display: block;

    margin-left: auto;

    margin-right: auto;

}

/* Single post content styling */

.entry-content h2 {

    font-size: 1.5rem;

    font-weight: 700;

    color: #0F172A;

    margin-top: 2rem;

    margin-bottom: 1rem;

}

.entry-content h3 {

    font-size: 1.25rem;

    font-weight: 600;

    color: #0F172A;

    margin-top: 1.5rem;

    margin-bottom: 0.75rem;

}

.entry-content p {

    margin-bottom: 1rem;

    line-height: 1.75;

    color: #374151;

}

.entry-content ul, .entry-content ol {

    margin-bottom: 1rem;

    padding-left: 1.5rem;

}

.entry-content li {

    margin-bottom: 0.5rem;

    line-height: 1.75;

    color: #374151;

}

.entry-content a {

    color: #2563EB;

    text-decoration: underline;

    text-decoration-color: rgba(37,99,235,0.3);

    text-underline-offset: 2px;

}

.entry-content a:hover {

    color: #1d4ed8;

    text-decoration-color: #1d4ed8;

}

.entry-content img {

    border-radius: 0.75rem;

    margin: clamp(1.25rem, 2vw, 1.875rem) 0;

}

.entry-content blockquote {

    border-left: 3px solid #2563EB;

    padding-left: 1.25rem;

    margin: 1.5rem 0;

    color: #475569;

    font-style: italic;

}

.entry-content table {

    width: 100%;

    border-collapse: collapse;

    margin: 1.5rem 0;

}

.entry-content th, .entry-content td {

    padding: 0.75rem 1rem;

    border: 1px solid #E5E7EB;

    text-align: left;

}

.entry-content th {

    background: #F8FAFC;

    font-weight: 600;

    color: #0F172A;

}

/* Pagination */

.pagination {

    display: flex;

    justify-content: center;

    gap: 0.5rem;

    margin-top: 2rem;

}

.pagination .page-numbers {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 2.5rem;

    height: 2.5rem;

    padding: 0 0.75rem;

    border-radius: 0.5rem;

    font-size: 0.875rem;

    font-weight: 500;

    color: #475569;

    background: #fff;

    border: 1px solid #E5E7EB;

    transition: all 0.15s;

}

.pagination .page-numbers:hover {

    border-color: #2563EB;

    color: #2563EB;

    background: #EFF6FF;

}

.pagination .page-numbers.current {

    background: linear-gradient(135deg, #2563EB, #06B6D4);

    color: #fff;

    border-color: transparent;

}

/* Comments */

.comment-list {

    list-style: none;

    padding: 0;

}

.comment-body {

    padding: 1.25rem;

    margin-bottom: 1rem;

    background: #fff;

    border: 1px solid #E5E7EB;

    border-radius: 0.75rem;

}

.comment-author img {

    border-radius: 50%;

}

/* Nav active state */

.nav-link.active {

    background: #2563EB;

    color: #fff;

}

.mobile-nav-link.active {

    background: #EFF6FF;

    color: #2563EB;

}

/* Single post article system */

.article-shell {

    background:

        radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 28rem),

        radial-gradient(circle at top right, rgba(6,182,212,.07), transparent 24rem),

        #FFFFFF;

}

.article-grid {

    display: grid;

    gap: 1.5rem;

}

@media (min-width: 1024px) {

    .article-grid {

        grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);

        align-items: start;

        gap: 2rem;

    }

}

.article-card {

    border: 1px solid #E5E7EB;

    border-radius: 1.25rem;

    background: #FFFFFF;

    box-shadow: 0 1px 2px rgba(15,23,42,.04);

    overflow: hidden;

}

.article-kicker {

    display: inline-flex;

    align-items: center;

    gap: .4rem;

    border-radius: 999px;

    padding: .35rem .75rem;

    font-size: .8125rem;

    font-weight: 700;

    color: #1D4ED8;

    background: rgba(37,99,235,.08);

    margin-bottom: 1rem;

}

.article-title {

    font-size: 1.5rem;

    line-height: 1.25;

    letter-spacing: 0;

    font-weight: 850;

    color: #0F172A;

    margin-bottom: 1rem;

}

@media (min-width: 768px) {

    .article-title {

        font-size: 1.875rem;

    }

}

.article-lead {

    font-size: 1rem;

    line-height: 1.75;

    color: #475569;

    margin-bottom: 1.25rem;

}

@media (min-width: 768px) {

    .article-lead {

        font-size: 1.0625rem;

    }

}

.article-meta {

    display: flex;

    flex-wrap: wrap;

    gap: .5rem .875rem;

    align-items: center;

    color: #64748B;

    font-size: .875rem;

    padding-top: 1rem;

    border-top: 1px solid #F1F5F9;

}

.article-share-panel {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    margin-top: 2rem;

    padding: 1rem 0;

    border-top: 1px solid #E2E8F0;

    border-bottom: 1px solid #E2E8F0;

}

.article-end-disclaimer {

    display: flex;

    align-items: flex-start;

    gap: .6rem;

    margin-top: 2rem;

    padding: .85rem 1rem;

    border: 1px solid #DBEAFE;

    border-radius: .95rem;

    color: #334155;

    background: linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(255, 255, 255, .92));

    font-size: .9rem;

    line-height: 1.6;

}

.article-end-disclaimer svg {

    flex: 0 0 auto;

    margin-top: .2rem;

    color: #2563EB;

}

.article-end-disclaimer strong {

    color: #0F172A;

    font-weight: 800;

}

.article-share-copy {

    min-width: 0;

}

.article-share-kicker {

    display: block;

    color: #0F172A;

    font-size: .95rem;

    font-weight: 800;

    line-height: 1.35;

}

.article-share-copy p {

    margin-top: .25rem;

    color: #64748B;

    font-size: .85rem;

    line-height: 1.5;

}

.article-share-actions {

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: .5rem;

    flex: 0 0 auto;

}

.article-share-action {

    min-height: 2.5rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .5rem;

    padding: .55rem .75rem;

    border: 1px solid #E2E8F0;

    border-radius: .75rem;

    color: #334155;

    background: #FFFFFF;

    font-size: .84rem;

    font-weight: 750;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;

}

.article-share-action:hover,
.article-share-action:focus-visible,
.article-share-action.is-copied {

    transform: translateY(-1px);

    border-color: rgba(37, 99, 235, .24);

    background: #F8FAFC;

    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);

    outline: none;

}

.article-share-action-icon {

    width: 1.35rem;

    height: 1.35rem;

    border-radius: .5rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: inherit;

    background: #F8FAFC;

}

.article-share-action--facebook:hover,
.article-share-action--facebook:focus-visible {

    color: #2563EB;

}

.article-share-action--zalo:hover,
.article-share-action--zalo:focus-visible {

    color: #0EA5E9;

}

.article-share-action--x:hover,
.article-share-action--x:focus-visible,
.article-share-action--copy:hover,
.article-share-action--copy:focus-visible,
.article-share-action--copy.is-copied {

    color: #0F172A;

}

@media (max-width: 760px) {

    .article-share-panel {

        align-items: flex-start;

        flex-direction: column;

    }

    .article-share-actions {

        width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        justify-content: stretch;

    }

    .article-share-action {

        width: 100%;

        min-width: 0;

        flex: none;

    }

    .article-share-action--copy {

        grid-column: 1 / -1;

    }

}

.article-breadcrumb {

    max-width: 100%;

}

.article-breadcrumb a,

.article-breadcrumb .breadcrumb-current {

    line-height: 1.55;

}

@media (max-width: 640px) {

    .article-breadcrumb {

        font-size: .8125rem;

    }

}

.article-disclaimer {

    border: 1px solid rgba(37,99,235,.18);

    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.05));

    border-radius: 1rem;

    padding: .875rem 1rem;

    color: #334155;

    font-size: .875rem;

    line-height: 1.65;

}

.article-content {

    color: #0F172A;

    font-size: 1rem;

    line-height: 1.75;

}

.article-content > * + * {

    margin-top: 1.1rem;

}

.article-content h2 {

    scroll-margin-top: 32px;

    margin-top: 2.25rem;

    margin-bottom: 1rem;

    font-size: 1.35rem;

    line-height: 1.3;

    letter-spacing: 0;

    font-weight: 800;

    color: #0F172A;

    position: relative;

    padding-left: .9rem;

}

.article-content h2::before {

    content: "";

    position: absolute;

    left: 0;

    top: .18em;

    bottom: .18em;

    width: 4px;

    border-radius: 999px;

    background: linear-gradient(180deg, #2563EB, #06B6D4);

}

.article-content h3 {

    scroll-margin-top: 32px;

    margin-top: 1.75rem;

    margin-bottom: .75rem;

    font-size: 1.15rem;

    line-height: 1.35;

    font-weight: 750;

    color: #111827;

}

.article-content h4 {

    margin-top: 1.25rem;

    margin-bottom: .5rem;

    font-size: 1rem;

    line-height: 1.4;

    font-weight: 750;

    color: #111827;

}

.article-content p {

    margin: 0;

    color: #334155;

}

.article-content a {

    color: #2563EB;

    font-weight: 650;

    text-decoration: underline;

    text-decoration-color: rgba(37,99,235,.25);

    text-underline-offset: 3px;

}

.article-content a:hover {

    color: #1D4ED8;

    text-decoration-color: rgba(29,78,216,.55);

}

.article-content ul,

.article-content ol {

    padding-left: 1.25rem;

    color: #334155;

}

.article-content li + li {

    margin-top: .45rem;

}

.article-content ul li::marker,

.article-content ol li::marker {

    color: #2563EB;

}

.article-content ol li::marker {

    font-weight: 700;

}

.article-content blockquote,

.article-content .wp-block-quote,

.article-content .wp-block-pullquote {

    margin: 1.5rem 0;

    border-left: 4px solid #2563EB;

    border-radius: 1rem;

    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.04));

    padding: 1.1rem 1.35rem 1.15rem;

    color: #334155;

}

.article-content blockquote > :first-child,

.article-content .wp-block-quote > :first-child,

.article-content .wp-block-pullquote > :first-child {

    margin-top: 0 !important;

}

.article-content blockquote > :last-child,

.article-content .wp-block-quote > :last-child,

.article-content .wp-block-pullquote > :last-child {

    margin-bottom: 0 !important;

}

.article-content blockquote p {

    color: #1E293B;

    font-weight: 500;

    font-style: italic;

}

.table-scroll,

.article-content .wp-block-table {

    overflow-x: auto;
    position: relative;

    border: 1px solid #E5E7EB;

    border-radius: 1rem;

    background: #FFFFFF;

    box-shadow: 0 1px 2px rgba(15,23,42,.04);

    margin: 1.5rem 0;

    -webkit-overflow-scrolling: touch;

}

.table-scroll.is-scrollable::after,
.article-content .wp-block-table.is-scrollable::after {
    content: "";
    position: sticky;
    right: 0;
    display: block;
    width: 2.75rem;
    height: 100%;
    min-height: 3rem;
    margin-left: auto;
    margin-top: -3rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff 78%);
}

.article-content table {

    width: 100%;

    min-width: 100%;
    border-collapse: collapse;

    font-size: .925rem;

    table-layout: auto;
    text-align: left;

}

.article-content .wp-block-table .has-fixed-layout,
.article-content table.has-fixed-layout {
    table-layout: auto !important;
}

.article-content th {

    background: #F8FAFC;

    color: #0F172A;

    font-weight: 750;

    white-space: normal;

    line-height: 1.35;

    border-bottom: 2px solid #E2E8F0;

}

.article-content th,

.article-content td {

    padding: .8rem 1rem;

    vertical-align: top;

    border-bottom: 1px solid #E5E7EB;

    overflow-wrap: anywhere;

    word-break: normal;

    hyphens: auto;

}

@media (max-width: 639px) {
    .article-content .wp-block-table,
    .table-scroll {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .article-content table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        font-size: .9rem;
    }

    .article-content th,
    .article-content td {
        min-width: 8rem;
        padding: .7rem .8rem;
        line-height: 1.55 !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .article-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) {
        min-width: 30rem;
    }

    .article-content table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) {
        min-width: 38rem;
    }

    .article-content table:has(tr > :nth-child(4)) {
        min-width: 46rem;
    }
}

.article-content tr:last-child td {

    border-bottom: 0;

}

.article-content tbody tr:hover {

    background: #F8FAFC;

}

.article-content figure {

    margin: 1.5rem 0;

}

.article-content img {

    max-width: 100%;

    height: auto;

    border-radius: 1rem;

    border: 1px solid #F1F5F9;

}

.article-content figcaption {

    margin-top: .55rem;

    text-align: center;

    color: #64748B;

    font-size: .875rem;

    line-height: 1.5;

}

.article-content hr,

.article-content .wp-block-separator {

    border: 0;

    height: 1px;

    background: #E5E7EB;

    margin: 2.5rem 0;

}

.article-content details,

.article-content .wp-block-details {

    border: 1px solid #E5E7EB;

    border-radius: 1rem;

    background: #FFFFFF;

    padding: 0;

    overflow: hidden;

    margin: 1.5rem 0;

}

.article-content details + details {

    margin-top: .75rem;

    margin-bottom: 1.5rem;

}

.article-content summary {

    cursor: pointer;

    padding: 1rem 1.1rem;

    font-weight: 750;

    color: #0F172A;

    list-style: none;

    outline: none;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.75rem;

}

.article-content summary::-webkit-details-marker {

    display: none;

}

.article-content summary > svg {

    flex-shrink: 0;

}

.article-content summary:focus-visible {

    background: #F8FAFC;

}

.article-content details[open] {

    border-color: rgba(37,99,235,.28);

    box-shadow: 0 4px 12px rgba(15,23,42,.04);

}

.article-content details[open] summary {

    border-bottom: 1px solid #F1F5F9;

}

.article-content details > *:not(summary) {

    margin: 0;

    padding: 1rem 1.1rem;

    color: #334155;

}

.article-takeaway {

    border: 1px solid rgba(37,99,235,.18);

    border-radius: 1.25rem;

    padding: 1.25rem;

    box-shadow: 0 1px 2px rgba(15,23,42,.04);

    margin: 1.5rem 0;

    background:

        radial-gradient(circle at top left, rgba(37,99,235,.09), transparent 40%),

        linear-gradient(180deg, #FFFFFF, #F8FBFF);

}

.article-takeaway h2 {

    margin: 0 0 .75rem 0;

    padding: 0;

    font-size: 1.1rem;

    color: #1E3A8A;

    display: flex;

    align-items: center;

    gap: .5rem;

}

.article-takeaway h2::before {

    display: none;

}

.article-takeaway .box-heading {

    display: flex;

    align-items: center;

    gap: .75rem;

    margin-bottom: .75rem;

}

.article-takeaway .box-heading h2 {

    margin: 0;

}

.article-takeaway ul {

    margin: .85rem 0 0 !important;

    padding: 0 !important;

    display: grid;

    gap: .72rem;

    list-style: none !important;

}

.article-content .article-takeaway ul {
    margin: .85rem 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.article-content .article-takeaway li,
.article-takeaway li {
    position: relative;
    margin: 0 !important;
    padding-left: 1.25rem !important;
    color: #334155 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.article-content .article-takeaway li::before,
.article-takeaway li::before {
    content: "";
    position: absolute;
    left: .1rem;
    top: .72em;
    width: .38rem;
    height: .38rem;
    border-radius: 999px;
    background: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.article-note,

.article-method,

.article-verification {

    border: 1px solid rgba(37,99,235,.16);

    border-left: 4px solid #2563EB;

    border-radius: 1rem;

    background: rgba(37,99,235,.04);

    padding: 1.25rem;

    color: #334155;

    margin: 1.5rem 0;

}

.article-warning {

    border: 1px solid rgba(245,158,11,.25);

    border-left: 4px solid #F59E0B;

    border-radius: 1rem;

    background: rgba(245,158,11,.06);

    padding: 1.25rem;

    color: #78350F;

    margin: 1.5rem 0;

}

.article-note > .box-icon,

.article-warning > .box-icon {

    float: left;

    margin-right: .75rem;

}

.article-note::after,

.article-warning::after {

    content: "";

    display: block;

    clear: both;

}

.article-sidebar {

    position: sticky;

}

@media (min-width: 1024px) {

    .article-sidebar {

        position: sticky;

        top: 80px;

        max-height: calc(100vh - 100px);

        overflow-y: auto;

        padding-right: 0;

    }

}

.toc-card {

    border: 1px solid #E5E7EB;

    border-radius: 1.25rem;

    background: #FFFFFF;

    padding: 1.25rem;

    box-shadow: 0 1px 2px rgba(15,23,42,.04);

    margin-bottom: 1.25rem;

}

.toc-card--inline {

    margin: 1rem 0 0;

    background: linear-gradient(180deg, #FFFFFF, #F8FAFC);

}

.toc-card--inline .toc-list {

    max-height: 15rem;

    overflow: auto;

    padding-right: .15rem;

}

.toc-card--sidebar .toc-list {

    max-height: calc(100vh - 190px);

    overflow-y: auto;

    padding-right: .15rem;

}

.toc-title {

    display: flex;

    align-items: center;

    gap: .5rem;

    font-size: .95rem;

    font-weight: 800;

    color: #0F172A;

    margin-bottom: .875rem;

}

.toc-list {

    display: flex;

    flex-direction: column;

    gap: .25rem;

}

.toc-link {

    display: flex;

    align-items: flex-start;

    gap: .45rem;

    border-radius: .75rem;

    padding: .45rem .65rem;

    color: #475569;

    font-size: .875rem;

    line-height: 1.4;

    transition: background .18s ease, color .18s ease;

}

.toc-link:hover,

.toc-link.is-active {

    background: #EFF6FF;

    color: #2563EB;

}

.toc-link-number {

    flex: 0 0 auto;

    min-width: 1.7rem;

    color: #2563EB;

    font-weight: 800;

}

.toc-link-text {

    min-width: 0;

}

.toc-link.is-h3 {

    padding-left: 1.15rem;

    font-size: .8125rem;

    color: #64748B;

}

.toc-link.is-h4 {

    padding-left: 1.8rem;

    font-size: .78rem;

    color: #64748B;

}

.toc-link.is-h4 .toc-link-number {

    min-width: 2.55rem;

}

.author-box {

    display: flex;

    align-items: center;

    gap: 1rem;

    border: 1px solid #E5E7EB;

    border-radius: 1.25rem;

    background: linear-gradient(180deg, #FFFFFF, #FAFBFF);

    padding: 1.25rem;

    margin-top: 2rem;

}

.author-avatar {

    width: 3rem;

    height: 3rem;

    border-radius: 1rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background: linear-gradient(135deg, #2563EB, #06B6D4);

    font-weight: 900;

    font-size: .875rem;

}

.author-avatar-img,

.author-avatar-mini {

    display: inline-block;

    object-fit: cover;

    flex: 0 0 auto;

    border: 1px solid #E2E8F0;

    background: #FFFFFF;

}

.author-avatar-img {

    width: 4.75rem;

    height: 4.75rem;

    border-radius: 999px !important;

    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);

}

.author-avatar-mini {

    width: 2rem;

    height: 2rem;

    border-radius: 999px !important;

}

.tingiaxe-ad {

    width: 100%;

    margin: 1.5rem 0;

    padding: 0;

    border: 0;

    border-radius: .875rem;

    background: transparent;

    overflow: hidden;

    text-align: center;

    contain: layout paint;

}

.tingiaxe-ad:empty,
.tingiaxe-ad.is-empty {

    display: none !important;

}

.tingiaxe-ad--before-article {

    margin-top: 0;

}

.tingiaxe-ad--before-article,
.tingiaxe-ad--mid-article,
.tingiaxe-ad--after-article {

    min-height: clamp(96px, 22vw, 280px);

}

.tingiaxe-ad--mid-article {

    margin: 2rem 0;

}

.tingiaxe-ad--after-article {

    margin-top: 2rem;

}

.tingiaxe-ad--sidebar {

    margin: 0;

    min-height: 280px;

}

.tingiaxe-ad ins.adsbygoogle,
.tingiaxe-ad iframe {

    display: block;

    max-width: 100% !important;

}

@media (max-width: 1023px) {

    .tingiaxe-ad--sidebar {

        display: none !important;

    }

}

@media (max-width: 640px) {

    .tingiaxe-ad--before-article,
    .tingiaxe-ad--mid-article,
    .tingiaxe-ad--after-article {

        min-height: 96px;

    }

}

.related-card {

    display: flex;

    flex-direction: column;

    height: 100%;

    border: 1px solid #E5E7EB;

    border-radius: 1rem;

    background: #FFFFFF;

    padding: 1rem;

    transition: border-color .18s ease, box-shadow .18s ease;

}

.related-card:hover {

    border-color: rgba(37,99,235,.3);

    box-shadow: 0 4px 12px rgba(15,23,42,.05);

}

@media (max-width: 640px) {

    .author-box {

        align-items: flex-start;

    }

    .author-avatar-img {

        width: 4rem;

        height: 4rem;

    }

}

@media (prefers-reduced-motion: reduce) {

    .related-card,

    .toc-link {

        transition: none;

    }

}

/* === Prevent iOS zoom on search input === */

.search-input {

    font-size: 16px !important;

}

/* === End iOS zoom fix === */

/* === Sticky Sidebar === */

.article-sidebar {

    position: sticky;

    top: 80px;

    max-height: calc(100vh - 100px);

    overflow-y: auto;

}

/* === End Sticky Sidebar === */

/* === Article List Spacing – Final === */

.article-content p:has(+ ul),

.article-content p:has(+ ol),

.article-content p:has(+ .wp-block-list) {

    margin-top: 1.5rem !important;

    margin-bottom: 0.25rem !important;

}

.article-content ul.wp-block-list,

.article-content ol.wp-block-list,

.article-content .wp-block-list,

.article-content ul,

.article-content ol {

    margin-top: 0.25rem !important;

    margin-bottom: 1.5rem !important;

}

.article-content p + ul,

.article-content p + ol,

.article-content p + .wp-block-list {

    margin-top: 0.25rem !important;

}

.article-content .wp-block-list + p,

.article-content .wp-block-list + figure,

.article-content .wp-block-list + .wp-block-image,

.article-content .wp-block-list + .wp-block-quote,

.article-content .wp-block-list + .wp-block-table,

.article-content ul + p,

.article-content ol + p {

    margin-top: 1.5rem !important;

}

/* === End Article List Spacing === */

/* === Font Sync v2 – Force Inter everywhere === */

body,

body.font-sans,

.font-sans,

.article-content,

.article-content *,

.site-footer,

.site-footer *,

.site-header,

.site-header *,

.mobile-menu-panel,

.mobile-menu-panel *,

.search-dropdown,

.search-dropdown *,

details *,

.wp-block-paragraph,

.wp-block-list,

.wp-block-table,

.wp-block-quote,

.bold-subheading {

    font-family: var(--tingiaxe-font-sans) !important;

}

/* === End Font Sync v2 === */

/* === Sticky & Font Enhancements === */
body {
    /* Fix sticky in flex on some mobile browsers */
    align-items: flex-start; 
}
.site-header {
    width: 100%;
}
.article-content strong, .article-content b {
    font-weight: 700 !important;
}
/* === End Enhancements === */

/* === Sticky + Inter Sync Final === */
html,
body,
button,
input,
select,
textarea,
.site-shell,
.site-header,
.site-header *,
.site-footer,
.site-footer *,
.article-content,
.article-content *,
.toc-card,
.toc-card *,
.search-dropdown,
.search-dropdown * {
    font-family: var(--tingiaxe-font-sans) !important;
    letter-spacing: 0;
}

html,
body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
}

body > header,
body > main,
body > footer {
    width: 100%;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

body.admin-bar .site-header {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}

.article-content th {
    font-family: inherit !important;
}

.article-content p,
.article-content .wp-block-paragraph {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    font-weight: 400;
    color: #334155 !important;
}

.article-content,
.article-content li,
.article-content td,
.article-content blockquote,
.article-content .wp-block-quote {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0F172A !important;
    letter-spacing: 0 !important;
}

.article-content strong,
.article-content b {
    font-family: inherit !important;
    font-weight: 700 !important;
    color: #111827;
}

/* Article typography sync: use the same Inter rhythm as the homepage. */
.article-title {
    font-family: var(--tingiaxe-font-sans) !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
}

.article-lead {
    font-family: var(--tingiaxe-font-sans) !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    color: #475569 !important;
}

.article-content {
    font-family: var(--tingiaxe-font-sans) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    color: #334155 !important;
}

.article-content * {
    font-family: inherit !important;
    letter-spacing: 0 !important;
}

.article-content > * + * {
    margin-top: 1.125rem;
}

.article-content p,
.article-content .wp-block-paragraph,
.article-content li,
.article-content td,
.article-content th,
.article-content blockquote {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #334155 !important;
}

.article-content > h2 {
    margin-top: 2.125rem !important;
    margin-bottom: .875rem !important;
    font-size: 1.375rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.article-content > h3 {
    margin-top: 1.75rem !important;
    margin-bottom: .625rem !important;
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.article-content > h4 {
    margin-top: 1.4rem !important;
    margin-bottom: .5rem !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

@media (min-width: 1024px) {
    .article-sidebar {
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.admin-bar .article-sidebar {
        top: 112px !important;
        max-height: none !important;
    }
}

.toc-card--sidebar .toc-list {
    max-height: none !important;
    overflow: visible !important;
}

.tingiaxe-ad--sidebar {
    min-height: 280px;
}

.tingiaxe-ad--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed !important;
    background: #F8FAFC !important;
    color: #94A3B8;
}

.tingiaxe-ad--placeholder span {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header .brand-link {
    min-width: 0;
}

.site-header .brand-text {
    display: block !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
}

@media (max-width: 639px) {
    .site-header .brand-link {
        gap: .5rem !important;
        max-width: calc(100vw - 5rem);
    }

    .site-header .brand-mark {
        width: 1.875rem !important;
        height: 1.875rem !important;
        font-size: 1rem !important;
    }

    .site-header .brand-text {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }
}
/* === End Sticky + Inter Sync Final === */

/* === Web Stories Card Logo === */
.story-card-vertical {
    position: relative;
}

.story-card-brand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.story-card-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

.story-card-brand .brand-text {
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
/* === End Web Stories Card Logo === */

/* Add mobile-only vertical gap between TOC and article-takeaway */
@media (max-width: 767px) {
    .toc-card--inline, 
    .toc-card, 
    .article-toc, 
    .toc-box, 
    #toc {
        margin-bottom: 1.5rem !important;
    }
}

/* Custom Line Clamp Utilities */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.line-clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.line-clamp-6 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}
.line-clamp-7 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
}
.line-clamp-8 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

/* Homepage featured content balance */
#noi-dung-noi-bat .home-feature-grid {
    align-items: flex-start;
}

#noi-dung-noi-bat .home-feature-main {
    align-self: flex-start;
    height: auto;
    min-height: 0;
}

#noi-dung-noi-bat .home-feature-body {
    flex: 0 0 auto;
}

#noi-dung-noi-bat .home-feature-side {
    align-content: flex-start;
}

#noi-dung-noi-bat .home-feature-side-card {
    flex-direction: row !important;
    align-items: center;
    min-height: 7.75rem;
}

#noi-dung-noi-bat .home-feature-side-thumb {
    width: 6rem;
    height: 6rem;
    flex: 0 0 6rem;
}

#noi-dung-noi-bat .home-feature-side-title {
    font-size: .95rem;
}

@media (max-width: 639px) {
    #noi-dung-noi-bat .home-feature-side-card {
        gap: .875rem;
        min-height: 6.75rem;
        padding: .875rem;
    }

    #noi-dung-noi-bat .home-feature-side-thumb {
        width: 5rem;
        height: 5rem;
        flex-basis: 5rem;
    }

    #noi-dung-noi-bat .home-feature-side-title {
        font-size: .875rem;
    }
}

/* Article typography compact tuning */
.article-content {
  font-size: 0.96875rem !important; /* 15.5px */
  line-height: 1.7 !important;
  color: #334155 !important;
}

.article-content p,
.article-content .wp-block-paragraph,
.article-content li,
.article-content blockquote {
  font-size: 0.96875rem !important;
  line-height: 1.7 !important;
}

.article-content p,
.article-content .wp-block-paragraph {
  margin-bottom: 1.05rem !important;
}

.article-content h2 {
  margin: 2.15rem 0 0.85rem !important;
  font-size: 1.26rem !important;
  line-height: 1.36 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.article-content h3 {
  margin: 1.65rem 0 0.7rem !important;
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
  font-weight: 780 !important;
  letter-spacing: -0.005em !important;
}

.article-content h4 {
  margin: 1.35rem 0 0.6rem !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

.article-content ul,
.article-content ol,
.article-content .wp-block-list {
  margin: 0.15rem 0 1.25rem !important;
  padding-left: 1.35rem !important;
}

.article-content li {
  margin-bottom: 0.45rem !important;
}

.bold-subheading,
.article-content p.bold-subheading {
  margin: 1.45rem 0 0.65rem !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

/* Article table compact + clean */
.article-content .wp-block-table,
.article-content .table-scroll {
  margin: 1.35rem 0 1.6rem !important;
  overflow-x: auto !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.article-content table {
  width: 100% !important;
  min-width: 640px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.90625rem !important; /* 14.5px */
  line-height: 1.5 !important;
  color: #334155 !important;
}

.article-content th,
.article-content td {
  font-size: 0.90625rem !important; /* 14.5px */
  padding: 0.68rem 0.78rem !important;
  border: 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  vertical-align: top !important;
}

.article-content th {
  background: #F8FAFC !important;
  color: #0F172A !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.article-content tbody tr:nth-child(even) td {
  background: #FAFBFC !important;
}

.article-content tbody tr:hover td {
  background: #EFF6FF !important;
}

.article-content tbody tr:last-child td {
  border-bottom: 0 !important;
}

.article-content td:first-child,
.article-content th:first-child {
  font-weight: 750 !important;
  color: #0F172A !important;
}

/* Remove heading / TOC numbering visually */
.toc-link {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 0.55rem !important;
}

.toc-link-number {
  font-weight: 900 !important;
  color: inherit !important;
}

.toc-link-text {
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 640px) {
  .article-content {
    font-size: 0.95625rem !important; /* 15.3px */
    line-height: 1.68 !important;
  }

  .article-content p,
  .article-content .wp-block-paragraph,
  .article-content li,
  .article-content blockquote {
    font-size: 0.95625rem !important;
    line-height: 1.68 !important;
  }

  .article-content h2 {
    font-size: 1.18rem !important;
    margin-top: 1.85rem !important;
  }

  .article-content h3 {
    font-size: 1.06rem !important;
    margin-top: 1.45rem !important;
  }

  .article-content table {
    min-width: 620px;
    font-size: 0.875rem !important; /* 14px */
  }

  .article-content td {
    font-size: 0.875rem !important; /* 14px */
  }

  .article-content th,
  .article-content td {
    padding: 0.62rem 0.7rem !important;
  }
}

/* Article page card hover lift - sync with redesign */
:root {
  --tgx-primary: #2563EB;
  --tgx-cyan: #06B6D4;
  --tgx-bg: #F6F8FC;
  --tgx-card: #FFFFFF;
  --tgx-border: #E2E8F0;
  --tgx-glass-blur: saturate(1.45) blur(18px);
  --tgx-hover-ease: cubic-bezier(.22, .61, .36, 1);
  --tgx-hover-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  --tgx-hover-border: rgba(37, 99, 235, .30);
}

/* Background gradient sync */
html,
body {
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(6, 182, 212, .10), transparent 55%),
    var(--tgx-bg) !important;
  background-attachment: fixed;
}

/* Main article area should not cover the body glow */
.site-shell,
.article-shell,
main.site-shell.article-shell {
  background: transparent !important;
}

/* Article card surface */
.article-card {
  background: var(--tgx-card) !important;
  border: 1px solid var(--tgx-border) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
}

/* Base styles for sidebar cards (glass design matching mockup) */
.article-sidebar .premium-card,
.article-sidebar .toc-card,
.article-sidebar .tgx-sidebar-card,
.tgx-sidebar-card {
  position: relative !important;
  display: block !important;
  border: 1px solid rgba(226, 232, 240, .90) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .05),
    inset 0 1px 0 rgba(255, 255, 255, .65) !important;
  backdrop-filter: saturate(1.45) blur(18px) !important;
  -webkit-backdrop-filter: saturate(1.45) blur(18px) !important;
  overflow: visible !important;
}

/* If browser does not support blur */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .article-sidebar .premium-card,
  .article-sidebar .toc-card,
  .toc-card,
  .premium-card,
  .tgx-sidebar-card {
    background: rgba(255, 255, 255, .94) !important;
  }
}

/* Inner link cards */
.article-sidebar .related-card,
.article-sidebar .tgx-related-post-link,
.related-card,
.tgx-related-post-link {
  position: relative !important;
  display: block !important;
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(226, 232, 240, .90) !important;
  border-radius: 1rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.article-sidebar .related-tool-link,
.related-tool-link {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: .75rem !important;
  padding: .72rem .75rem !important;
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(226, 232, 240, .90) !important;
  border-radius: 1rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

/* Blue info boxes should match redesign soft gradient */
.article-disclaimer,
.article-end-disclaimer,
.article-takeaway {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 18rem),
    linear-gradient(135deg, #EFF6FF, #ECFEFF) !important;
  border: 1px solid rgba(191, 219, 254, .85) !important;
}

/* Footer sync */
.site-footer {
  background: linear-gradient(180deg, #FFFFFF, #F6F8FC) !important;
}

/* Hover lift transition settings */
.article-sidebar .premium-card,
.article-sidebar .toc-card,
.article-sidebar .tgx-sidebar-card,
.tgx-sidebar-card,
.article-sidebar .related-tool-link,
.article-sidebar .related-card,
.article-sidebar .tgx-related-post-link,
.related-tool-link,
.related-card,
.tgx-related-post-link,
.article-share-action {
  transform: translateZ(0) !important;
  will-change: transform, box-shadow !important;
  transition:
    transform .16s var(--tgx-hover-ease),
    box-shadow .16s var(--tgx-hover-ease),
    border-color .16s var(--tgx-hover-ease),
    background-color .16s var(--tgx-hover-ease),
    color .16s var(--tgx-hover-ease) !important;
}

/* Hover lift behavior: translateY(-2px), NO scale, matching mockup */
.article-sidebar .premium-card:hover,
.article-sidebar .toc-card:hover,
.article-sidebar .tgx-sidebar-card:hover,
.tgx-sidebar-card:hover,
.article-sidebar .related-tool-link:hover,
.article-sidebar .related-tool-link:focus-visible,
.article-sidebar .related-card:hover,
.article-sidebar .related-card:focus-visible,
.article-sidebar .tgx-related-post-link:hover,
.article-sidebar .tgx-related-post-link:focus-visible,
.related-tool-link:hover,
.related-tool-link:focus-visible,
.related-card:hover,
.related-card:focus-visible,
.tgx-related-post-link:hover,
.tgx-related-post-link:focus-visible,
.article-share-action:hover,
.article-share-action:focus-visible {
  transform: translateY(-2px) !important;
  border-color: var(--tgx-hover-border) !important;
  box-shadow: var(--tgx-hover-shadow) !important;
  background: #FFFFFF !important;
  outline: none !important;
}

/* Active press feel (subtle rise down, NO scale) */
.article-sidebar .premium-card:active,
.article-sidebar .toc-card:active,
.article-sidebar .tgx-sidebar-card:active,
.tgx-sidebar-card:active,
.article-sidebar .related-tool-link:active,
.article-sidebar .related-card:active,
.article-sidebar .tgx-related-post-link:active,
.related-tool-link:active,
.related-card:active,
.tgx-related-post-link:active,
.article-share-action:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04) !important;
}

/* Icon badge styling inside related tools */
.article-sidebar .related-tool-icon,
.related-tool-icon {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.14)) !important;
  color: #2563EB !important;
  border-color: rgba(37,99,235,.14) !important;
  border-radius: 9999px !important;
  transition: transform .18s var(--tgx-hover-ease) !important;
}

.article-sidebar .related-tool-link:hover .related-tool-icon,
.article-sidebar .related-tool-link:focus-visible .related-tool-icon,
.related-tool-link:hover .related-tool-icon,
.related-tool-link:focus-visible .related-tool-icon {
  transform: scale(1.1) !important;
}

/* Arrow trượt ngang */
.article-sidebar .related-tool-arrow,
.related-tool-arrow {
  color: #94A3B8 !important;
  transition: transform .14s var(--tgx-hover-ease), color .14s var(--tgx-hover-ease) !important;
}

.article-sidebar .related-tool-link:hover .related-tool-arrow,
.article-sidebar .related-tool-link:focus-visible .related-tool-arrow,
.related-tool-link:hover .related-tool-arrow,
.related-tool-link:focus-visible .related-tool-arrow {
  color: #fff !important;
  transform: translateX(3px) !important;
}

/* Link hover text color */
.article-sidebar .related-tool-link:hover .related-tool-title,
.article-sidebar .related-tool-link:focus-visible .related-tool-title,
.article-sidebar .related-card:hover span:last-child,
.article-sidebar .related-card:focus-visible span:last-child,
.article-sidebar .tgx-related-post-link:hover .tgx-related-post-title,
.article-sidebar .tgx-related-post-link:focus-visible .tgx-related-post-title,
.related-tool-link:hover .related-tool-title,
.related-tool-link:focus-visible .related-tool-title,
.related-card:hover .tgx-related-post-title,
.tgx-related-post-link:hover .tgx-related-post-title {
  color: #2563EB !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .article-sidebar .premium-card,
  .article-sidebar .toc-card,
  .article-sidebar .tgx-sidebar-card,
  .tgx-sidebar-card,
  .article-sidebar .related-tool-link,
  .article-sidebar .related-card,
  .article-sidebar .tgx-related-post-link,
  .related-tool-link,
  .related-card,
  .tgx-related-post-link,
  .article-share-action {
    transition: none !important;
    transform: none !important;
  }

  .article-sidebar .premium-card:hover,
  .article-sidebar .toc-card:hover,
  .article-sidebar .tgx-sidebar-card:hover,
  .tgx-sidebar-card:hover,
  .article-sidebar .related-tool-link:hover,
  .article-sidebar .related-card:hover,
  .article-sidebar .tgx-related-post-link:hover,
  .related-tool-link:hover,
  .related-card:hover,
  .tgx-related-post-link:hover,
  .article-share-action:hover {
    transform: none !important;
  }
}

/* Feedback section gradient button styling */
.tgx-btn-gradient {
    background: linear-gradient(135deg, #2563EB, #06B6D4) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(37,99,235,.18) !important;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}
.tgx-btn-gradient:hover,
.tgx-btn-gradient:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(37,99,235,.22) !important;
    color: #FFFFFF !important;
}
