/* ===== 공지사항 및 언론보도 페이지 ===== */

/* ── 히어로 배경 ── */
.page-sub .notice-hero {
    /* background-image: url("/test/img/sub/notice_hero.webp"); */
    background-image: url("/test/img/sub/intro-hero-bg.webp");
}

.page-sub .notice-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-sub .notice-hero {
        /* background-image: url("/test/img/sub/notice_hero_m.webp"); */
        background-image: url("/test/img/sub/intro-hero-bg-m.webp");
    }
}

/* ── 본문 영역 ── */
.notice-content {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: clamp(60px, 7vw, 120px) 20px clamp(80px, 10vw, 120px);
}

.notice-content .inner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── 섹션 헤딩 ── */
.notice-heading {
    font-size: 23px;
    font-weight: 500;
    color: #444;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ── 탭 필터 (공지사항 | 언론보도) ── */
.notice-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-tab {
    padding: 9px 24px;
    border-radius: 30px;
    border: 1px solid #293340;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #293340;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.notice-tab:not(.active) {
    border-color: #aaa;
    color: #aaa;
}

.notice-tab.active {
    border-color: #293340;
    color: #293340;
}

.notice-tab:hover:not(.active) {
    border-color: #666;
    color: #666;
}

/* ── 상단 바: 총 N건 + 검색 ── */
.notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.notice-count {
    font-size: 16px;
    color: #293340;
}

.notice-count strong {
    color: #c9a86a;
    font-weight: 700;
}

.notice-search {
    display: flex;
    align-items: stretch;
    height: 48px;
}

.notice-search__input {
    width: 260px;
    max-width: 100%;
    height: 48px;
    border: 1px solid #aeaeae;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.notice-search__input::placeholder {
    color: #888;
    font-size: 14px;
}

.notice-search__btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--main, #0d132d);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.notice-search__btn:hover {
    opacity: 0.85;
}

.notice-search__btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ── 카드 그리드 ── */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
}

.notice-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notice-card__thumb {
    aspect-ratio: 420 / 289;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f2f2;
    flex-shrink: 0;
}

.notice-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.notice-card:hover .notice-card__thumb img {
    transform: scale(1.04);
}

.notice-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notice-card__title {
    font-size: 16px;
    font-weight: 500;
    color: #293340;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.notice-card__date {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* ── 빈 상태 ── */
.notice-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ── 페이지네이션 ── */
.notice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notice-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #dfe3e8;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.notice-page-btn.active {
    background: #293340;
    border-color: #293340;
    color: #fff;
}

.notice-page-btn:hover:not(.active):not(:disabled) {
    border-color: #999;
    color: #293340;
}

.notice-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.notice-page-btn--arrow {
    background: #919eab;
    border-color: #919eab;
    color: #fff;
    opacity: 0.7;
}

.notice-page-btn--arrow:hover:not(:disabled) {
    opacity: 1;
    border-color: #919eab;
    color: #fff;
}

/* ── 서브 카테고리 필터 ── */
.notice-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -10px;
}

.notice-subcat {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.5;
}

.notice-subcat.active {
    background: #293340;
    border-color: #293340;
    color: #fff;
    font-weight: 500;
}

.notice-subcat:hover:not(.active) {
    border-color: #293340;
    color: #293340;
}

/* ── 카드 분류 뱃지 ── */
.notice-card__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0ede6;
    color: #8a7350;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    align-self: flex-start;
}

/* ── 상세 페이지 ── */
.notice-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-view__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 2px solid #293340;
}

.notice-view__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: #293340;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    align-self: flex-start;
}

.notice-view__badge--press {
    background: #6b7280;
}

.notice-view__title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.notice-view__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notice-view__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #888;
}

.notice-view__thumb {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
    margin-top: 32px;
}

.notice-view__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notice-view__body {
    padding: 36px 0 40px;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
    word-break: keep-all;
}

/* 이전/다음 */
.notice-view__nav {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
}

.notice-view__nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: #333;
    border-top: 1px solid #e8e8e8;
    transition: background 0.15s;
}

.notice-view__nav-item--empty {
    font-size: 14px;
    color: #bbb;
    border-top: 1px solid #e8e8e8;
}

.notice-view__nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #293340;
    white-space: nowrap;
    min-width: 56px;
}

.notice-view__nav-title {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-view__nav-item:hover .notice-view__nav-title {
    color: #293340;
    text-decoration: underline;
}

/* 목록으로 */
.notice-view__footer {
    display: flex;
    justify-content: center;
    padding-top: 36px;
}

.notice-view__back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    background: #293340;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.notice-view__back-btn:hover {
    opacity: 0.85;
}

/* ── 모바일 반응형 ── */
@media (max-width: 1024px) {
    .notice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 768px) {
    .notice-content {
        padding: 48px 16px 64px;
    }

    .notice-content .inner-content {
        gap: 28px;
    }

    .notice-heading {
        font-size: 18px;
    }

    .notice-tab {
        font-size: 14px;
        padding: 7px 18px;
    }

    .notice-subcats {
        gap: 6px;
        margin-top: -6px;
    }

    .notice-subcat {
        font-size: 13px;
        padding: 5px 14px;
    }

    .notice-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-search {
        width: 100%;
    }

    .notice-search__input {
        flex: 1;
        width: auto;
    }

    .notice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .notice-card__title {
        font-size: 14px;
    }

    /* 상세 페이지 모바일 */
    .notice-view__title {
        font-size: 18px;
    }

    .notice-view__thumb {
        margin-top: 24px;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .notice-view__body {
        font-size: 15px;
        padding: 28px 0 32px;
    }

    .notice-view__nav-item {
        gap: 12px;
    }

    .notice-view__back-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .notice-grid {
        grid-template-columns: 1fr;
    }
}
