@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Notice Detail 상세 페이지
   ========================================================================== */

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: 1000px;
    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. 상세 영역 헤더 및 메타 정보
   ────────────────────────────────────────────────────────────────────────── */
.detail-container {
    width: 100%;
}

.detail-header {
    border-top: 2px solid #111111;
    border-bottom: 1px solid #e2e2e2;
    padding: 2.2rem 1.5rem 1.5rem;
}

.detail-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.badge-notice {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: #111111;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 2px;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.88rem;
    color: #777777;
}

.meta-item strong {
    color: #111111;
    font-weight: 500;
    margin-right: 0.3rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. 상세 본문 내용
   ────────────────────────────────────────────────────────────────────────── */
.detail-body {
    padding: 3.5rem 1.5rem;
    border-bottom: 1px solid #e2e2e2;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #333333;
    min-height: 250px;
}

.detail-body p {
    margin: 0 0 1.5rem 0;
}

.detail-body ul {
    margin: 1rem 0 2rem 1.2rem;
    padding: 0;
}

.detail-body li {
    margin-bottom: 0.5rem;
}

.detail-img-box {
    margin: 2.5rem 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.detail-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ──────────────────────────────────────────────────────────────────────────
   4. 이전글 / 다음글 이동 네비게이션
   ────────────────────────────────────────────────────────────────────────── */
.detail-navigation {
    border-bottom: 1px solid #111111;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-label {
    width: 100px;
    font-weight: 600;
    color: #111111;
}

.nav-item a {
    color: #444444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item a:hover {
    color: #111111;
    text-decoration: underline;
}

.no-post {
    color: #999999;
}

/* ──────────────────────────────────────────────────────────────────────────
   5. 하단 버튼 영역
   ────────────────────────────────────────────────────────────────────────── */
.detail-bottom-actions {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.btn-list-back {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background 0.25s ease;
}

.btn-list-back:hover {
    background: #333333;
}

.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;
    }
    .detail-title {
        font-size: 1.25rem;
    }
    .detail-title-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-meta {
        flex-direction: column;
        gap: 0.4rem;
    }
    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .nav-label {
        width: auto;
    }
}