/* ============================================
   MAIN CONTAINER & HEADER
   ============================================ */

.hellowork-jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: scale(1.2);
    transform-origin: top center;
}

.hellowork-header {
    text-align: center;
    margin-bottom: 48px;
}

.category-tag {
    display: inline-block;
    background: transparent;
    color: #4F7CFF;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #0F0F23;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ============================================
   JOBS LIST
   ============================================ */

.hellowork-jobs-list {
    display: flex;
    flex-direction: column;
}

/* ============================================
   JOB ITEM & ROW LAYOUT
   ============================================ */

.job-item {
    background: #ffffff;
}

.job-row {
    display: grid;
    grid-template-columns: 64px 160px 1fr auto;
    align-items: start;
    column-gap: 24px;
    margin: 0 32px;
    padding: 41px 0;
    border-bottom: 1px solid #000000;
}

.hellowork-jobs-list .job-item:last-child .job-row {
    border-bottom: none;
}

/* ============================================
   JOB TYPE BADGE & LOCATION
   ============================================ */

.job-type-badge {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    min-width: 56px;
    text-align: center;
    line-height: 1.4;
    margin-top: 0;
}

.job-type-badge.cdi,
.job-type-badge.cdd,
.job-type-badge.interim,
.job-type-badge.default {
    background: #19286c;
}

.job-location {
    color: #4F7CFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -8px !important;
}

/* ============================================
   JOB BODY - DESCRIPTION & TITLE
   ============================================ */

.job-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.job-description {
    flex: 0 0 36ch;
    max-width: 40ch;
    padding-right: 70px;
}

.job-description p {
    color: #595e64;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.job-title-section {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    margin-top: -4px !important;
    padding-right: 70px;
}

.job-category {
    color: #19286c;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 !important;
    line-height: 1 !important;
}

.job-title {
    font-size: 15px;
    font-weight: 600;
    color: #42484e;
    margin: 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   JOB ACTIONS - APPLY BUTTON
   ============================================ */

.job-actions {
    justify-self: end;
    align-self: start;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #4F7CFF !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #4F7CFF;
    position: relative;
    top: -2px;
}

.apply-btn:hover {
    color: #3B5BDB !important;
}

.apply-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   PAGINATION
   ============================================ */

.hellowork-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 32px 0;
}

.hellowork-pagination a,
.hellowork-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #4F7CFF !important;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.hellowork-pagination a:hover {
    border-color: #4F7CFF;
    color: #3B5BDB !important;
}

.hellowork-pagination .is-active {
    border-color: #4F7CFF;
    color: #4F7CFF !important;
    font-weight: 600;
}

.hellowork-pagination .is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.hellowork-pagination .pagination-dots {
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-weight: 600;
    pointer-events: none;
    min-width: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Medium Desktop - 1200px and below */
@media (max-width: 1200px) {
    .hellowork-jobs-container {
        transform: scale(1.15);
        padding: 36px 18px;
    }

    .job-row {
        column-gap: 20px;
        margin: 0 28px;
    }

    .job-description {
        padding-right: 55px;
    }

    .job-title-section {
        padding-right: 55px;
    }
}

/* Tablet - 992px and below */
@media (max-width: 992px) {
    .hellowork-jobs-container {
        transform: scale(1.05);
        padding: 32px 16px;
    }

    .hellowork-header {
        margin-bottom: 40px;
    }

    .main-title {
        font-size: 28px;
    }

    .job-row {
        grid-template-columns: 56px 140px 1fr auto;
        column-gap: 18px;
        margin: 0 20px;
        padding: 36px 0;
    }

    .job-type-badge {
        font-size: 10px;
        padding: 1px 10px;
        min-width: 52px;
    }

    .job-location {
        font-size: 11px;
    }

    .job-body {
        gap: 18px;
    }

    .job-description {
        flex: 0 0 32ch;
        max-width: 36ch;
        padding-right: 40px;
    }

    .job-description p {
        font-size: 13px;
    }

    .job-category {
        font-size: 11px;
    }

    .job-title {
        font-size: 14px;
    }

    .job-title-section {
        padding-right: 40px;
    }

    .apply-btn {
        font-size: 11px;
    }

    .apply-btn svg {
        width: 14px;
        height: 14px;
    }

    .hellowork-pagination {
        padding: 14px 20px 0;
        gap: 5px;
    }

    .hellowork-pagination a,
    .hellowork-pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .hellowork-jobs-container {
        padding: 24px 16px;
        transform: scale(1);
    }

    .hellowork-header {
        margin-bottom: 32px;
    }

    .main-title {
        font-size: 26px;
    }

    .job-row {
        grid-template-columns: auto 1fr auto;
        column-gap: 12px;
        row-gap: 12px;
        margin: 0 16px;
        padding: 24px 0;
        align-items: start;
    }

    .job-description {
        flex: 1;
        max-width: none;
        padding-right: 20px;
    }

    .job-title-section {
        padding-right: 20px;
    }

    .job-body {
        gap: 12px;
    }

    .job-location {
        grid-column: 2 / 3;
    }

    .hellowork-pagination {
        padding: 12px 16px 0;
        gap: 4px;
    }

    .hellowork-pagination a,
    .hellowork-pagination span {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Small Mobile - 520px and below */
@media (max-width: 520px) {
    .hellowork-jobs-container {
        padding: 20px 12px;
    }

    .hellowork-header {
        margin-bottom: 24px;
    }

    .main-title {
        font-size: 24px;
    }

    .job-row {
        grid-template-columns: 1fr auto;
        column-gap: 8px;
        row-gap: 8px;
        margin: 0 8px;
        padding: 20px 0;
    }

    .job-type-badge {
        grid-column: 1 / 2;
        grid-row: 1;
        padding: 1px 8px;
        font-size: 10px;
        min-width: auto;
        max-width: fit-content;
        align-self: start;
        margin-top: 15px;
    }

    .job-location {
        grid-column: 1 / 2;
        grid-row: 2;
        margin-top: -13px !important;
    }

    .job-body {
        grid-column: 1 / 3;
        grid-row: 3;
        flex-direction: column;
        gap: 8px;
    }

    .job-description {
        order: 2;
        padding-right: 0;
    }

    .job-title-section {
        order: 1;
        gap: 8px !important;
        padding-right: 0;
    }

    .job-title {
        font-size: 15px;
    }

    .job-actions {
        grid-column: 2 / 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .apply-btn {
        font-size: 11px;
        white-space: nowrap;
        margin-top: -2px;
    }

    .hellowork-pagination {
        padding: 8px 8px 0;
        flex-wrap: wrap;
    }
}
