body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 사이드바 */
.sidebar {
    width: 220px;
    background-color: #1e1e2f;
    color: white;
    height: 100vh;
    position: fixed;
    padding: 20px 20px 0 20px; /* 위, 오른쪽, 아래, 왼쪽 */
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin: 10px 0;
    font-size: 15px;
}

.sidebar a:hover {
    color: #fff;
}

/* 햄버거 메뉴 버튼 (모바일에만 표시) */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #1e1e2f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

/* 본문 영역 */
.content {
    margin-left: 260px;
    padding: 30px 30px;
    width: calc(100% - 240px);
    height: 100vh; /* 전체 화면 높이 채우기 */
    overflow-y: auto; /* 본문만 세로 스크롤 */
    box-sizing: border-box;
    padding-bottom: 50px;
}

.content h1 {
    margin-bottom: 20px;
}

/* 카드 그리드 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;  /* 하단 여백 */
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.card h3 {
    margin: 0;
    font-size: 16px;
    color: #444;
}

.card p {
    font-weight: bold;
    font-size: 22px;
    margin-top: 10px;
}


/* 모바일 반응형 (768px 이하) */
@media (max-width: 768px) {
    /* 햄버거 버튼 표시 */
    .menu-toggle {
        display: block;
    }

    /* 사이드바 기본 숨김 */
    .sidebar {
        transform: translateX(-100%);
        padding-top: 80px; /* 햄버거 버튼 공간 확보 */
    }

    /* 사이드바 열렸을 때 */
    .sidebar.active {
        transform: translateX(0);
    }

    /* 본문 영역 전체 너비 */
    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px; /* 햄버거 버튼 공간 확보 */
    }

    .desc {
        font-size: 13px;
    }

    /* 오버레이 (사이드바 열렸을 때 배경) */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}
