/* =========================================================
   KBOARD FAQ LIST - SKY BLUE FULL FIX
========================================================= */

#kboard-often-list{
    width:100%;
    margin:40px auto;
    padding:30px;
    box-sizing:border-box;
    border-radius:20px;
    background:linear-gradient(135deg,#f8fdff,#e6f8ff);
    border:1px solid rgba(100,190,240,.45);
    box-shadow:0 18px 45px rgba(60,150,210,.18);
    overflow:hidden;
    color:#36516a;
}

/* =========================================================
   상단
========================================================= */
#kboard-often-list .kboard-list-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    gap:15px;
    flex-wrap:wrap;
}

#kboard-often-list .kboard-total-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:34px;
    padding:0 15px;
    border-radius:10px;
    background:linear-gradient(to bottom,#ffffff,#eaf8ff);
    border:1px solid rgba(91,174,232,.65);
    color:#1f86c9;
    font-size:13px;
    font-weight:900;
    box-shadow:0 5px 14px rgba(80,160,220,.13);
}

/* =========================================================
   정렬
========================================================= */
#kboard-often-list .kboard-sort select,
#kboard-often-list select[name="kboard_list_sort"]{
    width:120px;
    height:40px;
    padding:0 34px 0 14px;
    border-radius:10px;
    border:1px solid rgba(91,174,232,.65);
    background:
        linear-gradient(45deg, transparent 50%, #1f86c9 50%) right 15px center / 6px 6px no-repeat,
        linear-gradient(135deg, #1f86c9 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
        linear-gradient(to bottom,#ffffff,#eaf8ff);
    color:#1f86c9;
    font-size:13px;
    font-weight:900;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    box-shadow:0 5px 14px rgba(80,160,220,.13);
}

/* =========================================================
   검색
========================================================= */
#kboard-often-list .kboard-search{
    margin-bottom:26px;
}

#kboard-often-list .kboard-search form{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    padding:12px;
    border-radius:12px;
    background:#ffffff;
    border:1px solid rgba(110,190,235,.4);
    box-shadow:0 5px 16px rgba(80,160,220,.08);
}

#kboard-often-list .kboard-search select,
#kboard-often-list .kboard-search input{
    height:40px;
    border-radius:8px;
    border:1px solid rgba(90,170,225,.55);
    background:#ffffff;
    color:#184d73;
    padding:0 14px;
    outline:none;
    font-size:13px;
    font-weight:800;
    box-sizing:border-box;
}

#kboard-often-list .kboard-search select{
    width:90px;
}

#kboard-often-list .kboard-search input{
    flex:1;
    min-width:240px;
}

#kboard-often-list .kboard-search input::placeholder{
    color:#6a97b3;
}

#kboard-often-list .kboard-search select:focus,
#kboard-often-list .kboard-search input:focus{
    border-color:#27a8f2;
    box-shadow:0 0 14px rgba(80,180,255,.24);
}

/* =========================================================
   버튼
========================================================= */
#kboard-often-list .kboard-thumbnail-button-small,
#kboard-often-list .kboard-control a,
#kboard-often-list .kboard-control button,
#kboard-often-list .kboard-control input[type="submit"]{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:40px;
    padding:0 22px !important;
    border-radius:10px;
    border:1px solid rgba(90,170,225,.6) !important;
    background:linear-gradient(to bottom,#7bd4ff,#2d96dc);
    color:#ffffff !important;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
    text-decoration:none !important;
    box-shadow:0 8px 18px rgba(70,170,240,.22);
    transition:.25s;
}

#kboard-often-list .kboard-thumbnail-button-small:hover,
#kboard-often-list .kboard-control a:hover,
#kboard-often-list .kboard-control button:hover,
#kboard-often-list .kboard-control input[type="submit"]:hover{
    transform:translateY(-2px);
    background:linear-gradient(to bottom,#a8e8ff,#4bb2f0);
}

/* =========================================================
   리스트
========================================================= */
#kboard-often-list .kboard-list table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 14px;
}

#kboard-often-list .kboard-list tbody tr{
    display:block;
    width:100%;
    transition:
        transform .25s ease,
        filter .25s ease;
}

#kboard-often-list .kboard-list tbody tr:hover{
    transform:translateY(-2px);
    filter:brightness(1.02);
}

#kboard-often-list .kboard-list-title{
    display:block;
    width:100%;
    padding:0 !important;
    border:none !important;
}

/* =========================================================
   질문 카드
========================================================= */
#kboard-often-list .kobard_often_title{
    width:100%;
    background:#ffffff;
    border:1px solid rgba(100,180,230,.45);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(80,160,220,.12);
    transition:.25s;
}

#kboard-often-list .kobard_often_title:hover,
#kboard-often-list .kboard-list tbody tr:hover .kobard_often_title{
    background:#eaf8ff;
    border-color:#37a9f0;
    box-shadow:0 14px 34px rgba(80,160,220,.22);
}

#kboard-often-list .kobard_often_title.active{
    background:#eaf8ff;
    border-color:#37a9f0;
    box-shadow:0 14px 34px rgba(80,160,220,.22);
}

/* =========================================================
   질문 내부
========================================================= */
#kboard-often-list .kboard-thumbnail-cut-strings{
    display:flex;
    align-items:center;
    width:100%;
    padding:20px 24px;
    box-sizing:border-box;
    color:#17527d;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    gap:12px;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* 제목만 늘어나게 */
