/* 초기화 */

html{overflow-y:scroll}
body {margin:0;padding:0;font-size:0.9em;font-family:'Noto Sans KR', dotum, sans-serif;}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:'Noto Sans KR', dotum, sans-serif}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, section {display:block}

#hd_qnb {list-style:none;}
#ol_after_private {list-style:none;}
.list-group {list-style:none;}
.dropdown-submenu {list-style:none;}
li{list-style:none;}
p{margin:0;padding:0;word-break:break-all}
hr{display:none}
a {text-decoration: none;}
a:hover { color: #717ff5; text-decoration: none;}
.nav-link:hover{color:#006699;}

/* 그누보드 */
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;}
.sr-only-focusable:active,.sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;}
.msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
.navbar .dropdown:hover .dropdown-menu {display: block; margin-top: 0;}
.dropdown-menu .nav-link{font-size:13px!important;font-weight:400;}
a.btn_admin,.btn_admin {display:inline-block;color:#d13f4a;text-decoration:none;vertical-align:middle}
.btn_admin:hover, a.btn_admin:hover {color:#ff3746}

/* 필수입력 */
.required, textarea.required {background-image:url('../img/require.png') !important;background-repeat:no-repeat !important;background-position:right top !important}

/* 팝업레이어 */
#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0;}
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
.hd_pops {position:absolute;background:transparent; border-top-left-radius:5px; border-top-right-radius:5px;}
.hd_pops img {max-width:100%; border-top-left-radius:5px; border-top-right-radius:5px;}
.hd_pops_con {overflow:hidden; border-top-left-radius:5px; border-top-right-radius:5px;}
.hd_pops_footer {padding:0;background:#000;color:#fff;text-align:left;position:relative; border-bottom-left-radius:5px !important; border-bottom-right-radius:5px !important;}
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
.hd_pops_footer button {padding:10px 10px;border:0;color:#fff}
.hd_pops_footer .hd_pops_reject {background:#000;text-align:center; width:calc(100% - 100px); border-bottom-left-radius:5px !important; letter-spacing:-0.5px; font-size:13px;height:40px;}
.hd_pops_footer .hd_pops_close {background:#393939;position:absolute;top:0;right:0; border-bottom-right-radius:5px !important; width:30%; max-width:100px; font-size:13px;}
.hd_pops_footer .hd_pops_reject:hover, .hd_pops_footer .hd_pops_close:hover {background:#f00;}

/* 모달창 */
.modal-gray{color:#000!important;background-color:#9e9e9e!important}
.modal-dark{color:#fff!important;background-color:#616161!important}
.modal-crimson{color:#000!important;background-color:#cc2300!important}
.modal-indigo{color:#fff!important;background-color:#607d8b!important}
.modal-teal{color:#fff!important;background-color:#009688!important}
.modal-purple{color:#fff!important;background-color:#9c27b0!important}

/* Bootstrap 유틸 */
.bd-placeholder-img {font-size: 1.125rem;text-anchor: middle;-webkit-user-select: none;-moz-user-select: none;user-select: none;}
@media (min-width: 768px) {
.bd-placeholder-img-lg {font-size: 3.5rem;}
}
.bi {vertical-align: -.125em;fill: currentColor;}
.nav-scroller {position: relative;z-index: 2;height: 2.75rem;overflow-y: hidden;}
.nav-scroller .nav {display: flex;flex-wrap: nowrap;padding-bottom: 1rem;margin-top: -1px;overflow-x: auto;text-align: center;white-space: nowrap;-webkit-overflow-scrolling: touch;}
.bg-primary-gradient {background: linear-gradient(180deg,#9b58ff,#8837ff 47.92%,#7a20ff)}

/* 이미지 */
.ca_img{width:1000px;height:300px}
.pic_img{width:100%;height:120px}
.slick_img{width:98%;height:180px}
.top-margin{}

@media only screen and (max-width: 1180px) {
    .ca_img{width:800px;height:250px;}
    .pic_img{width:100%;height:200px}
    .slick_img{width:100%;height:200px}
}
@media only screen and (max-width: 768px) {
    .pic_img{width:100%;height:100px}
    .ca_img{width:800px;height:180px;}
    .carousel-caption {bottom: 2.5rem;}
}

/* 아코디언 */
.accordion-button::after {background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-plus' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");}
.accordion-button:not(.collapsed)::after {background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-dash' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");}
.accordion-button::after {transition: all 0.5s;}

/* 네비게이션 */
.navbar .dropdown-fullwidth{position:static}
.navbar .dropdown-fullwidth .dropdown-menu{left:0;margin:1.25rem auto;max-width:1320px;padding:1rem 0;right:0;top:50px;}
.navbar-nav .dropdown:hover .dropdown-menu {display: block; margin-top: 0;}
.navbar-nav .dropdown-menu{display:block;opacity:0;transform:translateY(20px);transition:all .3s ease-in;visibility:hidden}
.navbar-nav .dropdown:hover>.dropdown-menu{opacity:1;transform:scaleY(1);visibility:visible}
.navbar .dropdown-submenu.dropend .dropdown-menu{border-radius:.5rem;box-shadow:var(--bs-box-shadow);left:100%;min-width:10rem;right:auto;top:-18px}
.navbar .navbar-nav .dropend>.dropdown-menu{transform:translateY(10px)}
.navbar .dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:translateY(10px);visibility:visible}}
.navbar .dropdown-toggle:after{float: right}
.navbar .dropend .dropdown-toggle:after{border: 0;content: "\F231"; display: inline-block;font-family:bootstrap-icons!important;font-size:10px;margin-top:5px;float: right}
.navbar .nav-link:hover{background:#3399ff!important;color:#fff!important;border-radius:4px;}
.navbar .dropdown-item2:hover{background:#3399ff!important;color:#fff!important;border-radius:2px;}

.card-img{overflow:hidden;}
.card-img img{width:100%;height:120px;object-fit:cover;transition: transform 1s ease-out;}
.card-img a:hover img{transform:scale(1.05);}
@media only screen and (max-width: 800px) {
    .card-img img{width:100%;height:240px;object-fit:cover;}
}

/* 버튼 */
.btn-gray{color:#000!important;background-color:#9e9e9e!important}
.btn-dark{color:#fff!important;background-color:#616161!important}
.btn-crimson{color:#000!important;background-color:#cc2300!important}
.btn-indigo{color:#fff!important;background-color:#607d8b!important}
.btn-teal{color:#fff!important;background-color:#009688!important}
.btn-purple{color:#fff!important;background-color:#9c27b0!important}
.btn-pink{color:#fff!important;background-color:#e91e63!important}

/* 색상 유틸 */
.bg-aqua,.bg-hover-aqua:hover{color:#000!important;background-color:#00ffff!important}
.bg-blue,.bg-hover-blue:hover{color:#fff!important;background-color:#2196F3!important}
.bg-light-blue,.bg-hover-light-blue:hover{color:#000!important;background-color:#87CEEB!important}
.bg-brown,.bg-hover-brown:hover{color:#fff!important;background-color:#795548!important}
.bg-cyan,.bg-hover-cyan:hover{color:#000!important;background-color:#00bcd4!important}
.bg-blue-grey,.bg-hover-blue-grey:hover,.bg-blue-gray,.bg-hover-blue-gray:hover{color:#fff!important;background-color:#607d8b!important}
.bg-green,.bg-hover-green:hover{color:#fff!important;background-color:#4CAF50!important}
.bg-light-green,.bg-hover-light-green:hover{color:#000!important;background-color:#8bc34a!important}
.bg-indigo,.bg-hover-indigo:hover{color:#fff!important;background-color:#3f51b5!important}
.bg-khaki,.bg-hover-khaki:hover{color:#000!important;background-color:#f0e68c!important}
.bg-lime,.bg-hover-lime:hover{color:#000!important;background-color:#cddc39!important}
.bg-orange,.bg-hover-orange:hover{color:#000!important;background-color:#ff9800!important}
.bg-deep-orange,.bg-hover-deep-orange:hover{color:#fff!important;background-color:#ff5722!important}
.bg-pink,.bg-hover-pink:hover{color:#fff!important;background-color:#e91e63!important}
.bg-purple,.bg-hover-purple:hover{color:#fff!important;background-color:#9c27b0!important}
.bg-deep-purple,.bg-hover-deep-purple:hover{color:#fff!important;background-color:#673ab7!important}
.bg-red,.bg-hover-red:hover{color:#fff!important;background-color:#f44336!important}
.bg-sand,.bg-hover-sand:hover{color:#000!important;background-color:#fdf5e6!important}
.bg-teal,.bg-hover-teal:hover{color:#fff!important;background-color:#009688!important}
.bg-yellow,.bg-hover-yellow:hover{color:#000!important;background-color:#ffeb3b!important}
.bg-grey,.bg-hover-grey:hover,.bg-gray,.bg-hover-gray:hover{color:#000!important;background-color:#9e9e9e!important}
.bg-light-grey,.bg-hover-light-grey:hover,.bg-light-gray,.bg-hover-light-gray:hover{color:#000!important;background-color:#f1f1f1!important}
.bg-dark-grey,.bg-hover-dark-grey:hover,.bg-dark-gray,.bg-hover-dark-gray:hover{color:#fff!important;background-color:#616161!important}
.bg-pale-red,.bg-hover-pale-red:hover{color:#000!important;background-color:#ffdddd!important}
.bg-pale-green,.bg-hover-pale-green:hover{color:#000!important;background-color:#ddffdd!important}
.bg-pale-yellow,.bg-hover-pale-yellow:hover{color:#000!important;background-color:#ffffcc!important}

.border-aqua,.border-hover-aqua:hover{border-color:#00ffff!important}
.border-blue,.border-hover-blue:hover{border-color:#2196F3!important}
.border-light-blue,.border-hover-light-blue:hover{border-color:#87CEEB!important}
.border-brown,.border-hover-brown:hover{border-color:#795548!important}
.border-cyan,.border-hover-cyan:hover{border-color:#00bcd4!important}
.border-blue-grey,.border-hover-blue-grey:hover,.border-blue-gray,.border-hover-blue-gray:hover{border-color:#607d8b!important}
.border-green,.border-hover-green:hover{border-color:#4CAF50!important}
.border-light-green,.border-hover-light-green:hover{border-color:#8bc34a!important}
.border-indigo,.border-hover-indigo:hover{border-color:#3f51b5!important}
.border-khaki,.border-hover-khaki:hover{border-color:#f0e68c!important}
.border-lime,.border-hover-lime:hover{border-color:#cddc39!important}
.border-orange,.border-hover-orange:hover{border-color:#ff9800!important}
.border-deep-orange,.border-hover-deep-orange:hover{border-color:#ff5722!important}
.border-pink,.border-hover-pink:hover{border-color:#e91e63!important}
.border-purple,.border-hover-purple:hover{border-color:#9c27b0!important}
.border-deep-purple,.border-hover-deep-purple:hover{border-color:#673ab7!important}
.border-red,.border-hover-red:hover{border-color:#f44336!important}
.border-sand,.border-hover-sand:hover{border-color:#fdf5e6!important}
.border-teal,.border-hover-teal:hover{border-color:#009688!important}
.border-yellow,.border-hover-yellow:hover{border-color:#ffeb3b!important}
.border-grey,.border-hover-grey:hover,.border-gray,.border-hover-gray:hover{border-color:#9e9e9e!important}
.border-light-grey,.border-hover-light-grey:hover,.border-light-gray,.border-hover-light-gray:hover{border-color:#f1f1f1!important}
.border-dark-grey,.border-hover-dark-grey:hover,.border-dark-gray,.border-hover-dark-gray:hover{border-color:#616161!important}
.border-pale-red,.border-hover-pale-red:hover{border-color:#ffe7e7!important}
.border-pale-green,.border-hover-pale-green:hover{border-color:#e7ffe7!important}
.border-pale-yellow,.border-hover-pale-yellow:hover{border-color:#ffffcc!important}
.border-pale-blue,.border-hover-pale-blue:hover{border-color:#e7ffff!important}

.fs-7{font-size:15px}
.fs-8{font-size:13px}
.fs-9{font-size:10px}
.text-purple{color:#9c27b0!important;vertical-align:bottom;}
.text-deep-orange{color:#ff5722!important;vertical-align:bottom;}

/* 스마트에디터 */
.btn_cke_sc {display:none;}
.ck-editor__editable_inline {min-height: 400px; padding: 10px 20px !important;}

.half-highlight {box-shadow: inset 0 -6px 0 #ff6600; padding-bottom:8px;}
.truncate2 {display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;}

/* 캡챠 */
#captcha {display:inline-block;position:relative}
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;height:1px;text-indent:-9999em;overflow:hidden}
#captcha #captcha_img {height:40px;border:1px solid #898989;vertical-align:top;padding:0;margin:0}
#captcha #captcha_mp3 {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat;text-indent:-999px;border-radius:3px}
#captcha #captcha_reload {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px;border-radius:3px}
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;opacity:1!important;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
#captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
#captcha.m_captcha audio {display:block;margin:0 0 5px;width:187px}
#captcha.m_captcha #captcha_img {width:160px;height:60px;border:1px solid #e9e9e9;margin-bottom:3px;margin-top:5px;display:block}
#captcha.m_captcha #captcha_reload {position:static;margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px}
#captcha.m_captcha #captcha_reload span {display:none}
#captcha.m_captcha #captcha_key {margin:0;padding:0 5px;width:115px;height:29px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:29px;margin-left:3px}
#captcha.m_captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
#captcha.m_captcha #captcha_mp3 {width:31px;height:31px;background:url('../img/captcha2.png') no-repeat 0 0;vertical-align:top;overflow:hidden;cursor:pointer;text-indent:-9999px;border:none}

/* ============================================================
   레이아웃 & 카드 시스템
   ============================================================ */

body, main.container, main.container-fluid {
    background-color: #f4f7f8;
}

main.container > .row, main.container-fluid > .row {
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 20px 15px !important;
}

/* 카드 공통 */
.main-section,
.custom-tab-main-box,
.webzine-item-wrap,
.best-list-wrapper,
.latest-info,
.login-box,
.widget-box,
.view-card,
article#bo_v {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    padding: 20px !important;
    margin-bottom: 12px !important;
    overflow: hidden;
}
.custom-tab-main-box {
    overflow: visible;
}

/* 헤더 흰색 고정 */
.navbar-expand-lg, #tnb, .header-wrapper {
    background-color: #ffffff !important;
    border-bottom: none !important;
}

/* 다크모드 버튼 완전 제거 */
#bd-theme, .bd-mode-toggle, .dropdown.position-fixed {
    display: none !important;
}

/* 게시판 */
#bo_list { background: transparent !important; }
.webzine-item-wrap a, .webzine-item-wrap p { color: #111111 !important; font-weight: 500; }
.hashtag_link { color: #0b6ad5 !important; font-weight: bold; }

/* ============================================================
   모바일 대응
   ============================================================ */

@media (max-width: 768px) {
    main.container, main.container-fluid { padding: 0 !important; }
    main.container > .row, main.container-fluid > .row {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .main-section,
    .webzine-item-wrap,
    .best-list-wrapper,
    .latest-info,
    .login-box,
    .widget-box,
    .view-card,
    article#bo_v {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 12px !important;
    }
    article#bo_v { padding: 20px 0 !important; }
}

/* ============================================================
   탭 스타일 (bs_tab)
   ============================================================ */

.custom-tab-wrapper .nav-tabs {
    border-bottom: 2px solid #03c75a !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    gap: 0 !important;
    padding-right: 0 !important;
    touch-action: pan-x !important;
    overscroll-behavior-x: contain;
    margin-bottom: 0 !important;
}

.custom-tab-wrapper .nav-link {
    color: #666 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 7px 12px !important;
    border: 1px solid transparent !important;
    background: none !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    flex: none !important;
    text-align: center !important;
}

/* ============================================================
   공통 버튼 / 위로가기 / 진행률 바
   ============================================================ */

.more-btn {
    color: #03c75a !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    z-index: 99999;
    transition: width 0.1s ease;
}

/* 탭박스 모바일 라운드 예외 */
@media (max-width: 768px) {
    .custom-tab-main-box {
        border-radius: 12px !important;
        margin: 0 0 8px 0 !important;
        border-left: 1px solid #e5e5e5 !important;
        border-right: 1px solid #e5e5e5 !important;
        width: 100% !important;
    }
}

/* 가로 스크롤 방지 */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* 모바일 네브바 강제 적용 */
@media (max-width: 1199px) {
    body { padding-top: 54px !important; }
    nav.m-topnav {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        z-index: 1050 !important;
        height: 54px !important;
        background: #fff !important;
        border-bottom: 1px solid #ebebeb !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ============================================================
   페이지네이션 (그누보드 .pg_wrap)
   ============================================================ */

.pg_wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 20px 0 !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    clear: both;
    text-align: center !important;
}

.pg_wrap .pg {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100%;
}

.pg_wrap a.pg_page,
.pg_wrap strong.pg_current,
.pg_wrap a.pg_start,
.pg_wrap a.pg_prev,
.pg_wrap a.pg_next,
.pg_wrap a.pg_end {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pg_wrap a.pg_page:hover,
.pg_wrap a.pg_start:hover,
.pg_wrap a.pg_prev:hover,
.pg_wrap a.pg_next:hover,
.pg_wrap a.pg_end:hover {
    background: #f1f5f9 !important;
    border-color: #03c75a !important;
    color: #03c75a !important;
}

.pg_wrap strong.pg_current {
    background: #03c75a !important;
    border-color: #03c75a !important;
    color: #fff !important;
}

/* 모바일 */
@media (max-width: 768px) {
    .pg_wrap {
        gap: 3px !important;
        padding: 0 8px !important;
    }
    .pg_wrap a.pg_page,
    .pg_wrap strong.pg_current,
    .pg_wrap a.pg_start,
    .pg_wrap a.pg_prev,
    .pg_wrap a.pg_next,
    .pg_wrap a.pg_end {
        min-width: 32px;
        height: 32px;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}

/* 아주 작은 화면(아이폰 SE 등) */
@media (max-width: 380px) {
    .pg_wrap a.pg_page:nth-of-type(n+7):not(.pg_current) {
        display: none !important;
    }
}

/* 선택삭제 버튼 정렬 */
.btn_bo_user {
    margin-top: 12px !important;
    text-align: center;
}

/* ============================================================
   검색결과 페이지 (search.php)
   ============================================================ */
#sch_wr {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    padding: 24px !important;
    margin: 0 0 12px 0 !important;
}
#sfl_wr {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
}
#sfl_wr fieldset { border: none !important; padding: 0 !important; margin: 0 !important; }
#sfl_wr select,
#sfl_wr input[type="text"],
#sfl_wr input[name="stx"] {
    height: 42px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #111 !important;
}
#sfl_wr select:focus,
#sfl_wr input[type="text"]:focus,
#sfl_wr input[name="stx"]:focus {
    outline: none !important;
    border-color: #03c75a !important;
    box-shadow: 0 0 0 3px rgba(3,199,90,0.15) !important;
}
#sfl_wr input[type="submit"],
#sfl_wr .btn_submit,
#sfl_wr button[type="submit"] {
    height: 42px !important;
    padding: 0 22px !important;
    background: #03c75a !important;
    border: 1px solid #03c75a !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer;
}
#sfl_wr input[type="submit"]:hover,
#sfl_wr .btn_submit:hover,
#sfl_wr button[type="submit"]:hover {
    background: #02b150 !important;
    border-color: #02b150 !important;
}
#sch_wr h1, #sch_wr h2, #sch_wr h3,
.sch_res, #sch_res, .search_word, .search_results_title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 8px 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #03c75a !important;
    display: block !important;
}
#sch_wr h1 strong, #sch_wr h2 strong, #sch_wr h3 strong, .sch_res strong {
    color: #03c75a !important;
}
#sch_wr ul.sch_bbs, #sch_bbs, .sch_bbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border: none !important;
}
#sch_wr ul.sch_bbs li, .sch_bbs li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
}
#sch_wr ul.sch_bbs li a, .sch_bbs li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all .15s ease !important;
}
#sch_wr ul.sch_bbs li a:hover, .sch_bbs li a:hover {
    background: #03c75a !important;
    color: #fff !important;
    border-color: #03c75a !important;
}
#sch_wr ul.sch_bbs li.sch_on a,
#sch_wr ul.sch_bbs li a.sch_on,
.sch_bbs li.sch_on a {
    background: #03c75a !important;
    color: #fff !important;
    border-color: #03c75a !important;
}
#sch_wr ul.sch_bbs li a span,
.sch_bbs li a span,
.sch_bbs li a small {
    background: rgba(255,255,255,0.25);
    color: inherit !important;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}
#sch_wr ul.sch_bbs li:not(.sch_on) a span {
    background: #cbd5e1;
    color: #475569 !important;
}
#sch_wr ul.sch_li, #sch_wr .sch_result, .sch_li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sch_wr ul.sch_li > li, .sch_li > li {
    list-style: none !important;
    padding: 18px 4px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eef0f2 !important;
    background: none !important;
}
#sch_wr ul.sch_li > li:hover { background: #fafbfc !important; }
#sch_wr ul.sch_li > li:last-child { border-bottom: none !important; }
#sch_wr ul.sch_li > li a, .sch_li > li a {
    color: #111 !important;
    text-decoration: none !important;
}
#sch_wr ul.sch_li > li > a:first-child,
#sch_wr ul.sch_li .sch_subject a,
#sch_wr ul.sch_li li > h4 a,
#sch_wr ul.sch_li li > strong a {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
}
#sch_wr ul.sch_li > li > a:first-child:hover,
#sch_wr ul.sch_li .sch_subject a:hover {
    color: #03c75a !important;
}
#sch_wr ul.sch_li .sch_b,
#sch_wr ul.sch_li .sch_board {
    display: inline-block !important;
    background: #eff6ff !important;
    color: #0284c7 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    margin-right: 6px !important;
}
#sch_wr ul.sch_li .sch_info,
#sch_wr ul.sch_li .sch_date,
#sch_wr ul.sch_li .sch_name {
    display: inline-block;
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-right: 10px;
}
#sch_wr ul.sch_li p,
#sch_wr ul.sch_li .sch_content,
#sch_wr ul.sch_li .sch_memo {
    color: #4b5563 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 6px 0 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#sch_wr .sch_word,
#sch_wr b.sch_word,
#sch_wr ul.sch_li b {
    color: #03c75a !important;
    font-weight: 700 !important;
    background: rgba(3,199,90,0.08) !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
}
.sch_none, #sch_wr .empty_list, #sch_wr .empty_table {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    background: #fafbfc !important;
    border: 1px dashed #e2e8f0 !important;
    border-radius: 10px !important;
}
@media (max-width: 768px) {
    #sch_wr {
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding: 16px !important;
        box-shadow: none !important;
    }
    #sfl_wr { padding: 12px !important; }
    #sfl_wr select,
    #sfl_wr input[type="text"] {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    #sfl_wr input[type="submit"] { width: 100% !important; }
    #sch_wr h1, #sch_wr h2, #sch_wr h3, .sch_res { font-size: 16px !important; }
    #sch_wr ul.sch_bbs li a, .sch_bbs li a {
        font-size: 12px !important;
        padding: 7px 11px !important;
    }
    #sch_wr ul.sch_li > li > a:first-child,
    #sch_wr ul.sch_li .sch_subject a { font-size: 15px !important; }
    #sch_wr ul.sch_li p { font-size: 13px !important; }
}
/* ============================================================
   페이지네이션 (그누보드 .pg_wrap)
   ============================================================ */

.pg_wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 20px 0 !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    clear: both;
    text-align: center !important;
}

.pg_wrap .pg {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100%;
}

.pg_wrap a.pg_page,
.pg_wrap strong.pg_current,
.pg_wrap a.pg_start,
.pg_wrap a.pg_prev,
.pg_wrap a.pg_next,
.pg_wrap a.pg_end {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pg_wrap a.pg_page:hover,
.pg_wrap a.pg_start:hover,
.pg_wrap a.pg_prev:hover,
.pg_wrap a.pg_next:hover,
.pg_wrap a.pg_end:hover {
    background: #f1f5f9 !important;
    border-color: #03c75a !important;
    color: #03c75a !important;
}

.pg_wrap strong.pg_current {
    background: #03c75a !important;
    border-color: #03c75a !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .pg_wrap {
        gap: 3px !important;
        padding: 0 8px !important;
    }
    .pg_wrap a.pg_page,
    .pg_wrap strong.pg_current,
    .pg_wrap a.pg_start,
    .pg_wrap a.pg_prev,
    .pg_wrap a.pg_next,
    .pg_wrap a.pg_end {
        min-width: 32px;
        height: 32px;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   Bootstrap pagination 오버라이드
   ============================================================ */

.pagination {
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.pagination .page-item .page-link:hover {
    background: #f1f5f9 !important;
    border-color: #03c75a !important;
    color: #03c75a !important;
}

.pagination .page-item.active .page-link {
    background: #03c75a !important;
    border-color: #03c75a !important;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #cbd5e1 !important;
}

@media (max-width: 768px) {
    .pagination .page-item .page-link {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }
}
