/* Thiết lập cơ bản */
:root {
    --primary-color: #1a237e; /* Xanh Navy đậm */
    --secondary-color: #ff5722; /* Cam đất/Terracotta */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --cta-bg: #ff5722;
    --cta-hover: #e64a19;
}

/* THÊM BOX SIZING ĐỂ ĐẢM BẢO LAYOUT FLEXBOX/GRID HOẠT ĐỘNG CHÍNH XÁC */
*,
*::before,
*::after {
    box-sizing: border-box; 
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: white;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* 1. HEADER & NAVIGATION (FIX LỖI KHÔNG XUỐNG DÒNG) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}

/* ĐỊNH KIỂU HOME LINK */
.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.home-link:hover {
    opacity: 0.8; 
}

.logo-img {
    width: 40px; 
    height: 40px;
    margin-right: 10px;
}

/* CẤU TRÚC 2 DÒNG CHO TÊN THƯƠNG HIỆU: ĐÃ SỬA LỖI KHÔNG XUỐNG DÒNG */
.brand-text {
    /* Đã XÓA flex-direction: column để tránh xung đột */
    display: block; 
    line-height: 1.1;
}

.brand-name {
    display: block; /* QUAN TRỌNG: Buộc NATIVE SENSEI chiếm trọn dòng */
    font-size: 1.1rem; 
    font-weight: 700;
    color: var(--primary-color);
}

.sub-brand {
    display: block; /* QUAN TRỌNG: Buộc English School chiếm trọn dòng */
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}
/* ... (giữ nguyên các phần còn lại của styles.css) ... */

.main-nav a {
    margin-left: 25px;
    font-size: 1rem;
    font-weight: 500;
}

.nav-cta-btn {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: 25px; 
}

.nav-cta-btn:hover {
    background-color: #e64a19;
}

/* CSS cho Language Switcher */
.lang-switcher {
    margin-left: 30px; 
}

.lang-btn {
    border: 1px solid var(--primary-color);
    padding: 5px 8px;
    margin-left: 5px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    cursor: pointer;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* 2. HERO SECTION */
.hero-section {
    display: flex;
    align-items: center;
    padding: 80px 5%;
    background-color: var(--light-bg);
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 55%;
}

.hero-image-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-hero-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: normal;
}

.hero-benefits {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.main-cta-btn {
    display: inline-block;
    background-color: var(--cta-bg);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.main-cta-btn:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* 2. PROBLEM SECTION */
.problem-section {
    padding: 60px 5%;
    text-align: center;
}

.problem-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.problem-list {
    display: flex; 
    justify-content: center;
    flex-wrap: wrap; 
    gap: 25px; 
    margin-bottom: 30px;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.problem-item {
    background-color: #fff9f9; 
    border: 1px solid #ffcccb; 
    border-radius: 10px;
    padding: 25px;
    width: calc(50% - 12.5px); 
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.1); 
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color); 
    text-align: center;
    line-height: 1.6;
}

/* ĐỊNH KIỂU ICON VẤN ĐỀ */
.icon-problem {
    color: var(--secondary-color); 
    font-size: 2rem; 
    margin-bottom: 15px;
    display: block; 
    width: 100%;
}

.problem-item p {
    font-size: 1rem;
    font-weight: bold; 
    color: var(--primary-color); 
}

.problem-transition {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 40px;
    font-weight: bold;
}

/* 3. SOLUTION SECTION */
.solution-section {
    padding: 80px 5%;
    background-color: var(--light-bg); 
    text-align: center;
}

.solution-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.solution-item {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background-color: white; 
    border-radius: 12px;
    border: 1px solid var(--light-bg); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s;
}

.solution-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.solution-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color); 
    margin-bottom: 15px;
    font-weight: 700;
}

/* ĐỊNH KIỂU CHO ICON */
.icon-solution {
    color: var(--secondary-color); 
    font-size: 1.6rem;
    margin-right: 10px;
}

.solution-item p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7; 
}

/* Định kiểu cho CTA phụ */
.secondary-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.secondary-cta-btn:hover {
    background-color: #0d1259; 
}


/* 4. FOOTER */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.social-icon {
    color: white;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--secondary-color);
}

.social-icon i {
    margin-right: 8px;
}

.policy-link {
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9rem;
    margin-top: 10px;
}

.policy-link:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}


/* Media Queries cho màn hình nhỏ hơn */
@media (max-width: 992px) {
    .solution-grid {
        flex-direction: column;
        gap: 20px;
    }
}

/* TỐI ƯU HÓA MOBILE (SỬA LỖI XUỐNG DÒNG VÀ LAYOUT 1 CỘT) */
@media (max-width: 768px) {
    
    /* 1. HEADER - Căn giữa và bố cục dọc */
    .main-header {
        flex-wrap: wrap; 
        padding: 10px 5%;
    }
    .logo-container {
        width: 100%; /* Cho logo chiếm hết chiều rộng để căn giữa */
        justify-content: center;
        margin-bottom: 10px;
    }
    .brand-text {
        text-align: center; /* Căn giữa chữ trong logo */
    }
    .main-nav {
        margin-top: 10px;
        order: 3; 
        width: 100%;
        text-align: center;
        display: none; /* Ẩn menu chính trên mobile (nên dùng menu hamburger thực tế) */
    }
    .lang-switcher {
        order: 2;
        margin-left: auto;
    }

    /* 2. HERO SECTION - Căn giữa nội dung */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%; /* Giảm padding */
    }
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    .hero-image-placeholder {
        order: 1;
        margin-bottom: 30px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-slogan {
        font-size: 1.2rem;
    }
    .main-cta-btn {
        font-size: 1.1rem;
    }
    
    /* 3. PROBLEM SECTION - Bố cục 1 cột */
    .problem-list {
        flex-direction: column; 
        gap: 15px;
    }
    .problem-item {
        width: 100%; /* Đảm bảo 100% chiều rộng trên mobile */
    }
    
    /* 4. FOOTER - Xếp dọc */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

