﻿:root {
    --main-color: #002d5b; /* xanh navy */
    --accent-color: #ff6600; /* cam */
    --bg-color: #ffffff; /* trắng */
}

/* Nền trắng, chữ xanh */
body {
    background-color: var(--bg-color) !important;
    color: var(--main-color) !important;
}

/* Navbar nền trắng, chữ xanh */

.navbar {
    background-color: var(--bg-color) !important;
    padding-top: 0.2rem; 
    padding-bottom: 0.2rem;  
}
.navbar-nav {
    margin-left: 0 ; /* bỏ khoảng cách */
    justify-content: flex-start;
}
/* Mặc định (desktop rộng) */
.navbar-nav .nav-item {
    margin-left: 20px; /* không nên quá to */
}

 /*Laptop vừa (992px - 1199px) */
@media (max-width: 1199px) {
    .navbar-nav .nav-item {
        margin-left: 15px;
        font-size: 18px;
    }
}

/*Tablet (768px - 991px) */
@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin-left: 15px;
        font-size: 15px;
    }
}

/*Mobile (<= 767px) – menu xổ dọc nên không cần margin trái */
@media (max-width: 767px) {
    .navbar-nav .nav-item {
        margin-left: 0;
        font-size: 12px;
    }
}
.lang a,
.contact {
    color: #ff6600 !important;
    text-decoration: none;
    font-weight: bold;
}

    .lang a:hover {
        color: #002d5b !important; /*xanh navy khi hover */
    }

.navbar a {
    color: var(--main-color) !important;
    text-decoration: none;

}

    /* Hover sang màu cam */
    .navbar a:hover {
        color: var(--accent-color) !important;
    }

.navbar .container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
   
}
/* Giữ cho menu luôn trong 1 hàng */

/*Desktop lớn */
.navbar-nav .nav-link {
    font-size: 18px;
    font-weight: 700;
    padding: 1rem 0;
    color: var(--menu-color, #000);
    transition: color 0.3s ease;

}
/*Laptop vừa*/ 
@media (max-width: 1199px) {
    .navbar-nav .nav-link {
        font-size: 15px;
        padding: 6px 15px;
    }
}

/*Tablet */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        font-size: 15px;
        padding: 5px 10px;
    }
}

/*Mobile: xổ dọc nên không cần co nữa */
@media (max-width: 767px) {
    .navbar-nav {
        flex-wrap: wrap; /*Cho phép xuống dòng khi đã thành menu dọc */
    }
        .navbar-nav .nav-link {
            font-size: 12px;
            padding: 8px;
        }
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* xoá gap */
}

.navbar .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 0 !important;
}

/* Tạo vùng cầu nối (bridge) giữa cha và con */
.nav-item.dropdown {
    position: relative;
}

    .nav-item.dropdown::after {
        content: "";
        position: absolute;
        top: 100%; /* ngay dưới menu cha */
        left: 0;
        width: 100%;
        font-size: 18px;
        /*height: 25px; /* khoảng cách "ảo" cho chuột đi qua */
    }

.navbar .dropdown-menu .dropdown-item {   /*Sub*/
    font-size: 17px;
    font-weight: 600;
    padding: 8px 20px;
    transition: background 0.3s ease, color 0.3s ease;
}
/* Laptop vừa (1200px ↓) */
@media (max-width: 1199px) {
    .navbar-nav .nav-item {
        font-size: 15px;
        margin-left: 30px;
    }

    .navbar .dropdown-menu .dropdown-item {
        font-size: 15px;
        padding: 7px 15px;
    }
}

/* Tablet (992px ↓) */
@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin-left: 20px;
        font-size: 15px;
    }

    .navbar .dropdown-menu .dropdown-item {
        font-size: 15px;
        padding: 6px 12px;
    }
}

/* Mobile (768px ↓) */
@media (max-width: 767px) {
    .navbar-nav .nav-item {
        margin-left: 10px;
        font-size: 12px;
    }

    .navbar .dropdown-menu .dropdown-item {
        font-size: 12px;
        padding: 6px 10px;
    }
}
.dropdown-menu {
    border-top: 2px solid orange !important;
    border-radius: 0 0 6px 6px; /* bo góc dưới, giữ trên vuông */
}

header.sticky-top {
    border-bottom: 1px solid #002d5b !important;
}

header .container {
    max-width: 90% !important;
    width: 90% !important;
}
/* Logo mặc định trên desktop */
.navbar-brand {
    display: flex;
    align-items: flex-end; /* căn bottom */
    height: 80px; /* bằng height menu nếu cần */
    padding-bottom: 0 !important;
}

    .navbar-brand img {
        height: 80px;
        object-fit: contain;
    }
/* Submenu mặc định ẩn + hiệu ứng mượt */
.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
    z-index: 1050;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Nút toggle (☰) màu xanh, hover cam */
.menu-toggle {
    color: var(--main-color) !important;
}

    .menu-toggle:hover {
        color: var(--accent-color) !important;
    }
/* Đổi màu icon toggler */

