/* 메인 페이지 스타일 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 헤더 */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.main-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 검색 섹션 */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.search-bar button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-bar {
    display: flex;
    gap: 1rem;
}

.filter-bar select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

/* 공고 목록 */
.notices-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.notice-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.notice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notice-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.notice-region {
    color: #666;
    font-size: 0.9rem;
}

.notice-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.notice-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.notice-footer {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.btn-detail {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-detail:hover {
    transform: translateX(5px);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.pagination button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 푸터 */
.main-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.main-footer a {
    color: #667eea;
    text-decoration: none;
    margin-left: 1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.2rem;
}