.tag::before,
.tag::after {
    display: none;
}


.list_job_detail {
    position: relative;
}

.list_job_detail .width-image-home .div-jobs {
    height: 100%;
    width: 100%;
}

.mobi-fontsize12 .icon_canlendar {
    margin-right: 6px;
}

.padding-bottom_0 {
    padding-bottom: 0 !important;
}

.padding-left_1 {
    padding-left: 1px !important;
}

.title_container {
    padding-right: 15px;
}

.box_tuyengap {
    background-color: #f60000;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    background-color: #ffeaea;
    color: red !important;
    font-size: 14px !important;
    font-weight: 500;
}

.job_tuyengap {
    background-color: #fff8f8;

}

.grid-job {
    border-radius: 4px;
}

.tag_magrin_mobile {
    margin-left: 0;
}

.title_container {
    display: grid;
    grid-template-columns: 1fr auto;
    /* First block flexible, second block fixed */
}

.item_job {
    display: grid;
    grid-template-columns: fit-content(100%) 1fr;
}

.item_job .jobs-detail {
    width: 100%;
}

.jobs-title .title_job_content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    align-items: center;
}

.job-title-name {
    color: var(--text_primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    align-self: center;
    -webkit-line-clamp: 1;
    overflow-wrap: anywhere;
    display: -webkit-box;
    white-space: normal;
    line-height: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-family: 'Inter';
}

.related-inner:hover .popup_job_content{
    /* opacity: 1; */
    /* transform: translateY(0); */
    /* pointer-events: auto; */
    /* display: block; */
   
}


/* Ẩn .tags_mobile trên desktop */


.jobs-title .title_container{
    padding: 0;
}
/* .popup_job_content:hover{
    display: block;
} */
.icon-bookmark i,
.icon-bookmark .fa-spinner {
    vertical-align: middle;
    margin-left: 2px;
}
.jobs-header-right.bookmark_job{
    text-align: end;
}
.jobs-title .title_container{
    grid-template-columns: auto 1fr;
}
.popup_job_content .job_title_container{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .4rem;
}
.related-inner:hover{
    background-color: #fff8f1;

}
.related-inner:hover .job-title-name{
    color: #F07E1D;
}
.related-inner{
    position: relative;
    width: 100%;
    display: inline-block; /* Để popup có thể định vị chính xác */
}
/* .popup_job_content {
  position: absolute;
  border-radius: 1rem;
  background: var(--white, #FFF);
  width: 39.5rem;
  z-index: 1111;
  flex-direction: column;
  align-items: flex-start;
  display: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 .2rem .8rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-sizing: border-box;
  transform: translateX(0);
} */

.popup_job_content {
  position: fixed;
  width: 50rem; /* Giữ nguyên kích thước cố định như yêu cầu */
    /* max-width: 95vw; 
  max-height: 90vh; */
  /* overflow-y: auto; */
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: white;
  /* padding: 16px; */
    border-radius: 1rem;
}
.popup_job_content::before{
    content: "";
    height: 110%;
    width: 430px;
    background-color: transparent;
    position: absolute;
    left:-10px;
    top:-10px;
    bottom:10px;
    z-index: -1;
}
.popup_job_content:hover{
    display: block !important;
}



.popup_content_container {
    padding: 1.6rem 1.6rem 0px 1.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    flex: 1 0 0;
    align-self: stretch;
    background: var(--white, #FFF);
    display: flex;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.popup_content_container .popup_header_content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
}

.popup_header_content .popup_job_img img {
    width: 8rem;
    height: 8rem;
    border-radius: .8rem;
    object-fit: cover;
    min-width: unset;
}

.popup_content_header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width:100%;
}



.popup_job_content .popup_content .Job_title {
    color: var(--Text_primary, #333);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    text-transform: capitalize;
}

.popup_job_content .popup_content .a-company {
    color: var(--gray-400, #9CA3AF);
    /* text-sm/font-normal */
    font-family: Inter;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    -webkit-line-clamp: 4;
    margin-right: .4rem;
    display: contents;
    /* 21px */
}

.popup_content_info {
    display: grid;
    grid-template-columns: repeat(3, fit-content(100%));
    gap: 1.6rem;
}

.popup_content_info .popup_content_item {
    display: grid;
    grid-template-columns: fit-content(100%) auto;
    gap: .4rem;
}

.popup_content_info .popup_content_item .content_item {
    color: var(--Text_primary, #333);
    /* text-xs/font-normal */
    font-family: Inter;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    -webkit-line-clamp: 1;
    overflow-wrap: anywhere;
    display: -webkit-box;
    white-space: pre-wrap;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    white-space: normal;

}

.popup_content_container .job_description {
    display: flex;
    padding: 1.2rem 0rem 1.2rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    flex: 1 0 0;
    border-radius: .8rem;
    background: var(--gray-50, #F9FAFB);
    align-self: stretch;
    max-height: 45.6rem;
    /* min-height: 18.4rem;
    max-height: 6.6rem; */
    min-height: 20.8rem;
    overflow-y: auto;
    height: fit-content;
    display: block;
}
.popup_content_container .job_description .job_description_content{
    font-family: 'Inter';
}

.popup_content_container .job_description .header_title {
    color: var(--Text_primary, #333);
    font-family: Inter;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;

}

.popup_content_container .job_description .header_content {
    color: var(--Text_primary, #333);
    font-family: Inter;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.job_description .job_description_item {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.job_description_content .cp-tag {
    background: var(--gray-100, #F3F4F6) !important;
}

.popup_footer_content {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.6rem;
    padding: 1.2rem 1.6rem;
    border-radius: 0rem 0rem 1.2rem 1.2rem;
    background: var(--white, #FFF);
}

.popup_footer_content .pu_watch_detail {
    display: flex;
    padding: var(--2, 8px) var(--4, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--2, 8px);
    border-radius: var(--rounded-lg, 8px);
    border: 1px solid var(--Primary, #F07E1D);
    color: #F07E1D;
}
.popup_footer_content .pu_watch_detail:hover{
    background-color: #F07E1D;
    color: #fff;
}
.pu_footer_item .apply-button{
    line-height: normal;
    height: 100%;
}
.pu_footer_item .btn-save-detail {
    display: flex;
    padding: var(--2, 8px) var(--4, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--2, 8px);
    border-radius: var(--rounded-lg, 8px);
    background: var(--Primary, #F07E1D);
    text-shadow: unset;
    color: #fff;
    height:100%;
}

.icon-bookmark {
    color: #F07E1D;
}

.job_description::-webkit-scrollbar {
    width: 6px;
}

.job_description::-webkit-scrollbar-track {
    background: transparent;
}

.job_description::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: .6rem;

    /* viền xanh giống ảnh */
}

.job_description::-webkit-scrollbar-thumb:hover {
    background-color: #1E90FF33;
    /* màu xanh nhạt có độ trong */
}
.jobs-detail-infomation{
    display: grid !important;
    gap: 2.4rem;
    grid-template-columns: revert;
    grid-template-columns: repeat(3, fit-content(100%));
}
.job_overflow{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .4rem;
    align-items: center;
    line-height: normal;
}
.job_overflow svg{
    margin-right: 0;
    width: 1.6rem;
}
.added-detail-information{
    display: grid;
    align-items: center;
    font-family: 'Inter';
}
.box_tuyengap{
    display: flex;
    padding: .2rem .4rem;
    justify-content: center;
    align-items: center;
    gap: .2rem;
    color: #F00;
    font-family: Inter;
    font-size: 1.2rem !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize; 
}
.jobs-title .title_container{
    column-gap: .4rem;
}
.job_description_header .popup_header_title{
    color: var(--Text_primary, #333);
    margin-bottom: 1rem;
    /* text-base/font-bold */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal; /* 24px */
}
.popup_job_img img{
    width: 8rem;
    height: 8rem;
    aspect-ratio: 1/1;
}

.popup_content_container .job-title-name{
    color: var(--Text_primary, #333) !important;
    font-family: Inter;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal; /* 21px */
    text-transform: capitalize;
    -webkit-line-clamp: 4;
    font-family: 'Inter';
}
.popup_content_container .job-title-name:hover{
    color: #F07E1D !important;
}
.popup_content_container .title_container{
    padding:0;
    display: grid;
    gap: fit-content(100%) 1fr;
    gap: .4rem;
    margin-bottom: .4rem;
}
.popup_content_container .box_tuyengap{
    display: inline-block;
}
.tags_mobile{
    display: none;
}
.added-detail-information a{
    font-family: 'Inter';
}
.popup_content .company_name_container{
    display:inline-block
}
.apply-button .btn-save-detail:hover{
    background-color: #ee6d00 !important;
}
.apply-button .btn.btn-save-detail{
    text-shadow: unset;
}
@media only screen and (max-width: 99rem) {

    .pagination{
        margin-right: 0 !important;
    }
}
@media only screen and (max-width: 80rem) {

    .tags_mobile .tag_mobile_inner{
        display: grid;
        grid-template-columns: auto fit-content(100%);
    }
}
@media (min-width: 769px) {
    .tags_mobile {
        display: none !important;
    }
}
/* Tắt popup hover trên mobile */
@media (max-width: 768px) {
    .related-inner:hover .popup_job_content {
        display: none !important;
    }
    .popup_job_content:hover {
        display: none !important;
    }
    
    /* Ẩn .jobs-deatails-tag trên mobile */
    .jobs-deatails-tag {
        /* display: none !important; */
    }
    
    /* Hiển thị .tags_mobile trên mobile */
    .tags_mobile {
        padding: 0;
        /* border-top: 1px solid var(--border-color); */
        margin-top: 12px;
        display: none;
    }
    
    .tags_mobile .list-tag {
        margin-bottom: 0;
    }
    
    .tags_mobile .apply-button {
        text-align: center;
    }
    .box-loc.mobi-m-10{
        margin-left: 0;
        margin-right: 0;
    }
    .jobs-detail-infomation{
        gap:.4rem;
    }

}
@media only screen and (max-width: 480px) {
    .popup_job_content .popup_content .a-company {
        -webkit-line-clamp: 2
    }
    

    .job_overflow {
        display: grid;
        grid-template-columns: fit-content(100%) fit-content(100%);
    }
    .popup_content .company_name_container .a-company{
        -webkit-line-clamp: 2;
    }
    .job-title-name{
        color: var(--Text_primary, #333);
        /* text-sm/font-bold */
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%; /* 21px */
    }
    .jobs_container{
        gap: 1.1rem;
        flex-direction: column;
        margin: 0 -10px;
    }
    .apply-button .btn.btn-save-detail{
        color: #FFF;
        text-align: center;
        font-family: Inter;
        font-size: 11px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    .jobs-detail-infomation{
        gap: .8rem;
    }
    a.added_detail_information{
        max-width: unset;
        color: #000;
        /* text-xs/font-normal */
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%; /* 18px */
    }
    .added-detail-information a{
        max-width: unset;

    }
    .added-detail-information{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tags_mobile{
        border-top: unset;
    }
    .jobs-deatails-tag{
        display: none;
    }
    .tags_mobile{
        display: block;
        padding: 0;
    }
    .tags_mobile .tag_mobile_inner{
        display: grid;
        grid-template-columns: auto fit-content(100%);
    }
    .tags_mobile .list-tag{
        margin: 0;
    }
}

@media only screen and (max-width: 600px) {}

@media (min-width: 481px) and (max-width: 640px) {}

@media (min-width: 641px) and (max-width: 768px) {}

@media (max-width: 991px) {}

@media (min-width: 769px) and (max-width: 1024px) {}

@media (max-width: 1300) {
  .popup_job_content {
    width: 90vw;
    left: 5vw !important;
    right: 5vw !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

}