/* 기본 여백 초기화 및 기존 네비게이션 스타일 적용 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Malgun Gothic', sans-serif; background-color: #f8f9fa; color: #333333; }

.navbar { display: flex; justify-content: space-between; align-items: center; background-color: #314254; height: 80px; padding: 0 20px; position: relative; }
.logo-container { height: 100%; display: flex; align-items: center; }
.logo-container img { height: calc(100% - 4mm); margin-top: 2mm; margin-bottom: 2mm; object-fit: contain; }
.center-company-name { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    color: #ffffff; 
    font-size: 32px; 
    font-weight: 900; 
    letter-spacing: 2px; 
    text-decoration: none; /* 추가된 부분: 링크 밑줄 제거 */
}
.menu-container { display: flex; gap: 8px; }
.menu-container a { text-decoration: none; color: #ffffff; background-color: #3b5066; padding: 12px 18px; border-radius: 4px; font-size: 15px; transition: 0.2s ease; }
.menu-container a:hover { background-color: #4a637d; }

/* ---------- 자료실 게시판 전용 스타일 ---------- */
.board-container {
    max-width: 1000px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.board-title {
    font-size: 28px;
    font-weight: bold;
    color: #314254;
    margin-bottom: 20px;
    border-bottom: 3px solid #314254;
    padding-bottom: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.data-table th, .data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f1f3f5;
    font-weight: bold;
    font-size: 16px;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.file-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #314254;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.2s;
}

.file-link:hover {
    background-color: #4a637d;
}

/* ---------- 비고 및 Dialog 스타일 ---------- */
.bigo-link {
    color: #4a637d;
    text-decoration: underline;
    cursor: pointer;
    font-size: 15px;
}

.bigo-link:hover {
    color: #e74c3c;
}

dialog {
    margin: auto;
    padding: 25px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    background: #fff;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #314254;
    padding-bottom: 10px;
}

.dialog-header h3 {
    margin: 0;
    color: #314254;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #e74c3c;
}

.dialog-content {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap; /* 줄바꿈 유지 */
    word-break: break-all;
}