@media (min-width: 992px) {
    .p-lg-custom {
        padding: 1rem 12rem !important;
    }
}

@media (min-width: 1200px) {
    .right-nav {
        min-width: 270px;
        justify-content: end;
    }

    .d-job-detail .tab-pane .col-1,
    .item-notification .col-1 {
        width: 10px;
    }
}

a {
    color: black;
}

.dropdown-menu {
    width: 400px;
    margin-left: -350px;
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
}

.item-notification:hover {
    background: #CEECF2;
}

.btn-condition {
    border: 1px solid #1A6373;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 100%;
}

.selected {
    background: #CEECF2 !important;
}

.range-slide {
    position: relative;
    height: 4px;
}

.slide {
    position: absolute;
    top: 0;
    height: 4px;
    background: #ccc;
    left: 9px;
    right: 9px;
}

.line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background-color: #1A6373;
}

.thumb {
    position: absolute;
    z-index: 2;
    top: -7px;
    height: 18px;
    width: 18px;
    background-color: #1A6373;
    border: 1px solid #1A6373;
    border-radius: 50%;
    transform: translateX(-50%);
}

.rangeMin,
.rangeMax {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    pointer-events: none;
    z-index: 3;
    height: 3px;
    top: 0;
    width: 100%;
    opacity: 0;
    margin: 0;
}

input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    border-radius: 50%;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.display {
    display: flex;
    justify-content: space-between;
}

.tooltip-info {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-info .tooltip-text {
    display: none;
    /* Ẩn mặc định */
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.3s;
    word-wrap: break-word;
    font-weight: normal;
    z-index: 500;
    visibility: visible;
}

.tooltip-info .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-info.active .tooltip-text {
    display: block;
}

.location_item p,
.search-condition,
.notify-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn số dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Hiển thị dấu ba chấm nếu quá 2 dòng */
}

.arrow-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.fa-arrow-right {
    font-size: 24px;
    color: #333;
}

.arrow-container:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.detail-search {
    font-size: 24px;
}

.btn-detail-search {
    height: 50px;
    border: 1px solid #1A6373;
    background: white;
    width: 50%;
}

@media (max-width: 768px) {
    .location_item {
        font-size: 16px;
    }

    .location_title {
        font-size: 18px;
    }

    .arrow-container i {
        font-size: 24px;
    }

    .detail-search {
        font-size: 20px;
    }

    .btn-detail-search {
        width: 100%;
    }
    .nav-scroll .label-text {
        display: block;
        max-width: clamp(65px, 75px, 90px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 3px;
        font-size: 12px;
    }
}

.row.news_locations {
    position: relative;
}

.arrow-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    z-index: 10;
}

.arrow-container div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.arrow-container:hover {
    background: rgba(255, 255, 255, 0.8);
}

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

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

/* Chỉ áp dụng scroll ngang cho mobile */
@media (max-width: 768px) {
    .news_locations-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .news_locations-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .location_item {
        flex: 0 0 auto;
        min-width: 320px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }

    #seeMoreItem {
        flex: 0 0 auto;
        width: 300px;
    }

    .dropdown-menu {
        width: 300px;
        margin-left: -200px;
    }
}

.bg-filled {
    background-color: #F99600;
    color: white;
}

.bg-expired {
    background-color: #5B5b5b;
    color: white;
}

.bg-purple {
    background-color: #CEECF2;
}

.bg-active {
    background-color: #1A6373;
    color: white;
}

.pagination .page-item:first-child,
.pagination .page-item:last-child {
    padding: 0;
}

.pagination .page-item:first-child {
    padding-right: 10px;
}

.pagination .page-item:last-child {
    padding-left: 10px;
}

.page-item {
    padding: 0 5px;
}

.page-item .page-link {
    border: none;
    padding: 0.5rem 1rem;
}

.page-item.active .page-link,
a.page-link:hover {
    background-color: #1A6373;
    color: white !important;

}

.page-link.page-previous {
    background-image: url("../img/arrow-left.png");
}

.page-link.page-next {
    background-image: url("../img/arrow-right.png");
}

.page-link.page-next,
.page-link.page-previous {
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 22px;
    padding: 0;
}

.page-link.page-previous:hover,
.page-link.page-next:hover {
    background-blend-mode: screen;
}

.page-total {
    font-size: 18px;
    font-weight: 700;
    color: #585757;
}

.pagination>li:first-child>a,
.pagination>li:first-child>span,
.pagination>li:last-child>a,
.pagination>li:last-child>span,
.pagination>li>a,
.pagination>li>span {
    border-radius: 100px !important;
    margin: 0 2px;
    color: #777;
    border-color: #ddd;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #1A6373 !important;
}

.nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.job_title {
    gap: 10px;
}

.industry-name,
.status-box {
    max-width: 50%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sticky-contact {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 1000;
    border-radius: 8px;
    color: white;
    background: #F99600;
}

.sticky-alert {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    border-radius: 8px;
}

.icon-header svg * {
  stroke: #565D6D; /* màu mặc định */
  transition: stroke 0.3s ease;
}

a.active .icon-header svg * {
    stroke: #1A6373;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 1; /* 500x250 → 2:1 */
    overflow: hidden;
    border-radius: 8px;
    background-color: #f2f2f2;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
