/* Jobs index — full-width banner + datagrid toolbar */

.jobs-page-banner.section-box {
    margin-top: 0;
    /* Khoảng cho header cố định — không dùng mt-75 (tránh gap thừa) */
    padding-top: 75px;
}

.jobs-page-banner .breacrumb-cover {
    width: 100%;
    min-height: 220px;
    padding: 72px 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.jobs-page-banner .breacrumb-cover .container {
    max-width: 1320px;
}

.jobs-page-banner .breacrumb-cover h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

.jobs-page-content.section-box {
    margin-top: 0 !important;
    padding: 24px 0 48px;
}

.jobs-page-content .jobs-page-container {
    max-width: 1320px;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 992px) {
    .jobs-page-content .jobs-page-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Datagrid toolbar (Blade adaptation of datagrid-toolbar.mdc) */

.jobs-datagrid {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.jobs-datagrid__toolbar {
    padding: 16px 20px;
}

.jobs-datagrid__toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    .jobs-datagrid__toolbar-row {
        flex-wrap: nowrap;
    }
}

.jobs-datagrid__search {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .jobs-datagrid__search {
        flex: 1 1 auto;
        width: auto;
    }
}

.jobs-datagrid__search .form-control {
    height: 40px;
    font-size: 14px;
    border-radius: 8px;
    border-color: #e0e6f7;
}

.jobs-datagrid__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.jobs-datagrid__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #05264e;
    background: #fff;
    border: 1px solid #e0e6f7;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
}

.jobs-datagrid__btn:hover {
    border-color: #3c65f5;
    color: #3c65f5;
    text-decoration: none;
}

.jobs-datagrid__btn.is-active {
    border-color: #3c65f5;
    background: #f0f4ff;
    color: #3c65f5;
}

.jobs-datagrid__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: #3c65f5;
    border-radius: 999px;
}

.jobs-datagrid__filter-count.is-hidden {
    display: none;
}

.jobs-datagrid__dropdown-wrap {
    position: relative;
}

.jobs-datagrid__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    min-width: 220px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e0e6f7;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.jobs-datagrid__dropdown.is-open {
    display: block;
}

.jobs-datagrid__dropdown-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 10px;
}

.jobs-datagrid__visibility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #05264e;
    cursor: pointer;
    user-select: none;
}

.jobs-datagrid__visibility-item input {
    accent-color: #3c65f5;
}

.jobs-datagrid__filter-row {
    border-top: 1px solid #eef2f7;
    overflow: visible;
}

.jobs-datagrid__filter-row.is-hidden {
    display: none;
}

.jobs-datagrid__filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 20px;
    align-items: stretch;
}

@media (min-width: 576px) {
    .jobs-datagrid__filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .jobs-datagrid__filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .jobs-datagrid__filter-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.jobs-datagrid__filter-cell {
    min-width: 0;
}

.jobs-datagrid__filter-cell.is-hidden {
    display: none;
}

.jobs-datagrid__filter-cell .select2-container {
    width: 100% !important;
}

.jobs-datagrid__filter-grid .form-control,
.jobs-datagrid__filter-grid .select2-container .select2-selection--single,
.jobs-datagrid__filter-grid .select2-container .select2-selection--multiple {
    height: 40px !important;
    min-height: 40px;
    font-size: 14px;
    border-radius: 8px;
    border-color: #e0e6f7;
}

.jobs-datagrid__filter-grid .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 2px 8px;
}

.jobs-datagrid__filter-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jobs-datagrid .select2-selection__clear {
    display: none !important;
}

.jobs-datagrid__filter-grid .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    line-height: normal;
}

.jobs-datagrid__filter-grid .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 4px;
    font-size: 12px;
}

.jobs-datagrid .select2-container--open .select2-dropdown--below,
.jobs-datagrid .select2-container--open .select2-dropdown--above {
    border: 1px solid #e0e6f7;
    border-radius: 8px;
    padding: 8px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 50;
}

#jobs-results-root.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Active filter highlight */

.jobs-datagrid__search .form-control.has-value {
    border-color: #3c65f5;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px rgba(60, 101, 245, 0.15);
}

.jobs-datagrid__filter-cell.has-value .select2-container--default .select2-selection--single {
    border-color: #3c65f5 !important;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px rgba(60, 101, 245, 0.15);
}

