/* ---- 자료실 테이블형 게시판 ---- */
/* 게시판 리스트 감싸는 div 가운데 정렬 */
.hc-archive-board-list {
    max-width: 1400px;
    margin: 40px auto 60px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.03);
    padding: 10px 0 30px 0;
}

.archive-board-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 20px;
}

.archive-board-table th,
.archive-board-table td {
    border: none;
    padding: 10px;
    text-align: center;
}

.archive-board-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.archive-board-table tr {
    cursor: pointer;
}

.archive-board-table tr:hover {
    background: #f1f1f1;
}

/* ---- 페이지네이션 ---- */
.archive-board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;     /* 세로 중앙 정렬 */
    gap: 0.4em;              /* 버튼 간격 좁게 */
    margin: 32px 0 32px 0;   /* 위아래 간격 균형 */
    font-size: 0;
    flex-wrap: wrap;
    min-height: 52px;
}

.archive-board-pagination a,
.archive-board-pagination .current,
.archive-board-pagination .hc-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 1.7rem;
    min-width: 2.3em;
    min-height: 2.3em;
}

.archive-board-pagination .current {
    background: #003883;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #003883;
}

.archive-board-pagination .first-page,
.archive-board-pagination .last-page,
.archive-board-pagination .prev-page,
.archive-board-pagination .next-page {
    font-size: 2em;
    font-weight: 700;
    border: none;
    background: none;
    color: #003883;
    min-width: 1.2em;
    height: 1.6em;
    line-height: 1.5em;
    border-radius: 4px;
    transition: background 0.18s, color 0.18s;
    margin: 0 3px;
    vertical-align: middle;
    display: inline-block;
    text-align: center;
}
.archive-board-pagination .off {
    color: #bbb !important;
    pointer-events: none;
    background: none;
}


/* ---- 공지 행(참고용) ---- */
.archive-board-notice-row {
    background-color: #fdf5d4 !important;
}

.archive-board-notice-row:hover {
    background-color: #fbeeb0 !important;
}

/* ---- 이전/다음글 네비 ---- */
.archive-board-nav-table-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.archive-board-nav-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.archive-board-nav-row {
    border-top: 1.5px solid #d7d7d7;
    border-bottom: 1.5px solid #d7d7d7;
}

.archive-board-nav-row th {
    background: #fafafd;
    font-weight: 600;
    padding: 7px 6px;
    text-align: center;
    width: 80px;
    border-right: 1px solid #e0e0e0;
}

.archive-board-nav-row td {
    padding: 7px 8px;
    text-align: left;
}

.archive-board-nav-row a {
    color: #2644af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.archive-board-nav-row a:hover {
    color: #0b2277;
    text-decoration: underline;
}

/* ---- 상세 본문 ---- */
.hc-archive-board-single {
    max-width: 1400px;
    margin: 40px auto 60px;
    padding: 32px 24px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.03);
}

.archive-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 16px;
}

.archive-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
    display: flex;
    gap: 16px;
}

.archive-content {
    padding: 24px 0 24px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 180px;
}

.archive-file {
    margin-top: 16px;
}

.archive-file a {
    color: #0066cc;
    text-decoration: underline;
}

.archive-back {
    margin-top: 26px;
}

.archive-back a {
    background: #f1f1f1;
    color: #222;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}

/* ---- 모바일 반응형 ---- */
@media (max-width: 900px) {

    .hc-archive-board-list,
    .hc-archive-board-single {
        max-width: 99vw;
    }

    .archive-board-table th,
    .archive-board-table td {
        padding: 7px;
        font-size: 14px;
    }
}

@media (max-width:600px) {
    .archive-title {
        font-size: 1.1em;
    }

    .archive-content {
        padding: 14px 0;
    }

    .archive-board-table thead {
        display: none;
    }

    .archive-board-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #eaeaea;
    }

    .archive-board-table td {
        display: block;
        border: none;
        border-bottom: 1px solid #eaeaea;
        padding: 7px 6px;
        text-align: left;
    }

    .archive-board-table td:before {
        display: inline-block;
        font-weight: 600;
        margin-right: 8px;
        content: attr(data-label);
        color: #666;
    }
}

.archive-download-btn,
.archive-download-btn *,
.archive-download-btn:visited {
    color: #fff !important;
}

.archive-download-btn:hover {
    background: #0051c8;
    color: #fff;
    text-decoration: underline;
}

.archive-download-btn {
    display: inline-block;
    padding: 8px 8px;
    background: #003883;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 7px 0 0;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.15s;
    box-shadow: 0 2px 8px 0 rgba(0, 56, 131, 0.08);
    border: none;
    letter-spacing: 0.01em;
    vertical-align: middle;
    position: relative;
}

.archive-download-btn:hover {
    background: #0b2277;
    color: #fff;
    text-decoration: underline;
    box-shadow: 0 4px 18px 0 rgba(0, 56, 131, 0.16);
    transform: translateY(-2px) scale(1.03);
}

.archive-file-name {
    font-size: 1.07em;
    color: #233d7a;
    font-weight: 500;
    word-break: break-all;
    max-width: 330px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
}



.newsletter-tabs-wrap { margin-bottom: 18px; }
.newsletter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    justify-content: center;      /* 가운데 정렬 */
}
.newsletter-tab {
    padding: 9px 22px;
    background: #f3f6fd;
    border-radius: 21px;
    font-weight: 500;
    color: #2750b7;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1em;
    transition: background 0.15s, color 0.15s;
}
.newsletter-tab.on {
    background: #2644af;
    color: #fff;
}
