@charset "utf-8";

/* =========================================================
   기본 레이아웃
========================================================= */

.cs-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:42px 20px 80px;
    box-sizing:border-box;
    color:#1f2937;
    word-break:keep-all;
}


/* =========================================================
   상단 HERO
========================================================= */

.cs-hero{
    padding:55px 30px;
    border-radius:25px;
    background:linear-gradient(135deg,#172f52,#315e91);
    text-align:center;
    color:#fff;
}

.cs-hero.small{
    padding:38px 25px;
}

.cs-hero > span{
    display:block;
    margin-bottom:9px;
    color:#b9cee9;
    font-size:11px;
    font-weight:900;
    letter-spacing:1.6px;
}

.cs-hero h1{
    margin:0;
    font-size:38px;
}

.cs-hero p{
    max-width:720px;
    margin:14px auto 0;
    color:#dce8f5;
    line-height:1.8;
}


/* =========================================================
   검색 영역
========================================================= */

.cs-search-box{
    margin-top:22px;
    padding:18px;
    border:1px solid #e0e6ee;
    border-radius:14px;
    background:#f8fafc;
}

/* form 자체는 grid 사용하지 않음 */
.cs-search-box form{
    display:block;
}


/* 기본 검색 */

.cs-search-main{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:8px;
}


/* 입력폼 공통 */

.cs-input,
.cs-select,
.cs-textarea{
    width:100%;
    border:1px solid #d5dce6;
    border-radius:9px;
    background:#fff;
    box-sizing:border-box;
    font-size:14px;
}

.cs-input,
.cs-select{
    height:45px;
    padding:0 12px;
}

.cs-textarea{
    min-height:110px;
    padding:12px;
    line-height:1.7;
    resize:vertical;
}

.cs-textarea.large{
    min-height:170px;
}


/* 검색 버튼 */

.cs-search-btn{
    height:45px;
    padding:0 22px;
    border:0;
    border-radius:9px;
    background:#294f7e;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}


/* =========================================================
   상세검색
========================================================= */

.cs-advanced-search{
    display:grid;
    grid-template-columns:repeat(3,1fr) auto;
    gap:10px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #e5eaf0;
}

.cs-filter-group label{
    display:block;
    margin-bottom:6px;
    color:#6b7788;
    font-size:11px;
    font-weight:800;
}

.cs-filter-actions{
    display:flex;
    align-items:flex-end;
    gap:8px;
}

.cs-reset-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:45px;
    padding:0 14px;
    border:1px solid #d6dde7;
    border-radius:9px;
    background:#fff;
    color:#5f6d80 !important;
    text-decoration:none !important;
    font-size:12px;
    font-weight:800;
}


/* =========================================================
   검색결과 제목
========================================================= */

.cs-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:35px 0 18px;
}

.cs-result-head strong{
    display:block;
    font-size:22px;
    color:#26364d;
}

.cs-result-head span{
    display:block;
    margin-top:5px;
    color:#8590a0;
    font-size:13px;
}


/* =========================================================
   공통 버튼
========================================================= */

.cs-admin-btn,
.cs-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    border:0;
    border-radius:9px;
    background:#294f7e;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:800;
    cursor:pointer;
}

.cs-btn.light{
    background:#edf1f5;
    color:#435064 !important;
}

.cs-btn.danger{
    background:#b84949;
}


/* =========================================================
   전문가 목록 GRID
========================================================= */

.cs-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.cs-card{
    overflow:hidden;
    border:1px solid #e0e6ed;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 24px rgba(38,54,77,.06);
}

.cs-card-link{
    display:block;
    height:100%;
    color:inherit !important;
    text-decoration:none !important;
}


/* =========================================================
   전문가 사진
========================================================= */

.cs-photo{
    height:280px;
    background:#fff;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cs-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center top;
}

.cs-no-photo{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#edf2f7,#dce5ef);
    color:#8a9aaf;
    font-weight:900;
    letter-spacing:2px;
}


/* =========================================================
   전문가 카드
========================================================= */

.cs-card-body{
    padding:22px;
}


/* LEVEL */

.cs-level{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
}

.cs-level.lv1{
    background:#e7effc;
    color:#315f9e;
}

.cs-level.lv2{
    background:#e8f6ed;
    color:#307247;
}

.cs-level.lv3{
    background:#f4ecfb;
    color:#78529a;
}


/* =========================================================
   전문가 이름 + 인증정보
========================================================= */

.cs-name-cert-row{
    display:flex;
    align-items:flex-start;
    gap:15px;
    margin:14px 0 13px;
}

