@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --text-color: rgb(28, 83, 121);
}

* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* font-size: 15px !important; */
}

body a {
    color: var(--text-color);
}

body {
    font-size: 15px !important;
    /* font-family: Arial, Helvetica, sans-serif; */
}

a {
    text-decoration: none;
}

.container-fluid {
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

/* Quy tắc CSS tùy chỉnh để thêm hiệu ứng hover */
.img-hover-container {
    overflow: hidden;
    /* Ngăn chặn ảnh tràn ra khỏi container */
}

.img-hover {
    transition: transform 0.3s ease;
    /* Thêm hiệu ứng transition */
}

.img-hover:hover {
    transform: scale(1.1);
    /* Phóng to ảnh khi hover */
}

.img-hover-container {
    display: block;
    height: 200px;
}

.img-hover-container img {
    height: 100%;
}

.title-container {
    height: 80px;
    padding: 20px;
    background-color: rgb(23, 72, 68);
}


.bg-tech {
    background-image: url('../img/tech/9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-about {
    background-image: url('../img/about/3.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.bg-contact {
    background-image: url('../img/contact/6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .bg-contact {
        background-image: none;
    }

}

.bg-footer {
    background-image: url('../img/footer/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#totop {
    width: 50px;
    height: 50px;
    background-color: rgb(4, 177, 212);
    position: fixed;
    border-radius: 30px;
    right: 20px;
    bottom: 40px;
    padding: 15px;
    animation: UpDown 1.5s infinite ease-in-out;
}

@keyframes UpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

#totop a i {
    transform: scale(2);
    display: flex;
    justify-content: center;
    color: white;
    transition: Up-Down;
}

.container article img {
    max-width: 100%;
    max-height: 600px;
}

@media screen and (min-width:768px) {
    #nav {
        white-space: nowrap;
    }
}

.search-icon {
    top: 50%;
    /* Đặt ở giữa chiều cao của container */
    right: 10px;
    /* Đặt cách phải 10px */
    transform: translateY(-50%);
    /* Căn giữa biểu tượng theo chiều dọc */
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.nav-pills .nav-link.active {
    background-color: rgb(30, 82, 121);
    /* Màu nền khi được chọn */
    color: white;
    /* Màu chữ khi được chọn */
}

.nav-link {
    color: black;
    /* Màu chữ khi được chọn */
    text-transform: uppercase;
}

#gantt_chart {
    width: 100%;
    /* Biểu đồ chiếm toàn bộ chiều rộng của phần tử cha */
    height: auto;
    /* Hoặc sử dụng chiều cao cố định */
    margin: 0 auto;
    /* Canh giữa biểu đồ */
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hot-button {
    animation: blink 1s infinite;
}

/* user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;   */
.container {
    overflow: visible;
}

/* Cấu hình sticky */
.sticky_element {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 40px;
    /* Đặt vị trí theo nhu cầu của bạn */
}

/* Phần Slider chính */
#slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Vùng chứa carousel chiếm toàn bộ chiều cao */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Ảnh trong slider */
.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    #slider {
        height: 300px;
        /* Giảm chiều cao trên thiết bị nhỏ */
    }
}

@media screen and (max-width: 576px) {
    img.membrane-config {
        height: 250px;
    }

    img.membrane-filter {
        height: 250px;
    }

    article img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
        /* Khoảng cách phía dưới hình ảnh */
        border: 1px solid #ddd;
        /* Viền màu xám nhẹ */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* Đổ bóng nhẹ */
    }
}

/* Training */
.img-train {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng zoom khi hover */
.img-train:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive cho màn hình nhỏ hơn 768px (Mobile) */
@media (max-width: 768px) {
    .img-train {
        max-height: 150px;
        /* Giảm chiều cao để phù hợp với màn hình nhỏ */
    }
}

/* Responsive cho màn hình nhỏ hơn 576px (Mobile nhỏ) */
@media (max-width: 576px) {
    .img-train {
        max-height: 120px;
        /* Thu nhỏ ảnh hơn trên điện thoại nhỏ */
    }
}
