/* =============================================
   Job Listing Plugin — Public Styles v2.2
   ============================================= */

.jl-wrap {
    --dark: #122a40;
    --accent: #57D061;
    --border: #dbe4ea;
    --green: #004d40;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #153c4a;
    /* Fullwidth — thoát khỏi container của theme */
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;

}

/* ═══ LAYOUT ══════════════════════════════════ */
.jl-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.jl-sidebar {
    width: 400px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 145px;
}

.jl-main {
    flex-grow: 1;
    min-width: 0;
}

/* ═══ SIDEBAR TABS ════════════════════════════ */
.jl-sidebar-tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.jl-tab-btn {
    flex: 1;
    padding: 9px 6px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #666;
    border-right: 1px solid var(--border);
    transition: .2s;
}

.jl-tab-btn:last-child {
    border-right: none;
}

.jl-tab-btn.active {
    background: var(--dark);
    color: #fff;
}

.jl-tab-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* ═══ SEARCH INPUT ════════════════════════════ */
.jl-search-group {
    position: relative;
    margin-bottom: 15px;
}

.jl-search-group input {
    width: 100%;
    padding: 10px 36px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fcfcfc;
    outline: none;
    box-sizing: border-box;
    font-size: 13px;
}

.jl-search-group input:focus {
    border-color: var(--accent);
}

.jl-search-group i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
}

/* ═══ FILTER LIST ═════════════════════════════ */
.jl-filter-list {
    list-style: none;
    border-top: 1px solid var(--border);
    padding: 0;
    margin: 0;
}

.jl-filter-wrapper {
    border-bottom: 1px solid var(--border);
}

.jl-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 5px;
    cursor: pointer;
    user-select: none;
}

.jl-filter-header:hover {
    background: #fafafa;
}

.jl-filter-header>span:first-child {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #153c4a;
}

.jl-filter-header span i {
    color: #666;
    font-size: 13px;
}

.jl-tag-tim {
    font-size: 10px;
    color: #ccc;
}

.jl-filter-content {
    display: none;
    padding: 6px 8px 14px;
}

.jl-filter-content.open {
    display: block;
}

.jl-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
    cursor: pointer;
    gap: 8px;
}

.jl-checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--dark);
    border-radius: 3px;
}

.jl-nat-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.jl-nat-flag {
    font-size: 18px;
    line-height: 1;
}

.jl-btn-search {
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
}

.jl-btn-search:hover {
    background: #1a3a56;
}

.jl-reset-filter {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
}

.jl-reset-filter:hover {
    color: var(--accent);
}

/* ═══ MOBILE SEARCH BUTTON (ẩn desktop) ═══════ */
.jl-mobile-search-btn {
    display: none;
}

.jl-sidebar-overlay {
    display: none;
}

.jl-jc-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 4px 36px;
}

.jl-jc-code {
    font-size: 13px;
    color: #888;
}

.jl-jc-code-right {
    display: none;
}

.jl-sidebar-handle {
    display: none;
}

.jl-sidebar-close {
    display: none;
}

.jl-sidebar-footer {
    display: contents;
}

.jl-mobile-bottom-bar {
    display: none;
}