#kboard-often-list .kboard-thumbnail-cut-strings > span:not(.qa_icon):not(.qa_insert):not(.kboard-comments-count),
#kboard-often-list .kboard-thumbnail-cut-strings > a{
    flex:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#17527d !important;
    text-decoration:none !important;
}

/* hover 제목 */
#kboard-often-list .kboard-list tbody tr:hover .qa_title_wrap,
#kboard-often-list .kboard-list tbody tr:hover .kboard-thumbnail-cut-strings > a{
    color:#e600dd !important;
}

/* =========================================================
   QA 아이콘
========================================================= */
#kboard-often-list .qa_icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    flex-shrink:0;
    border-radius:11px;
    background:linear-gradient(to bottom,#7bd4ff,#2d96dc);
    color:#ffffff;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
    box-shadow:0 5px 14px rgba(70,170,240,.22);
}

#kboard-often-list .kboard-list tbody tr:hover .qa_icon{
    box-shadow:0 0 14px rgba(70,170,240,.35);
}

/* =========================================================
   수정 버튼
========================================================= */
#kboard-often-list .qa_insert{
    margin-left:10px;
    flex-shrink:0;
}

#kboard-often-list .qa_insert_btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:28px;
    padding:0 12px;
    border-radius:9px;
    background:#ffffff;
    border:1px solid rgba(91,174,232,.65);
    color:#1f86c9 !important;
    font-size:11px;
    font-weight:900;
    text-decoration:none !important;
    white-space:nowrap;
    box-shadow:0 4px 10px rgba(80,160,220,.10);
}

#kboard-often-list .qa_insert_btn:hover{
    background: linear-gradient(to bottom, #9c7bff, #7b2ddc);
    color: #ffffff !important;
}

/* =========================================================
   댓글수
========================================================= */
#kboard-often-list .kboard-comments-count{
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:28px;
    height:28px;
    padding:0 8px;
    flex-shrink:0;
    border-radius:999px;
    background:linear-gradient(to bottom,#ffffff,#eaf8ff);
    border:1px solid rgba(91,174,232,.55);
    color:#1f86c9;
    font-size:11px;
    font-weight:900;
    line-height:1;
    white-space:nowrap;
}

#kboard-often-list .kboard-list tbody tr:hover .kboard-comments-count{
    background:linear-gradient(to bottom,#7bd4ff,#2d96dc);
    color:#ffffff;
}

/* =========================================================
   답변영역
========================================================= */
#kboard-often-list .often-answer{
    display:none;
    width:100% !important;
    margin-top:10px;
    padding:0 0 0 10px !important;
    border:none !important;
    background:none !important;
    overflow:hidden;
}

#kboard-often-list .often-answer .qa_answer{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:24px;
    border-radius:16px;
    background:#ffffff;
    border:1px solid rgba(100,180,230,.45);
    color:#36516a;
    line-height:1.9;
    font-size:14px;
    font-weight:700;
    box-shadow:0 8px 24px rgba(80,160,220,.10);
}

/* =========================================================
   페이지네이션
========================================================= */
#kboard-often-list .kboard-pagination{
    width:100%;
    margin-top:36px;
    text-align:center;
}

#kboard-often-list .kboard-pagination-pages{
    display:flex !important;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding:0;
    margin:0;
    list-style:none;
}

#kboard-often-list .kboard-pagination-pages li{
    display:flex !important;
    align-items:center;
    justify-content:center;
}

#kboard-often-list .kboard-pagination-pages a,
#kboard-often-list .kboard-pagination-pages span{
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 14px;
    border-radius:10px;
    background:#ffffff;
    border:1px solid rgba(90,170,225,.55);
    color:#2286c9 !important;
    text-decoration:none !important;
    font-weight:900;
    box-shadow:0 5px 15px rgba(80,160,220,.15);
    transition:.25s;
}

#kboard-often-list .kboard-pagination-pages .active span,
#kboard-often-list .kboard-pagination-pages .active a,
#kboard-often-list .kboard-pagination-pages a:hover{
    background:linear-gradient(to bottom,#7fd5ff,#2e98de);
    color:#ffffff !important;
}

/* =========================================================
   글쓰기
========================================================= */
#kboard-often-list .kboard-control{
    margin-top:28px;
    text-align:right;
}

/* =========================================================
   모바일
========================================================= */
@media(max-width:768px){

    #kboard-often-list{
        padding:18px;
        border-radius:16px;
    }

    #kboard-often-list .kboard-list-header{
        display:block;
    }

    #kboard-often-list .kboard-total-count{
        margin-bottom:12px;
    }

    #kboard-often-list .kboard-search form{
        flex-direction:column;
        align-items:stretch;
    }

    #kboard-often-list .kboard-search select,
    #kboard-often-list .kboard-search input,
    #kboard-often-list .kboard-thumbnail-button-small{
        width:100%;
        min-width:100%;
    }

    #kboard-often-list .kboard-thumbnail-cut-strings{
        padding:18px;
        font-size:13px;
        gap:8px;
    }

    #kboard-often-list .often-answer .qa_answer{
        padding:18px !important;
        font-size:13px;
    }

    #kboard-often-list .qa_icon{
        width:30px;
        height:30px;
        font-size:10px;
    }

    #kboard-often-list .kboard-comments-count{
        min-width:24px;
        height:24px;
        font-size:10px;
    }

    #kboard-often-list .qa_insert{
        display:none;
    }

    #kboard-often-list .kboard-control,
    #kboard-often-list .kboard-control a,
    #kboard-often-list .kboard-control button,
    #kboard-often-list .kboard-control input[type="submit"]{
        width:100%;
        text-align:center;
    }
}