
:root {
    --navy: #17263D;
    --ivory: #F5F2EB;
    --gold: #A58D68;
    --muted: #777D83;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    color: var(--navy);
    background: var(--ivory);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.notice-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER */

.notice-header {
    height: 82px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.notice-logo {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .08em;
}

.notice-logo span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
}

.notice-header nav {
    display: flex;
    gap: 30px;
}

.notice-header nav a {
    font-size: 12px;
    letter-spacing: .1em;
}

.notice-header nav .active {
    color: var(--gold);
}

/* HERO */

.notice-hero {
    background: var(--navy);
    color: white;
    padding: 100px 0 105px;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
}

.notice-hero h1 {
    margin: 20px 0;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 500;
    letter-spacing: -.045em;
}

.hero-description {
    font-size: 15px;
    line-height: 1.9;
    color: #D8DCE2;
}

/* CONTENT */

.notice-content {
    padding: 90px 0 110px;
}

.notice-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 38px;
}

.notice-section-heading h2 {
    margin: 12px 0 0;
    font-size: 30px;
    font-weight: 500;
}

.notice-section-heading > p {
    font-size: 13px;
    color: var(--muted);
}

/* FILTER */

.notice-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-btn {
    border: 1px solid #D6D4CE;
    border-radius: 30px;
    padding: 11px 23px;
    background: transparent;
    color: var(--navy);
    font-size: 11px;
    letter-spacing: .08em;
    cursor: pointer;
    transition: .2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

/* CARDS */

.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.notice-card {
    display: block;
    min-width: 0;
    background: #fff;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(23,38,61,.08);
}

.notice-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #E8E7E1;
}

.notice-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.notice-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #E9E7DF, #D8DED8);
}

.notice-image-placeholder span {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: .12em;
    color: #64717A;
}

.notice-image-placeholder small {
    font-size: 10px;
    letter-spacing: .22em;
    color: #87918F;
}

/* 카드 하단 텍스트 영역 */
.notice-card-body {
    padding: 16px 4px 12px;
}

.notice-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .13em;
}

/* 게시글 제목 */
.notice-card-body h3 {
    margin: 9px 0 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* 게시일 및 하단 정보 */
.notice-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #EEECE7;
    color: #92969A;
    font-size: 11px;
}

.notice-card-bottom span {
    font-size: 18px;
    color: var(--navy);
}

.notice-empty {
    padding: 60px 0;
    text-align: center;
    color: var(--muted);
}

.notice-back {
    margin-top: 65px;
    text-align: center;
}

.notice-back a {
    font-size: 12px;
    letter-spacing: .1em;
}


/* RESPONSIVE */

@media (max-width: 900px) {
    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .notice-header {
        height: 70px;
        padding: 0 20px;
    }

    .notice-logo {
        font-size: 22px;
    }

    .notice-logo span {
        font-size: 9px;
    }

    .notice-hero {
        padding: 75px 0;
    }

    .notice-content {
        padding: 60px 0 80px;
    }

    .notice-container {
        padding: 0 20px;
    }

    .notice-section-heading {
        display: block;
    }

    .notice-section-heading h2 {
        font-size: 24px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .notice-card-body {
        padding: 22px;
    }
}

.notice-card[hidden],
.notice-empty[hidden] {
    display: none !important;
}


/* NOTICE DETAIL */

.notice-detail {
    background: #FFFFFF;
}

.notice-detail-header {
    padding: 55px 60px 40px;
    border-bottom: 1px solid #E8E6E0;
}

.notice-detail-header h2 {
    margin: 16px 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.5;
}

.notice-detail-header time {
    font-size: 12px;
    color: #92969A;
}

.notice-detail-body {
    min-height: 280px;
    padding: 60px;
}

.notice-detail-body p {
    font-size: 15px;
    line-height: 2;
    color: #454F59;
    white-space: pre-line;
}

.notice-detail-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 35px;
}

.notice-detail-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.notice-detail-navigation > a,
.notice-detail-navigation > span {
    flex: 1;
    font-size: 12px;
}

.notice-detail-navigation > :last-child {
    text-align: right;
}

.notice-detail-navigation .notice-list-button {
    flex: 0 0 auto;
    padding: 13px 28px;
    background: var(--navy);
    color: #FFFFFF;
    text-align: center;
}

@media (max-width: 600px) {
    .notice-detail-header {
        padding: 35px 25px;
    }

    .notice-detail-body {
        padding: 35px 25px;
        min-height: 200px;
    }

    .notice-detail-navigation {
        gap: 8px;
    }

    .notice-detail-navigation .notice-list-button {
        padding: 12px 15px;
    }
}


/* =========================================
   NOTICE LIST — 4 COLUMN CARD DESIGN
========================================= */

/* PC: 한 줄에 4개 */
.notice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 22px;
}

/* 흰색 카드 배경 제거 */
.notice-card {
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

/* 카드 호버 효과 간소화 */
.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

/* 대표 이미지 1:1 */
.notice-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* 이미지 확대 효과 */
.notice-card-image img {
    transition: transform .35s ease;
}

.notice-card:hover .notice-card-image img {
    transform: scale(1.025);
}

/* 이미지 아래 텍스트 */
.notice-card-body {
    padding: 13px 0 0;
}

/* 카테고리 + 게시일 한 줄 */
.notice-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notice-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .1em;
}

.notice-date {
    font-size: 10px;
    color: #92969A;
    white-space: nowrap;
}

/* 제목 최대 2줄 */
.notice-card-body h3 {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 태블릿 */
@media (max-width: 1024px) {
    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }
}

/* 모바일 */
@media (max-width: 600px) {
    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .notice-card-body {
        padding-top: 10px;
    }

    .notice-card-body h3 {
        font-size: 13px;
    }

    .notice-category,
    .notice-date {
        font-size: 9px;
    }
}


/* =========================================
   NOTICE — 게시 종료 오버레이
========================================= */

.notice-card-image {
    position: relative;
}

/* 종료된 게시글 이미지 오버레이 */
.notice-expired-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(10, 18, 28, 0.68);
    color: #FFFFFF;

    pointer-events: none;
}

/* 자물쇠 아이콘 + 종료 안내 */
.notice-expired-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #FFFFFF;
    text-align: center;
}

.notice-expired-lock {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

.notice-expired-content span {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}



/* =========================================
   NOTICE DETAIL — 전체 콘텐츠 종료 오버레이
========================================= */

.notice-detail-body-wrapper {
    position: relative;
}

.notice-detail-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(225, 227, 230, 0.78);
}

.notice-detail-overlay-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 24px;
    color: #172B43;
    text-align: center;
}

.notice-detail-overlay-message strong {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.notice-detail-overlay-message svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 600px) {
    .notice-detail-overlay-message strong {
        font-size: 15px;
    }
}


/* 공지사항 상세 이미지 여러 장 */

.notice-detail-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.notice-detail-images img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
