@charset "utf-8";

/* 상단 배너 베이스 메인 컨테이너 */
.sub-visual.intro-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: #f4f7fa;
    margin-bottom: 50px; 
}

.sub-visual.intro-visual .visual-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/notice_banner.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(3px); 
    transform: scale(1.05);
    z-index: 1;
}

.sub-visual.intro-visual .hero-text-block {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.sub-visual.intro-visual .hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.sub-visual.intro-visual .hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
}

/* 본문 전체 레이아웃 구역 */
.library-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.library-header-box {
    border-bottom: 2px solid #003366;
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.library-main-title {
    font-size: 2.1rem;
    color: #003366;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.library-sub-title {
    font-size: 1rem;
    color: #64748b;
}

/* 카테고리 필터 탭 랩 */
.category-tab-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.category-tab-item {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tab-item:hover {
    background-color: #cbd5e1;
    color: #1e293b;
}

.category-tab-item.active {
    background-color: #003366;
    color: #ffffff;
}

/* 검색바 영역 */
.library-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.library-search-form {
    display: flex;
    gap: 6px;
    background: #fff;
}

.library-search-select {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #334155;
    outline: none;
    background-color: #fff;
}

.library-search-input {
    width: 240px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.library-search-btn {
    padding: 10px 20px;
    background-color: #003366;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.library-search-btn:hover {
    background-color: #002244;
}

/* 테이블 공통 디자인 */
.library-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
}

.library-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.library-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.library-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.library-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 상단 고정 공지 행 디자인 */
.library-table tr.top-notice-row {
    background-color: #f0f7ff;
}

.library-table tr.top-notice-row:hover {
    background-color: #e1effe;
}

.badge-notice-tag {
    background-color: #ff4d4d;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-category-tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* 제목 열 좌측 정렬 및 디자인 */
.text-left-title {
    text-align: left !important;
    padding-left: 20px !important;
}

.text-left-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.text-left-title a:hover {
    color: #003366;
    text-decoration: underline;
}

.file-icon-indicator {
    color: #64748b;
    margin-left: 6px;
    font-size: 0.9rem;
}

/* 하단 액션 블록 및 페이징 */
.library-footer-action-block {
    display: relative;
    margin-top: 35px;
    text-align: center;
}

.library-pagination-box {
    display: inline-flex;
    justify-content: center;
    gap: 4px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.page-link.active.selected {
    background-color: #003366;
    border-color: #003366;
    color: #fff;
    font-weight: 700;
}

.user-write-btn-right {
    position: absolute;
    right: 20px;
    margin-top: -38px;
}

.btn-library-write-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-library-write-action:hover {
    background-color: #002244;
}

/* 글보기(View) 스타일 */
.view-header-area {
    border-top: 2px solid #003366;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 25px 30px;
}

.view-category-label {
    font-size: 0.9rem;
    color: #003366;
    font-weight: 700;
    margin-bottom: 8px;
}

.view-main-title-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 15px;
}

.view-meta-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.view-meta-item strong {
    color: #334155;
    font-weight: 600;
}

.view-file-attach-box {
    background-color: #f1f5f9;
    padding: 12px 30px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}

.view-file-link {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
}

.view-file-link:hover {
    text-decoration: underline;
}

.view-content-body {
    padding: 40px 30px;
    min-height: 300px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.view-content-body img {
    max-width: 100% !important;
    height: auto !important;
}

/* 댓글(Reply) 스타일 구조 */
.reply-section-container {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
}

.reply-count-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.reply-list-block {
    margin-bottom: 25px;
}

.reply-item-row {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.reply-item-row:last-child {
    border-bottom: none;
}

.reply-meta-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.reply-author {
    font-weight: 700;
    color: #334155;
}

.reply-date-actions {
    color: #94a3b8;
}

.btn-reply-delete {
    color: #ff4d4d;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}

.btn-reply-delete:hover {
    text-decoration: underline;
}

.reply-item-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    white-space: pre-wrap;
}

.reply-form-wrapper {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.reply-textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    resize: none;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 10px;
}

.reply-submit-box {
    display: flex;
    justify-content: flex-end;
}

/* 글작성 폼 셋 */
.write-form-row {
    margin-bottom: 20px;
}

.write-form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.write-select-custom, .write-input-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .library-main-title { font-size: 1.8rem; }
    .library-search-wrapper { justify-content: center; }
    .library-search-input { width: 100%; }
    .user-write-btn-right {
        position: static;
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
    .btn-library-write-action { width: 100%; justify-content: center; }
    .view-meta-info-list { flex-direction: column; gap: 6px; }
}



/* 자료실 상단 헤더 박스 전체 레이아웃 */
.library-header-box {
    border-bottom: 2px solid #003366;
    padding-bottom: 25px;
    margin-bottom: 40px;
    position: relative;
}

/* 메인 타이틀 스타일 (폰트 패밀리 및 자간 정밀 조정) */
.library-main-title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 2.2rem;
    color: #003366;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 💡 타이틀 앞에 세련된 포인트 바 추가 */
.library-main-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background-color: #003366;
    border-radius: 4px;
}

/* 서브 타이틀 스타일 (부드러운 경고 분위기 연출) */
.library-sub-title {
    font-family: 'Pretendard', -apple-system, system-ui, sans-serif;
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* 저작권 관련 경고 문구 강조용 서브 클래스 */
.library-sub-title .copyright-alert {
    color: #e11d48; /* 은은하고 고급스러운 경고 레드 */
    font-weight: 600;
    background-color: #fff1f2;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}