.cs-name-cert-row h2{
    flex-shrink:0;
    margin:0;
    padding-right:15px;
    border-right:1px solid #d7dee8;
    color:#111827;
    font-size:23px;
    font-weight:800;
    line-height:1.3;
}

.cs-cert-info{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}


/* 인증번호 */

.cs-cert-number-block{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.cs-cert-number-block > span{
    margin:0;
    color:#8a94a2;
    font-size:10px;
    font-weight:700;
    line-height:1.2;
}

.cs-cert-number-block > strong{
    color:#315f98;
    font-size:12px;
    font-weight:800;
    line-height:1.3;
    white-space:nowrap;
}


/* 기존 인증번호 클래스 호환 */

.cs-cert-no{
    margin-top:6px;
    color:#6d7d91;
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   인증상태
========================================================= */

.cs-cert-status-line{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    margin-top:3px;
}

.cs-cert-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    padding:0 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}


/* 인증 유효 */

.cs-cert-status.valid{
    background:#e5f7eb;
    color:#257343;
}


/* 만료 예정 */

.cs-cert-status.expiring{
    background:#fff2d8;
    color:#9a6412;
}


/* 인증 만료 */

.cs-cert-status.expired{
    background:#edf0f3;
    color:#68717e;
}


/* 인증 정지 */

.cs-cert-status.suspended{
    background:#fde9e9;
    color:#a33e3e;
}

.cs-cert-status-line small{
    color:#8993a1;
    font-size:10px;
}


/* =========================================================
   한줄소개
========================================================= */

.cs-card h2{
    margin:13px 0 5px;
    font-size:23px;
}

.cs-one-line{
    margin:0 0 16px;
    color:#738095;
    line-height:1.6;
}


/* =========================================================
   기본정보
========================================================= */

.cs-info{
    margin:0;
}

.cs-info div{
    display:flex;
    padding:7px 0;
    border-bottom:1px solid #eef1f4;
    font-size:13px;
}

.cs-info dt{
    width:65px;
    color:#8a94a2;
}

.cs-info dd{
    flex:1;
    margin:0;
    color:#4d596a;
}


/* =========================================================
   상담영역 / 상담대상
========================================================= */

.cs-chip-section{
    margin-top:14px;
}

.cs-chip-section strong{
    display:block;
    margin-bottom:7px;
    color:#475569;
    font-size:12px;
}

.cs-chips{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.cs-chip{
    display:inline-flex;
    align-items:center;
    padding:5px 8px;
    border-radius:999px;
    background:#edf3fb;
    color:#315b89;
    font-size:11px;
    font-weight:800;
}

.cs-chip.target{
    background:#f2f3f6;
    color:#586273;
}


/* =========================================================
   상담방식
========================================================= */

.cs-methods{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:14px;
}

.cs-methods.profile{
    margin-top:18px;
}

.cs-method-badge{
    display:inline-flex;
    align-items:center;
    padding:6px 9px;
    border-radius:7px;
    background:#e7f6ed;
    color:#2f7547;
    font-size:11px;
    font-weight:900;
}


/* =========================================================
   프로필 보기 버튼
========================================================= */

.cs-detail-btn{
    display:block;
    margin-top:18px;
    padding:11px;
    border-radius:8px;
    background:#f2f5f9;
    text-align:center;
    color:#31577f;
    font-size:13px;
    font-weight:800;
}


/* =========================================================
   검색 결과 없음 / 페이징
========================================================= */

.cs-empty{
    grid-column:1/-1;
    padding:70px 20px;
    border:1px solid #e4e8ed;
    border-radius:15px;
    text-align:center;
    color:#8a94a2;
}

.cs-paging{
    margin-top:25px;
    text-align:center;
}


/* =========================================================
   등록 / 수정 / 상세 카드
========================================================= */

.cs-form-card,
.cs-detail-card,
.cs-side-card{
    margin-top:18px;
    padding:26px;
    border:1px solid #e0e6ed;
    border-radius:17px;
    background:#fff;
}

.cs-form-card h3{
    margin:0 0 20px;
}

.cs-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:17px;
}

.cs-field.full{
    grid-column:1/-1;
}

.cs-field{
    margin-bottom:16px;
}

.cs-field > label:first-child{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:800;
    color:#465266;
}


/* =========================================================
   체크박스
========================================================= */

.cs-check-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.cs-check-grid.method{
    grid-template-columns:repeat(3,1fr);
}

.cs-check-item{
    display:flex !important;
    align-items:center;
    gap:7px;
    min-height:40px;
    margin:0 !important;
    padding:0 11px;
    border:1px solid #dce3eb;
    border-radius:9px;
    background:#fafbfc;
    font-size:13px !important;
    font-weight:600 !important;
    cursor:pointer;
}

.cs-check-item input{
    margin:0;
}

.cs-check-item.method{
    background:#f5faf7;
}

.cs-help{
    color:#7c8797;
    font-size:13px;
}

.cs-file{
    width:100%;
}

.cs-current-file{
    margin-top:9px;
    color:#6f7a8a;
    font-size:13px;
}


/* =========================================================
   등록 / 수정 버튼
========================================================= */

.cs-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:22px;
}


