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

:root {
    --primary: #1a1a2e;
    --accent: #0f7b6c;
    --accent-light: #e8f5f3;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #333333;
    --text-light: #6c757d;
    --border: #e9ecef;
}

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

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    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);
}

.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-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

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

.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: 'Be Vietnam Pro', sans-serif;
    transition: background 0.2s, transform 0.2s;
}

.nav-chat-btn:hover {
    background: #0a6359;
    transform: translateY(-1px);
}

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

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.hero-subtitle-en {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Be Vietnam Pro', sans-serif;
}

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

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

.btn-accent:hover {
    background: #0a6359;
    color: white;
    transform: translateY(-1px);
}

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

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

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.topic-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.topic-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

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

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

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

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

.topic-desc-en {
    font-size: 0.85rem;
    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-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: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

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

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

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

/* === 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 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about-contact p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* === 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-size: 2rem;
    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-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 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 8px 8px 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 8px 8px 0;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

.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: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

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

/* === AFFILIATE LINKS (about section) === */
.about-affiliates {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about-affiliates > p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.affiliate-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.affiliate-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    min-width: 200px;
}

.affiliate-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    text-decoration: none;
}

.affiliate-link strong {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.affiliate-link span {
    color: var(--accent);
    font-size: 0.85rem;
}

/* === FOOTER === */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-affiliates {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-affiliates span {
    color: var(--text-light);
}

.footer-affiliates a {
    color: var(--accent);
}

/* === MOBILE === */
@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: 0 4px 12px rgba(0, 0, 0, 0.06);
        align-items: flex-start;
    }

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

    .nav-links.open {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

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

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

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

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

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

    .section {
        padding: 3rem 0;
    }
}
