

/* 공지사항 start */
.notice-title-header h2{
    padding: 24px 10px 18px 10px;
    font-size: 26px;
    border-bottom: 1px solid #DDDDDD;
    font-weight: bold;
    color: #222222;
}

.notice-contents {
    display: block;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;

}

/* 전체 게시물 제목 */
.count-title-wrap{
    display: flex;
    align-items: center;
    font-size: 18px;
}

.count-title-wrap h4 , .count-number{
    font-size: 18px;
    color: #666666;
    padding-right: 4px;
}

.count-title-wrap .total-number{
    color: #222222;
    font-weight: 700;
}

/* search-content 영역 */
.search-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    font-size: 20px;
    padding: 0 10px;
}

/* search form style */
.search-form{
    display: flex;
    justify-content: center;
    align-items: unset;
    gap: 8px;
    font-size: initial;
}

.select-form{
    -webkit-appearance: none;  /* 크롬 화살표 없애기 */
    -moz-appearance: none; /* 파이어폭스 화살표 없애기 */
    width: 100px;
}

.select-search{
    appearance:none;
    background:url('../images/arrow-img.png') no-repeat 90% 50%/11px auto;
    width: 100%;
    text-align: left;
}

.select-search:focus{
    border: 1px solid #555; /* 진한 회색 */
    color: #222222;
    outline: none;
}

.select-search , .keyword-search {
    border: 1px solid #DDDDDD;
    border-radius: 8px;
}

.search-label{
    display: flex;
    font-size: initial;
    padding: initial;
}

#search_box select{
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
}

#search_box input {
    margin-right: 6px;
    padding: 8px;
    font-size: 14px;
}

#search_box button.search-btn {
    padding: 0 14px;
    background-color: #222222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

#search_box button.search-btn:hover{
    background-color: black;
}