/* ═══ TOP NAV ═════════════════════════════════ */
.jl-top-nav {
    background: #fff;
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.jl-nav-item {
    padding: 13px 20px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    white-space: nowrap;
    transition: .2s;
}

.jl-nav-item.active {
    color: #111;
    border-bottom-color: #57D061;
}

.jl-nav-item:hover:not(.active) {
    color: #555;
    background: #fafafa;
}

/* ═══ FILTER BREADCRUMB BAR ═══════════════════ */
.jl-filter-breadcrumb {
    position: relative;
    padding: 24px 48px 24px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.jl-fb-text {
    font-size: 30px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.jl-fb-clear {
    position: absolute;
    top: 24px;
    right: 0;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    transition: .2s;
    line-height: 1;
}

.jl-fb-clear:hover {
    background: #fef2f2;
    color: #dc3545;
    border-color: #f5c6cb;
}

/* Badge clickable hover */
.jl-badge-clickable {
    cursor: pointer;
    transition: .15s;
}

.jl-badge-clickable:hover {
    background: #dce8f0 !important;
    border-color: #b0c8d8;
    color: #122a40 !important;
}

.jl-badge-type-clickable {
    cursor: pointer;
    transition: .15s;
}

.jl-badge-type-clickable:hover {
    background: #1e3a52 !important;
    opacity: .85;
}

/* ═══ COUNT BAR ═══════════════════════════════ */
.jl-count-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.jl-count-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ═══ SORT DROPDOWN ═══════════════════════════ */
.jl-sort-wrap {
    position: relative;
}

.jl-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f8fb;
    color: var(--dark);
    border: 1px solid #d5dfe8;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}

.jl-sort-btn:hover,
.jl-sort-btn:focus {
    background: #eaf0f5;
    border-color: #b8c8d4;
    color: #153c4a
}

.jl-sort-btn i {
    font-size: 13px;
    color: var(--dark);
}

.jl-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    min-width: 220px;
    z-index: 200;
    padding: 6px 0;
}

.jl-sort-menu.open {
    display: block;
}

.jl-sort-item {
    padding: 11px 18px;
    font-size: 16px;
    color: #153c4a;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
}

.jl-sort-item:hover {
    background: #f5f8fb;
    color: var(--accent);
}

.jl-sort-item.active {
    color: var(--accent);
    font-weight: 700;
}

.jl-count-bar h3 {
    font-size: 18px;
    color: #153c4a;
    margin: 0;
    font-weight: 600;
}

/* ═══ JOB CARD ════════════════════════════════ */
.jl-job-card {
    background: #fff;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    overflow: hidden;
}

.jl-job-card:hover {
    border: 1px solid #61CE70;
}

.jl-jc-top {
    display: flex;
    justify-content: space-between;
    padding: 18px 18px 8px 36px;
}

.jl-jc-left {
    flex: 1;
    padding-right: 14px;
    min-width: 0;
}

.jl-jc-badges {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.jl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    background: #e5eff3 !important;
    color: #153c4a !important;
    border-radius: 6px;
}

.jl-badge-dark {
    background: var(--dark) !important;
    color: #fff !important;
}

.jl-badge-light {
    background: #eef4f8 !important;
    color: #555 !important;
    border: 1px solid #d5e5ef;
    font-weight: 500;
}

.jl-badge-featured {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.jl-jc-title {
    font-size: 27px;
    font-weight: 700;
    color: #122a40;
    margin: 0 0 10px;
    line-height: 1.4;
    text-decoration: none;
}

.jl-job-card:hover .jl-jc-title {
    text-decoration: underline;
    text-decoration-color: #333;
}

.jl-jc-salary {
    font-size: 16px;
    color: #444;
}

.jl-jc-salary strong {
    font-size: 32px;
    font-weight: 700;
    margin: 0 3px;
}

.jl-jc-right {
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 10px;
}

.jl-jc-thumb {
    width: 100%;
    height: 142px !important;
    object-fit: cover;
    border-radius: 8px !important;
    margin-bottom: 6px;
}

.jl-jc-senpai {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jl-jc-senpai img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #E5EFF3;
    transition: transform .2s ease;
}

.jl-jc-senpai img:hover {
    transform: scale(1.35);
}

.jl-jc-divider {
    height: 1px;
    background: #f0f4f8;
    margin: 6px 18px;
}

.jl-jc-bottom {
    padding: 8px 18px 14px 36px;
}

/* Meta row — plain text with icons */
.jl-jc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    align-items: center;
}

.jl-jc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    color: #153c4a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
    user-select: none;
}

.jl-jc-meta-item:hover {
    color: var(--accent);
}

.jl-jc-meta-item i {
    color: var(--accent);
    font-size: 14px;
}

/* Tags on card — light pills */
.jl-jc-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 10px;
}

.jl-jc-tag {
    background: #e5eff3;
    color: #7599A6;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e5eb;
    transition: .15s;
    font-weight: 600;
}



/* Share row */
.jl-jc-share-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.jl-share-label {
    font-size: 13px;
    color: #888;
}

.jl-jc-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.jl-jc-detail-link:hover {
    text-decoration: underline;
}

.jl-share-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.jl-share-icon:hover,
.jl-share-icon:focus {
    background: unset;
    border: unset;
}

.jl-share-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: .2s;
}

.jl-share-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}



/* ═══ LOADING / NO RESULTS ════════════════════ */
.jl-loading {
    text-align: center;
    padding: 40px;
    color: #bbb;
}

.jl-no-results {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #888;
}

/* ═══ OVERLAY ═════════════════════════════════ */
.jl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    z-index: 100998;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.jl-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ═══ POPUP PANEL — bo tròn trái như hình ════ */
.jl-panel {
    position: fixed;
    top: 0;
    right: -1040px;
    width: 960px;
    max-width: calc(100vw - 30px);
    height: 96vh;
    background: #fff;
    z-index: 100999;
    transition: right .38s cubic-bezier(.25, .8, .25, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 60, .14);
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
    /* ← bo tròn góc trái */
    overflow: hidden;
    margin-top: 15px;
}

.jl-panel.open {
    right: 0;
}

/* ── Topbar ── */
.jl-panel-topbar {
    padding: 2.5rem;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
    gap: 12px;
}

