 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #eee;
    color: #333;
}

/* Header */
.header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: #00C667;
    margin-right: 8px;
    border-radius: 3px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.menu-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Search Section */
.search-section {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: #999;
}

.search-input:focus {
    border-color: #00C667;
    color: #333;
}

.search-input.typing {
    color: #333;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Autocomplete */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align:left;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Filter Navigation */
.filter-nav-bg {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.filter-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-items {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.filter-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-item:hover {
    color: #00C667;
}

.filter-item.active {
    color: #00C667;
    border-bottom-color: #00C667;
}

.sort-select {
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    flex-shrink: 0;
}

/* Stats Section */
.stats-section {
    padding: 0px 0px 20px 0px;
    border-bottom: 1px solid #e0e0e0;
}

.stats-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.total-count {
    font-weight: 500;
    color: #00C667;
}

/* 메인 컨테이너/* 메인 컨테이너 - 1200px 최대 크기, 가운데 정렬 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* 그리드 레이아웃 - 고정 4개 열 */
.job-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 100%;
}

/* 카드 크기 */
.job-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    width: 100%;
}

/* 반응형 - 세밀한 단계별 조정 */
@media (max-width: 1200px) {
    .job-grid {
        grid-template-columns: repeat(4, 1fr); /* 여전히 4개 */
    }
}

@media (max-width: 1100px) {
    .job-grid {
        grid-template-columns: repeat(3, 1fr); /* 3개로 변경 */
    }
}

@media (max-width: 900px) {
    .job-grid {
        grid-template-columns: repeat(3, 1fr); /* 3개 유지 */
    }
    
    .filter-items {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr); /* 2개로 변경 */
        gap: 12px;
    }
    
    .filter-nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-items {
        justify-content: center;
    }
    
    .sort-select {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 500px) {
    .job-grid {
        grid-template-columns: 1fr; /* 1개로 변경 */
        gap: 10px;
    }
    
    .filter-items {
        gap: 10px;
        font-size: 12px;
    }
}
.job-card:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.job-card:hover * {
    color: white !important;
}

.job-card:hover .status-recruiting {
    background: white;
    color: #1a1a1a !important;
}

.job-card:hover .status-closed {
    background: #666;
    color: white !important;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-id {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.job-status {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.status-recruiting {
    background: #00C667;
    color: white;
}

.status-closed {
    background: #e0e0e0;
    color: #666;
}

.job-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: auto;
    color: #333;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.job-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

.job-organization {
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-date {
    white-space: nowrap;
    color: #999;
}

/* Loading Spinner */
.loading-container {
    display: none;
    justify-content: center;
    padding: 40px 0;
}

.loading-container.active {
    display: flex;
}

.circle-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00C667;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    min-height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typing cursor effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: #999;
}

/* Footer */
.footer {
    background: #333;
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}
/* 그리드 레이아웃 - 4개씩 나오도록 조정 */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); /* 변경: 280px → 230px */
    gap: 16px;
    margin-bottom: 40px;
    max-width: 100%;
}

/* 카드 크기 제한 */
.job-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    max-width: 300px; /* 변경: 350px → 300px */
    width: 100%;
}

/* 반응형 개선 */
@media (max-width: 1240px) {
    .filter-nav-wrapper {
        padding: 15px 20px;
    }
    .job-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 변경 */
    }
}

@media (max-width: 1024px) {
    .job-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 변경 */
    }
    
    .filter-items {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 변경 */
        gap: 12px;
    }
    
    .filter-nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-items {
        justify-content: center;
    }
    
    .sort-select {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .job-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-items {
        gap: 10px;
        font-size: 12px;
    }
    
    .job-card {
        max-width: none;
    }
}

