@charset "utf-8";

/* 전체검색결과 스킨 */
#sch_res_detail {background:#f7f7f7;padding:30px;text-align:center;margin:0 0 10px}
#sch_res_detail legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#sch_res_detail select {border:1px solid #d0d3db;width:175px;height:45px;padding:0 5px;border-radius:3px}
#sch_res_detail .frm_input {
    border: 1px solid #d0d3db;
    width: 300px;
    height: 45px;
    border-radius: 0;
    border-radius: 3px;
    font-size: 14px;
}
#sch_res_detail .sch_wr {
    position: relative;
    display: flex;
    gap: var(--padding-10);
    justify-content: center;
}
#sch_res_detail .btn_submit {
    padding: 0 var(--padding-30);
    height: 45px;
    /* width: 88px; */
    font-size: var(--font-size-16);
    font-weight: bold;
    color: #fff;
    background: #434a54;
    white-space: nowrap;
}

/* 검색 OR+ADN 버튼 */
.switch_field {display:inline-block;vertical-align:middle;padding:10px 5px}
.switch_field input {position:absolute !important;clip:rect(0, 0, 0, 0);height:1px;width:1px;border:0;overflow:hidden}
.switch_field label {float:left}
.switch_field label {display:inline-block;width:50px;background-color:#fff;color:rgba(0, 0, 0, 0.6);font-size:1em;font-weight:normal;text-align:center;text-shadow:none;padding:6px 14px;border:1px solid #bbc0c6;
-webkit-transition:all 0.1s ease-in-out;
-moz-transition:all 0.1s ease-in-out;
-ms-transition:all 0.1s ease-in-out;
-o-transition:all 0.1s ease-in-out;
transition:all 0.1s ease-in-out}
.switch_field label:hover {cursor:pointer}
.switch_field input:checked + label {background-color:var(--kb-color-main);border:1px solid var(--kb-color-main);color:#fff;-webkit-box-shadow:none;box-shadow:none}
.switch_field label:first-of-type {border-radius:4px 0 0 4px;border-right:0}
.switch_field label:last-of-type {border-radius:0 4px 4px 0}

#sch_res_ov {
    display: flex;
    zoom: 1;
    height: 55px;
    line-height: 55px;
    background: #e4c17d38;
    /* border-radius: 5px; */
    border: var(--kb-color-sub);
    margin-bottom: 15px;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}
#sch_res_ov h2 {float:left;display:inline-block;font-size:1.25em;color:#293d58;font-weight:normal}
#sch_res_ov h2 strong {color:#ff005a}
#sch_res_ov ul {
    display: inline-block;
    float: right;
    line-height: 12px;
    font-size: 13px;
    color: #293d58;
}
#sch_res_ov ul:after {display:block;visibility:hidden;clear:both;content:""} 
#sch_res_ov li {float:left;margin-right:5px;padding-right:5px;border-right:1px solid #5977a4}
#sch_res_ov li:last-child {margin:0;padding:0;border:0}

#sch_res_board {
    margin-bottom: var(--padding-60);
}
#sch_res_board h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sch_res_board ul {zoom:1}
#sch_res_board ul:after {display:block;visibility:hidden;clear:both;content:""}
#sch_res_board li {display:inline-block;padding:2px}
#sch_res_board a {
    display: block;
    font-size: var(--font-size-14);
    line-height: 28px;
    padding: 5px var(--padding-20);
    border-radius: 30px;
    border: 1px solid var(--kb-color-sub);
    color: var(--font-color-1);
}
#sch_res_board a:focus, #sch_res_board a:hover {text-decoration:none;background:var(--kb-color-main);color:#fff}
#sch_res_board .cnt_cmt {
    font-weight: normal !important;
    display: inline-block;
    margin-left: 3px;
    color: var(--kb-color-main);
    line-height: 18px;
    font-size: 0.92em;
}
#sch_res_board a:hover .cnt_cmt {color:#fff}
#sch_res_board .sch_on {
    z-index: 2;
    background: var(--kb-color-main);
    color: #fff;
    font-weight: bold;
    border: 1px solid var(--kb-color-main);
}
#sch_res_board .sch_on .cnt_cmt {
    color: #fff;
}

