@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);
}

/* ==========================================================================
   화천(HWACHEON) Notice 공지사항 반응형 아키텍처
   ========================================================================== */

/* ── STAGE 1. 초고해상도 노트북 및 일반 데스크톱 (Max 1440px) ── */
@media (max-width: 1440px) {
    .max-layout-width {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .sub-page-title {
        font-size: 2.6rem;
    }
}

/* ── STAGE 2. 일반 랩톱 및 중형 모니터 (Max 1200px) ── */
@media (max-width: 1200px) {
    .max-layout-width {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .sub-hero-banner {
        padding: 4.5rem 2rem 4rem;
    }
    .sub-page-title {
        font-size: 2.4rem;
    }
}

/* ── STAGE 3. 태블릿 디바이스 및 가로 뷰포트 (Max 1024px) ── */
@media (max-width: 1024px) {
    .main-container {
        padding-top: 4.2rem;
    }
    .main-section-padding {
        padding: 4.5rem 0 6rem;
    }
    .max-layout-width {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    .sub-page-title {
        font-size: 2.2rem;
    }
    .notice-table th,
    .notice-table td {
        padding: 1.1rem 0.8rem;
    }
}

/* ── STAGE 4. 대형 모바일 & 미니 태블릿 (Max 768px) ── */
@media (max-width: 768px) {
    .main-container {
        padding-top: 3.9rem;
    }
    .main-section-padding {
        padding: 3.5rem 0 5rem;
    }
    .max-layout-width {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .sub-hero-banner {
        padding: 3.5rem 1.5rem 3rem;
    }
    .sub-category-tag {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }
    .sub-page-title {
        font-size: 1.95rem;
        margin-bottom: 0.6rem;
    }
    .sub-page-desc {
        font-size: 0.9rem;
    }

    .board-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
    .search-form {
        width: 100%;
    }
    .search-input-wrapper {
        width: 100%;
    }
    .search-input {
        width: 100%;
        flex: 1;
    }

    .col-writer {
        display: none;
    }
    .col-num {
        width: 14%;
    }
    .col-title {
        width: 62%;
    }
    .col-date {
        width: 24%;
        font-size: 0.82rem;
    }
    .notice-table th {
        font-size: 0.85rem;
        padding: 1rem 0.6rem;
    }
    .notice-table td {
        font-size: 0.88rem;
        padding: 1.1rem 0.6rem;
    }
    .badge-notice {
        font-size: 0.72rem;
        padding: 0.15rem 0.45rem;
    }
}

/* ── STAGE 5. 스마트폰 세로 모드 최하단 레이어 (Max 479px) ── */
@media (max-width: 479px) {
    .main-container {
        padding-top: 3.8rem;
    }
    .main-section-padding {
        padding: 2.8rem 0 4rem;
    }
    .max-layout-width {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .sub-hero-banner {
        padding: 3rem 1.25rem 2.2rem;
    }
    .sub-page-title {
        font-size: 1.7rem;
    }
    .sub-page-desc {
        font-size: 0.84rem;
    }

    .board-count {
        font-size: 0.85rem;
    }
    .search-input {
        font-size: 0.84rem;
        padding: 0.5rem 0.8rem;
    }
    .btn-search {
        padding: 0 1rem;
        font-size: 0.82rem;
    }

    .col-num {
        width: 16%;
        font-size: 0.8rem;
    }
    .col-title {
        width: 58%;
    }
    .col-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: keep-all;
        line-height: 1.35;
    }
    .col-date {
        width: 26%;
        font-size: 0.76rem;
        letter-spacing: -0.03em;
    }
    .notice-table th {
        padding: 0.8rem 0.4rem;
        font-size: 0.8rem;
    }
    .notice-table td {
        padding: 0.95rem 0.4rem;
    }

    .pagination-wrapper {
        margin-top: 2.5rem;
    }
    .pagination {
        gap: 0.35rem;
    }
    .page-link {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}