/* === ANH DEP TRAI — HEALTH, WELLNESS & AWAKENING === */

:root {
    --primary: #1a1a2e;
    --accent: #0f7b6c;
    --accent-dark: #0a6359;
    --accent-light: #e8f5f3;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-warm: #faf9f6;
    --text: #333333;
    --text-light: #6c757d;
    --border: #e9ecef;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* === NAV === */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-logo:hover {
    text-decoration: none;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-chat-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, transform 0.2s;
}

.nav-chat-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.25rem;
}

/* === ACTIVE NAV LINK === */
.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.webp') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(15, 123, 108, 0.6) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
    animation: fadeUp 0.8s var(--ease) both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
    animation: fadeUp 0.8s var(--ease) 0.15s both;
}

.hero-subtitle-en {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero .btn {
    animation: fadeUp 0.8s var(--ease) 0.45s both;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.btn:hover {
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* === SECTIONS === */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.heading-en {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* === TOPIC CARDS === */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.topic-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    display: block;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.topic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}

.topic-card:hover::before {
    transform: scaleX(1);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.topic-en {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9rem;
}

.topic-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.topic-desc-en {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* === TOPIC HERO (category pages) === */
.topic-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.topic-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.topic-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.topic-hero-desc {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.topic-hero-desc-en {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* === ARTICLE GRID & CARDS === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-link:hover {
    text-decoration: none;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Card Thumbnail */
.card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.card-meta time {
    color: var(--text-light);
}

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === CHAT PROMO === */
.chat-promo {
    background: linear-gradient(135deg, var(--primary) 0%, #0f3460 40%, #0a5c50 70%, var(--accent) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.chat-promo-inner {
    max-width: 850px;
    margin: 0 auto;
}

.chat-promo-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.chat-promo-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.35;
}

.chat-promo-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 2rem;
}

.chat-promo-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    text-align: left;
}

.chat-promo-desc-en {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    text-align: left;
    margin-bottom: 3rem;
}

/* Four pillars grid */
.chat-promo-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.chat-pillar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.chat-pillar:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.pillar-en {
    font-family: var(--font-body);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.chat-pillar p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Stats bar */
.chat-promo-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}

/* Vibe tagline */
.chat-promo-vibe {
    margin-bottom: 2.5rem;
}

.chat-promo-vibe p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.chat-promo-vibe .vibe-en {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.chat-promo-cta {
    margin-bottom: 1rem;
}

.chat-promo-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Disclaimer */
.chat-promo-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 123, 108, 0.4);
}

.btn-lg:hover {
    box-shadow: 0 6px 28px rgba(15, 123, 108, 0.6);
}

@media (max-width: 1024px) {
    .chat-promo-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chat-promo {
        padding: 3.5rem 0;
    }

    .chat-promo-pillars {
        grid-template-columns: 1fr;
    }

    .chat-promo-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .chat-stat {
        min-width: 40%;
    }
}

/* === ABOUT === */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-contact {
    text-align: center;
}

.about-contact p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* === PARTNERS SECTION === */
.partners-section {
    background: var(--bg-warm);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.partner-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.partner-symbol {
    font-size: 2.5rem;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.partner-tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.partner-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.partner-arrow {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.partner-card:hover .partner-arrow {
    transform: translateX(4px);
}

/* === ARTICLE HERO IMAGE === */
.article-hero-img {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* === ARTICLE PAGE === */
.article-full {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
}

.article-date {
    color: var(--text-light);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

.hopeful-ending {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

/* === AUTHOR BIO === */
.author-bio {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    margin: 2.5rem 0 2rem;
    background: #f8fafa;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}
.author-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
.author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}
.author-title {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.author-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .author-bio { flex-direction: column; text-align: center; }
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.filter-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === SHARE BUTTONS === */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.share-btn:hover {
    text-decoration: none;
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.share-fb:hover { color: #1877f2; border-color: #1877f2; }
.share-x:hover { color: #000; border-color: #000; }

.copy-text {
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .article-share {
        flex-wrap: wrap;
    }
}

/* === IN-ARTICLE NEWSLETTER CTA === */
.article-newsletter {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.article-newsletter h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-newsletter p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.article-newsletter .newsletter-input-group {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.article-newsletter .newsletter-email {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.article-newsletter .newsletter-btn {
    padding: 0.7rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
}

.article-newsletter .newsletter-btn:hover {
    background: var(--accent-dark);
}

/* === RELATED ARTICLES === */
.related-articles {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    padding: 1rem;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-read {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-newsletter .newsletter-input-group {
        flex-direction: column;
    }
}

.article-nav {
    margin-top: 3rem;
    text-align: center;
}

.back-home {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s;
}

.back-home:hover {
    background: #2a2a4e;
    color: white;
    text-decoration: none;
}

/* === FOOTER === */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo:hover {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-cta {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-email {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-email:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === SHOW MORE === */
.hidden-card { display: none; }
.show-more-wrap { text-align: center; margin: 2rem 0 0; }
.btn-show-more {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-show-more:hover { background: #0a6358; }

/* === TOPIC PAGE — VNEXPRESS STYLE === */

/* Featured hero article */
.topic-featured { padding: 0 0 1rem; }
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.2s;
}
.featured-article:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.featured-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.featured-article:hover .featured-thumb img { transform: scale(1.05); }
.featured-body {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.3;
}
.featured-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article list (below featured) */
.topic-list-section { padding: 0 0 2rem; }
.topic-article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.list-article {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.list-article:first-child { border-top: 1px solid #eee; }
.list-article:hover { background: #f8fafa; }
.list-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}
.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.list-article:hover .list-thumb img { transform: scale(1.05); }
.list-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.list-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.list-article:hover .list-title { color: var(--accent); }
.list-excerpt {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}
.read-more-sm { color: var(--accent); font-weight: 600; }

/* Responsive — tablet */
@media (max-width: 1024px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-body { padding: 1.25rem; }
    .featured-title { font-size: 1.35rem; }
    .list-thumb { width: 160px; height: 105px; }
}

/* Responsive — mobile */
@media (max-width: 768px) {
    .featured-title { font-size: 1.2rem; }
    .featured-excerpt { -webkit-line-clamp: 3; font-size: 0.9rem; }
    .list-article { gap: 0.75rem; padding: 1rem 0; }
    .list-thumb { width: 120px; height: 80px; }
    .list-title { font-size: 1rem; }
    .list-excerpt { display: none; }
}

/* === NEWSLETTER === */
.newsletter-section {
    background: var(--bg-warm);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.newsletter-title .heading-en {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.newsletter-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group-lg {
    gap: 0.75rem;
}

.newsletter-email {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-email:focus {
    border-color: var(--accent);
}

.newsletter-email::placeholder {
    color: #adb5bd;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.newsletter-success {
    color: var(--accent);
}

.newsletter-error {
    color: #dc3545;
}

/* Footer newsletter */
.newsletter-form-footer .newsletter-input-group {
    flex-direction: column;
    gap: 0.4rem;
}

.newsletter-form-footer .newsletter-email {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form-footer .newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-footer .newsletter-email:focus {
    border-color: var(--accent-light);
}

.newsletter-form-footer .newsletter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.newsletter-form-footer .newsletter-msg {
    font-size: 0.8rem;
}

.newsletter-form-footer .newsletter-success {
    color: var(--accent-light);
}

.newsletter-form-footer .newsletter-error {
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-input-group-lg {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* === RESPONSIVE: TABLET (1024px) === */
@media (max-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* === RESPONSIVE: MOBILE (768px) === */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
    }

    .nav-chat-btn {
        align-self: flex-start;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.3s var(--ease);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero {
        min-height: 60vh;
    }

    .hero .container {
        padding: 3.5rem 1.5rem;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 1.25rem;
    }

    .topic-card .topic-icon {
        font-size: 2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .card-thumbnail {
        height: 180px;
    }

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

    .article-full {
        padding: 2rem 1rem 3rem;
    }

    .article-title {
        font-size: 1.65rem;
    }

    .article-hero-img img {
        height: 250px;
    }

    .section {
        padding: 3rem 0;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* ================================================================
   NEW FEATURES — Dark Mode, Progress Bar, TOC, Search, Back-to-Top
   ================================================================ */

/* === NAV ICON BUTTONS === */
.nav-icon-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.nav-icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* === READING TIME === */
.article-reading-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.article-reading-time::before {
    content: '·';
    margin-right: 0.5rem;
}

.card-meta-right {
    color: var(--text-light);
    white-space: nowrap;
}

/* === PROGRESS BAR === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* === TABLE OF CONTENTS === */
.toc-container {
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-alt);
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text);
}

.toc-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.toc-chevron {
    transition: transform 0.2s;
}

.toc-toggle[aria-expanded="false"] .toc-chevron {
    transform: rotate(-90deg);
}

.toc-list {
    padding: 0 1.25rem 1rem;
}

.toc-list.collapsed {
    display: none;
}

.toc-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.toc-list li {
    counter-increment: toc;
}

.toc-list li a {
    display: block;
    padding: 0.35rem 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.toc-list li:last-child a {
    border-bottom: none;
}

.toc-list li a:hover {
    color: var(--accent);
    text-decoration: none;
}

.toc-list li a::before {
    content: counter(toc) ". ";
    font-weight: 600;
    color: var(--accent);
    margin-right: 0.25rem;
}

/* === SEARCH MODAL === */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.open {
    display: flex;
}

.search-modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: searchIn 0.2s var(--ease);
}

@keyframes searchIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.search-header svg {
    flex-shrink: 0;
    color: var(--text-light);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-body);
}

.search-results {
    overflow-y: auto;
    padding: 0.5rem;
    flex: 1;
}

.search-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.search-result-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-hint {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 90;
    transition: background 0.2s, transform 0.2s, opacity 0.3s;
    opacity: 0;
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* === DARK MODE === */
[data-theme="dark"] {
    --primary: #e4e4ec;
    --accent: #1dc5ab;
    --accent-dark: #17a892;
    --accent-light: #152b27;
    --bg: #0f0f14;
    --bg-alt: #16161e;
    --bg-warm: #141418;
    --text: #d1d1d8;
    --text-light: #8b8b99;
    --border: #2a2a38;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .site-nav {
    background: rgba(15, 15, 20, 0.95);
}

[data-theme="dark"] .nav-links {
    background: var(--bg);
}

[data-theme="dark"] .topic-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .share-btn {
    background: var(--bg-alt);
}

[data-theme="dark"] .featured-article {
    background: var(--bg-alt);
}

[data-theme="dark"] .list-article:hover {
    background: var(--bg-alt);
}

[data-theme="dark"] .filter-tab {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-light);
}

[data-theme="dark"] .author-bio {
    background: var(--bg-alt);
}

[data-theme="dark"] .hero-bg {
    opacity: 0.7;
}

[data-theme="dark"] .search-close {
    color: var(--text-light);
    border-color: var(--border);
}

[data-theme="dark"] .nav-theme-btn .icon-moon,
[data-theme="dark"] .nav-theme-btn-m .icon-moon {
    display: none;
}

[data-theme="dark"] .nav-theme-btn .icon-sun,
[data-theme="dark"] .nav-theme-btn-m .icon-sun {
    display: block !important;
}

[data-theme="dark"] img {
    opacity: 0.88;
}

/* === RESPONSIVE: MOBILE NAV ICONS === */
@media (max-width: 768px) {
    .nav-right-mobile {
        display: flex;
    }

    .nav-links .nav-icon-btn {
        display: none;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--text);
        padding: 0.25rem;
    }
}
