@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Notice 공지사항
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    width: 100%;
    overflow-x: hidden;
    padding-top: 4.5rem;
    box-sizing: border-box;
}

.max-layout-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-section-padding {
    padding: 5rem 0 8rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. 서브 히어로 배너
   ────────────────────────────────────────────────────────────────────────── */
.sub-hero-banner {
    width: 100%;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 5rem 2rem 4.5rem;
    text-align: center;
    box-sizing: border-box;
}

.banner-inner {
    max-width: 800px;
    margin: 0 auto;
}

.sub-category-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #888888;
    display: block;
    margin-bottom: 0.8rem;
}

.sub-page-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
    margin: 0 0 1rem 0;
}

.sub-page-desc {
    font-size: 0.98rem;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. 상단 검색바 & 카운터
   ────────────────────────────────────────────────────────────────────────── */
.board-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
}

.board-count {
    font-size: 0.92rem;
    color: #666666;
}

.board-count strong {
    color: #111111;
    font-weight: 600;
}

.search-form {
    display: flex;
}

.search-input-wrapper {
    display: flex;
    border: 1px solid #111111;
    background: #ffffff;
}

.search-input {
    border: none;
    outline: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 220px;
    color: #111111;
}

.search-input::placeholder {
    color: #aaa;
}

.btn-search {
    border: none;
    background: #111111;
    color: #ffffff;
    padding: 0 1.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-search:hover {
    background: #333333;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. 공지사항 테이블 리스트
   ────────────────────────────────────────────────────────────────────────── */
.board-table-wrapper {
    width: 100%;
    border-top: 2px solid #111111;
    border-bottom: 1px solid #111111;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.notice-table th {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e2e2e2;
    background: #fcfcfc;
}

.notice-table td {
    font-size: 0.95rem;
    color: #444444;
    padding: 1.3rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.notice-row:hover td {
    background: #fbfbfb;
}

.notice-row.is-pinned {
    background: #f9f9f9;
}

.col-num {
    width: 10%;
    text-align: center;
}

.col-title {
    width: 62%;
}

.col-title a {
    color: #111111;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.col-title a:hover {
    color: #777777;
    text-decoration: underline;
}

.col-writer {
    width: 14%;
    text-align: center;
}

.col-date {
    width: 14%;
    text-align: center;
    color: #888888;
    font-size: 0.88rem;
}

.badge-notice {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #111111;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────────────────
   4. 페이지네이션
   ────────────────────────────────────────────────────────────────────────── */
.pagination-wrapper {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e2e2;
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-link:hover:not(.disabled) {
    border-color: #111111;
    color: #111111;
}

.page-link.active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.page-link.disabled {
    opacity: 0.3;
    cursor: default;
}

.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 767px) {
    .sub-page-title {
        font-size: 2.1rem;
    }
    .board-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .search-input-wrapper, .search-input {
        width: 100%;
    }
    .col-writer {
        display: none;
    }
    .col-num {
        width: 15%;
    }
    .col-title {
        width: 60%;
    }
    .col-date {
        width: 25%;
    }
}