@charset "utf-8";

/* ============================================================
   시대일보 / 뉴스스피치 프리미엄 통합검색 스킨 스타일
   ============================================================ */

.search_advanced_wrap {
    width: 100%;
    margin: 0 auto 40px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

/* 1. 상단 검색 설정 메인 박스 */
.sch_main_box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sch_input_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.sch_board_col select,
.sch_field_col select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 13.5px;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sch_board_col select:focus,
.sch_field_col select:focus {
    border-color: #1e3a8a;
}

.sch_board_col select {
    min-width: 140px;
}
.sch_field_col select {
    min-width: 110px;
}

.sch_keyword_col {
    flex: 1;
    min-width: 250px;
}

.sch_input_inner {
    position: relative;
    display: flex;
    align-items: center;
}

.sch_input_inner .frm_input {
    width: 100%;
    height: 44px;
    padding: 0 90px 0 16px;
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    outline: none;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
}

.sch_input_inner .frm_input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn_search_submit {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    width: 78px;
    background: #1e3a8a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn_search_submit:hover {
    background: #1d4ed8;
}

/* AND / OR 모던 토글 */
.switch_field_modern {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    height: 44px;
}

.switch_field_modern input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch_field_modern label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.switch_field_modern input[type="radio"]:checked + label {
    background: #1e3a8a;
    color: #fff;
}

/* 2. 기간 검색 툴바 */
.sch_period_row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.period_label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.period_btn_group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.btn_period {
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn_period:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.btn_period.active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    font-weight: 700;
}

.sch_custom_date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.frm_date_input {
    height: 32px;
    padding: 0 8px;
    font-size: 12.5px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #334155;
}

.date_sep {
    font-size: 13px;
    color: #64748b;
    font-weight: bold;
}

.btn_date_apply {
    height: 32px;
    padding: 0 12px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn_date_apply:hover {
    background: #334155;
}

/* 3. 검색 결과 헤더 및 정렬 탭 */
.sch_res_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 2px solid #1e3a8a;
    margin-bottom: 16px;
}

.sch_res_stat {
    font-size: 15px;
    color: #334155;
}

.keyword_highlight {
    font-weight: 800;
    color: #1e3a8a;
    font-size: 17px;
}

.total_num {
    color: #dc2626;
    font-weight: 800;
    font-size: 17px;
}

.sub_stat {
    font-size: 13px;
    color: #64748b;
    margin-left: 6px;
}

.sch_sort_tabs {
    display: inline-flex;
    gap: 4px;
}

.btn_sort {
    background: transparent;
    border: none;
    padding: 4px 10px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn_sort:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.btn_sort.active {
    color: #1e3a8a;
    font-weight: 800;
    background: #e0e7ff;
}

/* 4. 게시판별 칩 목록 */
.sch_board_chips {
    margin-bottom: 20px;
}

#sch_res_board {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#sch_res_board li {
    display: inline-block;
}

#sch_res_board a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12.5px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
}

#sch_res_board a:hover {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

#sch_res_board a.sch_on {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    font-weight: 700;
}

#sch_res_board .cnt_cmt {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    color: inherit;
}

/* 5. 검색 결과 기사/게시글 리스트 */
.sch_article_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch_article_item {
    padding: 18px 8px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.sch_article_item:hover {
    background: #f8fafc;
}

.sch_item_header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.sch_bo_badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.5;
}

.sch_bo_badge:hover {
    background: #1e3a8a;
    color: #fff;
}

.sch_res_title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.sch_res_title:hover {
    color: #2563eb;
    text-decoration: underline;
}

.cmt_def {
    display: inline-block;
    padding: 1px 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

.pop_a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.15s;
}

.pop_a:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.sch_item_content {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    word-break: break-all;
}

.sch_item_meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #94a3b8;
}

.meta_item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sch_name a {
    color: #64748b;
    text-decoration: none;
}

.sch_datetime {
    color: #64748b;
}

.sch_hit {
    color: #94a3b8;
}

.sch_cmt_cnt {
    color: #dc2626;
    font-weight: 600;
}

/* 검색어 하이라이트 */
.sch_word {
    color: #dc2626 !important;
    font-weight: 800;
    background: #fee2e2;
    padding: 0 3px;
    border-radius: 2px;
}

/* 6. 페이징 네비게이션 */
.sch_pagination {
    margin: 35px 0 20px;
    text-align: center;
}

.sch_pagination .pg_wrap {
    display: inline-flex;
    gap: 4px;
}

.sch_pagination .pg_page,
.sch_pagination .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    color: #334155;
    background: #fff;
}

.sch_pagination .pg_page:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.sch_pagination .pg_current {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    font-weight: 700;
}

/* 7. 검색 결과 없음 / 초기 화면 안내 박스 */
.sch_empty_box,
.sch_initial_box {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin: 30px 0;
}

.empty_icon,
.init_icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.sch_empty_box h3,
.sch_initial_box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.sch_initial_box p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.empty_tips {
    display: inline-block;
    text-align: left;
    margin: 15px auto 0;
    padding: 0 0 0 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
}

/* 반응형 모바일 */
@media (max-width: 768px) {
    .sch_input_row {
        flex-direction: column;
        align-items: stretch;
    }

    .sch_board_col select,
    .sch_field_col select {
        width: 100%;
    }

    .sch_keyword_col {
        width: 100%;
    }

    .sch_period_row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sch_res_header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sch_sort_tabs {
        width: 100%;
        justify-content: flex-start;
        border-top: 1px solid #f1f5f9;
        padding-top: 8px;
    }

    .sch_custom_date {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }
}