.jl-topbar-left {
    flex: 1;
    min-width: 0;
}

.jl-topbar-right {
    flex-shrink: 0;
}

/* Job code link */
.jl-job-code-link {
    color: rgb(117 153 166);
    font-size: 15px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-weight: 500;
    transition: .2s
}

.jl-job-code-link:hover {
    color: var(--accent);
}

/* ── Scroll area ── */
.jl-panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
    scroll-behavior: smooth;
}

/* ── Hero ── */
.modal-hero-header {
    margin-bottom: 18px;
    position: relative;
}

.modal-badges {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    background: #e5eff3 !important;
    color: #153c4a !important;
    border-radius: 6px;
}

.badge-dark {
    background: var(--dark) !important;
    color: #fff !important;
}

.badge-light {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
    font-weight: 500;
}

.badge-featured {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffc107 !important;
}

/* Clickable badge hover */
.jl-clickable {
    cursor: pointer;
    transition: .15s;
}



.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 8px;
}

.modal-salary {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
}

.modal-salary strong {
    font-size: 30px;
    color: #222;
    margin: 0 3px;
    font-weight: 800;
}

/* Senpai corner — like hình: text + cờ tròn */
.jl-modal-senpai {
    position: absolute;
    right: 0;
    top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;

}

.jl-senpai-flags {
    display: flex;
}

.jl-senpai-flags img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    object-fit: cover;
}

.jl-senpai-flags img:first-child {
    margin-left: 0;
}

.senpai-flag-emoji {
    font-size: 24px;
    line-height: 1;
}

/* Meta row — plain text with icons (same as card) */
.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    align-items: center;
}

.modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    color: #153c4a;
    font-weight: 600;
    font-size: 18px;
    transition: .15s;
}



.modal-meta-item i {
    color: var(--accent);
    font-size: 14px;
}

/* Tags — light pills (same as card) */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 20px;
}

.modal-tag,
.jl-modal-tag {
    background: #e5eff3;
    padding: 4px 12px;
    font-size: 16px;
    color: #7599A6;
    border-radius: 4px;
    border: 1px solid #e0e5eb;
    transition: .15s;
    font-weight: 600;
}

.modal-tag.jl-clickable:hover,
.jl-modal-tag.jl-clickable:hover {
    background: #e8eef5;
    border-color: #c0cdd8;
    color: #153c4a;
    cursor: pointer;
}

/* ── Gallery ── */
.gallery-preview-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.gallery-preview-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    border-radius: 0 12px 12px 0;
    z-index: 4;
}

.modal-images-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
}

.modal-images-grid img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-images-grid img:nth-child(2) {
    -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 100%);
    mask-image: linear-gradient(to right, #000 50%, transparent 100%);
}

.gallery-next-btn {
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #333;
    font-size: 16px;
    border: 1px solid #eee;
    transition: .2s;
}

.gallery-next-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: #f0f8ff;
}

.modal-img-caption {
    font-size: 18px;
    color: #153c4a;
    margin: 8px 0 18px;
}

/* Full gallery */
.gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #666;
}

.back-circle-btn {
    width: 32px;
    height: 32px;
    background: #f0f2f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #333;
}

.back-circle-btn:hover {
    background: #e4e6e9;
}

.gallery-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-list-vertical img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ── Consultant bar ── */
.consultant-bar {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    position: sticky;
    top: -40px;
    z-index: 91;
    background: #fff;
    transition: box-shadow .2s, border-radius .2s;
    margin-left: -38px;
    margin-right: -38px;
    padding-left: 38px;
    padding-right: 38px;
}

.consultant-bar-stuck {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    border-radius: 0;
    margin-left: -38px;
    margin-right: -38px;
    padding-left: 38px;
    padding-right: 38px;
}

.cb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-avatars {
    display: flex;
}

.cb-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.cb-text {
    font-size: 13px;
    line-height: 1.5;
}

.cb-text strong {
    color: #0056b3;
    display: block;
    font-size: 13px;
    margin-bottom: 1px;
}

