/* jobplus: phần bổ sung cho các chức năng của hệ thống mới (không có trên danang43.edu.vn) */
/* Thanh trên: menu tài khoản (bấm tên → vào trang quản lý) */
.jk-user-menu { position: relative; display: inline-block; }
.jk-user-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.jk-user-menu > summary::-webkit-details-marker { display: none; }
.jk-user-menu .jk-um-caret { width: 18px; height: 18px; margin-left: 4px; flex: none; vertical-align: middle; transition: transform .15s; }
.jk-user-menu[open] .jk-um-caret { transform: rotate(180deg); }
.jk-um-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1050; min-width: 250px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 35, 70, .18), 0 0 0 1px rgba(15, 35, 70, .06); padding: 6px; text-align: left; }
.jk-um-pop::before { content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(15, 35, 70, .06); }
.jk-um-head { padding: 10px 12px 8px; border-bottom: 1px solid #eef1f5; margin-bottom: 4px; }
.jk-um-head b { display: block; color: #1f2937; font-size: 15px; line-height: 1.3; }
.jk-um-head small { color: #f7941d; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.jk-um-pop a, .jk-um-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 6px; color: #374151; font-size: 14px; line-height: 1.3; text-decoration: none; text-align: left; cursor: pointer; }
.jk-um-pop a i, .jk-um-pop button i { width: 18px; color: #2b7bb9; font-size: 16px; flex: none; }
.jk-um-pop a:hover, .jk-um-pop button:hover, .jk-um-pop a:focus-visible, .jk-um-pop button:focus-visible { background: #f1f6fb; color: #1d6fa5; outline: none; }
.jk-um-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #eef1f5; }
.jk-um-pop form button { color: #dc3545; }
.jk-um-pop form button i { color: #dc3545; }
@media (max-width: 575px) { .jk-um-pop { position: fixed; left: 12px; right: 12px; top: 56px; min-width: 0; } .jk-um-pop::before { display: none; } }
.header .header-action .jk-user-menu { margin-left: 8px; }
.jp-um-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 8px; background: linear-gradient(90deg, #ee7730, #f09f39); color: #fff; font-weight: 500; }
.jp-um-btn .fa { font-size: 18px; }
.jk-um-pop a i.fa, .jk-um-pop button i.fa { font-size: 15px; text-align: center; }
/* Nhóm E — đăng nhập/đăng ký: main.css trỏ ảnh nền "/images/login-bg.png" (đường dẫn gốc danang43) → dùng ảnh trong thư mục giao diện */
.wrapper-login .login-banner { background-image: url("../images/login-bg.png"); }
.wrapper-login .login-form-inner .alert { margin-bottom: 1rem; }
/* Nhóm B (việc làm): trang "Ứng tuyển thành công" (front/jobs/applied) — danang43 không có trang này */
.jp-applied-hero { border-radius: 4px; }
.jp-applied-hero .jp-applied-icon { width: 56px; height: 56px; border-radius: 50%; background: #e8f7ee; color: #1e9e55; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 8px; }
.list-jobs-search .box-job-apply .btn-apply-job .btn { white-space: nowrap; }
.card-job-new.jp-card-nolimit .card-body { max-height: none; }

/* Đầu trang máy tính: nút Đăng nhập / Đăng ký / Nhà tuyển dụng nằm trong luồng (không chồng lên menu khi màn hình hẹp hoặc menu dài) */
@media (min-width: 992px) {
    .header .navbar-header .header-menu-right { min-width: 0; }
    .header .navbar-header .navbar-right { flex: 1 1 auto; min-width: 0; width: auto; }
    .header .navbar-header .header-action { position: static; flex: 0 0 auto; margin-left: auto; }
    .header .navbar-header .header-menu-right .main-menu > li > a { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .header .navbar-header .logo { margin-right: 1.25rem; }
    .header .navbar-header .header-menu-right .main-menu > li > a { padding-left: .6rem; padding-right: .6rem; font-size: .95rem; }
    .header .navbar-header .header-action a { padding: 1rem .6rem; }
    .header .navbar-header .header-action .for-employer { padding-left: 1rem; padding-right: 2.25rem; }
    .header .navbar-header .header-action .for-employer small { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header .navbar-header .logo { margin-right: .75rem; }
    .header .navbar-header .logo img { height: 40px; max-width: 170px; object-fit: contain; }
    .header .navbar-header .header-menu-right .main-menu > li > a { padding-left: .45rem; padding-right: .45rem; font-size: .875rem; }
    .header .navbar-header .header-action a { padding: .5rem .45rem; font-size: .875rem; }
    .header .navbar-header .header-action .for-employer { padding-left: .75rem; padding-right: 1.9rem; margin-left: .25rem; }
    .header .navbar-header .header-action .for-employer i { right: .6rem; }
}

/* Trang công ty: nút "Theo dõi" nằm trong <form> → form chiếm chỗ của nút (giao diện gốc tính độ rộng cho .btn con trực tiếp) */
.box-company-heading .company-content .company-action form { width: calc(50% - 0.875rem); margin: 0 0 0.75rem 0.875rem; display: block; }
.box-company-heading .company-content .company-action form .btn { width: 100%; margin: 0; white-space: nowrap; }
@media screen and (max-width: 767px) { .box-company-heading .company-content .company-action form { margin-bottom: 0; } }

/* Trang công ty: tab "Việc làm đang tuyển / đã dừng" dạng nút bo tròn, có số lượng */
.jp-co-tabs.nav-tabs { border: 0; gap: 10px; padding: 0 24px 16px; margin: 0; border-bottom: 1px solid #eef0f4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.jp-co-tabs.nav-tabs::-webkit-scrollbar { display: none; }
.jp-co-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e6ec !important; border-radius: 999px !important; padding: 8px 16px; margin: 0 !important;
    background: #f6f7f9; color: #4b5563; font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.jp-co-tabs .nav-link:hover { color: #ee7a2e; border-color: #f3c29f !important; background: #fff7f0; }
.jp-co-tabs .nav-link.active { color: #fff !important; background: linear-gradient(90deg, #ee7a2e, #f3a33b) !important; border-color: transparent !important; box-shadow: 0 4px 12px rgba(238, 122, 46, .28); }
.jp-co-tabs .nav-link::after, .jp-co-tabs .nav-link::before { display: none !important; }
.jp-co-tabs .nav-link em { font-style: normal; font-size: .8rem; font-weight: 700; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #e9ecf1; color: #4b5563; text-align: center; }
.jp-co-tabs .nav-link.active em { background: rgba(255, 255, 255, .25); color: #fff; }
.jp-co-tabs .jp-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: none; }
.jp-co-tabs .jp-dot.is-open { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.jp-co-tabs .nav-link.active .jp-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
#nav-tabContent > .tab-pane > .list-jobs-search { padding-top: 4px; }
#dadung .list-jobs-search .box-job-small { opacity: .75; filter: grayscale(.35); transition: opacity .15s, filter .15s; }
#dadung .list-jobs-search .box-job-small:hover { opacity: 1; filter: none; }
#nav-tabContent .list-jobs-search .box-job-small { transition: background .15s; }
#nav-tabContent .list-jobs-search .box-job-small:hover { background: #fffaf5; }
@media (max-width: 575px) { .jp-co-tabs.nav-tabs { padding: 0 16px 12px; gap: 8px; overflow: visible; } .jp-co-tabs .nav-link { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 8px 10px; font-size: .85rem; } .jp-co-tabs .nav-link em { min-width: 20px; padding: 1px 6px; } .jp-co-tabs .jp-dot { display: none; } }

/* ===== Trang danh sách / tìm kiếm việc làm: tiêu đề kết quả + danh sách tin gộp thành khối liền, bo góc, có bóng ===== */
.jp-result-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
    background: #fff; border-radius: 14px; padding: 20px 24px 20px 28px; box-shadow: 0 6px 24px rgba(17, 24, 39, .06); overflow: hidden; }
.jp-result-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #ee7a2e, #f3a33b); }
.jp-rh-text { min-width: 0; flex: 1 1 320px; }
.jp-rh-title { margin: 0; font-size: 1.35rem; font-weight: 700; color: #1f2937; line-height: 1.3; }
.jp-rh-sub { margin: 4px 0 0; font-size: .95rem; font-weight: 400; color: #6b7280; line-height: 1.4; border: 0; }
.jp-rh-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.jp-rh-count { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff4ec; color: #9a4a12; font-size: .92rem; white-space: nowrap; }
.jp-rh-count strong { color: #ee7a2e; font-size: 1.05rem; }
.jp-rh-count i { font-size: 1.1rem; }
.jp-rh-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #6b7280; font-size: .9rem; white-space: nowrap; }
.jp-rh-sort .form-select { width: auto; min-width: 190px; height: 40px; border-radius: 10px; border: 1px solid #e5e7eb; background-color: #f9fafb; font-size: .92rem; font-weight: 600; color: #374151; box-shadow: none; cursor: pointer; }
.jp-rh-sort .form-select:hover, .jp-rh-sort .form-select:focus { border-color: #f3a33b; background-color: #fff; }

.jp-result-list { background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(17, 24, 39, .06); overflow: hidden; }
.jp-result-list > .box-job-small { position: relative; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff;
    border-bottom: 1px solid #f0f1f4 !important; transition: background .15s; }
.jp-result-list > .box-job-small:last-child { border-bottom: 0 !important; }
.jp-result-list > .box-job-small::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #ee7a2e; opacity: 0; transition: opacity .15s; }
.jp-result-list > .box-job-small:hover { background: #fffaf5; }
.jp-result-list > .box-job-small:hover::before { opacity: 1; }
.jp-result-list > .box-job-small .job-name a { transition: color .15s; }
.jp-result-list > .box-job-small:hover .job-name a { color: #ee7a2e; }
.jp-result-list > .box-job-small .job-logo ._logo { border-radius: 10px; overflow: hidden; border: 1px solid #eef0f4; background: #fff; }
.jp-result-list > .box-job-small .job-label { border-radius: 6px; }

@media (max-width: 767px) {
    .jp-result-head { padding: 16px 16px 16px 20px; border-radius: 12px; }
    .jp-rh-title { font-size: 1.15rem; }
    .jp-rh-side { width: 100%; justify-content: space-between; }
    .jp-rh-sort > span { display: none; }
    .jp-rh-sort .form-select { min-width: 0; }
    .jp-result-list { border-radius: 12px; }
}

/* Nút "Nhà tuyển dụng" ở đầu trang (máy tính): nút bo tròn nổi, chữ 2 dòng, mũi tên trong vòng tròn */
@media (min-width: 992px) {
    .header .navbar-header .header-action { align-items: center; }
    .header .navbar-header .header-action .for-employer {
        display: inline-flex; flex-direction: column; justify-content: center; height: auto; min-height: 48px; align-self: center;
        margin-left: .75rem; padding: .5rem 3.1rem .5rem 1.15rem !important; border-radius: 12px; line-height: 1.2;
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%) !important;
        box-shadow: 0 6px 16px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
        transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
    .header .navbar-header .header-action .for-employer:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 22px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
    .header .navbar-header .header-action .for-employer p { font-weight: 600; font-size: .98rem; letter-spacing: .1px; white-space: nowrap; }
    .header .navbar-header .header-action .for-employer small { font-size: .74rem; opacity: .85; white-space: nowrap; margin-top: 2px; }
    .header .navbar-header .header-action .for-employer i {
        right: .7rem !important; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
        display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; background: rgba(255, 255, 255, .2); }
    .header .navbar-header .header-action .for-employer:hover i { right: .55rem !important; background: rgba(255, 255, 255, .3); }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .header .navbar-header .header-action .for-employer { min-height: 42px; padding: .45rem 2.7rem .45rem .95rem !important; }
    .header .navbar-header .header-action .for-employer i { width: 24px; height: 24px; right: .6rem !important; }
}

/* Trang danh sách việc làm: khối bên phải cùng kiểu bo góc + bóng với khối kết quả */
.page-main-container .sidebar .card-general { border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(17, 24, 39, .06); border: 0; }

/* Logo đầu trang: không cho khung logo bị co lại trong hàng menu (gây méo ảnh) — giữ đúng tỉ lệ ảnh */
.header .navbar-header .logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.header .navbar-header .logo img { width: auto; height: 48px; max-width: 240px; object-fit: contain; object-position: left center; }
@media (min-width: 992px) and (max-width: 1199.98px) { .header .navbar-header .logo img { height: 40px; max-width: 180px; } }
@media (max-width: 991.98px) { .header .navbar-header .logo img { height: 40px; max-width: 200px; } }
