

/* ===============================
   Page Header (브레드크럼브 & 상단 타이틀)
   =============================== */
.page-header {
    padding-top: 6rem;
}
.page-header .wrapper {
    padding: 4rem 2rem 0 2rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.breadcrumb .icon-home {
    width: 1.4rem;
    height: 1.4rem;
    stroke: #333333;
    stroke-width: 2;
    margin-bottom: -0.2rem;
}
.breadcrumb-parent-menu,
.breadcrumb-main-menu {
    position: relative;
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding-left: 2rem;
    font-weight: 600;
}
.breadcrumb-parent-menu:before,
.breadcrumb-main-menu:before {
    content: '';
    display: block;
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    background-color: #333333;
    border-radius: 50%;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
}
.breadcrumb-main-menu {
    background: linear-gradient(45deg, #4871e5, #00baba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-title {
    font-size: 2.4rem;
    line-height: 3.4rem;
    font-weight: 700;
    margin-bottom: 3.2rem;
}
.page-thumbnail {
    height: 24rem;
    width: 100%;
    background-image: url(../../../assets/images/notice/bg_topBanner.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* ===============================
   section-board
   =============================== */
.section-board .wrapper {
    padding: 6rem 4rem 8rem 4rem;
}
.board-top {
    position: relative;
    padding-bottom: 3rem;
}
.board-top::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 0.2rem;
    background-color: #333333;
    bottom: 0;
    left: 0;
}

/* 카테고리 그룹 */
.category-btn-group-wrapper {
    position: relative; /* after를 고정하기 위한 부모 */
    overflow: hidden; /* 넘치는 것 숨김 */
}
.category-btn-group {
    width: fit-content;
    display: flex;
    flex-wrap: nowrap; /* 줄바꿈 없이 */
    overflow-x: auto;  /* 가로 스크롤 활성화 */
    -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
    margin-bottom: 1.6rem;
}

/* 스크롤바 없애기 (투명하게) */
.category-btn-group::-webkit-scrollbar {
    display: none;
}

/* 고정된 오른쪽 그라데이션 */
.category-btn-group-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgb(255, 255, 255), rgba(255, 255, 255, 0));
    z-index: 99;
}
.category-btn {
    flex-shrink: 0; /* 버튼 너비가 줄어들지 않게! */
    background-color: transparent;
    color: #888888;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}
.category-btn.active {
    background-color: #f0f5ff;
    color: #4871e5;
}

/* 검색 창 */
.search-form {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 50px;
    padding: 0.8rem 2rem;
}
.search-form .search-input {
    font-size: 1.5rem;
    display: block;
}
.search-form .search-btn {
    position: absolute;
    right: 2rem;
    top: 55%;
    transform: translateY(-50%);
}
.search-form .icon-search {
    width: 2rem;
    height: 2rem;
    stroke: #333333;
    stroke-width: 2;
}

/* 게시물 미리보기 */
.board-item {
    position: relative;
    margin-top: 2.8rem;
    padding-bottom: 3rem;
}
.board-item::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 0.2rem;
    background-color: #eeeeee;
    left: 0;
    bottom: 0;
}
.thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 16rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}
.thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}
.content .category {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4871e5;
    margin-bottom: 0.4rem;
}
.content .title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    white-space: nowrap; /* 줄바꿈 하지 말고 */
    overflow: hidden; /* 넘치는 텍스트 숨기고 */
    text-overflow: ellipsis; /* 넘치면 ... 으로 표시 */
    margin-bottom: 1.2rem;
}
.content .preview {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* 최대 줄 수: 3줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1.8rem;
}
.content .date {
    font-size: 1.5rem;
    font-weight: 600;
    color: #888888;
}

/* 게시글이 없습니다. */
.empty-message {
    font-size: 1.6rem;
    text-align: center;
    padding-top: 6rem;
    font-weight: 500;
    color: #333333;
}

