/* Thiết lập cơ bản toàn trang */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* THANH ĐIỀU HƯỚNG (HEADER) */
.main-header {
    background-color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 65px; /* Giảm nhẹ chiều cao để cân bằng */
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

/* Đảm bảo menu hiển thị thành một hàng ngang thẳng thớm */
.nav-menu ul {
    display: flex;
    gap: 1.5rem; /* Khoảng cách giữa các chữ menu */
    white-space: nowrap; /* Ngăn chặn chữ bị xuống dòng */
}

.nav-menu a:hover {
    color: #2563eb;
}

/* BANNER CHÍNH (HERO) */
.hero-section {
    position: relative;
    height: 70vh;
    background: url('https://ecowind.com.vn/wp-content/uploads/2026/06/bg.jpg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* SỐ LIỆU THỐNG KÊ (STATS) */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LĨNH VỰC TRỌNG TÂM */
.focus-section {
    background-color: #0f172a;
    color: #ffffff;
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 50px; height: 3px;
    background-color: #2563eb;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.focus-card {
    background-color: #1e293b;
    padding: 2.5rem;
    border-radius: 4px;
    border-top: 4px solid transparent;
    transition: all 0.3s;
}

.focus-card:hover {
    border-top-color: #2563eb;
    transform: translateY(-5px);
}

.focus-card span {
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
}

.focus-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.focus-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}
.focus-card-img {
    width: 100%;
    height: 160px; /* Chiều cao của bức ảnh */
    object-fit: cover; /* Tự động cắt cúp ảnh vừa vặn, không bị méo */
    border-radius: 6px; /* Bo tròn nhẹ các góc ảnh cho đẹp */
    margin-bottom: 1.5rem; /* Tạo khoảng cách với chữ tiêu đề bên dưới */
    display: block;
}
/* DỰ ÁN */
.projects-section {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.project-img {
    height: 220px;
    width: 100%;
	object-fit: cover; /* Giúp ảnh tự động cắt cúp vừa vặn không bị méo hình */
    display: block;
}

.project-card h4 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.2rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* CHÂN TRANG (FOOTER) */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.main-footer h3, .main-footer h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* RESPONSIVE TRÊN ĐIỆN THOẠI */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}
