/* ========================================
   Bằng B2 - Ôn thi GPLX Website
   ======================================== */

:root {
    --primary-blue: #4A90E2;
    --accent-orange: #F5A623;
    --interactive-cyan: #21AAF7;
    --text-dark: #4A4A4A;
    --text-light: #807F7F;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-light: #E8E8E8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-download svg {
    width: 24px;
    height: 24px;
}

/* Features */
.features {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Stats */
.stats {
    padding: 60px 20px;
    background: var(--bg-white);
}

.stats-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-item p {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 4px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--accent-orange), #E8961E);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--accent-orange);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Content Pages (Privacy, Terms, Contact) */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
    color: #fff;
    text-align: center;
    padding: 48px 20px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.page-header p {
    font-size: 15px;
    opacity: 0.8;
    margin-top: 8px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 14px;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-content ul {
    margin: 10px 0 14px 24px;
    color: var(--text-dark);
}

.page-content ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Contact Form */
.contact-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-row svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 36px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #3A7BD5;
}

/* Footer */
.footer {
    background: #2C2C2C;
    color: #ccc;
    padding: 40px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
}

.footer-links h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-light);
        gap: 16px;
    }

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-container {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 26px;
    }
}

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

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .section-title {
        font-size: 24px;
    }

    .stat-item h2 {
        font-size: 28px;
    }
}