/* table 영역*/
.notice-table{
    margin: 20px 0;
    padding: 0 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

table th, table td {
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 15px 0;
}

table th{
    background-color: #FAFAFA;
    border-top: 3px solid #E0342F;
    font-weight: bold;
}

/* 공지사항 제목 */
.n-title {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 말줄임표(...) 추가 */
    text-align: left;
}

/* 제목 밑에 텍스트 */
.n-title .notice-title {
    position: relative;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.n-title .notice-title img {
    position: absolute;
    right: 0;
}

/* ✅ 제목과 아이콘 컨테이너 정렬 */
/* body 태그에 관리자페이지 admin-page라고 클래스 부여!*/
.admin-page .n-title .notice-title {
    padding-right: 80px; /* 기존보다 줄여서 여백 조정 */
    position: relative;
}

/* ✅ 아이콘 컨테이너 정렬 */
.admin-page .n-title .notice-title .icon-container {
    display: flex;
    align-items: center;
    gap: 12px; /* 아이콘 간격 조정 */
    margin-left: auto; /* 오른쪽 정렬 */
    min-width: 50px; /* 최소 크기 설정 */
    justify-content: end;
    position: absolute;
    top: 0;
    right:0;
}

/* ✅ 개별 아이콘 스타일 */
.admin-page .n-title .notice-title .icon-container img {
    width: 16px;
    height: 16px;
    cursor: pointer;
    position: static; /* ✅ absolute 해제하여 겹치는 문제 해결 */
}

table td a:hover {
    text-decoration: underline;
}

.notice-number, .notice-date , .notice-views {
    width: 100px;
}

.notice-writer{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
}


/* 공지사항 상세보기 페이지 스타일링 */
.view-contents , .notice-container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.view-content-group{
    margin: 0 10px;
}

.view-title-header h2 {
    font-size: 26px;
    padding: 30px 0 18px 0;
    border-bottom: 2px solid #DDDDDD;
    font-weight: 600;
    color: #222222;
}

.view-title {
    padding : 30px 0 14px 0;
    font-size: 18px;
    color: #444444;
    font-weight: 700;
    line-height: 1.4;
}

.view-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAFAFA;
    border-top: 3px solid #222222;
    border-bottom: 1px solid #DDDDDD;
    padding: 20px 10px;
    font-size: clamp(14px, 2vw, 16px);
    color: #444444;
}

.admin{
    font-weight: 700;
}

.notice-v-c{
    display: flex;
    align-items: center;
    gap: 20px;
}

.view{
    font-weight: 700;
    color: #444444;
}

.view-file {
    display :flex;
    align-items: start;
    border-bottom: 1px solid #DDDDDD;
    font-size: clamp(14px, 2vw, 16px);
    color: #444444;
    font-weight: 600;
    padding: 20px 10px;
    gap: 20px;
}

.file-title{
    cursor: pointer;
    line-height: 1.1;
}

/* 01.09 추가 첨부파일 */
.file-label{
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    line-height: 1.1;
}

.view-file ul{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

.view-file li {
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    justify-content: flex-start;
    align-items: start;
}

.view-file li a{
    line-height: 1.1;
    color: #444444;
}

.view-file img{
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.cur-page-btn {
    color: red;
}

/* 추가 끝*/

/* 조회수 , 작성일 */
.notice-v-c {
    display: flex;
    gap : 30px;
}

/* 공지사항 세부 내용 */
.text-content-wrap {
    padding: 40px 10px;
    /*border-bottom: 1px solid #DDDDDD;*/
    font-size: 16px;
    color: #444444;
    /*max-height: 240px;*/
    width: 100%;
    line-height: 1.2;
}

.text-content-wrap p{
    width: 100%;
    max-width: 100%; /* 부모 요소의 너비를 따름 */
    white-space: normal; /* 줄바꿈 허용 */
}

.view-btn-group{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10px;
    border-bottom: 1px solid #DDDDDD;
}

.back-btn , .modify-btn {
    border: 1px solid #DDDDDD;
    padding: 8px;
    text-decoration: underline;
    color: #222222;
}

#delete-btn{
    margin-right: 6px;
}

.notice-btn{
    font-size: clamp(12px, 2vw, 16px);
}

/* 이전글 , 다음글 */
.notice-list-group {
    display: block;
    align-items: center;
    margin-bottom: 50px;
}

.notice-list-group .previous-notice,
.notice-list-group .next-notice {
    display: inline-flex;
    border-bottom: 1px solid #DDDDDD;
    font-size: clamp(14px, 2vw, 16px);
    padding: 20px 10px;
    justify-content: flex-start;
    align-items: center;
    color: #222222;
    width: 100%;
}

.previous-title{
    flex-grow: 1;
}

.previous-text, .next-text {
    padding-right: 20px;
}
/*view end*/


/* write start */

.write-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.write-contents {
    display: block;
    align-items: center;
    padding: 0 150px;
    width: 100vw;
}

.write-title-header h3 {
    padding-top: 30px;
    padding-bottom: 20px;
    font-size: 30px;
    border-bottom: 2px solid #DDDDDD;
}

#noticeForm {
    display: flex;
    flex-direction: column;
    width: 60%;
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.noticeType-group label {
    padding-right : 2vw;
}

.custom-form select,
.custom-form input,
.custom-form button{
    all: unset;
}


#title,
#writer,
#content,
#files,
#register-content{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: none;
    font-size: 14px;
}

input[type="radio"] {
    margin-right: 5px;
}

.btn-group {
    display: flex;
    justify-content: right;
    gap: 10px; /* 버튼 간격 설정 */
}

#submitNotice,
.cancel-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    text-decoration: none; /* 링크의 밑줄 제거 */
    cursor: pointer;
}

#submitNotice {
    background-color: #007BFF; /* 파란색 */
    color: white;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#submitNotice:hover {
    background-color: #0056b3; /* 더 진한 파란색 */
    transform: scale(1.05); /* 살짝 확대 */
}

.cancel-btn {
    background-color: #f44336;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cancel-btn:hover {
    background-color: #c0392b; /* 더 진한 빨간색 */
    transform: scale(1.05); /* 살짝 확대 */
}
/* write end */


/* modify(공지사항 수정하기) start*/
.modify-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modify-contents {
    display: block;
    align-items: center;
    padding: 0 150px;
}

.modify-title-header h3 {
    padding-top: 30px;
    padding-bottom: 20px;
    font-size: 30px;
    border-bottom: 2px solid #DDDDDD;
}

