/* 자료실 공통 css style  */
        body { font-family: sans-serif; padding: 0; margin: 0; background-color: #f8f9fa; }
        
        /* 💡 1. 상단 글로벌 네비게이션 바 (GND) 디자인 스타일 */
        .top-navbar { display: flex; align-items: center; justify-content: space-between; background-color: #ffffff; padding: 10px 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
        
        /* 좌측 로고 영역 */
        .navbar-logo { display: flex; align-items: center; cursor: pointer; }
        .navbar-logo img { height: 40px; width: auto; object-fit: contain; }
        
        /* 중앙 정렬 메뉴 */
        .navbar-menu { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
        .navbar-menu a { text-decoration: none; color: #495057; font-weight: bold; font-size: 15px; transition: color 0.2s; }
        .navbar-menu a:hover { color: #007bff; }
        
        /* 우측 유저 프로필 영역 */
        .navbar-user { display: flex; align-items: center; gap: 15px; font-size: 14px; color: #343a40; }
        .user-welcome strong { color: #0056b3; }
        .btn-logout { text-decoration: none; color: #dc3545; border: 1px solid #dc3545; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: bold; transition: all 0.2s; }
        .btn-logout:hover { background-color: #dc3545; color: white; }
        .btn-login { text-decoration: none; color: #007bff; border: 1px solid #007bff; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: bold; }
        .btn-login:hover { background-color: #007bff; color: white; }

        /* 기존 컨테이너 간격 보정 */
        .board-container { max-width: 1000px; margin: 30px auto; background: #fff; padding: 25px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        th, td { border: 1px solid #ddd; padding: 12px 10px; text-align: left; }
        th { background-color: #f4f4f4; }
        .subject-link { color: #333; text-decoration: none; font-weight: bold; }
        .subject-link:hover { color: #0056b3; text-decoration: underline; }
        .file-link { color: #007bff; text-decoration: none; font-size: 0.9em; }
        .file-badge { background-color: #17a2b8; color: white; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; margin-left: 3px; display: inline-block; }
        .cate-tag { color: #666; font-size: 0.9em; background: #e9ecef; padding: 3px 6px; border-radius: 4px; }
        .search-bar { background-color: #f1f3f5; padding: 15px; border-radius: 6px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .search-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .form-select { padding: 8px 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; min-width: 150px; background-color: #fff; }
        .btn-search { background-color: #007bff; color: white; padding: 8px 16px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; }
        .btn-search:hover { background-color: #0056b3; }
        .btn-reset { background-color: #6c757d; color: white; padding: 8px 12px; border: none; border-radius: 4px; text-decoration: none; font-size: 14px; }
        .btn-write { background-color: #28a745; color: white; padding: 8px 16px; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; }
        .btn-write:hover { background-color: #218838; }
        /* edit 사용 */
        .container { max-width: 750px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        h2 { border-bottom: 2px solid #0056b3; padding-bottom: 10px; color: #0056b3; }
        .form-group { margin-bottom: 20px; }
        .form-control { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }
        textarea.form-control { height: 200px; }
        .file-notice { background-color: #fff3cd; border-left: 4px solid #ffc107; padding: 12px; font-size: 13px; margin-bottom: 15px; }
        .old-file-zone { background-color: #f1f3f5; padding: 15px; border-radius: 4px; margin-bottom: 15px; font-size: 13px; }
        .old-file-item { margin-bottom: 8px; display: flex; align-items: center; }
        .btn-submit { background-color: #0056b3; color: white; padding: 10px 20px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
        .btn-cancel { background-color: #6c757d; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; }
        /* view 사용 */
        .view-container { max-width: 800px; margin: 20px auto; background: #fff; padding: 25px; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .view-title { font-size: 1.5em; font-weight: bold; border-bottom: 2px solid #007bff; padding-bottom: 10px; margin-top: 0; color: #111; }
        .view-meta { font-size: 0.9em; color: #666; background: #f1f3f5; padding: 8px 12px; margin-bottom: 20px; border-radius: 4px; text-align: right; }
        .view-meta span { margin-left: 15px; }
        .view-content { min-height: 250px; line-height: 1.6; font-size: 1.05em; word-break: break-all; white-space: pre-wrap; margin-bottom: 25px; padding: 10px 5px; }
        
        /* 💡 비로그인 전용 안내 문구 바 스타일 추가 */
        .login-alert-bar { background-color: #fff3cd; border-left: 4px solid #ffc107; padding: 12px 15px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; color: #664d03; font-weight: bold; display: flex; align-items: center; justify-content: space-between; }
        .login-alert-bar a { color: #0056b3; text-decoration: underline; margin-left: 10px; }
        
        /* 다중 첨부파일 상자 스타일 */
        .file-section { background-color: #e9ecef; border: 1px solid #ced4da; padding: 15px; border-radius: 4px; margin-bottom: 25px; }
        .file-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed #ccc; }
        .file-row:last-child { border-bottom: none; }
        .file-link { color: #007bff; text-decoration: none; font-weight: bold; }
        .file-link:hover { text-decoration: underline; }
        .size-info { color: #666; font-size: 0.85em; font-weight: normal; }
        
        /* 하단 버튼 영역 스타일 */
        .btn-area { border-top: 1px solid #ddd; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
        .btn { padding: 8px 16px; border: none; border-radius: 4px; text-decoration: none; font-size: 0.9em; font-weight: bold; cursor: pointer; display: inline-block; }
        .btn-list { background-color: #6c757d; color: white; }
        .btn-list:hover { background-color: #5a6268; }
        .btn-edit { background-color: #ffc107; color: #212529; margin-right: 5px; }
        .btn-edit:hover { background-color: #e0a800; }
        .btn-delete { background-color: #dc3545; color: white; }
        .btn-delete:hover { background-color: #bd2130; }

        /* write 사용 */
        /*.container { max-width: 750px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        h2 { border-bottom: 2px solid #0056b3; padding-bottom: 10px; color: #0056b3; margin-top: 0; } */
        /*.form-group { margin-bottom: 20px; } */
        .form-group label { display: block; font-weight: bold; margin-bottom: 8px; }
        /* .form-control { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }*/ 
        .category-wrapper { display: flex; gap: 15px; } /* 분류 정렬용 */
        .category-wrapper select { flex: 1; }
        textarea.form-control { height: 200px; resize: vertical; }
        .file-notice { background-color: #fff3cd; border-left: 4px solid #ffc107; padding: 12px; margin-bottom: 15px; border-radius: 4px; font-size: 13px; color: #664d03; line-height: 1.5; }
        .file-input-wrapper { margin-bottom: 8px; display: flex; align-items: center; }
        .btn-add-file { background-color: #17a2b8; color: white; padding: 6px 12px; font-size: 12px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-bottom: 10px; }
        .btn-remove-file { background-color: #dc3545; color: white; border: none; padding: 10px 12px; margin-left: 5px; border-radius: 4px; cursor: pointer; }
        /* .btn-area { text-align: right; margin-top: 25px; }*/
        /* .btn { padding: 10px 20px; font-size: 14px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: bold; }*/
        /* .btn-submit { background-color: #0056b3; color: white; }
        .btn-cancel { background-color: #6c757d; color: white; margin-right: 5px; } */
        /* --- ⚡ [추가] index.php 메인 모바일 반응형 스타일 --- */
@media screen and (max-width: 768px) {
    /* 메인 컨테이너 여백 조정 */
    .container {
        padding: 15px 10px;
        margin: 10px auto;
    }

    /* ⚡ 게시판을 감싸는 전체 Wrapper를 세로 1열 배열로 변경 */
    .board-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px; /* 세로 박스 간의 간격 */
        width: 100%;
    }

    /* ⚡ 개별 게시판 사각형 상자 너비를 100%로 가득 채움 */
    .board-box {
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 0;
        padding: 15px; /* 내부 여백 조절 */
    }

    /* 타이틀 및 '더보기' 영역 크기 조절 */
    .board-box h3 {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    .board-box h3 a {
        font-size: 13px;
        padding: 2px 6px;
    }

    /* 최신글 리스트 줄간격 확보 (손가락 터치 영역 확대) */
    .post-list li {
        padding: 10px 0;
        font-size: 14px;
    }
    
    /* 제목이 길어 화면 밖으로 밀려날 때 생기는 아이콘 깨짐 방지 */
    .post-list li a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        max-width: 75%; /* 날짜 영역을 위한 공간 확보 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 날짜 폰트 조절 */
    .post-list .date {
        font-size: 10px;
        color: #888;
    }
}

