.sec-01-sec {
    padding-top: 300px;
    padding-bottom: 50px;
    background: url("/image/site/notice_bg.png") no-repeat center top;
    background-size: contain;
    /* background-position: center center; */
}

/* 공지사항 게시판 스타일 */
.notice-board {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.notice-board-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
    background-color: #fff !important;
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: auto !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.notice-board-item:last-child {
    border-bottom: 2px solid #000 !important;
}

.notice-board-item.notice {
    background-color: #fff !important;
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
}

/* 배경색 레이어 */
.notice-board-item.notice::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    background-color: #fff3f3 !important;
    z-index: 0 !important;
    border-top: 1px solid #D5B0B0 !important;
    border-bottom: 1px solid #D5B0B0 !important;
}

.notice-board-item:not(.notice)::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    background-color: #f5f5f5 !important;
    z-index: 0 !important;
    border-top: 1px solid #C7C7C7 !important;
    border-bottom: 1px solid #C7C7C7 !important;
}

/* 양옆 두루마리 디자인 (CSS) */
.notice-board-item .scroll-left,
.notice-board-item .scroll-right {
    position: absolute !important;
    top: -5px !important;
    width: 18px !important;
    height: calc(100% + 10px) !important;
    background-color: #dcdcdc !important;
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    z-index: 2 !important;
}

.notice-board-item .scroll-left {
    left: -5px !important;
}

.notice-board-item .scroll-right {
    right: -5px !important;
}

.notice-board-item.notice .scroll-left,
.notice-board-item.notice .scroll-right {
    background-color: #f7c7c7 !important;
}

.notice-board-item-text {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    flex-wrap: wrap !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    padding: 12px 25px !important;
    box-sizing: border-box !important;
    min-height: 60px !important;
}

.notice-board-item-text p {
    font-size: 18px !important;
    color: #333 !important;
    font-family: "Godo B" !important;
    margin: 0 !important;
    flex: 1 !important;
    line-height: 1.6 !important;
    min-height: calc(1.6em * 1) !important;
    max-height: calc(1.6em * 2) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

.notice-board-item.notice .notice-board-item-text p {
    color: #000 !important;
    font-weight: 600 !important;
}

.notice-board-writer {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.notice-board-writer img {
    display: block !important;
}

.notice-board-date {
    font-size: 16px !important;
    color: #B0ADAD !important;
    font-family: "Godo B" !important;
}

.notice-board-date p {
    margin: 0 !important;
    font-size: 16px !important;
    color: #B0ADAD !important;
}

.notice-board-item.notice .notice-board-date {
    color: #C79595 !important;
}

.notice-board-item.notice .notice-board-date p {
    color: #C79595 !important;
}

/* 공지사항 팝업 스타일 */
.notice-popup-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    /* 세련된 스크롤바 디자인 */
    scrollbar-width: thin !important; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important; /* Firefox */
    -ms-overflow-style: auto !important; /* IE and Edge */
}

/* Chrome, Safari, Opera - 오버레이 세련된 스크롤바 스타일 */
.notice-popup-overlay::-webkit-scrollbar {
    width: 8px !important;
}

.notice-popup-overlay::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 10px !important;
}

.notice-popup-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    transition: background 0.3s ease !important;
}

.notice-popup-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.notice-popup-overlay::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.7) !important;
}

.notice-popup-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.notice-popup-content {
    background-color: #fff !important;
    border-radius: 8px !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    padding: 0 10px 20px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.notice-popup-header {
    padding: 0 !important;
    border-bottom: none !important;
    position: sticky !important;
    top: 25px !important;
    z-index: 5 !important;
    background-color: #fff !important;
}

.notice-popup-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
    background-color: #fff !important;
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
    position: relative !important;
    min-height: 80px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.notice-popup-item.notice {
    background-color: #fff !important;
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
}

/* 팝업 배경색 레이어 */
.notice-popup-item.notice::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    background-color: #fff3f3 !important;
    z-index: 0 !important;
    border-top: 1px solid #D5B0B0 !important;
    border-bottom: 1px solid #D5B0B0 !important;
}

.notice-popup-item:not(.notice)::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    background-color: #f5f5f5 !important;
    z-index: 0 !important;
    border-top: 1px solid #C7C7C7 !important;
    border-bottom: 1px solid #C7C7C7 !important;
}

