@charset "UTF-8";

/* ==========================================================================
   쑤테이블(SSU-TABLE) 공지사항 상세 페이지 - 반응형 고도화 통합 코드
   - Desktop / Laptop / Tablet / Mobile / Small Mobile 전 브레이크포인트 대응
   - 모바일 히어로 배너 중앙 정렬 및 텍스트 짤림 방지
   - 상세 헤더 메타 매트릭스 및 본문 영역 모바일 가독성 최적화
   - 이전/다음글 네비게이션 말줄임 및 하단 버튼 풀위드(Full-width) 전환
   ========================================================================== */

:root {
    --nd-bg-white: #ffffff;
    --nd-bg-light: #fbf9f6;
    --nd-bg-card-hover: #f5f2ec;

    --nd-text-primary: #171615;
    --nd-text-secondary: #54514d;
    --nd-text-muted: #9c9790;

    --nd-border-line: #eeedea;
    --nd-border-strong: #dedad2;
    --nd-point: #94684c;
    --nd-point-hover: #785036;

    --nd-transition: 0.28s cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.notice-detail-page {
    background-color: var(--nd-bg-white) !important;
    color: var(--nd-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-detail-main-container {
    width: 100%;
    background-color: var(--nd-bg-white);
    overflow: clip;
}

.max-layout-width {
    width: 100%;
    max-width: 1400px;
    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(--nd-border-line);
    overflow: hidden;
}

.notice-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/main/hero_01.jpg');
    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 DETAIL CONTENT SECTION
   ========================================================================== */
.notice-detail-content-section {
    padding: 110px 0 150px;
    background-color: var(--nd-bg-white);
}

.notice-detail-card {
    background: var(--nd-bg-white);
    border: 1px solid var(--nd-border-line);
    border-top: 2px solid var(--nd-point);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 36px rgba(23, 22, 21, 0.04);
}

.detail-header-block {
    padding: 3rem 3.5rem;
    background: var(--nd-bg-light);
    border-bottom: 1px solid var(--nd-border-line);
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fixed-badge {
    background: var(--nd-point);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    letter-spacing: 0.04em;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 2px;
    white-space: nowrap;
}

.detail-headline {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: var(--nd-text-primary);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.detail-meta-matrix {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--nd-text-secondary);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item .lbl {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nd-point);
    letter-spacing: 0.05em;
}

.meta-item .val {
    color: var(--nd-text-primary);
    font-weight: 500;
}

.meta-dot {
    color: var(--nd-border-strong);
    font-size: 0.8rem;
}

.detail-body-block {
    padding: 3.5rem;
    font-size: 1.02rem;
    color: var(--nd-text-secondary);
    line-height: 1.85;
    min-height: 280px;
    word-break: keep-all;
}

.detail-body-block strong {
    color: var(--nd-text-primary);
    font-weight: 600;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    border-left: 2px solid var(--nd-point);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    position: relative;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--nd-text-secondary);
    word-break: keep-all;
}

.detail-list li strong {
    color: var(--nd-text-primary);
    font-weight: 600;
}

/* ==========================================================================
   3. NOTICE PREV / NEXT NAVIGATION
   ========================================================================== */
.notice-navigation-matrix {
    margin-top: 30px;
    border-top: 1px solid var(--nd-border-line);
    border-bottom: 1px solid var(--nd-border-line);
    background: var(--nd-bg-white);
}

.nav-row {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid var(--nd-border-line);
}

.nav-row:last-child {
    border-bottom: none;
}

.nav-direction {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--nd-point);
    letter-spacing: 0.12em;
    width: 80px;
    flex-shrink: 0;
}

.nav-subject-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link {
    color: var(--nd-text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--nd-transition);
}

.nav-link:hover {
    color: var(--nd-point);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-empty {
    font-size: 0.9rem;
    color: var(--nd-text-muted);
}

/* ==========================================================================
   4. ACTION BUTTON CONTROLLER
   ========================================================================== */
.detail-action-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.btn-notice-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: var(--nd-text-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--nd-text-primary);
    text-decoration: none;
    transition: all var(--nd-transition);
}

.btn-notice-back .btn-arrow {
    font-style: normal;
    font-size: 1.1rem;
    transition: transform var(--nd-transition);
}

.btn-notice-back:hover {
    background: var(--nd-point);
    border-color: var(--nd-point);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(148, 104, 76, 0.25);
}

.btn-notice-back:hover .btn-arrow {
    transform: translateX(-4px);
}

/* ==========================================================================
   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-detail-content-section {
        padding: 120px 0 160px;
    }
}

/* 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-detail-content-section {
        padding: 95px 0 120px;
    }
    .detail-header-block {
        padding: 2.6rem 2.8rem;
    }
    .detail-body-block {
        padding: 3rem 2.8rem;
    }
    .detail-action-wrap {
        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-detail-content-section {
        padding: 80px 0 100px;
    }
    .detail-header-block {
        padding: 2.2rem 2rem;
    }
    .detail-headline {
        font-size: 1.55rem;
    }
    .detail-body-block {
        padding: 2.5rem 2rem;
        font-size: 0.98rem;
        min-height: 240px;
    }
    .nav-row {
        padding: 16px 20px;
    }
    .detail-action-wrap {
        margin-top: 40px;
    }
}

/* 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;
        white-space: normal;
    }
    .notice-hero-title {
        font-size: clamp(2rem, 8.2vw, 2.7rem);
        line-height: 1.25;
        margin-bottom: 1rem;
        text-align: center;
        white-space: normal;
    }
    .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;
        white-space: normal;
    }
    .notice-detail-content-section {
        padding: 60px 0 80px;
    }
    .detail-header-block {
        padding: 1.8rem 1.4rem;
    }
    .detail-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }
    .fixed-badge {
        font-size: 0.7rem;
        padding: 2px 7px;
    }
    .detail-headline {
        font-size: 1.35rem;
        line-height: 1.35;
    }
    .detail-meta-matrix {
        gap: 8px 14px;
        font-size: 0.84rem;
    }
    .meta-item .lbl {
        font-size: 0.74rem;
    }
    .detail-body-block {
        padding: 2rem 1.4rem;
        font-size: 0.94rem;
        line-height: 1.75;
        min-height: 200px;
    }
    .detail-list {
        margin: 1.2rem 0;
        padding-left: 1.2rem;
        gap: 10px;
    }
    .detail-list li {
        font-size: 0.9rem;
    }
    .notice-navigation-matrix {
        margin-top: 24px;
    }
    .nav-row {
        padding: 14px 16px;
        gap: 12px;
    }
    .nav-direction {
        width: 60px;
        font-size: 0.76rem;
    }
    .nav-link {
        font-size: 0.88rem;
    }
    .nav-empty {
        font-size: 0.85rem;
    }
    .detail-action-wrap {
        margin-top: 35px;
    }
    .btn-notice-back {
        width: 100%;
        justify-content: center;
        padding: 15px 0;
        font-size: 0.92rem;
        box-sizing: border-box;
    }
}

/* 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-detail-content-section {
        padding: 50px 0 65px;
    }
    .detail-header-block {
        padding: 1.5rem 1.15rem;
    }
    .detail-headline {
        font-size: 1.22rem;
    }
    .detail-meta-matrix {
        gap: 6px 10px;
        font-size: 0.8rem;
    }
    .detail-body-block {
        padding: 1.6rem 1.15rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .detail-list {
        padding-left: 1rem;
    }
    .detail-list li {
        font-size: 0.86rem;
    }
    .nav-row {
        padding: 12px 14px;
        gap: 8px;
    }
    .nav-direction {
        width: 50px;
        font-size: 0.72rem;
    }
    .nav-link {
        font-size: 0.84rem;
    }
    .detail-action-wrap {
        margin-top: 28px;
    }
    .btn-notice-back {
        padding: 13px 0;
        font-size: 0.86rem;
    }
}

/* 모션 최소화 환경 대응 */
@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;
    }
}