/* --- 기본 스타일 (데스크탑) --- */
    body { font-family: 'Noto Sans KR', sans-serif; background: #f5f7fa; margin: 0; }
    #root-container { display: flex; }

    /* 좌측 메뉴 */
    .side-menu {
        position: fixed; top: 0; left: 0;
        width: 250px; height: 100vh;
        background: #1a2540; color: #fff;
        padding: 2.2rem 1.2rem;
        box-sizing: border-box;
        display: flex; flex-direction: column;
        align-items: center; /* QR코드 중앙 정렬 */
        z-index: 100;
        overflow-y: auto;
    }
    .side-menu > * { align-self: stretch; text-align: left; } /* 자식요소는 좌측 정렬 */
    .side-menu img { align-self: center; width: 120px; height: 120px; margin-bottom: 1rem; border-radius: 8px; } /* QR코드만 중앙 */
    .side-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.7rem; }
    .side-desc { font-size: 1rem; color: #c7d3ee; margin-bottom: 1.2rem; }
    .side-list { list-style: disc; margin: 0 0 1.5rem 1.2rem; padding: 0; font-size: 0.97rem; }
    .side-btn {
        width: 100%;
        background: #fff;
        color: #22325a;
        border: none;
        border-radius: 6px;
        padding: 0.8rem 0;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.7rem;
        cursor: pointer;
        text-align: center; /* 버튼 내 텍스트 중앙 정렬 */
    }
    .side-btn.admin { background: #c7d3ee; }

    /* 메인 컨텐츠 영역 */
    .content-wrap {
        margin-left: 250px; /* 좌측 메뉴 너비만큼 */
        margin-right: 340px; /* 우측 바 너비만큼 */
        width: 100%;
        padding: 2rem;
        box-sizing: border-box;
    }
    .header {
        height: 140px;
        background-image: url('head1.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    .boards-wrap { display: flex; gap: 2rem; }
    .boards-wrap > div { flex: 1; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .section-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; }
    .section-title .plus { margin-left: auto; font-size: 1.3rem; border: 1px solid #22325a; border-radius: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #22325a; }
    .notice-list, .news-list { list-style: none; padding: 0; margin: 0; }
    .notice-item {
        border-bottom: 1px solid #e3eafc;
        padding: 0.7rem 0;
    }
    .notice-title {
        display: flex;
        justify-content: space-between; /* 제목과 날짜를 양쪽 끝으로 */
        align-items: center;
        cursor: pointer;
    }
    .notice-title b.important {
        color: #357abd; /* 파란색으로 강조 */
        font-weight: bold;
    }
    .notice-date {
        margin-left: auto; /* 날짜를 오른쪽으로 밀기 */
    }
    .notice-content {
        display: none;
        padding: 0.5rem 0 0 0;
        margin-top: 0.5rem;
        border-top: 1px solid #e3eafc;
    }
    .notice-admin-buttons {
        margin-top: 0.5rem;
    }
    .news-title { font-weight: 500; }
    .calendar-wrap { text-align: center; }
    .calendar-header { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
    .calendar-header button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #22325a; }
    .calendar-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
    .calendar-table th, .calendar-table td { width: 14.2%; height: 40px; text-align: center; }
    .calendar-table th { color: #22325a; font-weight: 600; border-bottom: 2px solid #e3eafc; }
    .calendar-table td { cursor: pointer; border-radius: 50%; }
    .calendar-today { background: #e3eafc; border-radius: 50%; }
    .calendar-has { background: #22325a; color: #fff; border-radius: 50%; }
    .calendar-empty { background: #f5f7fa; cursor: default; }
    .calendar-selected { border: 2px solid #22325a; }
    .calendar-info { margin-top: 1rem; background: #f8f9fa; border-radius: 8px; padding: 1rem; }
    .main-header { background: #22325a; color: #fff; padding: 1.2rem 0; text-align: center; }
    .header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
    .header-logo { color: #fff; }
    .header-desc { color: #c7d3ee; font-size: 1rem; margin-left: 1.2rem; }
    .main-footer { background: #22325a; color: #fff; padding: 2rem 0 1.2rem 0; text-align: center; margin-top: 2rem; }
    .footer-inner { max-width: 1200px; margin: 0 auto; }
    .footer-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
    .footer-info { font-size: 0.97rem; margin-bottom: 0.2rem; }
    /* ... (기존 공지사항, 이미지게시판, 달력 스타일 유지) ... */

    /* 우측 안내 바 */
    .right-bar {
        position: fixed; top: 20px; right: 20px;
        width: 320px; height: calc(100vh - 40px);
        background: #f7fafd; color: #22325a;
        padding: 1.5rem;
        box-sizing: border-box;
        box-shadow: -2px 0 8px rgba(0,0,0,0.08);
        overflow-y: auto;
        border-radius: 12px;
    }
    .right-bar-title { text-align: center; font-weight: 700; margin-bottom: 1rem; }
    .right-bar-content { font-size: 0.85rem; line-height: 1.4; }
    
      /* 하단 푸터 */
    .footer {
        text-align: center;
        padding: 2rem;
        background: #22325a;
        color: #fff;
        margin-top: 2rem; /* 위 콘텐츠와의 간격 */
    }
    .footer-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
    .footer-info { font-size: 0.97rem; margin-bottom: 0.2rem; }

    /* --- 하단 고정 바 --- */
.fixed-bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #22325a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    z-index: 3000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
    /* --- 태블릿 반응형 (1024px 이하) --- */
    @media (max-width: 1024px) {
        .right-bar { display: none; }
        .content-wrap { margin-right: 0; padding: 1.5rem; }
        .boards-wrap { flex-direction: column; }
    }

    /* --- 모바일 반응형 (768px 이하) --- */
    @media (max-width: 768px) {
        #root-container { flex-direction: column; }
        .side-menu {
            position: relative;
            width: 100%;
            height: auto;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        .content-wrap { margin-left: 0; padding: 1rem; }
        .header { height: 100px; margin-bottom: 1rem; }
        .footer { margin-top: 1rem; padding: 1.5rem 1rem; }
    }
    /* ... (모달 등 나머지 스타일은 유지) ... */
    .modal-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000;
    }
    .modal-content {
      background: #fff; padding: 2.5rem; border-radius: 10px; width: 90%; max-width: 450px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    .modal-content h3 { margin: 0 0 1.5rem 0; font-size: 1.4rem; color: #1a2540; }
    .form-group { margin-bottom: 1.2rem; }
    .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #22325a; }
    .form-group select, .form-group input {
      width: 100%; padding: 0.8rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box;
    }
    .form-group select[size] {
      padding: 0; /* 리스트박스에는 패딩 제거 */
      height: auto;
    }
    .form-group select[size] option {
      padding: 0.5rem; /* 개별 옵션에 패딩 적용 */
    }
    .modal-buttons { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 0.8rem; }
    .modal-btn { padding: 0.7rem 1.5rem; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; }
    .modal-btn.save { background: #357abd; color: #fff; }
    .news-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .news-item {
        display: flex;
        flex-direction: column;
        border: none;
        padding: 0;
    }
    .news-thumbnail {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
    }
    .news-info {
        margin-top: 0.5rem;
        text-align: center;
    }
    .news-date {
        display: none;
    }
    .news-buttons {
      margin-left: auto;
    }