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

/* --- CSS Variables (테마 색상) --- */
:root {
    --bg-color: #f4f7f6;
    /* 전체 배경색 */
    --primary-color: #5a7d7c;
    /* 차분한 녹색 계열 */
    --accent-color: #ff7f50;
    /* 포인트 컬러 (코랄) */
    --text-color: #333333;
    /* 기본 글자색 */
    --card-bg-color: #ffffff;
    /* 카드 배경색 */
    --border-radius: 12px;
    /* 둥근 모서리 */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* 그림자 효과 */
}

/* --- Basic Reset & Body Style --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* --- Header --- */
header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    padding: 40px 0;
    color: var(--primary-color);
}

/* --- Navigation & Login Form --- */
#navi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

#navi h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

#navi form {
    display: flex;
    gap: 10px;
}

#navi form input {
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#navi form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 125, 124, 0.2);
}

#navi form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

#navi form button:hover {
    background-color: #e66a3e;
}

/* --- Main Content (Bento Grid) --- */
#index>p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: orangered;
}

#index>ol {
    list-style: none;
    display: grid;
    /* 카드를 자동으로 채우고, 최소 300px 너비를 보장하는 반응형 그리드 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

#index>ol>li {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

#index>ol>li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

#index>ol>li>strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    display: block;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

#index ul {
    list-style: none;
}

#index ul li {
    margin-bottom: 8px;
}

#index ul a {
    font-size: 1rem;
    display: inline-block;
    /* 링크 영역 확장 */
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 0.9rem;
}

footer div,
footer address {
    font-style: normal;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    #navi {
        flex-direction: column;
        gap: 15px;
    }
}