.navbar-toggler {
    border: none;
    /*font-size: 1.5rem;
    padding: 0.25rem 0.5rem;*/
    margin-bottom: 0; /* sát đáy header */
    align-self: flex-end;
}

/*TOP*/
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 80px; /* desktop */
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Mobile: logo nhỏ lại */
@media (max-width: 768px) {
    .logo-img {
        max-height: 60px;
    }
}

/* Rất nhỏ (điện thoại cỡ 400px) */
@media (max-width: 480px) {
    .logo-img {
        max-height: 50px;
    }
}

.contact {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #ff6600; /* text-warning */
}

    .contact span {
        white-space: nowrap; /* tránh xuống dòng lung tung */
    }

    .contact a {
        color: #002d5b; /* màu xanh navy */
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 18px;
    }

        .contact a:hover {
            color: #ff0000; /* đổi màu khi hover */
        }

/* Responsive nhỏ hơn 768px */
@media (max-width: 768px) {
    .contact {
        justify-content: center; /* căn giữa khi màn nhỏ */
        font-size: 13px;
    }
}


/*Footer*/
footer a:hover {
    color: orange !important;
}

/*contact us*/
.contact-card h2 {
    font-size: 1.8rem;
    color: #002d5b;
}

.text-orange {
    color: #ff6600;
}

.map-card {
    min-height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .map-card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
/* đặt trong file CSS chính hoặc <style> trong head */
.icon-hover-footer img {
    display: inline-block; /* để transform mượt */
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    will-change: transform, box-shadow;
}

.icon-hover-footer:hover img,
.icon-hover-footer:focus img {
    transform: translateY(-4px) scale(1.08); /* nhấc lên và hơi phóng to */
    box-shadow: 0 8px 18px rgba(0,0,0,0.18); /* đổ bóng nhẹ */
    filter: brightness(1.05); /* sáng lên 1 chút */
}

.icon-hover-footer:active img {
    transform: translateY(-1px) scale(1.03); /* phản hồi khi click */
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* tuỳ chọn: con trỏ tay khi hover */
.icon-hover-footer {
    cursor: pointer;
}


/* Popup nền */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

/* Ảnh popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

    .popup-content img.slideshow {
        max-width: 100%;
        max-height: 70vh;
        margin-bottom: 10px;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.controls button {
    padding: 6px 12px;
    margin: 0 5px;
}


/*VIDEO Thumbnail chính */
.video-thumbnail-large {
    max-width: 100%;
    max-width: 400px;
    position: relative;
}
.video-thumbnail-large .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.8;
    pointer-events: none;
}
    .video-thumbnail-large img,
    .video-thumbnail-small img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Thumbnail nhỏ */
.video-thumbnail-small {
    flex: 1 1 auto;
    width: 110px; 
    max-width: 133px;
}

@media (max-width: 768px) {
    .video-thumbnail-small {
        max-width: 87px;
    }

    .video-thumbnail-large {
        margin-bottom: 1rem;
    }

    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

.play-icon-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: white;
    opacity: 0.8;
    pointer-events: none;
}

    .play-icon::before, .play-icon-sm::before {
        content: "\f04b"; /* FontAwesome play icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

/* Giới hạn hiển thị ảnh 3 dòng */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 90px); /* 3 cột cố định */
    gap: 10px;
    max-width: 400px;
    justify-content: left; /* căn giữa cả khung */
}

.thumb {
    width: 90px;
    height: 85px;
    object-fit: cover;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* mobile thì responsive */
    }

    .thumb {
        width: 100%;
        height: auto;
    }
}
    /* Giới hạn chỉ hiển thị 9 ảnh đầu tiên */
    .gallery a:nth-child(n+10) {
        display: none !important;
    }
/*/*/

.text-gradient-contact {
    background: linear-gradient(to right, #ff6600, orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /*/* Viền trắng 
    -webkit-text-stroke: 2px #fff;*/
}


.text-orange {
    color: #ff5722 !important;
}

/*24092025*/

/* Mặc định mỗi cột 20% */
.footer-col {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Cột 2 rộng 30% */
.footer-2 {
    flex: 0 0 25%;
    max-width: 30%;
}

/* Cột 3 hẹp 10% */
.footer-3 {
    flex: 0 0 20%;
    max-width: 20%;
}
/* Cột 4 hẹp 20% */
.footer-3 {
    flex: 0 0 20%;
    max-width: 20%;
}
/* Cột 5 hẹp 10% */
.footer-3 {
    flex: 0 0 15%;
    max-width: 20%;
}
/* Responsive: trên mobile và tablet thì tự xuống dòng full width */
@media (max-width: 991.98px) {
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/*social*/
.footer-social span {
    font-size: 1.1rem;
}
.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    background: #fff;
    border: 2px solid transparent; /* luôn có border để không nhảy */
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* chỉ chuyển màu border + shadow */
}

    .social-btn i {
        font-size: 18px;
    }

    .social-btn:hover {
        border-color: #007bff; /* chỉ đổi màu border */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* shadow nhẹ hơn */
    }


