/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #003366; /* Xanh Navy */
    --secondary-color: #ff6600; /* Cam BĐS */
    --light-bg: #f8f9fa;
    --text-color: #333;
    --gray-text: #666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* --- HEADER & NAVIGATION (ĐÃ SỬA ĐỔI) --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo { font-size: 24px; font-weight: 700; color: var(--primary-color); z-index: 1001; }
.logo span { color: var(--secondary-color); }

/* Menu Icon (Mặc định ẩn trên PC) */
.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-color); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary-color); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px; }

/* --- GENERAL SECTIONS --- */
section { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.section-title .line { width: 60px; height: 4px; background: var(--secondary-color); margin: 0 auto; }

/* --- SERVICES --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; text-align: center; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-icon { font-size: 40px; color: var(--secondary-color); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- FEATURES --- */
.features-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.features-text { flex: 1; min-width: 300px; padding-right: 40px; }
.features-image { flex: 1; min-width: 300px; }
.feature-item { margin-bottom: 20px; display: flex; align-items: start; }
.feature-item i { color: var(--secondary-color); margin-right: 15px; font-size: 1.2rem; margin-top: 5px; }

/* --- NEWS --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }
.news-thumb { height: 200px; overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .news-thumb img { transform: scale(1.1); }
.news-category { position: absolute; top: 15px; left: 15px; background: var(--secondary-color); color: var(--white); padding: 5px 10px; font-size: 0.8rem; border-radius: 3px; font-weight: 500; }
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 10px; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); line-height: 1.4; }
.news-content h3 a { color: var(--primary-color); transition: 0.3s; }
.read-more { color: var(--secondary-color); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* --- CTA --- */
.cta-section { background: var(--primary-color); color: var(--white); text-align: center; }

/* --- FOOTER --- */
footer { background: #222; color: #ddd; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li a { color: #bbb; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; }

/* --- RESPONSIVE MENU LOGIC (QUAN TRỌNG) --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }

    /* Hiển thị nút menu icon */
    .menu-toggle { display: block; }

    /* Ẩn thanh menu đi mặc định */
    .nav-links {
        position: fixed;
        top: 80px; /* Bằng chiều cao header */
        left: -100%; /* Đẩy ra khỏi màn hình */
        width: 100%;
        background-color: var(--white);
        flex-direction: column; /* Xếp dọc */
        text-align: center;
        padding: 40px 0;
        transition: 0.4s; /* Hiệu ứng trượt */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    /* Khi thêm class 'active' bằng JS thì trượt vào */
    .nav-links.active { left: 0; }

    .nav-links li { margin: 15px 0; width: 100%; }
    .nav-links li a { font-size: 1.1rem; display: block; }

    /* Ẩn nút tư vấn trên menu mobile cho đỡ chật (hoặc đưa vào trong list) */
    .navbar .btn { display: none; }

    /* Xử lý phần features */
    .features-text { padding-right: 0; margin-bottom: 40px; }
}