.sch_res_list {
    position: relative;
    display: flex;
    gap: var(--gap-60);
    flex-direction: column;
}
.sch_res_list .search_board_result{position:relative}
.sch_res_list h2 {
    margin: 0 0 15px;
    font-size: var(--font-size-24);
    font-weight: 600;
}
.sch_res_list ul {
    display: grid;
    /* 한 줄에 4개(25%), 간격은 20px로 설정 */
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-40) var(--gap-20); 
    box-sizing: border-box;
}
.sch_res_list li {
    padding: 0;
    display: flex;
    border: 1px solid var(--main-c);
    background: #fff;
    position: relative;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    /*border-radius: var(--padding-10);*/
}
.sch_res_list .sch_tit {
    display: block;
    flex-grow: 1;
}
.sch_res_list .pop_a {display:inline-block;background:#e8eeef;color:#6f777f;border-radius:50%;text-align:center;width:26px;height:26px;line-height:26px}
.sch_res_title {
    display: inline-block;
    margin: 0 0 5px;
    font-size: var(--font-size-20);
    font-weight: 600;
}
.sch_res_list p {
    width: calc(100% - 40px);
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 17px;
    color: #777;
    font-weight: 400;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.sch_res_list .type_lawyer p {
    margin-bottom: 0px;
}
.sch_res_list .sch_info {
    width: calc(100% - 40px);
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    color: #ccc;
}
.sch_res_list .profile_img img {border-radius:50%}
.sch_more {position:absolute;right:0;top:7px;text-align:right;font-weight:normal;color:var(--kb-color-main)}

.btn_more_wrap {
    text-align: center;
	margin: var(--padding-60) 0 !important;
}
.btn_board_more {
    padding: 10px 30px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: var(--font-size-16);
    font-weight: 600;
}

/* 검색 결과 내 검색어 강조 색상 및 스타일 */
.sch_res_list .sch_word, #sch_result .sch_word {
    color: #fff;
    background-color: var(--main-c);
    font-weight: 600;
    padding: 0;
    line-height: 0;
    margin: 0;
}

.gall_text_href {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
	padding: 20px;
}
.bo_tit {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
    line-height: 30px;
    font-weight: bold;
    color: #000;
}
.column {
    display: flex;
    flex-direction: column;
}
.badge {
    color: var(--main-c);
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    height: 30px; 
	font-size: 15px;
}
.gall_text_href p {
    font-size: 20px;
    color: #fff;
    word-break: keep-all;
    text-align: center;
	font-weight: bold;
}

.pan {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--kb-color-sub);
    padding: 10px;
    font-weight: 700;
    /*border-radius: var(--padding-10) var(--padding-10) 0 0;*/
}
.sch_tit {
    width: calc(100% - 40px);
    margin: 0 auto;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 20px;
    display: -webkit-box;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
}
.sch_thumb {
    width: calc(100% - 40px);
    margin: 0 auto;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 0;
    display: -webkit-box;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
}
.sch_thumb.lawyer_thumb {
    margin-top: 0px;
    width: calc(100% - 0px);
}
.badge_qna {
    position: relative;
    padding: var(--padding-8) var(--padding-16);
    background: #d8b267;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    font-size: var(--font-size-18);
    font-weight: 400;
    border-radius: 4px;
    color: #fff;
    margin-bottom: var(--padding-30);
}



/* 일반 태블릿 / 모바일 화면: 한 줄에 2개 */
@media screen and (max-width: 768px) {
    .sch_res_list ul.sch_list_ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
	#sch_res_detail {
		padding: 20px 20px;
		margin: 0 0;
	}
	#sch_res_detail .sch_wr {
		display: flex;
		gap: 10px;
	}
	#sch_res_detail .frm_input {
		width: 100%;
		height: 35px;
	}
	#sch_res_detail .btn_submit {
		height: 35px;
	}
	.sch_res_list p {
		font-size: 16px;
	}
}

/* 화면이 아주 작은 소형 모바일 기기: 한 줄에 1개 */
@media screen and (max-width: 480px) {
    .sch_res_list ul.sch_list_ul {
        grid-template-columns: 1fr;
    }
}