@charset "UTF-8";

/* ==========================================================================
   쑤테이블(SSU-TABLE) 공지사항 페이지 - 반응형 고도화 통합 코드
   - Desktop / Laptop / Tablet / Mobile / Small Mobile 전 브레이크포인트 대응
   - 모바일 히어로 배너 텍스트 중앙 정렬 및 폰트 크기 반응형 제어
   - 모바일 게시판 테이블 열 최적화 (제목/작성일 중심 정돈)
   - 페이지네이션 터치 인터페이스 및 최소 크기 확보
   ========================================================================== */

:root {
    --n-bg-white: #ffffff;
    --n-bg-light: #fbf9f6;
    --n-bg-card-hover: #f5f2ec;

    --n-text-primary: #171615;
    --n-text-secondary: #54514d;
    --n-text-muted: #9c9790;

    --n-border-line: #eeedea;
    --n-border-strong: #dedad2;
    --n-point: #94684c;
    --n-point-hover: #785036;

    --n-transition: 0.28s cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.notice-page {
    background-color: var(--n-bg-white) !important;
    color: var(--n-text-primary);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
}

.notice-main-container {
    width: 100%;
    background-color: var(--n-bg-white);
    overflow: clip;
}

.max-layout-width {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 3.5rem;
    box-sizing: border-box;
}

.font-mono {
    font-family: 'Montserrat', sans-serif;
}

.reveal-element {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active,
.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.notice-hero {
    position: relative;
    height: 56vh;
    min-height: 480px;
    width: 100%;
    background-color: #171615;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--n-border-line);
    overflow: hidden;
}

.notice-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/community/hero_01.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    animation: noticeZoom 10s ease-out forwards;
}

@keyframes noticeZoom {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero-overlay-filter {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 22, 21, 0.45) 0%, rgba(23, 22, 21, 0.82) 100%);
    pointer-events: none;
}

.notice-hero-inner {
    position: relative;
    z-index: 5;
    padding-top: 3.5rem;
}

.eng-sub-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: #dfd3c3;
    display: block;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.notice-hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
    word-break: keep-all;
}

.solid-white {
    color: #ffffff;
}

.notice-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    line-height: 1.8;
    margin: 0 0 1.8rem 0;
    word-break: keep-all;
}

.hero-watermark-code {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
    overflow-wrap: anywhere;
}

/* ==========================================================================
   2. NOTICE BOARD AREA
   ========================================================================== */
.notice-board-section {
    padding: 130px 0 150px;
    background-color: var(--n-bg-white);
}

.section-lead-header {
    margin-bottom: 55px;
    border-left: 2px solid var(--n-point);
    padding-left: 1.8rem;
}

.section-lead-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--n-point);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.section-lead-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--n-text-primary);
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.section-lead-sub-desc {
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--n-text-secondary);
    margin: 0;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.notice-board-container {
    width: 100%;
}

.board-top-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

.board-counter {
    font-size: 0.92rem;
    color: var(--n-text-secondary);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.board-counter span {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--n-point);
    letter-spacing: 0.1em;
}

.board-counter strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--n-text-primary);
    font-weight: 600;
}

.table-responsive-frame {
    width: 100%;
    overflow-x: auto;
    border-top: 2px solid var(--n-point);
    border-bottom: 1px solid var(--n-border-line);
    -webkit-overflow-scrolling: touch;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--n-bg-white);
    table-layout: fixed;
}

.notice-table th {
    padding: 18px 16px;
    font-family: 'Noto Serif KR', serif;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--n-text-primary);
    background: var(--n-bg-light);
    border-bottom: 1px solid var(--n-border-line);
    text-align: center;
    white-space: nowrap;
}

.notice-table td {
    padding: 20px 16px;
    font-size: 0.95rem;
    color: var(--n-text-secondary);
    border-bottom: 1px solid var(--n-border-line);
    text-align: center;
    transition: background-color var(--n-transition);
}

