/*
Theme Name: sdong
Author: SĐồng Network
Description: Custom theme for sdong.org — Kết Nối Tài Chính Thông Minh
Version: 1.0
*/

/* Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #f7fafc;
}

/* Color Variables */
:root {
    --slate: #2d3748;
    --slate-light: #4a5568;
    --slate-dark: #1a202c;
    --blue: #4299e1;
    --blue-light: #63b3ed;
    --blue-dark: #3182ce;
    --white: #ffffff;
    --light-bg: #f0f4f8;
    --border: #e2e8f0;
    --text: #2d3748;
    --text-light: #718096;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; color: var(--slate-dark); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}
.logo span { color: var(--blue-light); }
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-menu a:hover { border-bottom-color: var(--blue-light); color: var(--blue-light); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--slate) 0%, #1a365d 50%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.2rem;
    color: #bee3f8;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}
.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66,153,225,0.4);
}
.btn-primary a { color: inherit; }
.btn-primary a:hover { color: inherit; }

/* Stats */
.stats {
    background: var(--white);
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
}
.stat-item p { color: var(--text-light); font-size: 1rem; }

/* Features */
.features {
    padding: 5rem 0;
    background: var(--light-bg);
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}
.feature-card h3 { margin-top: 0; }

/* Steps / How it Works */
.steps {
    padding: 5rem 0;
    background: var(--white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.step-item {
    text-align: center;
    padding: 2rem 1rem;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.step-item h3 { font-size: 1.2rem; }
.step-item p { color: var(--text-light); font-size: 0.95rem; }

/* FAQ */
.faq {
    padding: 5rem 0;
    background: var(--light-bg);
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
}
.faq-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    cursor: pointer;
    color: var(--slate);
}
.faq-item p { color: var(--text-light); margin: 0; }

/* Blog Preview */
.blog-preview {
    padding: 5rem 0;
    background: var(--white);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card h3 { margin-top: 0; font-size: 1.15rem; }
.blog-card p { color: var(--text-light); font-size: 0.9rem; }
.blog-card .read-more {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: #bee3f8; margin-bottom: 2rem; }
.cta-section .btn-primary {
    background: var(--white);
    color: var(--blue-dark);
}
.cta-section .btn-primary:hover {
    background: #f7fafc;
    color: var(--slate-dark);
}

/* Footer */
.site-footer {
    background: var(--slate-dark);
    color: #a0aec0;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #a0aec0;
    font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    min-height: 50vh;
}
.page-content h1:first-child { margin-top: 0; }
.content-area {
    max-width: 800px;
    margin: 0 auto;
}
.content-area ul, .content-area ol {
    margin: 1rem 0 1rem 2rem;
}
.content-area li { margin-bottom: 0.5rem; }

/* Blog Archive */
.blog-archive {
    padding: 4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2rem; }
    .header-inner { flex-direction: column; gap: 1rem; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