.notice-popup-item-text {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.notice-popup-item-text p {
    font-size: 18px !important;
    color: #333 !important;
    font-family: "Godo B" !important;
    margin: 0 !important;
    flex: 1 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.notice-popup-item.notice .notice-popup-item-text p {
    color: #000 !important;
}

.notice-popup-writer {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

.notice-popup-writer img {
    display: block !important;
}

.notice-popup-date {
    font-size: 16px !important;
    color: #B0ADAD !important;
    font-family: "Godo B" !important;
}

.notice-popup-date p {
    margin: 0 !important;
    font-size: 16px !important;
    color: #B0ADAD !important;
}

.notice-popup-item.notice .notice-popup-date {
    color: #C79595 !important;
}

.notice-popup-item.notice .notice-popup-date p {
    color: #C79595 !important;
}

.notice-popup-body {
    padding: 40px 10px !important;
    min-height: 200px !important;
    position: relative !important;
    z-index: 1 !important;
    overflow-y: auto !important;
    flex: 1 !important;
    /* 세련된 스크롤바 디자인 */
    scrollbar-width: thin !important; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent !important; /* Firefox */
    -ms-overflow-style: auto !important; /* IE and Edge */
}

/* Chrome, Safari, Opera - 세련된 스크롤바 스타일 */
.notice-popup-body::-webkit-scrollbar {
    width: 8px !important;
}

.notice-popup-body::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 10px !important;
}

.notice-popup-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
    transition: background 0.3s ease !important;
}

.notice-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4) !important;
}

.notice-popup-body::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.5) !important;
}

.notice-popup-body #noticePopupContent {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    font-family: "Godo", sans-serif !important;
}

/* 태그 스타일 초기화 - 등록된 그대로 보여주기 */
.notice-popup-body #noticePopupContent * {
    /* margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    vertical-align: baseline !important; */
}

/* 기본 태그 스타일 유지 */
.notice-popup-body #noticePopupContent p {
    margin-bottom: 1em !important;
    display: block !important;
}

.notice-popup-body #noticePopupContent h1,
.notice-popup-body #noticePopupContent h2,
.notice-popup-body #noticePopupContent h3,
.notice-popup-body #noticePopupContent h4,
.notice-popup-body #noticePopupContent h5,
.notice-popup-body #noticePopupContent h6 {
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
    display: block !important;
}

.notice-popup-body #noticePopupContent h1 { font-size: 2em !important; }
.notice-popup-body #noticePopupContent h2 { font-size: 1.5em !important; }
.notice-popup-body #noticePopupContent h3 { font-size: 1.17em !important; }
.notice-popup-body #noticePopupContent h4 { font-size: 1em !important; }
.notice-popup-body #noticePopupContent h5 { font-size: 0.83em !important; }
.notice-popup-body #noticePopupContent h6 { font-size: 0.67em !important; }

.notice-popup-body #noticePopupContent strong,
.notice-popup-body #noticePopupContent b {
    font-weight: bold !important;
}

.notice-popup-body #noticePopupContent em,
.notice-popup-body #noticePopupContent i {
    font-style: italic !important;
}

.notice-popup-body #noticePopupContent u {
    text-decoration: underline !important;
}

.notice-popup-body #noticePopupContent ul,
.notice-popup-body #noticePopupContent ol {
    margin-left: 2em !important;
    margin-bottom: 1em !important;
    display: block !important;
    list-style-position: outside !important;
}

.notice-popup-body #noticePopupContent ul {
    list-style-type: disc !important;
}

.notice-popup-body #noticePopupContent ol {
    list-style-type: decimal !important;
}

.notice-popup-body #noticePopupContent li {
    display: list-item !important;
    margin-bottom: 0.5em !important;
}

.notice-popup-body #noticePopupContent a {
    color: inherit !important;
    text-decoration: underline !important;
}

.notice-popup-body #noticePopupContent blockquote {
    margin: 1em 2em !important;
    padding-left: 1em !important;
    border-left: 3px solid #ccc !important;
    display: block !important;
}

.notice-popup-body #noticePopupContent code {
    font-family: monospace !important;
    background: #f5f5f5 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    display: inline !important;
}

