/* Reset đơn giản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7fa;
    color: #1e293b;
    line-height: 1.6;
}

/* Giữ footer dưới cùng */
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================== */
/* HEADER */
/* ============================== */
.site-header {
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    padding: 15px 20px 20px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-image: url('s.png'); /* đường dẫn ảnh */
    background-size: cover;        /* ảnh phủ toàn bộ */
    background-position: center;   /* canh giữa ảnh */
    background-repeat: no-repeat;  /* không lặp lại ảnh */
    
}

/* Logo + tên web */
.header-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;

}

/* Logo hình tròn */
.circle-logo {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tên web */
.site-name {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

/* MENU */

.topnav {
    overflow: hidden;
    background-color: transparent;
    position: relative;
    background: rgba(0, 0, 0, 0.45); /* nền mờ */
    backdrop-filter: blur(3px);      /* làm mờ background */
}

.topnav #myLinks {
    display: none;
}

.topnav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    display: block;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7); /* chữ nổi hơn */
}

.topnav a.icon {
    background: transparent;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}


.active {
    background: transparent;
    color: white;
}

/* ============================== */
/* NỘI DUNG */
/* ============================== */
.main-content {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
    flex: 1;
    /* đẩy footer xuống đáy */
}

/* Chào mừng */
.welcome-section {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-section h1 {
    font-size: 40px;
    color: #15803d;
}

.welcome-section p {
    font-size: 20px;
    color: #475569;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.hero-actions {
    flex: 1;
    min-width: 260px;
}

.hero-actions h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f766e;
}

.hero-actions p {
    margin-bottom: 20px;
    color: #475569;
}

/* ============================== */
/* TRANG TỔNG QUAN DỰ ÁN */
/* ============================== */


.project-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* BÊN TRÁI: VĂN BẢN */
.project-text {
    flex: 1.1;
    min-width: 260px;

}

.project-text h1 {
    font-size: 26px;
    color: #14532d;
    margin-bottom: 10px;
    margin-left: -50px;
}

.project-text h2 {
    font-size: 20px;
    margin: 18px 0 8px;
    color: #0f766e;
    margin-left: -20px;

}

.project-text p {
    margin-bottom: 10px;
    color: #475569;
    background: #ebfae9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-radius: 10px;
}

.project-text ul {
    margin-left: 20px;
    margin-bottom: 10px;
    color: #475569;
    background: #ebfae9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-radius: 10px;
}

/* BÊN PHẢI: ẢNH */
.project-image {
    flex: 0.9;
    min-width: 260px;
    display: block;
    justify-content: center;
    height: auto;
}

.project-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Link menu đang chọn */
.main-nav a.active {
    background-color: #ffffff;
    color: #15803d;
}

/* ============================== */
/* FOOTER */
/* ============================== */
.site-footer {
    text-align: center;
    padding: 1px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    background-color: white;
}

/* ============================== */
/* TRANG TIN TỨC */
/* ============================== */

.news-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* BÊN TRÁI: LIST TIN */
.news-list {
    flex: 1.2;
    min-width: 260px;
}

.news-list h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #14532d;
    margin-left: -300px;
}

/* ITEM TIN */
.news-item {
    background: #ebfae9;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin-left: -300px;
    margin-bottom: 10px;
}

.news-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.news-link:hover h2 {
    color: #15803d;
}

/* ẢNH NHỎ TRONG ITEM */
.news-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

/* NỘI DUNG BÊN PHẢI CỦA ẢNH */
.news-content h2 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #0f172a;
}

.news-meta {
    font-size: 13px;
    color: #727573;
    margin-bottom: 4px;
    margin-left: 7px;
}

.news-summary {
    font-size: 14px;
    color: #4b5563;
}


/* BÊN PHẢI: BANNER DỌC */
.news-banner img {
    border-radius: 10px;
    width: 300px;
    max-height: 650px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-right: -300px;
    display: block;
    justify-content: center;
    height: auto;
    margin-bottom: 20px;

}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }

    .news-banner img {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* SỬA LỖI BỊ KHUẤT TRÁI TRÊN ĐIỆN THOẠI */
    .news-list {
        margin-left: 0;
        /* bỏ margin âm đi */
        padding-left: 0;
        /* cho sát mép lại bình thường */
    }

    .news-list h1 {
        margin-left: 0;
        /* bỏ margin âm đi */
        padding-left: 0;
    }

    .news-item {
        margin-left: 0;
        /* nếu trước đó có margin-left âm thì reset luôn */
    }
}

/* ============================== */
/* RESPONSIVE */
/* ============================== */
@media (max-width: 768px) {
    .main-nav {
        padding-left: 50px;
        padding-right: 50px;
    }

    .project-text h1 {
        padding-left: 50px;
    }

    .header-center {
        gap: 10px;
    }

    .circle-logo {
        width: 45px;
        height: 45px;
    }

    .site-name {
        font-size: 22px;
    }

    .hero-section {
        flex-direction: column;
    }

    .project-layout {
        flex-direction: column;
    }

    .project-image {
        margin-top: 15px;
    }
}