.cb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-apply-modal {
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    background-image: linear-gradient(#122a40, #122a40), linear-gradient(90.9deg, #ef7a02 .38%, #57D061 99.23%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none !important;
    transition: .2s;
}

.btn-apply-modal:hover {
    opacity: .88;
    color: #fff;
}

.btn-like-modal {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 13px;
    transition: transform .2s ease, color .2s, border-color .2s;
}

.btn-like-modal:hover {
    border-color: #ccc;
    color: #e74c3c;
    background-color: white;
}

.btn-like-modal.liked {
    color: #e74c3c;
}

.btn-like-modal.liked i {
    font-weight: 900;
}

.btn-like-modal:active,
.btn-like-modal:focus {
    background-color: #fff !important;
    color: #555;
    border-color: #e0e0e0;
    outline: none;
    box-shadow: none !important;
}

.btn-like-modal.liked:active,
.btn-like-modal.liked:focus {
    background-color: #fff !important;
    color: #e74c3c !important;
    border-color: #e0e0e0;
    outline: none;
    box-shadow: none !important;
}


/* ── Modal sticky tabs ── */
/* ── Tabs wrapper with slider arrows ── */
.modal-tabs-wrapper {
    display: flex;
    align-items: center;
    position: sticky;
    top: -40px;
    z-index: 90;
    background: #f5f8fb;
    margin: 0 -38px 26px -38px;
    border-bottom: 1px solid #e0eaf2;
    border-top: 1px solid #e0eaf2;
}

.tabs-arrow {
    background: none;
    border: none;
    font-size: 40px;
    color: #57D061;
    cursor: pointer;
    padding: 0px 10px 8px 10px;    
    flex-shrink: 0;
    line-height: 1;
    transition: .2s;
    box-shadow: none !important;
}

.tabs-arrow:hover {
    color: #57D061;
    background-color: unset;
    border-color: unset;
}

.tabs-arrow:focus {
    color: #57D061;
    background-color: unset;
    border-color: unset;
}

.modal-tabs {
    display: flex;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.modal-tabs::-webkit-scrollbar {
    display: none;
}

.m-tab {
    padding: 13px 18px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: .2s;
}

.m-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: #fff;
}

.m-tab:hover:not(.active) {
    color: #555;
}

/* ── Summary box ── */
.summary-box {
    padding: 15px 18px;
    border-radius: 10px;
    color: #000000;
    margin-bottom: 26px;
    font-size: 18px;
    line-height: 1.7;
    background: #fdfeff;
}

/* ── Section header ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 215px;
    height: 2px;
    background: #1e3a4a;
}

.sh-title {
    font-size: 32px;
    font-weight: 700;
    color: #153c4a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sh-title i {
    background: var(--green);
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Detail table ── */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    border: none !important;
}

.detail-table tr {
    border: none !important;
    border-bottom: 1px solid #e8eef2 !important;
}

.detail-table tr:last-child {
    border-bottom: none !important;
}

.detail-table th {
    text-align: left;
    padding: 20px 16px 20px 0;
    width: 220px;
    color: #222;
    font-weight: 700;
    vertical-align: top;
    font-size: 18px;
    line-height: 1.6;
    border: none !important;
    background: none !important;
}

.detail-table td {
    padding: 20px 0;
    color: #444;
    line-height: 1.7;
    font-size: 18px;
    border: none !important;
    background: none !important;
}

/* ── Points grid ── */
.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.point-box {
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid #e0eaf2;
    border-right: 1px solid #e0eaf2;
}

.point-box:nth-child(2n) {
    border-right: none;
}

.point-box:nth-last-child(-n+2) {
    border-bottom: none;
}

.pb-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: .3px;
}

.pb-content {
    font-size: 18px;
    color: #153c4a;
    line-height: 1.65;
}

/* ── Blocks ── */
.block-detail {
    margin-bottom: 24px;
}

.block-detail .block-title {
    background: #f0f6fa;
    border-left: 4px solid #57d061;
    padding: 14px 20px;
    font-weight: 700;
    color: #222;
    font-size: 18px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0;
}

.block-detail p,
.block-detail .block-body {
    padding: 16px 4px;
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

.block-gray {
    margin-bottom: 26px;
    font-size: 18px;
}

.block-gray .block-title {
    background: #f0f6fa;
    border-left: 4px solid #1eade2;
    padding: 14px 20px;
    font-weight: 700;
    color: #222;
    font-size: 18px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0;
}

.block-gray p,
.block-gray>*:not(.block-title) {
    padding: 16px 4px;
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

/* ── Footer banner ── */
.jl-footer-banner {
    background: #FF8400;
    padding: 36px 40px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
}

.jl-footer-banner h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.5;
    color: #fff;
}

.jl-footer-banner p {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 0;
}

.jl-btn-apply-footer {
    background: #fff;
    color: #153c4a;
    border: none;
    padding: 18px 46px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: .2s;
    padding-left: 22px;
}

.jl-btn-apply-footer:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.jl-btn-apply-footer img {
    width: 22px;
    height: 22px;
}

/* ── Share bar (bottom of panel — same style as card share row) ── */
.jl-share-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin-top: 18px;
    border-top: 1px solid #eef4f8;
}

