/* select. */
.catagory-list{    width: 100%;background-color: #eff3f4; height: 210px; border: 0; border-radius: 4px; overflow-x: hidden; overflow-y: scroll; outline: none;}
.catagory-list li{padding: 8px 20px; font-size:15px; cursor: pointer;}
.catagory-list li.on{background: #c1c4c9 linear-gradient(0deg, #c1c4c9 0%, #c1c4c9 100%); color:#fff}
.divide span.lang{font-size: 12px;}
.divide + .divide{border-top: 1px solid #ddd;}
.divide:nth-child(2){padding-top: 20px;}

.post-title-wrap{display: flex; justify-content: space-between; align-items: center;}
.choice-lng li{display: inline-block; border: 1px solid #ddd; padding: 0 8px; border-radius: 4px;}
.choice-lng li + li{margin-left: 4px;}
.choice-lng li a{font-size: 14px; color:#888; display: block; line-height: 25px;}

/* 선택된 목록 */
.choosen-list li{position: relative; padding-left: 20px;}
.choosen-list li::before{width: 4px; height: 4px; border-radius: 10px; background-color: #333; position: absolute; left: 0; top: 10px; content: "";}
.choosen-list li span{display: inline-block; color:#333; vertical-align: middle; font-size: 15px;}
.choosen-list li span + span{margin-left: 20px;}
.choosen-list li span.next{ width: 8px; height: 8px; border-right: 1px solid #333;  border-bottom: 1px solid #333; transform: rotate(-45deg); }
.choosen-list li span.delet{width: 24px; height: 24px; position: relative; cursor: pointer;}
.choosen-list li span.delet::before,.choosen-list li span.delet::after{content: ""; position: absolute; width: 10px; height:2px; top: 11px; left: 5px; background-color:#f35f5f}
.choosen-list li span.delet::before{transform: rotate(-45deg);}
.choosen-list li span.delet::after{transform: rotate(45deg);}


/* product */
.product-wrap{display: flex; padding:20px 0}
.productBx{width: 100%;;}
.productBx>span{display: block; font-size: 12px; color:#999; font-weight: bold;}
.product-title{padding-right: 20px;}
/* .product-sub{padding-left:20px} */
.productBx li{display: flex;}
.productBx li + li{margin-top: 12px;}
.productBx li .button.pro-btn{margin-left: 4px;}
.productBx li .button.pro-btn button{padding: 0;width: 40px; height: 40px; }
.product-wrap:nth-child(1){padding-top: 0;}
.product-wrap:last-child{padding-bottom: 0;}
.product-wrap + .product-wrap{border-top: 1px dashed #ddd;}

.post-table-con textarea{width: 100%;padding: 8px; border-radius: 5px; border: 1px solid #dcdee1; height: 120px; resize: none;}
.product-edit{width: 140px; text-align: right; margin-top: 12px;}
.product-edit i{display: inline-block; cursor: pointer; color:#ddd; transition: all .1s;}
.product-edit i + i{margin-left: 8px;}
.product-edit i:hover{color:#333}

.updown-btn,.control-btn{padding: 16px 0;}
.updown-btn + .control-btn{border-top: 1px dashed #ddd;}
.button button.arrow-btn{border: 1px solid #ddd; height: 38px; width: 38px; display: inline-block; padding: 0; position: relative;}
.button button.arrow-btn span{position: absolute; width: 10px; height: 10px;}
.button button.down-btn span{border-bottom: 1px solid; border-right: 1px solid #666; left: 37%; top: 50%; transform: rotate(45deg) translate(-50%,-50%); }
.button button.up-btn span{border-top: 1px solid; border-right: 1px solid #666;  left: 56%; top: 50%; transform: rotate(-45deg) translate(-50%,-50%);}


/* 검색창 */
.list_search{width: 365px; float: right; margin-bottom: 4px;}
.list_search input{outline: none;background-color: #eaeaea; border: 1px solid #eaeaea; border-radius: 3px; padding: 8px; font-size: 16px; width: 56%;}
.list_search input:focus{outline: none;}
.list_search input button{display: inline;}
.list_search .button{display: inline;}
.btn-search{background-color: #3e3e3e; color: #fff; font-weight: 500; padding: 9px 16px; font-size: 14px; border-radius: 3px;}
.btn-search:hover{background-color: #adadad; color: #333; border: 1px solid #adadad;}
.btn-reset{border: 1px solid #c5c5c5; color: #fff; background-color: #c5c5c5;}


/* aside 커스텀 */
.adm_aside{background-color: var(--main-color); border-top-right-radius: 25px; border-bottom-right-radius: 25px;}
.side_main_menu ul li.active{background-color: #0a87f6;}
.adm_log span {background-color: #0a5fb8;}

/* 계열사 목록 */
.img-list-wrap > i {display: block; width: 180px; height: auto; margin: 0 auto;}
.img-list-wrap > i > img {display: block; height: 100%;} 
.edit-button {width: 90px; background-color: #f1f1f1; border: 1px solid #ddd; padding: 10px; border-radius: 4px;}
.edit-button:hover {cursor: pointer; background-color: #eee;}

.login-h {height: 100%;}
.login-container {transform: translate(-50%,-50%) !important;}

/* 메인이미지 등록 */
.custom-p {display: flex; gap: 20px;}
.custom-p .post-box {width: 87%;}
.custom-p .control {width: 13%;}
.custom-p .control .sort-control-container {background-color: #fff; padding: 20px; border-radius: 20px; border: 1px solid #ddd; width: 100%;}
.select-custom {
    width: 25%;
    padding: 10px 40px 10px 12px;
    font-size: 16px;
    border: 1px solid #dcdee1;
    border-radius: 5px;
    background: #fff url('https://d293d5ujo4f7wd.cloudfront.net/static/adm/img/arr_down.svg') no-repeat right 12px center/10px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    color: #555;
    box-sizing: border-box;
    margin-bottom: 0;
}

.select-custom:focus {
    border-color: #0a87f6;
}

/* IE용 화살표 제거 */
select.select-custom::-ms-expand {
    display: none;
}
form input[type="checkbox"], form input[type="radio"] {width: 20px; height: 20px;}
.cus-check dd .insert-wrap {display: flex; align-items: center; gap: 30px;} 
.cus-check dd .insert-wrap label span {margin-left: 5px;}
.insert-wrap .insert.insert-chk .check_label input:checked ~ .checkmark {background-color: #1F6BBB;}
.check_label input:checked ~ .checkmark {border: 1px solid transparent; background-color: #999;}
.checkmark.radio {border-radius: 50%;}

.custom-btn .btn {height: 32px; padding: 0 8px; font-size: 0.9em; font-weight: 400; background-color: #fff; border: 1px solid #dcdee1; cursor: pointer; width: fit-content;} 
.custom-btn .btn:hover {background-color: #f1f1f1;}

.post-file { 
    width: 100%;
}


.post-file .file-name input {
    width:25%;
    color:#666;
}

.post-file .file-input-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #dcdee1;
    border-radius: 5px;
    padding: 8px 12px;
    height: 40px;
    outline: none;
    box-sizing: border-box;
}

.post-file .file-btn {
    display: inline-block;
    padding: 0 18px;
    height: 42px;
    background: #0a87f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 40px; 
}

.post-file .file-btn:hover {
    background: #0770d4; /* 테마 블루 hover (구 그린 #368c4a 제거) */
}

.post-file input[type="file"] {
    display: none;
}

/* adm_news2.php - 지역 카테고리 스타일 */
.region-cate {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3,1fr);
}

.region-cate > div {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 24px 20px 20px 20px;
    width:100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.region-cate p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.cate-wrap {
    display:flex;
    gap:20px;
}

.region-cate ul {
    width:80%;
    background: #fafafa;
    border-radius: 6px;
    padding: 0;
    margin: 0 0 16px 0;
    list-style: none;
    height: 250px;
    overflow-y: auto;
    border: 1px solid #e0e4ea;
}

.region-cate ul .cate-list {
    padding: 10px 16px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}
.region-cate ul li:last-child {
    border-bottom: none;
}

.region-cate ul .cate-list.on {
    background:#dedede;
}


/* control-box 세로 배치 */
.control-box {
    display:flex;
    flex-direction: column;
    gap:10px;
}
.control-box .control-wrap { 
}
.control-box .contr-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.control-box .contr-btn img {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    vertical-align: middle;
    background:#fff;
    border:1px solid #ccc
}

/* 적용하기 버튼 스타일(예시) */
.cate-btn span {
    display: inline-block;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
}

.cate-btn span + span {
    margin-left: 4px;
}

.cate-btn span:first-child {
    background: #fff; 
    border:1px solid #ccc;
}

.cate-btn span:last-child {
    background: var(--main-color);
    color: #fff;
}


/* 지방회 목록 추가 */
.add-list-btn {font-size:14px;padding:2px 10px;background:var(--main-color);color:#fff;border-radius:3px;margin-left:10px;cursor: pointer;}
.add-list {
    margin-bottom:15px;
}
.add-list:last-child {
    margin-bottom:0;
}


/* adm_news5.php - 교회 탭 메뉴 */
.chruch-tab {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e4ea;
    padding-left: 2px;
}
.chruch-tab span {
    padding: 10px 32px;
    font-size: 17px;
    color: #888;
    background: #f7f9fb;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    margin-bottom: -2px;
    border: 1px solid #e0e4ea;
    border-bottom: none;
}
.chruch-tab span.active {
    background: #fff;
    color: var(--main-color);
    font-weight: 600;
    border-bottom: 2px solid #fff;
    z-index: 2;
}

.church-list {
    display: none;
}
.church-list.active {
    display: block;
}