#noticeForm {

}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.noticeType-group label {
    padding-right : 2vw;
}

#title,
#writer,
#content,
#files {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: none;
}

input[type="radio"] {
    margin-right: 5px;
}

.btn-group {
    display: flex;
    justify-content: right;
    gap: 10px; /* 버튼 간격 설정 */
}

#submitNotice,
.cancel-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    text-decoration: none; /* 링크의 밑줄 제거 */
    cursor: pointer;
}

#submitNotice {
    background-color: #007BFF; /* 파란색 */
    color: white;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#submitNotice:hover {
    background-color: #0056b3; /* 더 진한 파란색 */
    transform: scale(1.05); /* 살짝 확대 */
}

.cancel-btn {
    background-color: #f44336; /* 빨간색 */
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cancel-btn:hover {
    background-color: #c0392b; /* 더 진한 빨간색 */
    transform: scale(1.05); /* 살짝 확대 */
}
/* modify end*/

/* 페이지네이션 스타일링 */
#pagination {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 100px;
}

#pagination a, #pagination .page-btn {
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
}

/*#pagination a:hover, #pagination .page-btn:hover {*/
/*    background-color: #bf0808;*/
/*}*/

#pagination .page-btn.active {
    font-weight: 700;
    color: red;
}

.page-btn:last-child ,.page-btn:first-child{
    background-color: #E0342F;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 20px !important; /*>> << 기호 폰트사이즈 변경*/
}


/* 공지사항 리스트 템플릿 */
#noticeList-template-modal{
    display: none;
}

/* 관리자 공지사항 */
.title-header{
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dddddd;
    padding: 24px 10px 18px 10px;
}

.title-header h2{
    padding: 0;
    font-size: 26px;
    font-weight: bold;
    color: #222222;
}


.notice-text-wrap{
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.notice-text-wrap button{
    font-size: 20px;
}

.notice-text-wrap img{
    width: 22px;
    height: 22px;
}

#files{
    border-radius: 8px;
    border: 1px solid #dddddd;
    transition: border-color 0.3s ease-in-out;
}

.file-upload{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-text{
    font-size: 14px;
    font-weight: 600;
}

#notice-file , .file-text ,
#register-notice-file{
    padding-left:4px;
}

.file-img-wrap{
    border: 1px solid #DDDDDD;
    background-color: #FAFAFA;
    width: 160px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444444;
    cursor: pointer;
}

.file-img-wrap span{
    color: #444444;
    font-weight: 600;
}

#file-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#file-list li{
    background-color: #F7F7F7;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 10px;
}

#file-list li a{
    color: #444444;
    font-size: 14px;
}

.remove-btn{
    cursor: pointer;
    color: #FFFFFF;
    background-color: #969696;
    width: 18px;
    height: 18px;
    font-size: 10px;
    align-items: center;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    margin-left: auto;
}

/* 공지사항 내용없을때 */
.no-page-container{
    display: none;
}

.no-data-title{
    width: 100%;
    padding-top: 24px;
    padding-bottom: 18px;
    padding-left: 10px;
    font-size: clamp(18px, 2.2vw, 24px);
    border-bottom: 1px solid #DDDDDD;
    font-weight: bold;
    color: #222222;
}

.no-page-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    height: 70dvh;
}

.no-data-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}


.no-data-img-wrap {
    width: 100%; /* 반응형 조절 가능 */
    display: block;
    position: relative;
}

.no-data-text-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 54%;
    transform: translate(-50%, -50%); /* 중앙 정렬 */
    left: 58%;
}

.no-data-text-2{
    color: #444444;
}

.no-data-text{
    color: #DF342F;
    font-weight: 700;
    font-size: 20px;
    margin-top: 0;
}

.no-data-img {
    width: 100%;
}

.no-data-img{
    display: block;
}
.no-data-mobile-img{
    display: none;
}

/*게시물이 없을때 있을때*/
.notice-contents-hide {
    display: none; /* 초기 숨김 */
}
.no-page-container {
    display: none; /* 초기 숨김 */
}

/* 서비스관리 게시물 등록 */
.notice-contents{
    display: block;
}