@media(max-width:950px) {
    .jl-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        top: auto;
        bottom: -100vh;
        right: 0;
        transition: bottom .38s cubic-bezier(.25, .8, .25, 1);
        height: 85vh;
        margin-top: 0;
    }

    .jl-panel.open {
        bottom: 0;
        right: 0;
    }

    /* Topbar */
    .jl-panel-topbar {
        padding: 14px 16px;
        gap: 8px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .jl-closed-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .jl-job-code-link {
        font-size: 11px;
    }

    /* Scroll — ngăn scroll ngang */
    .jl-panel-scroll {
        padding: 14px 16px;
        overflow-x: hidden;
    }

    /* Badges */
    .modal-badges .badge {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* Title */
    .modal-title {
        font-size: 20px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    /* Senpai xuống hàng riêng */
    .jl-modal-senpai {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 10px;
        font-size: 12px;
    }

    /* Salary */
    .modal-salary {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .modal-salary strong {
        font-size: 22px;
    }

    /* Meta */
    .modal-meta {
        gap: 8px 14px;
        margin-bottom: 10px;
    }

    .modal-meta-item {
        font-size: 14px;
        gap: 4px;
    }

    .modal-meta-item i {
        font-size: 12px;
    }

    /* Tags */
    .modal-tags {
        gap: 4px;
        margin-bottom: 14px;
    }

    .modal-tag,
    .jl-modal-tag {
        font-size: 12px;
        padding: 3px 8px;
    }

    /* Tabs wrapper — margin khớp padding scroll 16px */
    .modal-tabs-wrapper {
        margin: 0 -16px 16px -16px;
        top: -15px !important;
        background: #fff;
        z-index: 92;
    }

    .m-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tabs-arrow {
        font-size: 35px;
        padding: 6px 8px;
    }

    /* Gallery */
    .modal-images-grid {
        grid-template-columns: 3fr 2fr;
        gap: 8px;
    }

    .modal-images-grid img {
        height: 180px;
    }

    .gallery-preview-wrapper {
        margin-bottom: 14px;
    }

    .gallery-preview-wrapper img {
        height: 180px;
    }

    .modal-img-caption {
        font-size: 13px;
    }

    /* Section headers — ảnh thu nhỏ, không tràn */
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .section-header>img {
        max-width: 70px;
        max-height: 70px;
    }

    .sh-title {
        font-size: 16px;
    }

    .sh-title img {
        width: 30px !important;
        height: 30px !important;
    }

    /* Points grid — 1 cột trên mobile */
    .points-grid {
        grid-template-columns: 1fr;
    }

    .point-box {
        border-right: none;
        padding: 14px 16px;
    }

    .point-box:nth-last-child(-n+2) {
        border-bottom: 1px solid #e0eaf2;
    }

    .point-box:last-child {
        border-bottom: none;
    }

    /* Detail table */
    .detail-table th {
        width: 140px;
        font-size: 13px;
        padding: 8px 10px;
    }

    .detail-table td {
        font-size: 13px;
        padding: 8px 10px;
        word-break: break-word;
    }

    /* Summary box */
    .summary-box {
        padding: 14px;
    }

    .summary-box h3 {
        font-size: 16px;
    }

    /* Consultant bar — ẩn trên mobile, dùng bottom bar thay thế */
    .consultant-bar {
        display: none !important;
    }

    /* Mobile bottom bar — chỉ hiện khi panel open */
    .jl-panel.open .jl-mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100000;
        background: white;
    }

    .mb-close-btn {
        position: absolute;
        top: -56px;
        right: 16px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 18px;
        color: #555;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    }

    .mb-actions {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        background: #fff;
        border-top: 1px solid #eee;
        gap: 4px;
    }

    .mb-like-btn {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 18px;
        color: #555;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mb-apply-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        border-radius: 8px;
        padding: 12px 20px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none !important;
        border: 1px solid transparent;
        background: linear-gradient(#1e3a4a, #1e3a4a) padding-box,
            linear-gradient(135deg, #ef7a02, #57D061) border-box;
    }

    .mb-like-btn {
        transition: transform .2s ease;
    }

    .mb-like-btn.liked {
        color: #e74c3c;
    }

    .mb-like-btn:active,
    .mb-like-btn:focus {
        background-color: #fff !important;
        color: #555;
        border-color: #ddd;
        outline: none;
        box-shadow: none !important;
    }

    .mb-like-btn.liked:active,
    .mb-like-btn.liked:focus {
        background-color: #fff !important;
        color: #e74c3c !important;
        border-color: #ddd;
        outline: none;
        box-shadow: none !important;
    }

    .jl-panel-scroll {
        padding-bottom: 70px !important;
    }

    /* Footer banner — xếp dọc trên mobile */
    .jl-footer-banner {
        flex-direction: column;
        padding: 20px 16px;
        text-align: center;
        gap: 14px;
    }

    .btn-like-modal:focus,
    .btn-like-modal:active {
        background-color: #fff !important;
        color: #555;
        border-color: #e0e0e0;
        outline: none;
        box-shadow: none !important;
    }

    .btn-like-modal.liked:focus,
    .btn-like-modal.liked:active {
        background-color: #fff !important;
        color: #e74c3c !important;
        border-color: #e0e0e0;
        outline: none;
        box-shadow: none !important;
    }

    .jl-footer-banner h3 {
        font-size: 18px;
    }

    .jl-btn-apply-footer {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Share bar */
    .jl-share-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media(max-width:768px) {
    .jl-layout {
        flex-direction: column;
    }



    /* Sidebar: ẩn mặc định, hiện dạng drawer khi mở */
    .jl-sidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100% !important;
        height: 76vh;
        max-height: 76vh;
        z-index: 100999;
        border-radius: 20px 20px 0 0;
        border: none;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(.25, .8, .25, 1);
        overflow: hidden;
        padding: 0;
    }

    .jl-sidebar.jl-sidebar-open {
        transform: translateY(0);
    }

    /* Overlay mờ phía sau sidebar */
    .jl-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 100998;
        opacity: 0;
        visibility: hidden;
        transition: all .3s;
    }

    .jl-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Nút tìm kiếm mobile trong count bar */
    .jl-mobile-search-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f0f6fa;
        border: 1px solid #dbe4ea;
        border-radius: 20px;
        padding: 7px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #153c4a;
        cursor: pointer;
        transition: .2s;
        white-space: nowrap;
    }

    .jl-mobile-search-btn:hover,
    .jl-mobile-search-btn:focus {
        background: #e4eef4;
        color: #000;
        border: 1px solid green;
    }

    .jl-mobile-search-btn i {
        color: #666;
        font-size: 12px;
    }

    .jl-mobile-filter-count {
        background: #57d061;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
    }

    /* Tabs header không scroll */
    .jl-sidebar .jl-sidebar-tabs {
        flex-shrink: 0;
        margin: 16px 18px 12px;
    }

    /* Tab content = flex column, chỉ filter list scroll */
    .jl-sidebar .jl-sidebar-tab-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0 18px;
    }

    /* Search input cố định trên */
    .jl-sidebar .jl-search-group {
        flex-shrink: 0;
    }

    /* Filter list scroll */
    .jl-sidebar .jl-filter-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0px !important;
    }

    /* Drag handle trên cùng sidebar */
    .jl-sidebar-handle {
        display: flex;
        justify-content: center;
        padding: 10px 0 4px;
        flex-shrink: 0;
    }

    .jl-sidebar-handle span {
        width: 40px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
    }

    /* Nút X đóng sidebar */
    .jl-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 18px;
        color: #555;
        cursor: pointer;
        align-self: flex-end;
        margin: 12px 18px 8px auto;
        flex-shrink: 0;
        transition: .2s;
    }

    .jl-sidebar-close:hover {
        background: #f5f5f5;
        color: #333;
    }

    /* Footer: Đặt lại + Tìm kiếm cùng hàng */
    .jl-sidebar-footer {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    .jl-sidebar-footer .jl-reset-filter {
        flex-shrink: 0;
        padding: 14px 18px;
        margin: 0;
        border-top: none;
        font-size: 13px;
        color: #888;
        white-space: nowrap;
        border: 1px solid #eee;
        border-radius: 5px;
    }

    .jl-sidebar-footer .jl-btn-search {
        flex: 1;
        flex-shrink: 0;
        padding: 16px;
        margin: 0;
        border: 1px solid #122a40;
        border-radius: 5px;
    }

    /* Wrap full width — reset 100vw trick on mobile */
    .jl-wrap {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .jl-wrap * {
        box-sizing: border-box;
    }

    .jl-main {
        max-width: 100%;
        min-width: 0;
    }

    .jl-top-nav,
    .jl-count-bar,
    .jl-job-card {
        max-width: 100%;
    }

    /* Top nav scroll horizontal */
    .jl-top-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
    }

    .jl-nav-item {
        padding: 11px 14px;
        font-size: 14px;
    }

    /* Breadcrumb nhỏ hơn */
    .jl-fb-text {
        font-size: 20px;
    }

    /* Count bar */
    .jl-count-bar h3 {
        font-size: 15px;
    }

    .jl-sort-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .jl-sort-menu {
        min-width: 200px;
    }

    /* ── JOB CARD responsive ── */
    /* Đổi layout: ảnh lên trên, nội dung xuống dưới */
    .jl-jc-top {
        flex-direction: column-reverse;
        padding: 0;
    }

    .jl-jc-left {
        padding: 14px 14px 6px;
        width: 100%;
    }

    /* Right (thumbnail + senpai) chiếm full width, ảnh to */
    .jl-jc-right {
        width: 100%;
        position: relative;
        padding: 14px;
    }

    .jl-jc-thumb {
        width: 100% !important;
        height: 200px !important;
        border-radius: 10px 10px 0 0 !important;
        margin-bottom: 0;
    }

    /* Hàng mã công việc + senpai trên cùng card */
    .jl-jc-code-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px 6px ;
    }

    .jl-jc-code {
        font-size: 13px;
        color: #888;
    }

    .jl-jc-code-right {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .jl-jc-code-right img {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #E5EFF3;
    }

    .jl-jc-code-right .jl-badge-featured {
        padding: 4px 6px;
        font-size: 12px;
    }

    /* Senpai flags: ẩn trên góc ảnh, đã dời lên code-row */
    .jl-jc-senpai {
        display: none !important;
    }

    /* Title & salary responsive */
    .jl-jc-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .jl-jc-salary {
        font-size: 14px;
    }

    .jl-jc-salary strong {
        font-size: 22px;
    }

    /* Badges responsive */
    .jl-jc-badges {
        margin-bottom: 8px;
    }

    .jl-badge {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Divider */
    .jl-jc-divider {
        margin: 4px 14px;
    }

    /* Bottom section */
    .jl-jc-bottom {
        padding: 6px 14px 12px;
    }

    /* Meta items */
    .jl-jc-meta-row {
        gap: 10px;
        margin-bottom: 8px;
    }

    .jl-jc-meta-item {
        font-size: 13px;
        gap: 4px;
    }

    .jl-jc-meta-item i {
        font-size: 12px;
    }

    /* Tags */
    .jl-jc-tag {
        font-size: 13px;
        padding: 3px 8px;
    }

    /* Share row */
    .jl-jc-share-row {
        gap: 8px;
        justify-content: start;
    }

    .jl-share-label {
        font-size: 12px;
    }

    .jl-share-icon {
        width: 26px;
        height: 26px;
    }

    .jl-share-icon img {
        width: 20px;
        height: 20px;
    }

    .jl-closed-badge {
        font-size: 9px;
    }
}

/* ═══ SMALL MOBILE (≤480px) ═══════════════════ */
@media(max-width:480px) {
    .jl-wrap {
        padding-left: 6px;
        padding-right: 6px;
    }

    .jlp-sec-header::after {
        width: 140px !important;
    }

    .section-header::after {
        width: 140px !important;
    }

    .jl-jc-thumb {
        height: 170px !important;
    }

    .jl-jc-title {
        font-size: 16px;
    }

    .jl-jc-salary strong {
        font-size: 20px;
    }

    .jl-nav-item {
        padding: 10px 10px;
        font-size: 13px;
    }

    .jl-fb-text {
        font-size: 18px;
    }

    .jl-count-bar {
        margin-left: 10px;
    }
}

/* ═══ RECRUITMENT STATUS: CLOSED ══════════════ */
/* Badge cảnh báo đỏ */
.jl-closed-badge {
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .3px;
    margin-bottom: 5px;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px;
}


/* Modal popup — nền xám khi ngưng tuyển */
.jl-panel-closed .jl-panel-scroll {
    background: #f0f0f0;
}

.jl-panel-closed .modal-hero-header,
.jl-panel-closed .gallery-preview-wrapper,
.jl-panel-closed .modal-img-caption,
.jl-panel-closed .summary-box,
.jl-panel-closed #jl-sec-content,
.jl-panel-closed #jl-sec-skills,
.jl-panel-closed #jl-sec-housing,
.jl-panel-closed #jl-sec-notice,
.jl-panel-closed .jl-footer-banner,
.jl-panel-closed .jl-share-bar {
    opacity: 0.55;
    pointer-events: none;
}

/* Disable tabs trong modal */
.modal-tabs-wrapper.disabled {
    pointer-events: none;
}

/* Job detail page — nền xám khi ngưng tuyển */
.jlp-closed .jlp-hero,
.jlp-closed .jlp-gallery,
.jlp-closed .jlp-summary,
.jlp-closed .jlp-section,
.jlp-closed .jlp-footer-banner {
    opacity: 0.55;
    pointer-events: none;
}

/* Disable tabs trong job detail page */
.jlp-tabs-disabled {
    pointer-events: none;
    opacity: 1;
}

/* Disable nút Ứng tuyển + Yêu thích khi ngưng tuyển */
.mb-actions-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.jl-panel-closed .cb-actions {
    opacity: 0.45;
    pointer-events: none;
}

.jl-panel-closed .consultant-bar {
    background: #fff;
}

/* ═══ PAGINATION ═══════════════════════════════ */
.jl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.jl-page-prev,
.jl-page-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.jl-page-prev {
    background: #153c4a;
    color: #ffffff;
}

.jl-page-next {
    background: #1e3a4a;
    color: #fff;
}

.jl-page-prev:hover,
.jl-page-prev:focus,
.jl-page-prev:active {
    background: #0f2a36;
    color: #fff;
    outline: none;
}

.jl-page-next:hover,
.jl-page-next:focus,
.jl-page-next:active {
    background: #0f2a36;
    outline: none;
}

.jl-page-prev.disabled,
.jl-page-next.disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.jl-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jl-page-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.jl-page-num:hover {
    background: #e9eef2;
    color: #153c4a;
}

.jl-page-num:focus,
.jl-page-num:active {
    background: #e9eef2;
    color: #153c4a;
    outline: none;
}

.jl-page-num.active {
    background: #1e3a4a;
    color: #fff;
}

.jl-page-dots {
    width: 30px;
    text-align: center;
    color: #999;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 600px) {
    .jl-pagination {
        gap: 6px;
    }

    .jl-page-prev,
    .jl-page-next {
        padding: 8px 14px;
        font-size: 11px;
    }

    .jl-page-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ═══ FLOATING BUTTONS — Messenger + Back to Top ═══ */
.jl-floating-btns {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.jl-float-search {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1e3a4a;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: 2.5px solid transparent;
    background-image: linear-gradient(#1e3a4a, #1e3a4a), linear-gradient(135deg, #ef7a02, #57D061);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s;
}

.jl-float-search svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    flex-shrink: 0;
}

.jl-float-search:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

@media(max-width:768px) {
    .jl-float-search {
        display: flex;
    }
}

.jl-float-messenger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: .2s;
    text-decoration: none !important;
}

.jl-float-messenger:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.jl-float-backtop {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 50% !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    border: 2px solid transparent !important;
    border-style: solid !important;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #ef7a02, #57D061) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-color: transparent !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1) !important;
    transition: opacity .3s, visibility .3s, transform .2s !important;
    opacity: 0;
    visibility: hidden;
    font-size: 0 !important;
    line-height: 1 !important;
    color: #333 !important;
}

.jl-float-backtop svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #333 !important;
    flex-shrink: 0;
}

.jl-float-backtop.visible {
    opacity: 1;
    visibility: visible;
}

.jl-float-backtop:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18) !important;
    background-color: transparent !important;
    color: #333 !important;
}

/* ═══ GTRANSLATE CUSTOM STYLE ════════════════ */

/* Nút trigger */
.gt_switcher-popup {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #1e3a4a !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.gt_switcher-popup img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.gt_switcher-popup span:first-of-type {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    visibility: hidden;
}

.gt_switcher-popup.gt-ready span:first-of-type {
    visibility: visible;
}

/* Popup container */
.gt_white_content {
    border-radius: 20px !important;
    padding: 52px 20px 52px !important;
    max-width: 420px !important;
    width: 90vw !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    max-height: 55vh !important;
    height: auto !important;
}

.gt_white_content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef7a02, #f5a623);
    border-radius: 0 0 40px 0;
    z-index: 0;
    opacity: .85;
    pointer-events: none;
}

