/* style.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
}

nav {
    display: inline-block;
    margin-left: 40px;
}

nav a {
    margin-right: 20px;
    font-size: 16px;
}

header .btn-login {
    float: right;
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.hero {
    background: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero .btn-primary,
.hero .btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.hero .btn-primary {
    background: #1a73e8;
    color: #fff;
}

.hero .btn-secondary {
    background: #fff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.section {
    padding: 60px 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    flex: 1 1 250px;
    max-width: 300px;
    margin: 10px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1 1 200px;
    max-width: 240px;
    margin: 10px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    margin: 0 auto 10px;
    font-weight: bold;
}

/* ========== Live Demo Video ========== */
#live-demo {
    /* Đảm bảo mọi nội dung trong section được canh giữa */
    text-align: center;
    padding: 60px 20px;
}

#live-demo iframe {
    /* Hiển thị iframe như khối và canh giữa */
    display: block;
    margin: 0 auto;
    /* Giữ tỉ lệ và không vượt quá kích thước cha */
    max-width: 100%;
    height: auto;
}

/* ========== Benefits (Why Choose Us) ========== */
#benefits {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}
#benefits h2 {
    margin-bottom: 40px;
    font-size: 28px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.benefit-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.benefit-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}
.benefit-card p {
    color: #555;
    line-height: 1.5;
}

/* ========== Testimonials / Partners ========== */
#testimonials {
    padding: 60px 20px;
    text-align: center;
}
#testimonials h2 {
    margin-bottom: 40px;
    font-size: 28px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonial-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-card img {
    max-width: 80px;
    margin-bottom: 16px;
}
.testimonial-card p {
    font-style: italic;
    color: #333;
    margin-bottom: 12px;
}
.testimonial-card strong {
    color: #111;
}

/* ========== FAQ ========== */
#faq {
    padding: 60px 20px;
    background: #f9f9f9;
}
#faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}
.faq-item {
    max-width: 800px;
    margin: 0 auto 24px;
}
.faq-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    cursor: pointer;
}
.faq-item p {
    color: #555;
    line-height: 1.5;
    margin-left: 16px;
}

/* ========== Call to Action ========== */
.cta {
    padding: 60px 20px;
    background: #1a73e8;
    color: #fff;
    text-align: center;
}
.cta h2 {
    font-size: 28px;
    margin-bottom: 16px;
}
.cta p {
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta .btn-primary {
    background: #fff;
    color: #1a73e8;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
}

/* ========== Footer extended ========== */
.footer {
    padding: 40px 20px;
    background: #222;
    color: #ccc;
    text-align: center;
}
.footer-links,
.footer-contact {
    margin-bottom: 16px;
}
.footer-links a,
.footer-contact a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
}
.footer-links a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}
.footer-contact p {
    margin: 4px 0;
    line-height: 1.6;
}

@media(max-width: 600px) {
    .features-grid, .steps {
        flex-direction: column;
        align-items: center;
    }
}

/* Nav on desktop */
header nav {
    display: inline-block;
    margin-left: 40px;
}

header nav a {
    margin-right: 20px;
    font-size: 16px;
}

/* Burger button (ẩn trên desktop) */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Mobile styles */
@media (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
        padding: 10px 20px;
    }
    /* Hiện burger, ẩn nav ngang */
    #menu-toggle {
        display: block;
    }
    header .logo {
        flex: 1;
    }
    header nav {
        position: absolute;
        top: 60px;    /* chiều cao header */
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        display: none;
        border-top: 1px solid #eee;
        margin-left: 0;
    }

    header nav a {
        display: block;
        padding: 12px 20px;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    header nav.show {
        display: flex;
    }
}
