@import "hero.css";

/* 공지사항 페이지 스타일 */

/* 메인 컨테이너 */
.notice-page {
    background-color: #ffffff;
    min-height: 100vh;
    width: 100%;
}

/* 헤더 섹션 */
.notice-header {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 60px 0 40px 0;
    position: relative;
    width: 100%;
}

.notice-header-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 100%;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* 공지사항 컨텐츠 섹션 */
.notice-content-section {
    padding: 0;
    position: relative;
    width: 100%;
}

.notice-content-inner {
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 0;
    position: relative;
    width: 100%;
}

/* 공지사항 컨트롤 영역 */
.notices-controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    width: 100%;
}

.notices-count {
    align-items: center;
    display: flex;
}

.count-text {
    color: #202020;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 30px;
}

.count-text mark {
    background-color: transparent;
    font-weight: 600;
}

.notices-search {
    align-items: center;
    display: flex;
}

.search-box {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 50px;
    display: flex;
    height: 48px;
    padding: 0 24px;
    position: relative;
    width: 285px;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--color-gray-01);
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 27px;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-gray-02);
}

.search-button {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    height: 24px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

/* 공지사항 리스트 */
.notices-list {
    margin-bottom: 60px;
    width: 100%;
}

.notices-table {
    border-radius: 0;
    border-top: 1px solid var(--color-gray-01);
    width: 100%;
}

.notice-item {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    min-height: 106px;
    padding: 20px 60px;
}

.notice-date-section {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    margin-right: 126px;
}

.notice-date {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 66px;
}

.date-year-month {
    color: #505050;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.008em;
    line-height: 24px;
    text-align: center;
}

.date-day {
    color: #0d0d0d;
    font-family: 'Pretendard', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 42px;
    text-align: center;
}

.notice-content {
    cursor: pointer;
    flex: 1;
}

.notice-content:hover {
    text-decoration: underline;
}

.notice-title {
    color: var(--color-gray-01);
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 30px;
    margin: 0;
}

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

.pagination-button {
    align-items: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--color-gray-02);
    cursor: pointer;
    display: flex;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    justify-content: center;
    letter-spacing: -0.008em;
    line-height: 24px;
    transition: background-color 0.3s ease;
}

.pagination-button.prev-button,
.pagination-button.next-button {
    gap: 8px;
    height: 40px;
    padding: 10px 16px;
}

.pagination-button.page-number {
    height: 40px;
    padding: 10px;
    width: 40px;
}

.pagination-button:hover {
    background-color: #f5f5f5;
}

.pagination-button.active {
    background-color: #f0f0f0;
}

/* 태블릿 반응형 */
@media (max-width: 1200px) {


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

    .notice-content-inner {
        padding: 60px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 72px;
    }

    .notices-controls {
        margin-bottom: 32px;
    }

    .count-text {
        font-size: 18px;
        line-height: 27px;
    }

    .search-box {
        height: 44px;
        padding: 0 20px;
        width: 260px;
    }

    .search-input {
        font-size: 15px;
        line-height: 25px;
    }

    .notice-item {
        min-height: 90px;
        padding: 16px 40px;
    }

    .notice-date-section {
        margin-right: 80px;
    }

    .date-year-month {
        font-size: 14px;
        line-height: 21px;
    }

    .date-day {
        font-size: 24px;
        line-height: 36px;
    }

    .notice-title {
        font-size: 18px;
        line-height: 27px;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .notice-header {
        padding: 20px 16px;
    }

    .notice-header-content {
        padding: 0;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.01em;
        line-height: 48px;
    }

    .notice-content-inner {
        padding: 0;
    }

    .notices-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 0;
        padding: 40px 16px;
        width: 100%;
    }

    .notices-search {
        order: 2;
        width: 100%;
    }

    .notices-count {
        order: 1;
    }

    .count-text {
        font-size: 14px;
        letter-spacing: -0.01em;
        line-height: 21px;
    }

    .search-box {
        height: 48px;
        padding: 0 24px;
        width: 100%;
    }

    .search-input {
        font-size: 14px;
        line-height: 27px;
    }

    .notices-list {
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .notices-table {
        border-radius: 0;
    }

    .notice-item {
        align-items: center;
        flex-direction: row;
        gap: 20px;
        padding: 20px 24px;
    }

    .notice-date-section {
        flex-shrink: 0;
        margin-right: 0;
        width: auto;
    }

    .notice-date {
        align-items: center;
        flex-direction: column;
        gap: 0;
        width: 66px;
    }

    .date-year-month {
        font-size: 14px;
        letter-spacing: -0.01em;
        line-height: 21px;
        text-align: center;
        white-space: nowrap;
    }

    .date-day {
        font-size: 20px;
        letter-spacing: -0.01em;
        line-height: 30px;
        text-align: center;
        white-space: nowrap;
    }

    .notice-content {
        width: 100%;
    }

    .notice-title {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: -0.01em;
        line-height: 24px;
    }

    .notices-pagination {
        gap: 10px;
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .pagination-button.prev-button,
    .pagination-button.next-button {
        height: 32px;
        padding: 8px 12px;
    }

    .pagination-button.page-number {
        height: 32px;
        width: 32px;
    }

    .pagination-button span {
        font-size: 14px;
    }

    .pagination-button {
        font-size: 14px;
        letter-spacing: -0.01em;
        line-height: 21px;
    }
}
