@charset "utf-8";

.search-box { border:1px solid #ddd; background:#fafafa; padding:20px 15px 3px; margin-bottom:15px; }
.sch_word { color:orangered; }
.search-none { padding:80px 20px; }

.search-media { padding-bottom:10px; }
.search-media .photo i { border-radius:50%; background: rgb(245, 245, 245); padding: 15px; width: 64px; height: 64px; text-align: center; color: rgb(143, 143, 143); font-size: 30px; display: inline-block; }
.search-media .photo img { border-radius:50%; width: 64px !important; height: 64px !important; display:inline-block; }
.search-media .media { border-bottom:1px solid #eee; margin:0px; padding:12px; }
.search-media :first-child.media { margin-top:0px; padding-top:0px; }
.search-media :last-child.media { border-bottom:0px; }
.search-media .media-heading { padding:0; margin:0px; line-height: 22px; }
.search-media .media .media-body { padding-left:0px; }
.search-media .media .media-info { line-height:20px; padding:4px 0px; }
.search-media .media .media-info .sp { display:inline-block; width:20px; text-align:center; font-size:11px; color:#888; }
.search-media .media .media-content {  }
.search-media .media .media-content p { margin:0px; padding:0px; }

/* 검색 결과 리스트 - 세련된 카드형 리스트 */
.search-list-wrap {
    margin-top: 14px;
}

.search-list-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    border-top: 0 !important;
    background: transparent !important;
}

.search-list-table thead tr {
    background: #f8fafc;
}

.search-list-table th {
    height: 42px;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.search-list-table tbody tr.search-row {
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: all 0.16s ease;
}

.search-list-table tbody tr.search-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.13);
}

.search-list-table tbody tr.search-row td {
    border-top: 1px solid #edf2f7 !important;
    border-bottom: 1px solid #edf2f7 !important;
    vertical-align: middle !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.search-list-table tbody tr.search-row td:first-child {
    border-left: 1px solid #edf2f7 !important;
    border-radius: 12px 0 0 12px;
}

.search-list-table tbody tr.search-row td:last-child {
    border-right: 1px solid #edf2f7 !important;
    border-radius: 0 12px 12px 0;
}

/* 번호 */
.search-num span {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

/* 썸네일 */
.search-thumb img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.search-thumb i {
    width: 58px;
    height: 58px;
    line-height: 58px;
    margin: 0;
    font-size: 24px;
    background: #f1f5f9;
    border-radius: 14px;
    text-align: center;
    color: #94a3b8;
    display: inline-block;
}

/* 게시판명 */
.search-board a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.search-board a:hover {
    background: #2563eb;
    color: #fff;
}

/* 제목 영역 */
.search-title-cell {
    text-align: left !important;
    white-space: normal !important;
}

.search-title-link {
    display: flex !important;
    align-items: flex-start;
    gap: 7px;
    color: #0f172a !important;
    text-decoration: none !important;
    line-height: 1.45;
}

.search-title-link:hover .search-title-text {
    color: #2563eb;
}

.search-title-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #2563eb;
    font-size: 13px;
}

.search-title-text {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.search-comment-count {
    display: inline-block;
    margin-left: 4px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
}

.search-desc {
    margin-top: 5px;
    padding-left: 21px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    max-height: 38px;
    overflow: hidden;
    word-break: break-all;
}

/* 날짜 */
.search-date {
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
}

/* 상단 검색 요약 박스도 살짝 정리 */
.search-result-summary {
    margin: 12px 0 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    font-size: 14px;
    color: #475569;
}

.search-result-summary .sch_word {
    color: #f04b23;
    font-weight: 900;
}

.search-result-summary b {
    color: #2563eb;
}

.search-scope-label {
    display: inline-block;
    margin-left: 12px;
    color: #64748b;
}

/* 모바일 검색 결과 */
.search-mobile-list {
    margin-top: 12px;
}

.search-mobile-list .media {
    border: 1px solid #edf2f7;
    border-radius: 14px;
    margin: 0 0 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.search-mobile-list .list-img {
    margin-right: 10px;
}

.search-mobile-list .list-img img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.search-mobile-list .list-img i {
    width: 54px;
    height: 54px;
    line-height: 54px;
    background: #f1f5f9;
    border-radius: 14px;
    text-align: center;
    color: #94a3b8;
    display: inline-block;
}

.search-mobile-list .media-heading {
    display: block;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 800;
}

.search-mobile-list .media-heading a {
    color: #0f172a;
}

.search-mobile-meta {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.search-mobile-meta .mobile-board-name {
    color: #2563eb;
    font-weight: 700;
}

.search-mobile-meta .sp {
    display: inline-block;
    padding: 0 5px;
    color: #cbd5e1;
}

@media all and (max-width: 767px) {
    .search-result-summary {
        padding: 11px 12px;
        font-size: 13px;
    }

    .search-scope-label {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .search-desc {
        display: none;
    }
}

/* 검색 결과 상단 검색창 - 깨짐 방지용 */
.search-result-form {
    margin-bottom: 12px;
}

.search-result-form .search-bar {
    border: 1px solid #2f96ff;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    padding: 0 12px;
    margin: 0 auto 12px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0;
}

.search-result-form .search-scope {
    flex: 0 0 160px;
    width: 160px;
    height: 38px;
    border: 0;
    border-right: 1px solid #dbeafe;
    margin: 0 10px 0 0;
    padding: 0 10px;
    outline: none;
    color: #333;
    background: #fff;
    font-size: 14px;
    box-shadow: none;
}

.search-result-form .search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    border: 0;
    padding: 0 10px;
    outline: none;
    color: #333;
    background: #fff;
    font-size: 14px;
    box-shadow: none;
}

.search-result-form .search-input::placeholder {
    color: #999;
}

.search-result-form .search-button {
    flex: 0 0 42px;
    width: 42px;
    height: 38px;
    border: 0;
    padding: 0;
    margin: 0;
    outline: none;
    color: #2f96ff;
    background: none;
    cursor: pointer;
    font-size: 17px;
    box-shadow: none;
}

.search-result-form .search-button:hover {
    color: #0b7ce8;
    background: none;
}

/* 모바일 검색창 */
@media all and (max-width: 767px) {
    .search-result-form .search-bar {
        height: 48px;
        padding: 0 8px;
    }

    .search-result-form .search-scope {
        flex: 0 0 95px;
        width: 95px;
        height: 34px;
        font-size: 12px;
        margin-right: 6px;
        padding: 0 4px;
    }

    .search-result-form .search-input {
        height: 34px;
        font-size: 13px;
        padding: 0 6px;
    }

    .search-result-form .search-button {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* 검색 결과 게시판별 탭 */
.search-board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.search-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.search-tab-btn span {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.search-tab-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
}

.search-tab-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.search-tab-btn.active span {
    background: #ffffff;
    color: #2563eb;
}

@media all and (max-width: 767px) {
    .search-board-tabs {
        gap: 6px;
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .search-tab-btn {
        min-height: 31px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .search-tab-btn span {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }
}