.jobs-datagrid__filter-cell.has-value .jobs-salary-filter__input {
    border-color: #3c65f5;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px rgba(60, 101, 245, 0.15);
}

.jobs-datagrid__filter-cell .jobs-salary-filter__input {
    height: 40px;
    font-size: 14px;
    border-radius: 8px;
    border-color: #e0e6f7;
    width: 100%;
}

/* Jobs list layout: main + featured companies sidebar */

.jobs-list-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .jobs-list-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }
}

.jobs-list-main {
    min-width: 0;
}

.jobs-list-main .display-list {
    margin-left: 0;
    margin-right: 0;
}

.jobs-list-main .display-list > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Job list card — larger logo, content to the right */

.job-list-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e6f7;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-list-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.job-list-card--featured {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%);
}

.job-list-card__body {
    display: flex;
    gap: 18px;
    padding: 20px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .job-list-card__body {
        gap: 22px;
        padding: 22px 24px;
    }
}

.job-list-card__logo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 1px solid #e8eef8;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
    .job-list-card__logo {
        flex-basis: 104px;
        width: 104px;
        height: 104px;
        border-radius: 18px;
    }
}

.job-list-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.job-list-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-list-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
}

.job-list-card__titles {
    flex: 1 1 220px;
    min-width: 0;
}

.job-list-card__title {
    margin: 0 0 4px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.35;
    font-weight: 700;
    color: #05264e;
}

.job-list-card__title a {
    color: inherit;
    text-decoration: none;
}

.job-list-card__title a:hover {
    color: #3c65f5;
}

.job-list-card__company {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1ca774;
    text-decoration: none;
    margin-bottom: 2px;
}

.job-list-card__company:hover {
    color: #158a5f;
    text-decoration: none;
}

.job-list-card__location {
    display: block;
    font-size: 13px;
    color: #8b97a8;
    padding-left: 18px;
    background: url(../imgs/template/icons/location.svg) no-repeat 0 3px;
    background-size: 12px;
}

.job-list-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.job-list-card__badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.job-list-card__badge--featured {
    color: #1d4ed8;
    background: #dbeafe;
}

.job-list-card__badge--highlight {
    color: #b45309;
    background: #fef3c7;
}

.job-list-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.job-list-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-list-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.job-list-card__salary {
    min-width: 0;
}

.job-list-card .salary-display__value {
    font-size: 18px;
}

.job-list-card .job-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Featured companies sidebar banner */

.jobs-featured-companies {
    min-width: 0;
}

@media (min-width: 992px) {
    .jobs-featured-companies {
        position: sticky;
        top: 96px;
    }
}

.jobs-featured-companies__panel {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
    border: 1px solid #e0e6f7;
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.jobs-featured-companies__header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.jobs-featured-companies__eyebrow {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3c65f5;
}

.jobs-featured-companies__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #05264e;
    line-height: 1.3;
}

.jobs-featured-companies__hint {
    margin: 0;
    font-size: 12px;
    color: #8b97a8;
    line-height: 1.4;
}

.jobs-featured-companies__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jobs-featured-companies__item {
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.jobs-featured-companies__item:hover {
    background: #f0f4ff;
    border-color: #dbe4ff;
}

.jobs-featured-companies__item--sponsored {
    background: #f8fbff;
    border-color: #e0e7ff;
}

.jobs-featured-companies__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
}

.jobs-featured-companies__link:hover {
    text-decoration: none;
    color: inherit;
}

.jobs-featured-companies__logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e8eef8;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobs-featured-companies__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.jobs-featured-companies__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jobs-featured-companies__name {
    font-size: 13px;
    font-weight: 700;
    color: #05264e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jobs-featured-companies__meta {
    font-size: 11px;
    color: #8b97a8;
}

.jobs-featured-companies__tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 3px 7px;
}

.jobs-featured-companies__empty {
    padding: 16px 8px;
    text-align: center;
    font-size: 13px;
    color: #8b97a8;
}

.jobs-featured-companies__more {
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #3c65f5;
    text-decoration: none;
}

.jobs-featured-companies__more:hover {
    color: #1d4ed8;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .job-list-card__body {
        padding: 16px;
        gap: 14px;
    }

    .job-list-card__logo {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    .job-list-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .job-list-card .job-card-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
}
