* {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --main-color: #166987;
}
.modal-dialog {
    max-width: 360px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    padding: 24px 20px 30px;
}

.modal-body img {
    border-radius: 50%;
    width: 72px;
    height: 72px;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
}

.modal-title {
    font-size: 18px;
    color: var(--main-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.modal-body input.form-control,
.modal-body select.form-select {
    background-color: #f1f4f9;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.modal-body .d-flex input {
    background-color: #f1f4f9;
    border: none;
    text-align: center;
    width: 80px;
    margin-left: 10px;
    border-radius: 6px;
}

.modal-body .btn-primary {
    background-image: linear-gradient(
        to right,
        var(--main-color),
        #2394ad,
        var(--main-color)
    );
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 999px;
    width: 100%;
    margin-top: 10px;
}

.modal-body .btn-primary:hover {
    background-image: linear-gradient(to right, #a17d3f, #f7cd8b, #a17d3f);
}

.modal-header .btn-close {
    background-color: #ffdd57;
    border-radius: 50%;
    padding: 8px;
    margin: -8px -8px 0 0;
}
.nav-link {
    font-weight: 600;
    font-size: 12px;
    color: #000;
    padding: 8px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--main-color);
}

.nav-item:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    z-index: 1000;
}

.dropdown-column {
    flex: 1;
    padding: 0 1rem;
}

.dropdown-menu h6 {
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.dropdown-menu a {
    display: block;
    padding: 4px 0;
    color: #000;
    text-decoration: none;
}

.dropdown-menu a:hover {
    text-decoration: underline;
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    display: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%280, 0, 0, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

.footer {
    background-color: var(--main-color);
    color: #fff;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--main-color);
}

.footer h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a,
.footer p {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffca2c !important; /* Bright yellow hover for contrast */
}

.contact-item,
.policy-list li,
.service-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-item:hover,
.policy-list li:hover,
.service-list li:hover {
    opacity: 1;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
}

.view-more {
    font-size: 0.85rem;
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #ffca2c;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-more:hover {
    background-color: #ffca2c;
    color: var(--main-color) !important;
}

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

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

/* Social Icons */
.social-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #ffca2c !important;
}
.phone-button {
    background-color: var(--main-color);
    color: white;
}
.phone-button:hover{
    background-color: rgb(0, 73, 99) !important;
    color: white !important;
}

/* Certifications */
.certifications i {
    font-size: 1.1rem;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.certifications i:hover {
    transform: rotate(15deg);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 2px solid white !important;
    padding-top: 1.5rem;
}

.footer-bottom .small {
    font-size: 0.8rem;
}

.graybg{
    background-color: rgb(239, 239, 239) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .header-top {
        flex-wrap: wrap;
        gap: 10px; /* tránh các phần tử dính vào nhau */
    }

    .header-nav {
        width: 100%; /* navbar chiếm full chiều ngang */
        order: 3; /* đẩy xuống dưới */
    }
    .col-md-4 {
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-links {
        margin-top: 1rem;
    }
}

.service-list li {
    padding-left: 1rem;
    position: relative;
}

.service-list li::before {
    content: "•";
    color: #ffca2c;
    position: absolute;
    left: 0;
}

.policy-list li {
    padding-left: 1.5rem;
    position: relative;
}

.policy-list li::before {
    content: "›";
    color: #fff;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.floating-toolbar {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    right: 10px;
    top: 35%;
    background: #fff;
    border-radius: 30px;
    border: 1px solid var(--main-color);
    padding: 4px;
}

.toolbar-item {
    text-align: center;
    padding: 15px 5px;
    text-decoration: none;
    color: var(--main-color);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.toolbar-item i {
    font-size: 20px;
}
.boxnone a:hover{
    color: rgb(0, 73, 99) !important;
    text-decoration: none;
    font-weight: semibold;
}
@media (min-width: 1280px) {
    .header-nav .navbar-nav {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .navbar-nav .nav-item {
        padding: 0 8px;
    }

    .mobile-search {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .header-nav .navbar-nav {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .header-nav {
        width: 100%;
        order: 3;
    }
    .header-top {
        flex-wrap: wrap;
    }
    .header-nav {
        border-top: 1px solid #eee;
    }

    .navbar-nav .nav-item {
        padding: 0 6px;
    }

    .mobile-search {
        display: none !important;
    }
    .dropdown-menu {
        flex-direction: column;
        min-width: 300px;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }

    .dropdown-menu {
        position: static !important;
        flex-direction: column;
        min-width: 100%;
        box-shadow: none;
        padding: 0.5rem;
    }

    .dropdown-column {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .dropdown-column h6 {
        margin-top: 0.5rem;
    }

    .search-toggle,
    .phone-button {
        display: none !important;
    }

    .mobile-search {
        display: block !important;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-search input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .header-nav .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    .floating-toolbar {
        flex-direction: row;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        justify-content: space-around;
        padding: 6px 0;
        box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
    }

    .toolbar-item {
        flex: 1;
        padding: 8px 0;
        font-size: 12px;
    }

    .toolbar-item i {
        font-size: 18px;
    }
    .box-editor p img {
        width: 100% !important;
    }
}
