.listing-page {
    padding: 28px 0 60px;
}

.listing-header {
    margin-top: 18px;
    margin-bottom: 24px;
}

.listing-header h1 {
    margin: 0 0 5px;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 550;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.listing-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.listing-sidebar {
    position: sticky;
    top: 92px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.listing-sidebar h2 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 550;
}

.filter-group {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.filter-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.filter-group:last-child {
    padding-bottom: 0;
}

.filter-group strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 550;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    color: var(--text-soft);
    cursor: pointer;
}

.filter-group input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.job-list {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.job-list {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.job-card {
    position: relative;
    padding: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(37, 87, 167, 0.035),
            transparent 48%
        ),
        #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 15px;
    box-shadow: 0 9px 26px rgba(25, 42, 65, 0.05);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    width: 3px;
    height: 47px;
    background: linear-gradient(
        180deg,
        var(--primary),
        #6694df
    );
    border-radius: 0 5px 5px 0;
}

.job-card:hover {
    border-color: #cbd8ea;
    box-shadow: 0 15px 34px rgba(25, 42, 65, 0.09);
    transform: translateY(-2px);
}

.job-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.job-card__heading {
    min-width: 0;
}

.job-card__label {
    margin-bottom: 7px;
    padding: 4px 8px;
    display: inline-flex;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.15px;
}

.job-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 550;
    line-height: 1.38;
    letter-spacing: -0.25px;
}

.job-card__title a {
    color: #1c2737;
}

.job-card__title a:hover {
    color: var(--primary);
}

.job-card__company {
    margin: 7px 0 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667284;
    font-size: 13px;
}

.job-card__company svg {
    flex: 0 0 auto;
    color: #8290a2;
}

.job-card__arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: #eef4fd;
    border: 1px solid #dde8f8;
    border-radius: 10px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.job-card__arrow:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateX(2px);
}

.job-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.job-card__meta span {
    min-height: 30px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536071;
    background: #f5f7fa;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 11px;
}

.job-card__meta svg {
    flex: 0 0 auto;
    color: var(--primary);
}

.job-card__meta .job-card__category {
    color: #7b5c16;
    background: #fff8e7;
    border-color: #f1e3b9;
}

.job-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 17px;
    padding-top: 14px;
    color: #8a94a2;
    border-top: 1px solid #ebeff4;
    font-size: 11px;
}

.job-card__source strong {
    color: #566273;
    font-weight: 500;
}

.job-card__footer time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.job-card__footer time svg {
    color: #8290a2;
}

.empty-state {
    padding: 46px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.empty-state h2 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 550;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto;
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .listing-sidebar h2 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .filter-group {
        padding: 0;
        border: 0;
    }
}

@media (max-width: 620px) {
    .listing-page {
        padding-top: 18px;
    }

    .listing-header {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .listing-header h1 {
        font-size: 24px;
    }

    .listing-sidebar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .listing-sidebar h2 {
        font-size: 15px;
    }

    .filter-group {
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    .job-card__title {
        font-size: 16px;
    }

    .job-card__company {
        font-size: 13px;
    }
}

.pagination__ellipsis {
    min-width: 32px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777f89;
}

.pagination__direction {
    padding-right: 15px;
    padding-left: 15px;
}

.listing-link-group + .listing-link-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e4e7eb;
}

.listing-link-group h2 {
    margin: 0 0 11px;
    font-size: 15px;
    font-weight: 550;
}

.listing-link-group nav {
    display: grid;
    gap: 3px;
}

.listing-link-group nav a {
    min-height: 39px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #343a42;
    border-radius: 6px;
}

.listing-link-group nav a:hover {
    color: #2557a7;
    background: #f1f5fb;
}

.listing-link-group nav span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.listing-link-group nav small {
    min-width: 27px;
    padding: 2px 6px;
    color: #6c7480;
    background: #eef1f4;
    border-radius: 99px;
    text-align: center;
    font-size: 11px;
}

.listing-sidebar-empty {
    margin: 0;
    color: #727983;
    font-size: 13px;
    line-height: 1.6;
}

.listing-link-group__general {
    color: #2557a7 !important;
    background: #eef4ff;
    font-weight: 500;
}

@media (max-width: 620px) {
    .job-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .job-card::before {
        top: 16px;
        height: 42px;
    }

    .job-card__top {
        gap: 11px;
    }

    .job-card__label {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .job-card__title {
        font-size: 16px;
    }

    .job-card__company {
        font-size: 12px;
    }

    .job-card__arrow {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .job-card__meta {
        margin-top: 14px;
        gap: 6px;
    }

    .job-card__meta span {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .job-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-top: 14px;
        padding-top: 12px;
    }
}