/* 공지사항 목록과 상세 페이지 공통 구성 */
.notice-page {
    color: #242522;
    background: #f3f1ec;
}

.notice-hero {
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    padding: calc(var(--header-height) + 70px) max(24px, 5vw) 80px;
    color: #fff;
    background: linear-gradient(105deg, rgba(20, 22, 20, 0.97), rgba(34, 37, 33, 0.78)), url("../images/installation-service.jpg") center 42% / cover;
}

.notice-hero > div,
.notice-index-inner,
.notice-detail {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.notice-hero .section-eyebrow {
    color: #c7b581;
}

.notice-hero h1 {
    margin: 0;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.notice-hero > div > p:last-child {
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.notice-index {
    padding: clamp(76px, 8vw, 125px) max(24px, 5vw);
}

.notice-index-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 38px;
    border-bottom: 1px solid #999991;
}

.notice-index-heading h2 {
    margin: 0;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -0.055em;
}

.notice-index-heading > p {
    margin: 0 0 7px;
    color: #777872;
    font-size: 11px;
}

.notice-index-heading > p strong {
    color: #a48950;
}

.notice-search {
    display: flex;
    justify-content: flex-end;
    margin: 32px 0 18px;
}

.notice-search label {
    width: min(390px, calc(100% - 78px));
}

.notice-search input {
    width: 100%;
    height: 48px;
    padding: 0 17px;
    border: 1px solid #d1cfc7;
    border-right: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.65);
    font: inherit;
    font-size: 12px;
}

.notice-search input:focus {
    border-color: #555650;
}

.notice-search button {
    width: 78px;
    border: 0;
    color: #fff;
    background: #222220;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.notice-index-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #b8b6ae;
    list-style: none;
}

.notice-index-list a {
    display: grid;
    grid-template-columns: 58px 90px minmax(0, 1fr) 110px 30px;
    gap: 20px;
    align-items: center;
    min-height: 112px;
    padding: 0 18px;
    border-bottom: 1px solid #cfcdc5;
    transition: padding 0.25s ease, background 0.25s ease;
}

.notice-index-list a:hover,
.notice-index-list a:focus-visible {
    padding-right: 28px;
    padding-left: 28px;
    background: rgba(255, 255, 255, 0.7);
}

.notice-index-number,
.notice-index-category,
.notice-index-list time {
    color: #858680;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.notice-index-category {
    color: #967d47;
}

.notice-index-list strong {
    font-size: clamp(16px, 1.35vw, 21px);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.notice-index-arrow {
    font-size: 18px;
    text-align: right;
}

.notice-pagination {
    display: flex;
    gap: 9px;
    justify-content: center;
    align-items: center;
    margin-top: 46px;
}

.notice-pagination button,
.notice-pagination strong {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid #cbc9c1;
    background: transparent;
    font-size: 11px;
    place-items: center;
}

.notice-pagination strong {
    color: #fff;
    border-color: #222220;
    background: #222220;
}

/* 공지사항 상세 본문 구성 */
.notice-detail {
    padding: calc(var(--header-height) + clamp(75px, 8vw, 125px)) max(24px, 5vw) clamp(85px, 9vw, 140px);
}

.notice-detail-header {
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 46px;
    border-bottom: 1px solid #97988f;
}

.notice-detail-header h1 {
    max-width: 1000px;
    margin: 0;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(42px, 5.7vw, 78px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.06em;
}

.notice-detail-header > div {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    color: #81827c;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.notice-detail-body {
    max-width: 920px;
    min-height: 480px;
    margin: 0 auto;
    padding: clamp(60px, 7vw, 105px) 0;
    color: #565752;
    font-size: 14px;
    line-height: 2;
}

.notice-detail-body p {
    margin: 0 0 30px;
}

.notice-detail-body .notice-detail-lead {
    margin-bottom: 48px;
    color: #272824;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(21px, 2.2vw, 30px);
    line-height: 1.6;
}

.notice-detail-navigation {
    max-width: 1120px;
    margin: 0 auto;
    border-top: 1px solid #aaa9a1;
}

.notice-detail-navigation a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 30px;
    gap: 20px;
    align-items: center;
    min-height: 88px;
    border-bottom: 1px solid #cfcdc5;
}

.notice-detail-navigation span {
    color: #8b8c86;
    font-size: 10px;
}

.notice-detail-navigation strong {
    font-size: 14px;
    font-weight: 500;
}

.notice-detail-navigation b {
    font-size: 16px;
    font-weight: 400;
    text-align: right;
}

.notice-list-button {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: center;
    width: 210px;
    height: 58px;
    margin: 50px auto 0;
    padding: 0 22px;
    color: #fff;
    background: #222220;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .notice-hero {
        min-height: 440px;
        padding-bottom: 60px;
    }

    .notice-index-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .notice-index-list a {
        grid-template-columns: 35px minmax(0, 1fr) 24px;
        gap: 12px;
        min-height: 94px;
        padding: 15px 5px;
    }

    .notice-index-category,
    .notice-index-list time {
        display: none;
    }

    .notice-detail-navigation a {
        grid-template-columns: 55px minmax(0, 1fr) 20px;
        gap: 10px;
    }
}