/* pagination */
.pagination {
    padding: 4rem 0 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.page-btn.num-btn {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333333;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}
.pagination .page-btn.active {
    color: #ffffff;
    background-color: #4871e5;
}
.pagination .icon-prev {
    margin-top: 0.5rem;
    stroke: #333333;
    stroke-width: 2;
    margin-right: 0.8rem;
}
.pagination .icon-next {
    margin-top: 0.5rem;
    stroke: #333333;
    stroke-width: 2;
    margin-left: 0.8rem;
}

/* ===============================
   notice-detail 게시글 상세 페이지
   =============================== */
.section-notice-detail .wrapper {
    padding: 0 4rem 8rem 4rem;
}
.notice-detail-header {
    text-align: center;
    border-top: 2px solid #333333;
    border-bottom: 2px solid #eeeeee;
    padding: 2rem 0;
}
/* 제목 */
.notice-detail-category {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4871e5;
    margin-bottom: 0.4rem;
}
.notice-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1.2rem;
}
.notice-detail-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: #888888;
}
/* 게시글 상세 내용 */
.notice-detail-content {
    padding: 4rem 0 0 0;
}
.notice-detail-thumbnail {
    margin: 0 auto 4rem;
    width: fit-content;
}
.notice-detail-thumbnail img {

}
.notice-detail-body {
    font-size: 1.6rem;
    line-height: 2.4rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 3.4rem;
}
.notice-detail-attachment {
    background-color: #f5f5f5;
    padding: 0.8rem 1.6rem;
    margin-bottom: 8rem;
}
.notice-detail-attachment a {
    width: 100%;
    height: 100%;
    display: flex;
    font-size: 1.5rem;
    font-weight: 500;
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    gap: 1rem;
}
.notice-detail-attachment a:hover {
    text-decoration: underline;
}
.attachment-icon {
    stroke: #333333;
    stroke-width: 2;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.4rem;
}
.attachment-name {
    display: block;
}
/* 이전글/현재글/다음글 링크 버튼 */
.notice-detail-navigation {
    background-color: #f5f5f5;
    padding: 2.8rem 0;
}
.navigation-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1.6rem;
    margin-bottom: 1.2rem;
}
.navigation-button-prev,
.navigation-button-current,
.navigation-button-next {
    background-color: #ffffff;
    height: 6rem;
    border-radius: 0.8rem;
    border: 2px solid #eeeeee;
    flex: 1;
    font-size: 1.5rem;
    font-weight: 500;
    color: #777777;
}
.navigation-button-current {
    border: 2px solid #4871e5;
}
.navigation-button-prev a,
.navigation-button-current a,
.navigation-button-next a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.nav-detail-prev,
.nav-detail-next {
    stroke: #777777;
    stroke-width: 2;
    width: 1.6rem;
    height: 1.6rem;
}
.nav-detail-prev {
    margin-right: 0.6rem;
}
.nav-detail-next {
    margin-left: 0.6rem;
}
.nav-meta {
    display: none;
}
/* 목록 버튼 */
.notice-detail-back-to-list {
    width: fit-content;
    margin-left: auto;
    padding-right: 1.6rem;
}
.notice-detail-back-to-list a {
    margin-left: auto;
    display: block;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-detail-back {
    stroke: #333333;
    stroke-width: 2;
    width: 2rem;
    height: 2rem;
}
.notice-detail-back-to-list span {
    font-size: 1.6rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

/* ===============================
   Responsive
   =============================== */
@media (min-width: 480px) {

}
@media (min-width: 768px) {
    .page-header .wrapper {
        padding: 5rem 4rem 0 4rem;
    }
    .breadcrumb {
        margin-bottom: 1.2rem;
    }
    .breadcrumb .icon-home {
        width: 1.6rem;
        height: 1.6rem;
    }
    .breadcrumb-parent-menu,
    .breadcrumb-main-menu {
        font-size: 1.6rem;
        line-height: 1.6rem;
        padding-left: 2.4rem;
    }
    .page-title {
        font-size: 2.8rem;
        line-height: 3.8rem;
        margin-bottom: 3.8rem;
    }
    .page-thumbnail {
        height: 28rem;
    }

    .section-board .wrapper {
        padding: 6.8rem 4rem 9.2rem 4rem;
    }

    .empty-message {
        padding-top: 6.8rem;
    }

    /* ===============================
       notice-detail 게시글 상세 페이지
       =============================== */
    .section-notice-detail .wrapper {
        padding: 2rem 4rem 9.2rem 4rem;
    }

    .notice-detail-title {
        padding: 0 6rem;
    }

    .notice-detail-content {
        padding: 4rem 6rem 0 6rem;
    }

    .notice-detail-navigation {
        margin: 0 6rem;
    }
    .navigation-button {
        gap: 1.2rem;
        padding: 0 2.4rem;
    }
}

@media (min-width: 1024px) {
    .page-header {
        padding-top: 8rem;
    }
    .page-header .wrapper {
        padding: 6rem 4rem 0 4rem;
    }
    .breadcrumb {
        margin-bottom: 1.6rem;
    }
    .page-title {
        font-size: 3.6rem;
        line-height: 4.6rem;
        margin-bottom: 6rem;
    }
    .page-thumbnail {
        height: 36rem;
    }

    .section-board .wrapper {
        padding: 11rem 4rem 13rem 4rem;
    }
    .board-top {
        padding-bottom: 4.4rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .category-btn-group-wrapper::after {
        display: none;
    }
    .category-btn-group {
        margin-bottom: unset;
    }
    .category-btn {
        font-size: 1.9rem;
        padding: 1rem 2rem;
    }
    .search-form {
        width: 38rem;
        padding: 1.2rem 2.4rem;
    }
    .search-form .search-input {
        font-size: 1.7rem;
    }

    .board-item {
        margin-top: 4.2rem;
        padding-bottom: 4.4rem;
    }
    .board-item a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }

    .thumbnail {
        width: 34%;
        height: 20rem;
        margin-bottom: unset;
    }

    .content {
        width: 66%;
        margin-bottom: unset;
    }
    .content .category {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    .content .title {
        font-size: 2.6rem;
        margin-bottom: 1.8rem;
    }
    .content .preview {
        font-size: 1.8rem;
        line-height: 2.6rem;
        margin-bottom: 2.4rem;
    }
    .content .date {
        font-size: 1.7rem;
    }

    .empty-message {
        font-size: 1.8rem;
        padding-top: 11rem;
    }

    .pagination {
        padding: 6rem 0 0 0;
    }
    .page-btn.num-btn {
        font-size: 1.8rem;
        width: 5rem;
        height: 5rem;
    }

    .nav-meta {
        display: block;
    }

    /* ===============================
       notice-detail 게시글 상세 페이지
       =============================== */
    .section-notice-detail .wrapper {
        padding: 4rem 4rem 13rem 4rem;
    }
    .notice-detail-header {
        padding: 4rem 0;
    }

    .notice-detail-category {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    .notice-detail-title {
        font-size: 2.6rem;
        margin-bottom: 1.8rem;
    }
    .notice-detail-date {
        font-size: 1.7rem;
    }

    .notice-detail-content {
        padding: 8rem 6rem 0 6rem;
    }
    .notice-detail-thumbnail {
        margin: 0 auto 6rem;
    }
    .notice-detail-body {
        font-size: 1.8rem;
        line-height: 2.6rem;
        margin-bottom: 6rem;
    }
    .notice-detail-attachment {
        padding: 1.2rem 2.8rem;
        margin-bottom: 8rem;
    }
    .notice-detail-attachment a {
        font-size: 1.7rem;
        gap: 1.2rem;
    }
    .attachment-icon {
        width: 1.8rem;
        height: 1.8rem;
        margin-top: 0.5rem;
    }

    .notice-detail-navigation {
        padding: 4rem 0;
    }
    .notice-detail-back-to-list {
        padding: 0 2.8rem;
    }
    .nav-label {
        display: block;
        margin-bottom: 1rem;
    }
    .navigation-button {
        align-items: stretch;
        padding: 0 2.8rem;
        gap: 1.6rem;
        margin-bottom: 1.6rem;
    }
    .navigation-button-prev,
    .navigation-button-current,
    .navigation-button-next {
        display: flex;
        flex-direction: column;  /* 내부 요소들을 세로로 쌓기 */
        justify-content: flex-start;  /* ✅ 맨 위 정렬 */
        height: auto;
        padding: 2rem 2.4rem;
        font-size: 1.6rem;
    }
    .navigation-button-prev a,
    .navigation-button-current a,
    .navigation-button-next a {
        display: block;
    }
    .nav-detail-prev,
    .nav-detail-next {
        display: none;
    }
    .nav-category {
        color: #4871e5;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }
    .nav-title {
        color: #333333;
        font-size: 2rem;
        font-weight: 600;
        line-height: 2.6rem;
        margin-bottom: 1rem;
    }
    .nav-date {
        font-size: 1.6rem;
        font-weight: 600;
        color: #888888;
    }
}

@media (min-width: 1280px) {
    .page-header .wrapper {
        max-width: 1320px;
        margin: 0 auto;
    }
    .page-title {
        font-size: 3.8rem;
        line-height: 4.8rem;
        margin-bottom: 7rem;
    }

    .section-board .wrapper {
        padding: 12rem 4rem 14rem 4rem;
        max-width: 1320px;
        margin: 0 auto;
    }

    .category-btn-group {
        gap: 2rem;
    }

    .search-form {
        width: 46rem;
    }

    .board-item a {
        gap: 6rem;
    }

    .empty-message {
        padding-top: 12rem;
    }

    /* ===============================
       notice-detail 게시글 상세 페이지
       =============================== */
    .section-notice-detail .wrapper {
        padding: 4rem 4rem 14rem 4rem;
        max-width: 1320px;
        margin: 0 auto;
    }
    .notice-detail-thumbnail {
        padding: 0 10rem;
    }
    .notice-detail-body {
        padding: 0 10rem;
    }

}