/* Reset CSS cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333; /* Màu chữ chính */
    background-color: #fff; /* Màu nền chính - trắng */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #fff; /* Nền trắng cho header */
    padding: 1rem 0;
    border-bottom: 2px solid #dc3545; /* Đường viền đỏ dưới header */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #dc3545; /* Màu đỏ cho logo */
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333; /* Màu chữ cho menu */
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #dc3545; /* Màu đỏ khi hover hoặc active */
}

.mobile-menu-toggle {
    display: none; /* Ẩn trên desktop */
    background: none;
    border: none;
    color: #dc3545;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-color: #dc3545; /* Nền đỏ cho hero */
    color: #fff; /* Chữ trắng */
    padding: 6rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #fff; /* Nút nền trắng */
    color: #dc3545; /* Chữ đỏ */
    border: 2px solid #fff;
}

.btn-primary:hover {
    background-color: #f8f9fa; /* Nền trắng nhạt hơn khi hover */
    color: #b21727; /* Chữ đỏ đậm hơn */
}

.btn-secondary {
    background-color: #dc3545; /* Nút nền đỏ */
    color: #fff; /* Chữ trắng */
    border: 2px solid #dc3545;
}

.btn-secondary:hover {
    background-color: #b21727; /* Nền đỏ đậm hơn */
    color: #fff;
}


/* Sections chung */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #dc3545; /* Tiêu đề section màu đỏ */
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background-color: #f8f9fa; /* Nền xám rất nhạt */
}
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.about-text {
    flex: 1;
}
.about-text p {
    margin-bottom: 1rem;
    text-align: justify;
}
.about-image {
    flex: 1;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Programs Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.program-card img {
    max-width: 100%;
    height: 150px; /* Chiều cao cố định cho ảnh */
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    border-radius: 5px;
    margin-bottom: 1rem;
}

.program-card h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.program-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* News Section */
.news-section {
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Để bo góc ảnh */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    color: #dc3545;
    margin: 1rem 1rem 0.5rem;
}

.news-item .news-date {
    font-size: 0.8rem;
    color: #777;
    margin: 0 1rem 0.5rem;
}

.news-item p {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
}

.news-item a {
    display: inline-block;
    margin: 0 1rem 1rem;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.news-item a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
}
.contact-info {
    flex: 1;
}
.contact-info p {
    margin-bottom: 0.8rem;
}
.contact-form {
    flex: 1.5;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button {
    width: auto;
}
.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Footer */
footer {
    background-color: #333; /* Nền đen cho footer */
    color: #fff; /* Chữ trắng */
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        margin-top: 1rem;
        display: none; /* Ẩn menu trên mobile ban đầu */
    }

    nav.active { /* Hiện menu khi active */
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 0.5rem;
    }

    .mobile-menu-toggle {
        display: block; /* Hiện nút toggle trên mobile */
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 2rem;
    }

    .contact-content {
        flex-direction: column;
    }
}
