@font-face {
    font-family: "Itim", cursive;
    font-style: normal;
    src: url(../fonts/Itim-Regular.woff2) format('woff2'),
     url(../fonts/Itim-Regular.woff) format('woff'),
     url(../fonts/Itim-Regular.ttf) format('truetype');
}

body {
    font-family: "Itim", cursive;
}

.row.text-center.align-items-center {
    display: flex; /* Biến hàng thành container linh hoạt */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 100%; /* Đảm bảo chiều cao đầy đủ */
    min-height: 530px; /* Đặt chiều cao tối thiểu để khối không bị co lại */
}
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo video phủ toàn bộ vùng */
    z-index: -1; /* Đưa video ra sau nội dung */
    position: fixed;
}

@media (max-width: 767.98px) {
    .navbar-brand {
        display: none !important;
    }
}
@media (max-width: 768px) {
    header {
        min-height: 100vh;
        height: 100vh;
        padding: 0;
        margin: 0;
        overflow: hidden;
        display: flex;
        align-items: stretch;
    }
    .video-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: cover;
        z-index: -1;
        transform: none;
    }
    body {
        background: #000;
    }
}

header {
    position: relative;
    /* background: url(../images/header-bg.jpg) no-repeat center/cover; */
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}



header > * {
    position: relative;
    z-index: 2;
}

/* Điều chỉnh kích thước logo */
header img,
.navbar-brand img,
.logo img {
    width: 180px;    /* hoặc giá trị bạn muốn */
    height: auto;    /* giữ tỉ lệ ảnh */
    margin-left: 20px; /* Đẩy logo sang phải */
}

header .row.text-center  {
    margin-left: 40px;
    margin-bottom: 30px;
    
    
}
header .row.text-center .col-md-6 {
    font-size: 3.5rem; /* hoặc giá trị bạn muốn */
    color: #FFF;
    text-align: left;
    margin-bottom: 30px;
    line-height: 1; /* Giảm khoảng cách giữa các dòng */
    
}

header .row.text-center .nd {
    font-size: 1.4rem; /* hoặc giá trị bạn muốn */
    color: #6B707B;
    text-align: left;
    line-height: normal;
    margin-top: 10px; /* Khoảng cách giữa tiêu đề và mô tả */
    
}

.nav-link {
    text-transform: uppercase;
    font-size:  1.2rem; /* Kích thước chữ */
    font-optical-sizing: auto;
    font-weight: 500;
    background: -webkit-linear-gradient(90deg, #0066ff, #ffffff); /* Màu gradient cho trình duyệt cũ */
    background: linear-gradient(90deg, #0066ff, #ffffff); /* Màu gradient */
    -webkit-background-clip: text; /* Áp dụng gradient cho chữ */
    -webkit-text-fill-color: transparent; /* Làm chữ trong suốt để hiển thị gradient */
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #FFF;
    font-weight: bold;
}

.poster-img {
    max-width: 400px; /* hoặc giá trị lớn hơn tuỳ ý */
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin: auto;
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(30, 31, 32, 0); /* Nền tối trong suốt */
        padding: 1rem 0.5rem;
        text-align: left;
    }
    .navbar-nav {
        align-items: flex-start;
    }
    .navbar-nav .nav-link {
        color: #0066ff;
        background: linear-gradient(90deg, #0066ff, #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.2rem;
        text-align: left;
        padding-left: 1rem;
        width: 100%;
        display: block;
    }
    .navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
        color: #fff;
        -webkit-text-fill-color: #fff;
        background: none;
        font-weight: bold;
    }
}

.navbar-toggler {
    border: none;
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    /* icon trắng đậm */
    width: 2em;
    height: 2em;
    background-size: 100% 100%;
}

.nav-link:focus, .nav-link:hover {
    /* color: yellow; */
    color: rgba(255, 255, 255, 1);
}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: 1.4rem;
        padding-left: 1.4rem;
    }
}

@media (max-width: 768px) {
    .nd3 .col-md-4 {
        margin: 30px 0;
    }
}

