.form-control:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}

.color-primary {
    color: var(--primary-color) !important;
}

.topbar {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .space-empty {
    height: 70px;
}

.topbar a,
.topbar .dropdown {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}

.topbar a:first-child {
    margin-left: 0;
}

.topbar a:hover {
    text-decoration: underline;
}

.topbar .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.topbar .dropdown:hover .dropdown-menu {
    display: block;
}

.topbar .dropdown-menu a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
}

.topbar .dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #009345;
}

.topbar .user-name {
    text-decoration: none;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
}

.topbar .dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    z-index: 1001;
}

.topbar img {
    height: 14px;
}

.main-header {
    background: transparent;
    margin-top: -60px;
    z-index: 3;
}

@media (max-width: 767.98px) {
    .main-header {
        margin-top: -70px;
    }
}

.main-header .navbar {
    font-size: 15px;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    z-index: 1;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 1px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .offcanvas .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .offcanvas .nav-item {
        width: 100%;
    }

    .offcanvas .nav-item.dropdown .d-flex {
        align-items: center;
        justify-content: space-between;
    }

    .offcanvas .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: #333;
    }

    .offcanvas .dropdown-toggle {
        padding: 0.75rem;
        width: 40px;
        /* Vùng click đủ lớn */
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Tắt mũi tên mặc định */
    .offcanvas .dropdown-toggle::after {
        display: none;
    }

    /* Thêm icon Font Awesome */
    .offcanvas .dropdown-toggle::before {
        content: "\f107";
        font-family: "Font Awesome 6 Pro";
        font-weight: 900;
        font-size: 1rem;
        color: #333;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .offcanvas .dropdown-menu {
        position: static !important;
        width: 100%;
        border: none;
        background: #f8f9fa;
        padding: 0.5rem 1.5rem;
        display: none;
    }

    .offcanvas .dropdown-menu.show {
        display: block;
    }

    .offcanvas .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: #555;
    }

    .offcanvas .dropdown-item:hover {
        background: #e9ecef;
        color: #000;
    }
}

@media (max-width: 767.98px) {
    .main-header .navbar {
        border-radius: 0;
    }
}

.main-header .navbar a>img {
    width: 90px;
    object-fit: cover;
    margin-right: 5px;
}

@media (max-width: 767.98px) {
    .main-header .navbar a>img {
        width: 60px;
        margin-right: 2px;
    }
}

.main-header .navbar .search-bar input[name="s"] {
    font-size: 12px;
    min-width: 230px;
}

.main-header .navbar .search-bar .btn {
    background-color: var(--primary-color);
    font-size: 12px;
}

.main-header .navbar-nav .nav-link {
    color: #333;
    margin-left: 5px;
    margin-right: 5px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0;
    font-size: 14px;
}

.main-header .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.main-header .navbar-nav .dropdown {
    position: relative;
}

@media (min-width: 768px) {
    .main-header .navbar-nav>li:not(:first-child):before {
        content: "";
        position: absolute;
        height: 40%;
        width: 1px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 992px) {
    .main-header .navbar-nav .dropdown-menu {
        display: none;
        position: absolute;
        background-color: #fff;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        min-width: 200px;
        top: 100%;
        left: 0;
    }

    .main-header .navbar-nav .dropdown-menu .dropdown-item {
        color: #333;
        padding: 8px 15px;
    }

    .main-header .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .main-header .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .main-header .navbar-nav .dropdown-menu:hover {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .main-header .navbar-collapse {
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0px;
        padding: 5px;
    }
}

.logo-text {
    color: var(--primary-color);
}

.logo-text .title {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.logo-text .subtitle {
    font-size: 20px;
    letter-spacing: 0.3px;
}

@media (max-width: 767.98px) {

    .logo-text .title,
    .logo-text .subtitle {
        font-size: 10px;
    }
}

.content-wrapper .home-intro {
    z-index: 2;
}

@media (min-width: 992px) {
    .content-wrapper .home-intro {
        margin-top: -38px;
    }
}

.content-wrapper .home-intro .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Lớp phủ tối để nội dung nổi bật */
    z-index: 1;
}

.content-wrapper .home-intro .container {
    z-index: 3;
    /* Nội dung nằm trên slider */
}

/* Maps width province*/

.is-map-dac-nong #map_dac_nong {
    min-height: 35rem;
    height: 100%;
}

.is-map-dac-nong #map_dac_nong .is-cu-jut {
    fill: #f6ea81;
}

.is-map-dac-nong #map_dac_nong polygon,
.is-map-dac-nong #map_dac_nong path {
    cursor: pointer;
}

.is-map-dac-nong #map_dac_nong .line-border {
    fill: #fdfefb;
}

.is-map-dac-nong #map_dac_nong .is-dak-mil {
    fill: #7b99cf;
}

.is-map-dac-nong #map_dac_nong .is-krong-no {
    fill: #fabe16;
}

.is-map-dac-nong #map_dac_nong .is-dak-song {
    fill: #b8d433;
}

.is-map-dac-nong #map_dac_nong .is-dak-glong {
    fill: #f69372;
}

.is-map-dac-nong #map_dac_nong .is-city:hover {
    opacity: 1;
    outline: 0;
}

.is-map-dac-nong #map_dac_nong .is-tuy-duc {
    fill: #49b765;
}

.is-map-dac-nong #map_dac_nong .is-dak-rlap {
    fill: #f182b2;
}

.is-map-dac-nong #map_dac_nong .is-gia-nghia {
    fill: #64c9d4;
}

.is-map-dac-nong #map_dac_nong .tp {
    fill: #eb2127;
}

.is-map-dac-nong #map_dac_nong .border-tp {
    fill: #f6eb16;
}

.is-map-dac-nong #map_dac_nong .name-city {
    font-size: 4.22px;
    fill: #fdfefe;
    font-family: UTMAvoBold, UTM Avo;
}