/* 기존 상태 스타일 */
.status-recruiting {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.status-closed {
    background-color: #fafafa;
    color: #757575;
    border: 1px solid #e0e0e0;
}

/* 새로운 상태 스타일 */
.status-upcoming {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.status-urgent {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    animation: pulse 2s infinite;
}

/* 마감일 정보 스타일 */

/* 마감일 정보 스타일 */
.deadline-info {
    font-size: 0.75rem;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    background-color: #f5f5f5;
}

.deadline-info.urgent {
    color: #d32f2f;
    font-weight: bold;
    background-color: #ffebee;
}
/* 기본 deadline-info hover 효과 */
.deadline-info:hover {
    background-color: #1a1a1a;
    color: #333;
    transform: translateY(-1px);
}

/* 긴급 마감일 hover 효과 */
.deadline-info.urgent:hover {
    background-color: #1a1a1a;
    color: white;
    transform: translateY(-1px) scale(1.05);
}

/* 마감 임박 애니메이션 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* 공고 카드 호버 효과 개선 */
.job-card:hover .status-urgent {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}


/* 카드 전체 hover 시 deadline-info 개선 */
.job-card:hover .deadline-info {
    color: white;
    background:#1a1a1a;
    border-color:white;
}

.job-card:hover .deadline-info.urgent {
    color: white;
    background:#1a1a1a;
    border-color:white;
}

/* 반응형 디자인 - 모바일에서 마감일 정보 */
@media (max-width: 768px) {
    .deadline-info {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        width: fit-content;
    }
    
    .job-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}



.filter-count {
    color: #999;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.filter-item.active .filter-count {
    background: rgba(255, 255, 255, 0.8);
    color: #00C667;
}


/* 기존 CSS에 추가 */

/* Dynamic Search Suggestions */
.search-suggestion {
    margin: 20px auto 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 90%;
}

/* 텍스트 스타일링 */
.suggestion-text b {
    font-weight: 700;
}

.suggestion-text u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.suggestion-text .highlight {
    font-weight: 700;
    background: rgba(255, 204, 2, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 모바일에서 한줄 표시 */
@media (max-width: 768px) {
    .suggestion-empathy, .suggestion-efficiency, .suggestion-trust, 
    .suggestion-premium, .suggestion-time, .suggestion-minimal {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center;
        gap: 12px !important;
        padding: 16px 20px !important;
    }
    
    .suggestion-content {
        text-align: left !important;
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .suggestion-icon {
        font-size: 20px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .suggestion-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .cta {
        flex-shrink: 0;
        width: auto !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* 1안: 공감형 - 차분한 초록 */
.suggestion-empathy {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.suggestion-empathy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00C667, #00A855);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suggestion-empathy:hover {
    border-color: #00C667;
    box-shadow: 0 8px 25px rgba(0, 198, 103, 0.1);
    transform: translateY(-2px);
}

.suggestion-empathy:hover::before {
    opacity: 1;
}

.suggestion-empathy .cta {
    background: linear-gradient(135deg, #00C667 0%, #00A855 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 198, 103, 0.25);
}

/* 2안: 효율성형 - 에너지틱한 노랑 */
.suggestion-efficiency {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d3 100%);
    border: 2px solid #ffd93d;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.suggestion-efficiency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 217, 61, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.suggestion-efficiency:hover::before {
    transform: translateX(100%);
}

.suggestion-efficiency:hover {
    border-color: #ffcc02;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 204, 2, 0.25);
}

.suggestion-efficiency .cta {
    background: linear-gradient(135deg, #ffcc02 0%, #ffa000 100%);
    color: #333;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.3);
}

/* 3안: 모던 블루 - 신뢰감 */
.suggestion-trust {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #4dabf7;
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.suggestion-trust:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(77, 171, 247, 0.2);
    border-color: #339af0;
}

.suggestion-trust .cta {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(77, 171, 247, 0.3);
}

/* 4안: 다크 테마 - 프리미엄 */
.suggestion-premium {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
}

.suggestion-premium:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.suggestion-premium .text {
    color: #e2e8f0;
}

.suggestion-premium .cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 5안: 시간 기반 - 오렌지 그라데이션 */
.suggestion-time {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border: 2px solid #fd7e14;
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.suggestion-time:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(253, 126, 20, 0.25);
    border-color: #e8590c;
}

.suggestion-time .icon {
    font-size: 26px;
    animation: tick 1.5s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.suggestion-time .cta {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(232, 89, 12, 0.3);
}

/* 6안: 미니멀 그레이 - 심플함 */
.suggestion-minimal {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.suggestion-minimal:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.suggestion-minimal .cta {
    background: #495057;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.suggestion-minimal .cta:hover {
    background: #343a40;
}

.suggestion-content {
    flex: 1;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.suggestion-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.suggestion-text {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

/* Promo Card - 흰색 배경 */
.promo-card {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.promo-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: #bbdefb;
    background: #f8f9ff;
}

.promo-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.promo-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.3;
}

.promo-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    align-self: center;
    transition: all 0.3s ease;
}

.promo-card:hover .promo-cta {
    transform: scale(1.05);
}

/* No More Content */
.no-more-content {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .search-suggestion {
        width: calc(100% - 30px);
    }
}