.section-heading {
    margin-bottom: 75px;
    padding-top: 10px;
}
.section-heading h2 {
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0px;
    background: -webkit-linear-gradient(90deg, #0066ff, #ff6600); /* Màu gradient cho trình duyệt cũ */
    background: linear-gradient(90deg, #0066ff, #ff6600); /* Màu gradient */
    -webkit-background-clip: text; /* Áp dụng gradient cho chữ */
    -webkit-text-fill-color: transparent; /* Làm chữ trong suốt để hiển thị gradient */
}

.section-heading span {
    color: #2e2e2e;
    display: block;
    margin-top: 3px; /* hoặc giá trị bạn muốn */
}

.Sumenh, .portfolio, .about-us, .team, .contact-us {
    padding-top: 40px;
    padding-bottom: 100px;
}


.team .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;      /* căn giữa các cột */
    gap: 32px;                    /* khoảng cách đều giữa các cột, chỉnh giá trị tuỳ ý */
}

.team .col-md-4,
.team .col-md-6 {
    background-color: #f9f9f9; /* Màu nền */
    border: 1px solid #FFF; /* Viền */
    border-radius: 15px; /* Bo tròn góc */
    padding: 20px; /* Khoảng cách bên trong */
    text-align: center; /* Căn giữa nội dung */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.904); /* Đổ bóng */
    transition: transform 0.3s ease; /* Hiệu ứng khi hover */
    height: 300px; /* Chiều cao cố định */
    box-sizing: border-box; /* Bao gồm padding và border trong kích thước */
    margin: 10px;                    /* bỏ margin mặc định nếu có */
    flex: 0 1 250px;              /* giữ kích thước cột cố định, hoặc điều chỉnh cho responsive */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

/* Ảnh nền cho từng ô, ví dụ: */
.team .col-md-4:nth-child(1) {
    background-image: url(../images_kt/21.jpg);
}
.team .col-md-4:nth-child(2) {
    background-image: url(../images_kt/z6717496667019_bdb62e74e07dd2897a3799ae8efe7d85.jpg);
}



.team .col-md-4:hover,
.team .col-md-6:hover {
    transform: scale(1.05); /* Phóng to nhẹ khi hover */
    box-shadow: 0 0px 10px rgb(26, 168, 250); /* Tăng đổ bóng khi hover */
    border: #0066ff solid 2px; /* Đổi màu viền khi hover */
}

.team-name {
    font-size: 18px; /* Kích thước chữ */
    border: #FFF solid 1px; /* Viền */
    border-radius: 10px; /* Bo tròn góc */
    padding: 3%; /* Khoảng cách bên trong */
    background-color: #1b29357e; 
    color: #FFF; /* Màu chữ */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Đổ bóng bên trong */
    text-shadow: #222 0 2px; /* Đổ bóng chữ */
    display: flex; 
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */

}

.team {
    background: #1e1f2000;
    color: #FFF;
    scroll-margin-top: -20px; /* Khoảng cách trừ đi khi cuộn */
}

.team .col-md-4 > a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.contact-us {
    padding-top: 50px;
    background: #1e1f2000 
}

.contact-us h3 {
    color: #d8d8d8;
    padding-top: 850px;
    margin-bottom: 0px;
}


footer {
    padding: 10px 0px;
    background-color: #1e1f205b;
    color: #FFF;
}

footer img {
    width: 130px;
    margin: 0 auto; /* Căn giữa ảnh */
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(240, 136, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    display: none; /* Ẩn mặc định */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.back-to-top:hover {
    background-color: rgba(0, 238, 255, 0.8);
}


@media (min-width: 768px) {
    .lienhe1 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        text-align: left;
    }
    .lienhe2 {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;  
    }
    .lienhe3 {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        text-align: right;
    }
    .lienhe1 h3, .lienhe2 h3, .lienhe3 h3 {
        margin: 0;
        width: 100%;
        font-size: 20px; /* Kích thước chữ */
        margin-bottom: 10px; /* Khoảng cách phía dưới */
    }
    
    .contact-us {
        padding-bottom: 20px !important;  /* Khoảng cách dưới */
    }

    .slogan {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6B707B;
        font-size: 1.2rem;
        text-align: center;
        height: 100%;
        margin-top: 25px; /* Khoảng cách phía trên */
    }
}

.lienhe2 a {
    text-decoration: none;
}

.Anhduan1 {
    column-count: 2;         /* 2 cột masonry */
    column-gap: 20px;        /* khoảng cách giữa các cột */
    width: 100%;
    max-width: 900px;        /* hoặc giá trị bạn muốn */
    margin: 0 auto;
}

.Anhduan1 img {
    width: 100%;
    display: block;
    margin-bottom: 20px;     /* khoảng cách giữa các ảnh theo chiều dọc */
    border-radius: 12px;
    break-inside: avoid;     /* tránh ảnh bị cắt khi xuống dòng */
    box-shadow: 0 2px 8px #0001;
    background: #fff;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng chuyển động mượt mà */
}

.Anhduan1 img:hover {
    transform: scale(1.8); /* Phóng to nhẹ khi hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng chuyển động mượt mà */
    border: #0066ff solid 2px; /* Đổi màu viền khi hover */
    box-shadow: 0 0px 10px rgb(26, 168, 250); /* Tăng đổ bóng khi hover */
}

/* Responsive: 1 cột khi màn hình nhỏ */
@media (max-width: 600px) {
    .Anhduan1 {
        column-count: 1;
    }
}