/* 검색 페이지 추가 스타일 */

/* 사이드바 기본 스타일 (sidebar_skin1.css 보완) */
.sidebar_section {
    background: #fff;
    padding: 0;
    margin-bottom: 30px;
}

.sidebar_section h3.sidebar_title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #000;
}

.sidebar_section ol {
    list-style: none;
    counter-reset: item;
    margin: 0;
    padding: 0;
}

.sidebar_section ol li {
    counter-increment: item;
    margin-bottom: 18px;
    position: relative;
    padding-left: 35px;
    line-height: 1.5;
}

.sidebar_section ol li:last-child {
    margin-bottom: 0;
}

.sidebar_section ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.sidebar_section ol li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.sidebar_section ol li a:hover {
    color: #5AB2FF;
}

/* 검색 폼 */
.search_form_box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.search_controls {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search_controls select,
.search_controls input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.search_controls select {
    background: white;
    cursor: pointer;
}

.search_controls input[type="text"] {
    flex: 1;
    min-width: 300px;
}

.search_controls button {
    padding: 10px 30px;
    background: #1a9ba8;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.search_controls button:hover {
    background: #158a95;
}

.search_options {
    display: flex;
    gap: 15px;
}

.search_options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* 검색 통계 */
.search_stats {
    padding: 15px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 15px;
}

.search_stats strong {
    color: #1a9ba8;
    font-size: 18px;
}

/* section_list1 호버 효과 유지 (기본 CSS 따름) */
/* section_list1.css의 호버 효과가 그대로 적용됨:
   - background: #fafafa
   - thumbnail img scale(1.05)
   - title color: #5AB2FF
*/

/* 타입 뱃지 스타일 */
.type_badges {
    margin-bottom: 8px;
}

.type_badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 5px;
}

.type_badge.photo {
    background: #e3f2fd;
    color: #1976d2;
}

.type_badge.video {
    background: #fce4ec;
    color: #c2185b;
}

/* 검색 결과 없음 */
.no_result,
.no_keyword {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no_result p,
.no_keyword p {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
}

/* 그누보드 get_paging() — 스크린리더용 문구(테마에 .sound_only 없으면 '페이지'가 그대로 노출됨) */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * board_list1.css .pagination { display:flex } 는 직계 자식이 <nav> 하나뿐이라
 * 실제 번호 링크가 한 줄로 정렬되지 않고 겹침·줄바꿈 깨짐이 발생함.
 */
.main_content .pagination {
    display: block;
    max-width: 100%;
    margin-top: 40px;
    padding: 20px 0;
}

.main_content .pagination .pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main_content .pagination .pg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
}

.main_content .pagination .pg_page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    color: #1a3a5c;
    text-decoration: none;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.main_content .pagination .pg_page:hover {
    border-color: #1a9ba8;
    color: #1a9ba8;
    background: #f0fafb;
}

.main_content .pagination .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #1a9ba8;
    border-radius: 8px;
    background: #1a9ba8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.main_content .pagination .pg_start,
.main_content .pagination .pg_prev,
.main_content .pagination .pg_next,
.main_content .pagination .pg_end {
    min-width: auto;
    padding: 0 14px;
    font-size: 13px;
}

/* 반응형 */
@media (max-width: 768px) {
    .search_controls {
        flex-direction: column;
    }
    
    .search_controls input[type="text"] {
        min-width: auto;
    }

    .main_content .pagination .pg_page,
    .main_content .pagination .pg_current {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}