.notice-table tbody tr {
    transition: background-color var(--n-transition);
}

.notice-table tbody tr:hover {
    background-color: var(--n-bg-card-hover);
}

.notice-fixed-row {
    background-color: #faf7f2;
}

.notice-fixed-row:hover {
    background-color: #f3ede2 !important;
}

.fixed-badge {
    background: var(--n-point);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    letter-spacing: 0.04em;
    display: inline-block;
    border-radius: 2px;
    white-space: nowrap;
}

.td-subject {
    text-align: left !important;
    padding-left: 25px !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-subject a {
    color: var(--n-text-primary);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
    transition: color var(--n-transition);
}

.notice-fixed-row .td-subject a {
    font-weight: 600;
}

.td-subject a:hover {
    color: var(--n-point);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.td-date,
.td-views {
    font-size: 0.88rem;
    color: var(--n-text-muted);
    white-space: nowrap;
}

.td-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--n-text-muted);
}

/* ==========================================================================
   3. BOARD PAGINATION COMPONENT
   ========================================================================== */
.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.btn-page {
    width: 40px;
    height: 40px;
    background: var(--n-bg-white);
    border: 1px solid var(--n-border-strong);
    color: var(--n-text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--n-transition);
    user-select: none;
}

.btn-page:hover:not(.disabled) {
    background: var(--n-point);
    border-color: var(--n-point);
    color: #ffffff;
}

.btn-page.active {
    background: var(--n-point);
    border-color: var(--n-point);
    color: #ffffff;
    font-weight: 600;
}

.btn-page.arrow {
    font-size: 1.2rem;
}

