@charset "utf-8";

/* css 기본값 정의 */
.blind {
    display: block;
    overflow: hidden;
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}

#contents {margin-top: 80px;}
.logo {position:fixed; width: 80px; height: 80px; left:20px; top:0;}
.logo a {display:block; width: 100%; height: 100%; background: url('./images/logo.png') no-repeat center; background-size: auto 50px;}
.logo a span {position: absolute; left: 0; top: 0; height: 0; line-height: 0; text-indent: -9999px;}

/* header */
#header {position:fixed; left: 0; top: 0; z-index: 100; width: 100%; height: 80px; background-color: #fff; box-sizing: border-box; border-bottom: 1px solid #ddd; }
#header > p {font-weight:700; line-height: 80px;}
#header .h_btn {position: absolute; right: 0; top: 0; width: 80px; height: 80px; background-image: url('./images/i_menu.png'); background-repeat: no-repeat; background-size: 40px auto; background-position: center;}

#footer {background-color:#f5f5f5; padding: 30px 0;}
#footer .f_link {display: flex; flex-wrap:wrap; gap:10px; margin: 10px 0;}
#footer .f_link a {flex-basis: calc( 50% - 5px ); background-color:#fff; border-radius: 5px; padding: 10px; background-repeat:no-repeat; background-position: right 10px center; background-size: 28px auto;}
#footer .f_link .fl_mail {background-image:url('/images/mail.png');}
#footer .f_link .fl_sms {background-image:url('/images/sms.png');}
#footer .f_link .fl_youtube {background-image:url('/images/youtube.png');}
#footer .f_link .fl_insta {background-image:url('/images/instagram.png');}
#footer .f_link .fl_blog {background-image:url('/images/blog.png');}
#footer .f_link .fl_kakao {background-image:url('/images/kakao.png');}
#footer .f_deco {color:#bc5c49; margin: 10px 0; font-weight: 500; font-size: 16px; border-radius:5px;}
#footer .f_info {font-size: 13px;}
#footer .f_info li {display:inline-block; margin-right: 20px; color:#999;}

