body {
    font-family: 'Roboto', sans-serif;
    height: 1000px;
}

.navbar-custom {
    background-color: #ffffff;
}

.navbar-brand img {
    height: 40px;
}

.nav-item a {
    color: #1e335a;
    font-weight: bold;
}

/*.nav-item:hover a {*/
/*    color: #ff0000;*/
/*}*/

.nav-item.dropdown .dropdown-menu {
    min-width: 150px;
}

/* Hover dropdown chỉ áp dụng trên desktop */
@media (min-width: 992px) {
    /* Dropdown ẩn mặc định */
    .navbar .dropdown .dropdown-menu {
        display: none;
        margin-top: 5px;
        background-color: #003087;
    }

    /* Hiển thị khi hover */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Item trong dropdown */
    .nav-item.dropdown .dropdown-item {
        color: #f6f6f6;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Hover: đổi màu chữ, không đổi nền */
    .nav-item.dropdown .dropdown-item:hover {
        background-color: transparent;
        color: #818181;
    }
}


/*.nav-item.dropdown .dropdown-item {*/
/*    color: #003087;*/
/*}*/

.navbar-brand span {
    font-weight: 800;
    font-size: 1.5rem;
    color: #003087;
}

/* Tốc độ trượt nhanh hơn */
.collapsing {
    transition: height 0.1s ease-in-out;
    will-change: height;
}

/* Hover dropdown chỉ áp dụng trên desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        right: 0;
        /* RẤT QUAN TRỌNG – ép menu lệch phải */
        left: auto;
        /* tránh xung đột */
    }

    .my-search {
        margin-left: 30px;
    }

    img {
        width: 80% !important;
    }

    .banner-custom {
        margin-top: 0 !important;
    }

    /* Có thể tắt mũi tên nếu muốn: */
    /* .dropdown-toggle::after { display: none; } */
}

.navbar-toggler-custom {
    border-radius: 5px !important;
    border: 0;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff0000;
    text-transform: uppercase;
}

h1 {
    color: #1e335a;
}

h2, h3 {
    color: #1e335a;
}


.space {
    width: 70px;
    height: 5px;
    background-color: lightgray; /* chỉ để thấy */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.navbar-custom {
    background-color: #1e335a;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.nav-item.dropdown .dropdown-item {
    color: #f6f6f6;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background-color: #2a4373;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 16px;
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
    transition: font-size 0.3s ease;
}

.navbar-custom.scrolled .navbar-brand {
    font-size: 1rem;
}

.navbar-custom.scrolled img {
    height: 20px !important;
    width: 20px !important
}


.nav-link {
    color: white !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #adb5bd !important;
}

.dropdown-menu {
    background-color: #1e335a;
    border: none;
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: #2a4373;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }

    .navbar-custom.scrolled {
        padding: 0.5rem 0;
    }
}

.navbar-toggler-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

a {
    text-decoration: none !important;
}

img {
    width: 100%;
    align-items: center;
    max-height: 450px;
    object-fit: cover;
}

.banner-custom {
    /* ← Thay bằng ảnh của anh */
    background-image: url('/static/uploads/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    position: relative;
    z-index: 1;

    margin-top: -15px;
}

.banner-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* overlay tối nhẹ */
    z-index: -1;
}


#button-contact-vr {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.phone-vr {
    position: relative;
    width: 60px;
    height: 60px;
}

.phone-vr-circle-fill {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    animation: pulse 1.5s infinite;
    background-color: #f20000;
    opacity: 0.7;
    box-shadow: 0 0 0 0 #f20000;
}

.phone-vr-img-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    background-color: #f20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-bar {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.phone-bar a {
    background-color: #f20000;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
}


.phone-bar {
    margin-left: -30px;
}


/* Hiệu ứng nhấp nháy */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

#gom-all-in-one {
    display: flex;
}

.phone-bar {
    margin-left: -30px;
}

.text-phone {
    margin-left: 30px;
}

@keyframes pulse-strong {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.7);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}


@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.phone-icon-shake {
    animation: shake 0.6s infinite;
}

/*@media (max-width: 768px) {*/
/*    .phone-bar {*/
/*        display: none;*/
/*    }*/
/*}*/

.zalo {
    background-color: #1E73BE;
}


.phone-bar-zalo {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.phone-bar-zalo a {
    background-color: #1E73BE;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
}


.phone-bar-zalo {
    margin-left: -30px;
}


.phone-vr-circle-fill-zalo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    animation: pulse 1.5s infinite;
    background-color: #3a93ac;
    opacity: 0.7;
    box-shadow: 0 0 0 0 #1e6772;
}


.card-img-zoom {
    transition: transform 0.3s ease;
}

.card-img-zoom:hover {
    transform: scale(1.1);
}