.btn-page.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--n-border-line);
    background: var(--n-bg-light);
    color: var(--n-text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (통합 분기점 적용)
   ========================================================================== */

/* 1. Large Screens (>= 1440px) */
@media (min-width: 1440px) {
    .max-layout-width {
        padding: 0 4rem;
    }
    .notice-hero-inner {
        padding-top: 3.5rem;
    }
    .notice-board-section {
        padding: 130px 0 150px;
    }
}

/* 2. Laptop & Desktop (1024px ~ 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .max-layout-width {
        padding: 0 2.5rem;
    }
    .notice-hero {
        min-height: 430px;
    }
    .notice-board-section {
        padding: 105px 0 120px;
    }
    .section-lead-header {
        margin-bottom: 45px;
    }
    .notice-table th {
        padding: 16px 14px;
        font-size: 0.9rem;
    }
    .notice-table td {
        padding: 18px 14px;
        font-size: 0.92rem;
    }
    .board-pagination {
        margin-top: 45px;
    }
}

/* 3. Tablet Landscape & Portrait (768px ~ 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .max-layout-width {
        padding: 0 2rem;
    }
    .notice-hero {
        height: 50vh;
        min-height: 400px;
    }
    .notice-hero-inner {
        padding-top: 2.5rem;
    }
    .eng-sub-badge {
        font-size: 0.8rem;
        letter-spacing: 0.22em;
    }
    .notice-hero-title {
        font-size: clamp(2.4rem, 5vw, 3.2rem);
    }
    .notice-hero-desc {
        font-size: 0.98rem;
    }
    .notice-board-section {
        padding: 85px 0 95px;
    }
    .section-lead-header {
        margin-bottom: 38px;
        padding-left: 1.4rem;
    }
    .section-lead-title {
        font-size: 2rem;
    }
    .notice-table th {
        padding: 15px 12px;
        font-size: 0.88rem;
    }
    .notice-table td {
        padding: 16px 12px;
        font-size: 0.9rem;
    }
    .td-subject {
        padding-left: 18px !important;
    }
    .board-pagination {
        margin-top: 40px;
        gap: 6px;
    }
    .btn-page {
        width: 36px;
        height: 36px;
        font-size: 0.86rem;
    }
}

/* 4. Mobile Devices (480px ~ 767px) - common 통합 규격 */
@media (max-width: 767px) {
    .max-layout-width {
        padding: 0 1.5rem;
    }
    .notice-hero {
        height: 48vh;
        min-height: 360px;
    }
    .notice-hero-bg {
        background-position: center center;
    }
    .notice-hero-inner {
        padding-top: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
    }
    .eng-sub-badge {
        font-size: 0.74rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    .notice-hero-title {
        font-size: clamp(2rem, 8.2vw, 2.7rem);
        line-height: 1.25;
        margin-bottom: 1rem;
        text-align: center;
    }
    .notice-hero-desc {
        font-size: 0.9rem;
        line-height: 1.7;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.4rem;
        text-align: center;
    }
    .hero-watermark-code {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        text-align: center;
    }
    .notice-board-section {
        padding: 60px 0 70px;
    }
    .section-lead-header {
        margin-bottom: 30px;
        padding-left: 1rem;
    }
    .section-lead-tag {
        font-size: 0.74rem;
        letter-spacing: 0.16em;
    }
    .section-lead-title {
        font-size: 1.65rem;
        line-height: 1.4;
    }
    .section-lead-sub-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .board-top-meta {
        margin-bottom: 12px;
    }
    .board-counter {
        font-size: 0.85rem;
    }

    /* 모바일 테이블 최적화: 번호(1), 조회수(4) 열 제거 */
    .notice-table colgroup col:nth-child(1),
    .notice-table th:nth-child(1),
    .notice-table td:nth-child(1),
    .notice-table colgroup col:nth-child(4),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(4) {
        display: none !important;
    }

    .notice-table colgroup col:nth-child(2) {
        width: 72% !important;
    }
    .notice-table colgroup col:nth-child(3) {
        width: 28% !important;
    }

    .notice-table th {
        padding: 13px 8px;
        font-size: 0.84rem;
    }
    .notice-table td {
        padding: 15px 8px;
        font-size: 0.88rem;
    }
    .td-subject {
        padding-left: 10px !important;
    }
    .td-subject a {
        font-size: 0.9rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .fixed-badge {
        font-size: 0.68rem;
        padding: 2px 6px;
        margin-right: 5px;
        vertical-align: middle;
    }
    .td-date {
        font-size: 0.8rem;
    }
    .board-pagination {
        margin-top: 35px;
        gap: 6px;
    }
    .btn-page {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
    .btn-page.arrow {
        font-size: 1rem;
    }
}

/* 5. Small Mobile Screens (< 480px) */
@media (max-width: 479px) {
    .max-layout-width {
        padding: 0 1.15rem;
    }
    .notice-hero {
        height: 44vh;
        min-height: 320px;
    }
    .notice-hero-inner {
        padding-top: 1.5rem;
        min-width: 0;
    }
    .eng-sub-badge {
        font-size: 0.68rem;
        letter-spacing: 0.15em;
    }
    .notice-hero-title {
        font-size: 2rem;
    }
    .notice-hero-desc {
        display: none;
    }
    .hero-watermark-code {
        display: none;
    }
    .notice-board-section {
        padding: 55px 0 65px;
    }
    .section-lead-header {
        margin-bottom: 24px;
        padding-left: 0.85rem;
    }
    .section-lead-title {
        font-size: 1.45rem;
    }
    .section-lead-sub-desc {
        font-size: 0.85rem;
    }
    .notice-table colgroup col:nth-child(2) {
        width: 68% !important;
    }
    .notice-table colgroup col:nth-child(3) {
        width: 32% !important;
    }
    .notice-table th {
        padding: 11px 6px;
        font-size: 0.8rem;
    }
    .notice-table td {
        padding: 13px 6px;
        font-size: 0.84rem;
    }
    .td-subject {
        padding-left: 6px !important;
    }
    .td-subject a {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .td-date {
        font-size: 0.74rem;
    }
    .board-pagination {
        margin-top: 30px;
        gap: 4px;
    }
    .btn-page {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
}

/* 모션 최소화 환경 대응 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}