@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

.kead-jobs-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}

.kead-jobs-container {
    color: #212529;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 8px;
}

/* 헤더 */
.kead-jobs-header {
    padding: 0 0 24px;
    border-bottom: 1px solid #e9ecef;
}
.kead-jobs-header h1 {
    font-size: 26px;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
}
.kead-jobs-header-description {
    margin-top: 8px;
    font-size: 15px;
    color: #495057;
}

/* 메인 컨텐츠 */
.kead-jobs-main-content {
    padding: 30px 0 30px;
}

/* 섹션 제목 */
.kead-jobs-main-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 필터 영역 */
.kead-jobs-filter-form {
    margin-bottom: 24px;
}
.kead-jobs-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (min-width: 768px) {
    .kead-jobs-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.kead-jobs-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.kead-jobs-filter-group input,
.kead-jobs-filter-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}
.kead-jobs-filter-group input:focus,
.kead-jobs-filter-group select:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}
/* 모바일에서는 한 줄씩 전체 */
.kead-jobs-filter-keyword,
.kead-jobs-filter-branch {
    grid-column: 1 / -1;
}

/* 데스크톱 이상에서는 반씩 나눠서 한 줄에 */
@media (min-width: 768px) {
    .kead-jobs-filter-keyword,
    .kead-jobs-filter-branch {
        grid-column: span 1;
    }
}


/* 필터 버튼 */
.kead-jobs-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.kead-jobs-btn {
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.kead-jobs-btn-search {
    background-color: #4c6ef5;
    color: #ffffff;
    flex: 2;
}
.kead-jobs-btn-search:hover {
    background-color: #364fc7;
}
.kead-jobs-btn-search:disabled {
    background-color: #ced4da;
    color: #868e96;
    cursor: not-allowed;
}
.kead-jobs-btn-reset {
    background-color: #f1f3f5;
    color: #495057;
    flex: 1;
}
.kead-jobs-btn-reset:hover {
    background-color: #e9ecef;
}

/* 구분선 */
.kead-jobs-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 24px 0;
}

/* 로딩 스피너 */
.kead-jobs-loader {
    display: none;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4c6ef5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: kead-jobs-spin 1s linear infinite;
}
@keyframes kead-jobs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 요약 */
.kead-jobs-summary {
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
}

/* 카드 리스트 */
.kead-jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .kead-jobs-list {
        grid-template-columns: 1fr 1fr;
    }
}

.kead-job-card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 카드 헤더 */
.kead-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.kead-job-name {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}
.kead-job-emp-type {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background-color: #e7f5ff;
    color: #1971c2;
    white-space: nowrap;
}

/* 사업장 / 주소 */
.kead-job-buspla-name {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}
.kead-job-comp-addr {
    font-size: 13px;
    color: #495057;
}

/* 메타 정보 줄 */
.kead-job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #495057;
}
.kead-job-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.kead-job-meta-label {
    font-weight: 600;
    color: #868e96;
}

/* 임금 강조 */
.kead-job-salary {
    font-weight: 700;
    color: #212529;
}

/* D-Day */
.kead-job-dday {
    font-weight: 700;
}
.kead-job-dday-soon {
    color: #e03131;
}
.kead-job-dday-normal {
    color: #1971c2;
}
.kead-job-dday-past {
    color: #868e96;
}

/* 작업환경 */
.kead-job-env-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #495057;
}
.kead-job-env-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 999px;
    background-color: #e9ecef;
}
.kead-job-env-tag span {
    display: inline-block;
}

/* 지사/문의 */
.kead-job-agency-row {
    margin-top: 4px;
    font-size: 12px;
    color: #495057;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kead-job-agency-name {
    font-weight: 600;
}
.kead-job-agency-contact {
    font-size: 12px;
}

/* 페이지네이션 */
.kead-jobs-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 기본 페이지 버튼 */
.kead-jobs-page-btn {
    min-width: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 13px;
    font-weight: 500;
    background-color: #f8f9fa; /* 기본도 살짝 색 넣어서 버튼처럼 보이게 */
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

/* 호버 시 */
.kead-jobs-page-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* 현재 페이지 */
.kead-jobs-page-btn.active {
    background-color: #4c6ef5;
    border-color: #4c6ef5;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(76, 110, 245, 0.3);
    cursor: default; /* 현재 페이지는 클릭 안 하는 느낌 */
}

/* 안내사항 */
.kead-jobs-notice ul {
    list-style: none;
    padding-left: 0;
}
.kead-jobs-notice li {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 4px;
}