.h_menu {display:none; position:fixed; right: 0; top: 0; bottom: 0; width: 230px; background-color: #fff; z-index: 100; overflow-y: auto; overflow-x: hidden; height: 100%; }
.h_menu.on {display: block;}
.h_bg {display:none;  position:fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7);}
.h_bg.on {display:block;}
.h_close {position: fixed; right: 230px; top: 0; width: 80px; height: 80px; background-image: url('./images/i_close.png'); background-repeat: no-repeat; background-size: 40px auto; background-position: center;}
.hm_link {display: flex; height: 80px; align-items: center; padding: 0 20px; gap: 10px; border-bottom: 1px solid #999; justify-content: right;}
.hm_link a {padding: 5px 10px; background-color:#a9c640; color:#fff; border-radius: 5px; font-size: 14px;}
.c_tit {position: relative; text-align: center; padding-bottom: 10px; margin-bottom: 30px; font-size: 22px; line-height: 32px; font-weight: 700;}
.c_tit::before {content:''; position: absolute; left: 50%; bottom:0; width: 20px; height: 3px; margin-left:-10px; border-radius: 5px; background-color: #a9c640;}
.pl90 {padding-left: 110px;}
#nav {}
#nav .dep1 {border-bottom: 1px solid #ddd;}
#nav .dep1 a {display: block; line-height: 40px; padding: 0 20px; color: #000; font-size: 14px; font-weight: 600;}

.bo_v_ca {color:#a9c640;}

.wrap {max-width:800px; margin:0 auto; padding: 0 20px;}
/* .category-title {font-size: 18px; padding:10px 0; border-bottom:1px solid #ddd; margin-bottom:10px;} */
.category-title{
    color:#1f3557;
    font-size:18px;
    font-weight:700;
    padding:10px 0;
    margin-bottom:10px;
    position:relative;
}

.category-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
	border-radius:3px;
    background: linear-gradient(90deg,#1f3557,#9fcf6a,#9ed8ff);
}

.ca_txt {color:#a9c640;}
.bo_tit {display: block; font-size: 16px; line-height: 1.4; margin-bottom:5px; font-weight:500;}

.list_item {display: flex; flex-wrap:wrap; gap: 20px;}
.list_item li {flex-basis: calc( 50% - 10px );}


.visit_area {display:none;position: absolute; right: 85px; top: 22px; font-size: 12px;  color:#444; text-align:right;}
.visit_area p {font-size: 12px;}
.visit_area span {font-weight:700; color:#8f1c1f; font-size: 12px;}

.lib_link {display:block; padding: 15px 20px; background-color:#a9c640; color:#fff; font-weight:600; border-radius:10px; margin-bottom: 10px;}
.webtoon_link {display:block; padding: 15px 20px; background-color:#6768af; color:#fff; font-weight:600; border-radius:10px; margin-bottom: 10px;}
.donation_link {display:block; padding: 15px 20px; background-color:#e6887c; color:#fff; font-weight:600; border-radius:10px; margin-bottom: 10px;}


.se2_quote6 {border-left:0 !important; border-bottom:0 !important; border-right:0 !important; padding: 20px 0 !important; color:#333 !important;}

.view_nav_btns{
    display:flex;
    gap:10px;
    margin:30px 0;
}

.view_nav_btns a{
    flex:1;
    text-align:center;
    padding:12px 0;
    border-radius:8px;
    font-size:14px;
    text-decoration:none;
    font-weight:500;
}

.btn_back{
    background:#f3f4f6;
    color:#333;
}

.btn_list{
    background:#333;
    color:#fff;
}

.related_posts {padding: 20px 0; border-top:1px solid #ddd;}
.related_posts h3 {margin-bottom: 10px; color:#a9c640; font-size: 15px;}
.related_list li {margin-bottom:5px;}
.related_list li:last-child {margin-bottom:0;}
.related_list a {display:block; padding: 10px; background-color:#f7f9ee; border-radius: 5px;}

#bo_v_title {padding-bottom:30px; margin-bottom:30px; border-bottom:1px solid #f0f6dc;}
.bbs-view-image img {height: auto !important;}
/* 갤러리 이미지 정사각형 */
#bo_gall .gall_img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 1:1 비율 (정사각형) */
    overflow: hidden;
    background: #f8f9fa;
	border-radius: 10px;
	overflow:hidden;
}

#bo_gall .gall_img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#bo_gall .gall_img img,
#bo_gall .gall_img video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 공지사항 및 no image도 정사각형 */
#bo_gall .gall_img .is_notice,
#bo_gall .gall_img .no_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 600;
    font-size: 16px;
}
/* 카테고리 네비게이션 - 언더라인 스타일 */
.ca_nav {
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.ca_nav h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #64748b;
}

#bo_cate_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#bo_cate_ul::-webkit-scrollbar {
    height: 6px;
}

#bo_cate_ul::-webkit-scrollbar-track {
    background: transparent;
}

#bo_cate_ul::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#bo_cate_ul::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#bo_cate_ul li {
    display: inline-block;
    flex-shrink: 0; /* 항목 크기 고정 */
}

#bo_cate_ul li a {
    display: inline-block;
    padding: 10px 16px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 4px solid transparent;
    margin-bottom: -1px;
}

#bo_cate_ul li a:hover {
    color: #334155;
    background: #f8fafc;
}

/* 활성화된 카테고리 */
#bo_cate_ul li a#bo_cate_on {
    color: #a9c640;
    font-weight: 600;
    border-bottom-color: #a9c640;
}

#bo_cate_ul li a#bo_cate_on:hover {
    background: transparent;
}

/* 모바일 */
@media (max-width: 768px) {
    nav {
        margin-bottom: 20px;
    }
    
    nav h2 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    #bo_cate_ul {
        scrollbar-width: none;
    }
    
    #bo_cate_ul::-webkit-scrollbar {
        display: none;
    }
    
    #bo_cate_ul li a {
        padding: 10px 12px;
        font-size: 15px;
    }
}


@media (max-width: 430px) {
.list_item {display:block;}
}