.gt_white_content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #57D061, #2ec4d6);
    border-radius: 40px 0 0 0;
    z-index: 0;
    opacity: .85;
    pointer-events: none;
}

/* Danh sách ngôn ngữ — scroll */
.gt_white_content .gt_languages {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-height: calc(55vh - 104px) !important;
    overflow-y: auto !important;
    flex-wrap: nowrap !important;
    position: relative;
    z-index: 1;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.gt_white_content .gt_languages::-webkit-scrollbar {
    display: none !important;
}

/* Mỗi item ngôn ngữ — dạng pill */
.gt_white_content a.glink {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 20px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 999px !important;
    border-bottom: 1.5px solid #e0e0e0 !important;
    text-decoration: none !important;
    transition: background .2s !important;
    flex-basis: auto !important;
    line-height: normal !important;
    background: #fff !important;
    max-width: 100% !important;
}

.gt_white_content a.glink:hover {
    background: #f8f8f8 !important;
}

.gt_white_content a.glink:last-child {
    border-bottom: 1.5px solid #e0e0e0 !important;
}

/* Flag tròn lớn */
.gt_white_content a.glink img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Tên ngôn ngữ */
.gt_white_content a.glink span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #222 !important;
}

/* Overlay */
.gt_black_overlay {
    border-radius: 0 !important;
}