@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff; /* 주요 색상 (파랑) */
    --secondary-color: #6c757d; /* 보조 색상 (회색) */
    --accent-color: #ffc107; /* 강조 색상 (노랑) */
    --text-color: #212529; /* 기본 텍스트 색상 (어두운 회색) */
    --bg-color: #f8f9fa; /* 배경색 (밝은 회색) */
    --card-bg-color: #ffffff; /* 카드 배경색 (흰색) */
    --card-hover-bg: #f1f3f5; /* 카드 호버 배경색 */
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    /* 깔끔한 격자무늬 배경 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden; /* 가로 스크롤바를 강제로 숨깁니다. */
}

.hub-container {
    text-align: center;
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    width: 100%;
    max-width: 900px;
}

.hub-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: none; /* 텍스트 그림자 제거 */
}

.hub-header p {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-bg-color);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    background-color: var(--card-hover-bg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.card-body h3 {
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-size: 1.3em;
}

.card-body p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.card.card-special .card-icon {
    color: var(--accent-color);
}

.hub-footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

/* --- 공지사항 섹션 스타일 추가 --- */
.notice-section {
    background-color: var(--card-hover-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.notice-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5em;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

#notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

#notice-list li:last-child {
    border-bottom: none;
}

#notice-list .date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 15px;
    white-space: nowrap;
}

/* --- 반응형 처리 --- */
@media (max-width: 768px) {
    .hub-container {
        padding: 20px;
    }

    .hub-header h1 {
        font-size: 2em;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .notice-section {
        padding: 15px;
        margin-bottom: 30px;
    }

    #notice-list li {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* 왼쪽 정렬 */
    }

    #notice-list .date {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.9em;
    }
}