* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --background-color: #F7F7F7;
    --btn-color: #fe0000;
    --btn-text-color:#fff
}


/* Thanh điều hướng */
/* Thanh điều hướng */
header {
    background: var(--background-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s;
}

/* Căn chỉnh container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Căn chỉnh logo và chữ */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px; /* Điều chỉnh kích thước logo */
    margin-right: 10px;
}

/* Thêm chữ bên cạnh logo */
.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fe0000; /* Màu đỏ đồng bộ với logo */
    line-height: 1.2;
    text-transform: uppercase;
}

/* Điều chỉnh thanh điều hướng */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--btn-color);
}

/* Hiển thị menu toggle */
.menu-toggle {
    font-size: 30px;
    color: #000;
    cursor: pointer;
    display: none;
    transition: transform 0.3s ease;
}
/* active menu */
/* Khi mục menu đang active (hiển thị phần nội dung) */
.nav-links a.active {
    color: #fe0000; /* Màu đỏ giống logo */
    font-weight: bold;
}
/* Khi mở menu, đổi thành dấu X */
.menu-toggle.active {
    transform: rotate(180deg);
}
.achievement-item:hover{
    cursor: pointer;
}
/* Responsive cho màn hình nhỏ */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
       
    }

    nav.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-top: 50px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .logo {
        margin-bottom: 20px;
        
    }
    .logo-text{font-size: 15px;}
}


/* Banner */
.banner {
    background: var(--background-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.banner-content {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
}

.banner h1 {
    font-size: 50px;
    color: #000;
}

.banner p {
    font-size: 20px;
    margin: 20px 0;
    color: #000;
    display: block;
}

#home .container_carousel_item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--btn-color);
    color: var(--btn-text-color);
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}



/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        transition: 1 all;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--background-color);
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Phần khóa học */
/* Phần Giới thiệu */

.about {
    background: var(--background-color);
    color: #000;
    padding: 80px 0;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    position: relative;
}

.about-content {
    flex: 1;
    padding-right: 40px;
}

#carouselExampleIndicators1 {
    flex: 1;
}

#carouselExampleIndicators1 img {
    width: 100%;
}

.about h2 {
    font-size: 36px;
    color: #000;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}



.about-image {
    flex: 1;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Phần Khóa học */
/* Phần Khóa học */
/* Căn giữa tiêu đề và đặt trên một hàng */
.course-section {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.course-section h2 {
    font-size: 36px;
    color: #000;
    font-weight: bold;
}

/* Chỉnh lại phần danh sách khóa học để nằm trên hàng riêng */
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.course-item {
    background: var(--background-color);
    border: 1px solid var(--btn-color);
    box-shadow: 0px 0px 10px rgba(249, 55, 65, 0.5);
    border-radius: 10px;
    padding: 30px;
    width: 20%;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.course-item:hover {
    transform: scale(1.05);
    background: var(--background-color);
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 992px) {

    .course-item {
        width: 45%;
    }

    /* carousel  */
    #home .container_carousel_item {
        display: block;
    }

    /* about */
    .about .container {
        display: block;
    }
}

.course-item.view-more-information {
    z-index: 999999999;
}

.btn-hidden {
    display: none;
}

@media (max-width: 600px) {
    .course-item {
        width: 100%;
    }

}

/* phần học viên */
/* Phần Thành tựu */
.achievements,.camket {
    margin-top: 50px;
    background: var(--background-color);
    color: #000;
    text-align: center;
    padding: 80px 0;
}

.achievements h2, .camket h2 {
    font-size: 36px;
    color: #000;
    margin-bottom: 40px;
}

.achievements-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.achievement-item {
    background: var(--background-color);
    border: 1px solid var(--btn-color);
    box-shadow: 0px 0px 10px rgba(249, 55, 65, 0.5);
    border-radius: 10px;
    padding: 30px;
    width: 22%;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.achievement-item h3 {
    font-size: 40px;
    color: #000;
    margin-bottom: 10px;
    font-weight: bold;
}

.achievement-item p, .camket p {
    font-size: 18px;
    color: #000;
}

/* Hover effect */
.achievement-item:hover {
    transform: scale(1.1);
    background: var(--background-color);
}

/* Responsive */
@media (max-width: 992px) {
    .achievements-list {
        flex-direction: column;
        align-items: center;
    }
    .camket_noidung {
      flex-direction: column;
    }

    .achievement-item {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Phần liên hệ */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 10%;
    background: var(--background-color);
    color: #000;
}

/* Bố cục phần text */
.contact-text {
    flex: 1;
    max-width: 50%;
}

.contact-text h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-text p {
    font-size: 18px;
    color: #000;
}

/* Form liên hệ */
.contact-form {
    flex: 1;
    max-width: 400px;
    background: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(249, 55, 65, 0.5);
}

.contact-form label {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    background: var(--background-color);
}

.contact-form textarea {
    height: 100px;
}

.contact-form button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    /* background:var(--background-color); */
    color: var(--btn-text-color);
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}


/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .contact-form {
        max-width: 100%;
    }

}

/* Phần bản đồ */
.map-section {
    text-align: center;
    padding: 50px 10%;
    background: rgb(255, 255, 255);
    color: #000;
}

.map-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(249, 55, 65, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .map-section {
        padding: 30px 5%;
    }

    .map-container {
        height: 300px;
    }
}

/* Hiệu ứng Parallax cho từng phần */
.parallax {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
}

/* paralax */
/* Ẩn phần tử ban đầu */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* Khi cuộn đến, thêm class 'show' để hiển thị */
.show {
    opacity: 1;
    transform: translateY(0);
}

#custom_alert {
    /* display: none; */
    position: fixed;
    top: 20px;
    right: -3000px;
    background: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* transition: right 1s ease-in-out; */
    z-index: 10000000000000000;
}

.carousel-indicators {
    bottom: -30px;
}
/* popup */
/* .box {
    width: 200px;
    height: 150px;
    border: 2px solid red;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
} */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.popup img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
}
/* qrcode */
.qrcode{
    display: flex;justify-content: start;
}
.camket_noidung{
    display: flex;
    /* justify-content: space-around; */
    align-items: center;
}
.camket_noidung p, .camket_noidung #carouselExampleIndicators2{
    flex: 1;
}
.camket_noidung div.content{
    padding-left: 50px;
}