/* =========================================================
   전문가 상세 프로필
========================================================= */

.cs-profile-hero{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:35px;
    align-items:center;
    padding:35px;
    border-radius:22px;
    background:#f5f8fc;
}

.cs-profile-photo{
    width:250px;
    height:300px;
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cs-profile-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center top;
}

.cs-no-photo.big{
    height:100%;
}

.cs-profile-main h1{
    margin:14px 0 7px;
    font-size:36px;
    color:#22334b;
}

.cs-profile-intro{
    margin:0;
    color:#68768a;
    font-size:16px;
    line-height:1.7;
}

.cs-profile-meta{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-top:17px;
    color:#526176;
    font-size:13px;
}


/* =========================================================
   상세페이지 인증정보
========================================================= */

.cs-cert-box{
    display:inline-flex;
    flex-direction:column;
    gap:8px;
    margin-top:10px;
    padding:10px 14px;
    border:1px solid #d7e1ef;
    border-radius:10px;
    background:#fff;
}

.cs-cert-box span{
    color:#758399;
    font-size:11px;
    font-weight:700;
}

.cs-cert-box strong{
    color:#234f82;
    font-size:15px;
    letter-spacing:.2px;
}

.cs-cert-box-status{
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
}

.cs-cert-box-status small{
    color:#788598;
    font-size:11px;
}


/* =========================================================
   연락 버튼
========================================================= */

.cs-contact-buttons{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:23px;
}

.cs-contact-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:43px;
    padding:0 17px;
    border-radius:8px;
    background:#294f7e;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:800;
    font-size:13px;
}

.cs-contact-btn.light{
    background:#e8edf3;
    color:#3d4d62 !important;
}


/* =========================================================
   상세페이지 레이아웃
========================================================= */

.cs-profile-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-top:10px;
}

.cs-detail-card h2,
.cs-side-card h3{
    margin:0 0 13px;
    color:#293b54;
}

.cs-detail-card p,
.cs-side-card p{
    margin:0;
    color:#647185;
    line-height:1.85;
}


/* =========================================================
   태블릿
========================================================= */

@media(max-width:900px){

    .cs-grid{
        grid-template-columns:1fr 1fr;
    }

    .cs-search-main{
        grid-template-columns:1fr 1fr;
    }

    .cs-search-main .cs-search-btn{
        grid-column:1/-1;
    }

    .cs-advanced-search{
        grid-template-columns:1fr 1fr;
    }

    .cs-filter-actions{
        grid-column:1/-1;
    }

    .cs-profile-layout{
        grid-template-columns:1fr;
    }

    .cs-check-grid{
        grid-template-columns:repeat(3,1fr);
    }
}


/* =========================================================
   모바일
========================================================= */

@media(max-width:650px){

    .cs-wrap{
        padding:24px 13px 60px;
    }

    .cs-hero{
        padding:40px 20px;
    }

    .cs-hero h1{
        font-size:29px;
    }

    .cs-grid{
        grid-template-columns:1fr;
    }

    .cs-search-main,
    .cs-advanced-search{
        grid-template-columns:1fr;
    }

    .cs-search-main .cs-search-btn{
        grid-column:auto;
    }

    .cs-filter-actions{
        grid-column:auto;
        flex-direction:column;
        align-items:stretch;
    }

    .cs-reset-btn{
        width:100%;
        box-sizing:border-box;
    }

    .cs-profile-hero{
        grid-template-columns:1fr;
        padding:22px;
    }

    .cs-profile-photo{
        width:100%;
        height:330px;
    }

    .cs-profile-main h1{
        font-size:29px;
    }

    .cs-form-grid{
        grid-template-columns:1fr;
    }

    .cs-field.full{
        grid-column:auto;
    }

    .cs-check-grid,
    .cs-check-grid.method{
        grid-template-columns:1fr 1fr;
    }

    .cs-actions{
        flex-direction:column;
    }

    .cs-btn{
        width:100%;
    }

    .cs-contact-buttons{
        flex-direction:column;
    }

    .cs-contact-btn{
        width:100%;
        box-sizing:border-box;
    }

    .cs-name-cert-row{
        gap:10px;
    }

    .cs-name-cert-row h2{
        padding-right:10px;
        font-size:22px;
    }

    .cs-cert-number-block > strong{
        font-size:11px;
    }
}