.notice-popup-body #noticePopupContent pre {
    font-family: monospace !important;
    background: #f5f5f5 !important;
    padding: 1em !important;
    border-radius: 4px !important;
    overflow-x: auto !important;
    display: block !important;
    margin-bottom: 1em !important;
}

.notice-popup-body #noticePopupContent table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 1em !important;
    display: table !important;
}

.notice-popup-body #noticePopupContent th,
.notice-popup-body #noticePopupContent td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
    display: table-cell !important;
}

.notice-popup-body #noticePopupContent th {
    font-weight: bold !important;
    background: #f5f5f5 !important;
}

/* 팝업 내용 내 이미지 비율 맞추기 */
.notice-popup-body #noticePopupContent img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 10px auto !important;
}

.notice-popup-body #noticePopupContent iframe,
.notice-popup-body #noticePopupContent video,
.notice-popup-body #noticePopupContent embed,
.notice-popup-body #noticePopupContent object {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 10px auto !important;
}

.notice-popup-close {
    position: absolute !important;
    top: -25px !important;
    right: -3px !important;
    width: 20px !important;
    height: 20px !important;
    border: none !important;
    background: transparent !important;
    font-size: 28px !important;
    color: #000 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.notice-popup-close:hover {
    color: #333 !important;
    transform: scale(1.1) !important;
}

body.popup-open {
    overflow: hidden !important;
}

/* 페이징 스타일 */
.notice-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    flex-wrap: wrap !important;
}

.pagination-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-family: "Godo", sans-serif !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.pagination-btn:hover {
    background-color: #EF2E4F !important;
    color: #fff !important;
    border-color: #EF2E4F !important;
}

.pagination-btn.pagination-active {
    background-color: #EF2E4F !important;
    color: #fff !important;
    border-color: #EF2E4F !important;
    cursor: default !important;
    font-weight: 600 !important;
}

.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
    min-width: 60px !important;
    font-weight: 600 !important;
}

.pagination-ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    color: #999 !important;
    font-size: 14px !important;
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
    .reason-content-box {
        height:450px !important;
    }
    .sec-01-sec {
        padding-top:50px;
        padding-bottom:0;
    }
    section {
        min-height: auto;
    }
    .notice-board {
        padding: 40px 15px !important;
    }
    
    .notice-board-item {
        padding: 10px 0 !important;
    }
    
    .notice-board-item.notice::before,
    .notice-board-item:not(.notice)::before {
        top: 10px !important;
        bottom: 10px !important;
    }
    
    .notice-board-item-text {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 12px 10px !important;
        flex-wrap: wrap !important;
        min-height: 50px !important;
    }
    
    .notice-board-item-text p {
        font-size: 14px !important;
        flex: 1 !important;
        line-height: 1.6 !important;
        min-height: calc(1.6em * 1) !important;
        max-height: calc(1.6em * 2) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
        word-wrap: break-word !important;
        margin-right: 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
    
    .notice-board-writer {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .notice-board-writer img {
        display: none !important;
    }
    
    .notice-board-date {
        margin-left: auto !important;
        white-space: nowrap !important;
    }
    
    .notice-popup-content {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px 0;
    }
    
    .notice-popup-header {
        padding: 10px 0;
    }

    .notice-popup-body {
        padding: 40px 0 !important;
    }
    
    .notice-popup-item {
        padding: 10px 0 !important;
    }
    
    .notice-popup-item-text {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
        flex-wrap: nowrap !important;
    }
    
    .notice-popup-item-text p {
        font-size: 14px !important;
        flex: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-right: 10px !important;
    }
    
    .notice-popup-writer {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .notice-popup-writer img {
        display: none !important;
    }
    
    .notice-popup-date {
        margin-left: auto !important;
        white-space: nowrap !important;
    }
    
    .notice-popup-body #noticePopupContent {
        font-size: 14px !important;
    }
    
    .notice-pagination {
        gap: 6px !important;
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
    
    .pagination-btn {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
    
    .pagination-btn.pagination-prev,
    .pagination-btn.pagination-next {
        min-width: 50px !important;
        font-size: 12px !important;
    }
    
    .pagination-ellipsis {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }
    .reason-content-title h1 {
        margin-bottom: 0 !important;
    }
    .reason-content-img {
        margin: 0 !important;
    }
}
