/* ===== CSS Variables ===== */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-bg: #ecfdf5;
    --accent: #065f46;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f0fdf4;
    --bg-dark: #064e3b;
    --border: #d1fae5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.logo-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--text-white);
    padding: 80px 0 90px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.92;
    max-width: 650px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-dark);
    border-color: var(--text-white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-dark);
    border-color: var(--text-white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.article-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}

.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text);
}

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

.article-excerpt {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

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

.article-link {
    color: var(--primary);
    font-weight: 600;
}

.article-link:hover {
    color: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 70px 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-section .btn-primary {
    background: var(--text-white);
    color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 500;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--bg-alt);
    padding: 14px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 6px;
}

/* ===== Article Page ===== */
.article-page {
    padding: 50px 0 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header .article-tag {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--text);
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-bg);
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--accent);
}

.article-body p {
    margin-bottom: 18px;
    color: var(--text);
    line-height: 1.8;
    font-size: 1.02rem;
}

.article-body ul {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.article-body ul li {
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

.article-body a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-dark);
}

/* ===== Author Box ===== */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 48px 0 32px;
}

.author-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ===== Related Articles ===== */
.related-articles {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.related-articles h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.related-articles ul {
    list-style: none;
}

.related-articles ul li {
    margin-bottom: 10px;
}

.related-articles ul li a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.related-articles ul li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
}

.footer-logo .logo-accent {
    color: var(--primary-light);
}

.footer-logo .logo-icon {
    color: var(--primary-light);
}

.footer-col p {
    font-size: 0.93rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.93rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .features-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 16px;
        width: 100%;
    }

    .hero {
        padding: 60px 0 70px;
    }

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

    .hero-desc {
        font-size: 1.05rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .article-meta-header span:nth-child(2),
    .article-meta-header span:nth-child(4) {
        display: none;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}