/* =========================================================
   인증 연장 신청
========================================================= */

.cs-renewal-box{
    margin-top:18px;
    padding:20px;
    border:1px solid #dce4ee;
    border-radius:14px;
    background:#f8fafc;
}

.cs-renewal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.cs-renewal-head strong{
    display:block;
    color:#293b55;
    font-size:16px;
}

.cs-renewal-head > div > span{
    display:block;
    margin-top:4px;
    color:#7c8999;
    font-size:12px;
}

.cs-renewal-box p{
    margin:12px 0 0;
    color:#667487;
    font-size:13px;
    line-height:1.7;
}

.cs-renewal-box form{
    margin-top:13px;
}

.cs-renewal-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:27px;
    padding:0 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    flex-shrink:0;
}

.cs-renewal-status.pending{
    background:#fff2d8;
    color:#96620f;
}

.cs-renewal-status.approved{
    background:#e5f7eb;
    color:#257343;
}

.cs-renewal-status.rejected{
    background:#fde9e9;
    color:#a33e3e;
}

.cs-renewal-request-btn{
    min-height:40px;
    font-size:12px;
}

@media(max-width:650px){
    .cs-renewal-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .cs-renewal-request-btn{
        width:100%;
    }
}

/* =========================================================
   학회 인증 상담전문가 안내
========================================================= */

.cs-cert-guide{
    margin-top:18px;
    border:1px solid #dce5ef;
    border-radius:16px;
    background:#fff;
    overflow:hidden;
}

.cs-cert-guide-toggle{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 22px;
    border:0;
    background:linear-gradient(135deg,#f7faff,#eef4fb);
    text-align:left;
    cursor:pointer;
}

.cs-cert-guide-title{
    min-width:0;
}

.cs-cert-guide-kicker{
    display:block;
    margin-bottom:5px;
    color:#3970aa;
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}

.cs-cert-guide-title strong{
    display:block;
    color:#243a58;
    font-size:18px;
    font-weight:900;
    line-height:1.45;
}

.cs-cert-guide-title small{
    display:block;
    margin-top:5px;
    color:#7b8898;
    font-size:12px;
    line-height:1.5;
}

.cs-cert-guide-arrow{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#294f7e;
    color:#fff;
    font-size:22px;
    font-weight:400;
    line-height:1;
    transition:transform .2s ease;
}

.cs-cert-guide-toggle[aria-expanded="true"] .cs-cert-guide-arrow{
    transform:rotate(45deg);
}

.cs-cert-guide-content{
    padding:24px;
    border-top:1px solid #e4eaf1;
}

.cs-cert-guide-content[hidden]{
    display:none;
}

.cs-cert-guide-intro{
    padding:19px 20px;
    border-radius:12px;
    background:#f8fafc;
}

.cs-cert-guide-intro p{
    margin:0;
    color:#5f6d80;
    font-size:13px;
    line-height:1.85;
}

.cs-cert-guide-intro p + p{
    margin-top:10px;
}

.cs-cert-guide-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:16px;
}

.cs-cert-guide-item{
    display:flex;
    gap:13px;
    padding:17px;
    border:1px solid #e3e8ef;
    border-radius:12px;
    background:#fff;
}

.cs-cert-guide-num{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:10px;
    background:#edf4fc;
    color:#315f98;
    font-size:11px;
    font-weight:900;
}

.cs-cert-guide-item strong{
    display:block;
    color:#34465e;
    font-size:13px;
    font-weight:900;
}

.cs-cert-guide-item p{
    margin:6px 0 0;
    color:#748195;
    font-size:12px;
    line-height:1.65;
}

.cs-cert-guide-message{
    margin-top:16px;
    padding:19px 20px;
    border-left:4px solid #294f7e;
    border-radius:9px;
    background:#f4f8fd;
}

.cs-cert-guide-message strong{
    display:block;
    color:#284a76;
    font-size:14px;
    font-weight:900;
}

.cs-cert-guide-message p{
    margin:7px 0 0;
    color:#66768a;
    font-size:12px;
    line-height:1.7;
}

@media(max-width:650px){

    .cs-cert-guide-toggle{
        padding:17px;
    }

    .cs-cert-guide-title strong{
        font-size:16px;
    }

    .cs-cert-guide-content{
        padding:16px;
    }

    .cs-cert-guide-grid{
        grid-template-columns:1fr;
    }

    .cs-cert-guide-item{
        padding:15px;
    }

}
