@charset "utf-8";

/* ================================================================
 * sign114 구인·구직 탭 위젯 (hh.latest.tabs.sign114job — latest/ 버전)
 * 리빌더 "최신글" 모듈 타입으로 사용 (게시판 선택 불필요)
 * ================================================================ */

/* ── 탭 네비 ───────────────────────────────────────────────────── */
.s114jt-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
    border-bottom: 2px solid #e8ecf3;
}

.s114jt-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.s114jt-tab:hover { color: #444; }

.s114jt-tab--hire.is-active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.s114jt-tab--seek.is-active { color: #16a34a; border-bottom-color: #16a34a; }


/* ── 카드 공통 ─────────────────────────────────────────────────── */
.s114jt-cards { list-style: none; padding: 0; margin: 0; width: 100%; }
.s114jt-cards .swiper-slide { height: auto; }

.s114jt-card {
    display: block;
    position: relative;
    border-radius: 12px;
    padding: 18px 18px 50px;
    min-height: 136px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

/* 구인 카드 */
.s114jt-card--hire { background: #f6f9fe; border: 1px solid #d0dff8; }
.s114jt-card--hire:hover { border-color: #6b9cf0; box-shadow: 0 4px 16px rgba(29,78,216,.08); }

/* 구직 카드 */
.s114jt-card--seek { background: #f3fbf6; border: 1px solid #d1ead9; }
.s114jt-card--seek:hover { border-color: #8ecfa8; box-shadow: 0 4px 16px rgba(22,163,74,.08); }

/* NEW 배지 */
.s114jt-badge {
    position: absolute; top: 12px; right: 12px;
    font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px; line-height: 1;
}
.s114jt-badge--hire { background: #dbeafe; color: #1d4ed8; }
.s114jt-badge--seek { background: #dcfce7; color: #16a34a; }

/* 작성자 */
.s114jt-card__author {
    font-size: 12px; color: #888; margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 50px;
}

/* 제목 */
.s114jt-card__title {
    font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px;
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; min-height: 42px;
}

/* 지역 */
.s114jt-card__loc {
    position: absolute; left: 18px; bottom: 34px;
    display: flex; align-items: center; gap: 3px; font-size: 12px; color: #aaa;
}
.s114jt-card__loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 155px; }

/* 하단 급여 */
.s114jt-card__foot {
    position: absolute; left: 18px; right: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden;
}
.s114jt-type         { font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.s114jt-type--hire   { color: #1d4ed8; }
.s114jt-type--seek   { color: #16a34a; }
.s114jt-stype        { font-size: 11px; color: #666; background: #eee; border-radius: 20px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; }
.s114jt-career       { font-size: 11px; color: #555; background: #e2f5e9; border-radius: 20px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; }
.s114jt-amount       { font-size: 13px; font-weight: 700; color: #1a1a1a; white-space: nowrap; flex-shrink: 0; }

/* 지역 있을 때 여백 */
.s114jt-card:has(.s114jt-card__loc)                    { padding-bottom: 68px; }
.s114jt-card:has(.s114jt-card__loc) .s114jt-card__loc  { bottom: 36px; }
.s114jt-card:has(.s114jt-card__loc) .s114jt-card__foot { bottom: 12px; }

/* 빈 데이터 */
.s114jt-empty { padding: 24px 0; text-align: center; color: #bbb; font-size: 13px; display: block; }

/* 반응형 */
@media (max-width: 767px) {
    .s114jt-tab         { font-size: 13px; padding: 7px 12px; }
    .s114jt-card        { padding: 14px 14px 48px; min-height: 120px; }
    .s114jt-card__title { font-size: 14px; min-height: 38px; }
    .s114jt-card__loc   { left: 14px; bottom: 32px; }
    .s114jt-card__foot  { left: 14px; bottom: 10px; }
    .s114jt-card:has(.s114jt-card__loc) .s114jt-card__loc  { bottom: 30px; }
    .add_module_wrap { display: none; }
}
