/* ============================================================
   AI Lawyer List Page — lawyer-list.css
   Scope: #ai-lawyer-list
   Naming: .ai-ll-* (lawyer list)
   ============================================================ */

/* ---------- Paperlogy Font ---------- */
@font-face {
    font-family: 'Paperlogy';
    src: url('../assets/fonts/Paperlogy-4Regular.woff2.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('../assets/fonts/Paperlogy-6SemiBold.woff2.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ---------- Reset & Base ---------- */
#ai-lawyer-list * {
    box-sizing: border-box;
}

#ai-lawyer-list {
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
}

/* 1320px 중앙 정렬 그리드 컨테이너 */
#ai-lawyer-list .wd1320 {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* ---------- 변호사 카드 그리드 및 섹션 배경 ---------- */
#ai-lawyer-list .main.new_gallery {
    background: #F7F4EF; /* 세련된 웜 아이보리 배경 */
    padding: 80px 0 100px;
}

#ai-lawyer-list .lawyer_box {
    padding: 60px 0 0;
    max-width: 1080px;
    margin: 0 auto;
}

#ai-lawyer-list .lawyer_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#ai-lawyer-list .lawyer_li {
    width: calc(33.333% - 13.333px);
    position: relative;
}

#ai-lawyer-list .lawyer_li:nth-child(n+4) {
    margin-top: 12px;
}

#ai-lawyer-list .lawyer_li a {
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: #ffffff; /* 흰색 카드 배경 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* 고급스럽고 옅은 섀도우 */
}

#ai-lawyer-list .lawyer_li a:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(159, 129, 86, 0.12); /* 호버 시 세련된 골드 톤 섀도우 */
}

#ai-lawyer-list .lawyer_img {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

#ai-lawyer-list .lawyer_img img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.04); /* 이미지 자체의 굵은 남색 테두리를 크롭하기 위한 1.04배 스케일업 */
    transform-origin: center;
}





/* ---------- 검색 / 필터 ---------- */
#ai-lawyer-list .bo_filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    padding-bottom: 0;
    border-bottom: none;
}

#ai-lawyer-list .bo_filter_select {
    width: 108px;
    height: 44px;
    background: url(../images/bo_filter_arr.svg) no-repeat #fff calc(100% - 16px) center;
    border: none;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px;
    color: #818181;
    padding: 0 28px 0 16px;
    cursor: pointer;
    outline: none;
}

#ai-lawyer-list .bo_filter_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
    flex: 1;
    border: none;
}

#ai-lawyer-list .bo_filter_input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    color: #222;
    outline: none;
}

#ai-lawyer-list .bo_filter_btn {
    width: 56px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-lawyer-list .bo_filter_btn img {
    width: 20px;
    height: 20px;
    filter: none;
}

/* ---------- 카테고리 탭 ---------- */
#ai-lawyer-list #board_category {
    margin-bottom: 60px;
}

#ai-lawyer-list #board_category h2 {
    display: none;
}

#ai-lawyer-list #board_category_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#ai-lawyer-list #board_category_list li a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
    color: #818181;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

#ai-lawyer-list #board_category_list li a#bo_cate_on,
#ai-lawyer-list #board_category_list li a:hover {
    background: #9F8156;
    border-color: #9F8156;
    color: #fff;
}

/* ---------- sub_top (공통 배너) ---------- */
#ai-lawyer-list .sub_top {
    background: #1a1a2e;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

#ai-lawyer-list .sub_top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(159, 129, 86, 0.15) 0%, transparent 60%);
}

#ai-lawyer-list .sub_nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

#ai-lawyer-list .sub_nav p {
    margin: 0;
}

#ai-lawyer-list .sub_nav p::after {
    content: '›';
    margin-left: 8px;
    color: rgba(255,255,255,0.4);
}

#ai-lawyer-list .sub_nav p:last-child::after {
    display: none;
}

#ai-lawyer-list .sub_nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

#ai-lawyer-list .sub_nav a:hover {
    color: #9F8156;
}

#ai-lawyer-list .sub_nav img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.7);
}

#ai-lawyer-list .sub_top_content {
    position: relative;
    z-index: 1;
}

#ai-lawyer-list .sub_top_depth {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -1px;
}

#ai-lawyer-list .sub_top_title {
    font-size: 16px;
    color: #9F8156;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

#ai-lawyer-list .sub_top_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.6;
}

/* ---------- ft_fix / main7 (공통 컴포넌트) ---------- */
#ai-lawyer-list .ft_fix {
    background: #1a1a2e;
    padding: 60px 0;
}

#ai-lawyer-list .ft_fix ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

#ai-lawyer-list .ft_fix li {
    background: rgba(255,255,255,0.03);
    transition: background 0.25s;
}

#ai-lawyer-list .ft_fix li:hover {
    background: rgba(159,129,86,0.12);
}

#ai-lawyer-list .ft_fix a {
    display: block;
    padding: 36px 28px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

#ai-lawyer-list .ft_fix_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0 0 16px;
}

#ai-lawyer-list .ft_fix_desc b {
    color: rgba(255,255,255,0.85);
}

#ai-lawyer-list .ft_fix_title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

#ai-lawyer-list .ft_fix_title img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

#ai-lawyer-list .ft_fix_ic {
    margin: 0;
}

#ai-lawyer-list .ft_fix_ic img {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

/* ---------- main7 상담 폼 ---------- */
#ai-lawyer-list .main7 {
    padding: 80px 0;
    background: #f8f6f3;
}

#ai-lawyer-list .main7 .wd1320 {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

#ai-lawyer-list .main7_lt {
    flex: 0 0 380px;
    padding-top: 20px;
}

#ai-lawyer-list .main7_rt {
    flex: 1;
}

#ai-lawyer-list .main_cate span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #9F8156;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid #9F8156;
    border-radius: 50px;
}

#ai-lawyer-list .main_subject {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

#ai-lawyer-list .main_subject span {
    color: #9F8156;
}

#ai-lawyer-list .main_desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

#ai-lawyer-list .main7_frm {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#ai-lawyer-list .main7_frm li {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

#ai-lawyer-list .main7_frm li.ver2 {
    gap: 0;
    flex-direction: column;
}

#ai-lawyer-list .main7_th {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 0 0 6px;
    min-width: 70px;
}

#ai-lawyer-list .main7_td {
    flex: 1;
}

#ai-lawyer-list .main7_td input,
#ai-lawyer-list .main7_td textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4ccc0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

#ai-lawyer-list .main7_td select {
    width: 100%;
    height: 52px !important;
    padding: 0 40px 0 16px !important;
    border: 1px solid #d4ccc0;
    border-radius: 8px;
    font-size: 14px !important;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    line-height: normal !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239F8156' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}


#ai-lawyer-list .main7_td select:focus,
#ai-lawyer-list .main7_td input:focus,
#ai-lawyer-list .main7_td textarea:focus {
    border-color: #9F8156;
}

#ai-lawyer-list .main7_td textarea {
    height: 120px;
    resize: none;
}

#ai-lawyer-list .main7_chk_wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#ai-lawyer-list .main7_chk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 0;
}

#ai-lawyer-list .main7_chk input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9F8156;
}

#ai-lawyer-list .agreeDetail {
    font-size: 12px;
    color: #9F8156;
    background: none;
    border: 1px solid #9F8156;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
}

#ai-lawyer-list .main7_btn {
    width: 100%;
    height: 54px;
    background: #9F8156;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    transition: background 0.2s;
}

#ai-lawyer-list .main7_btn:hover {
    background: #8a6d45;
}



/* fixedBan */
#ai-lawyer-list #fixedBan {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1a2e;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

#ai-lawyer-list .banWrap {
    display: flex;
    align-items: stretch;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

#ai-lawyer-list .banWrap__left {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 0;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    position: relative;
}

#ai-lawyer-list .fixedBan__speech-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    white-space: nowrap;
}

#ai-lawyer-list .fixedBan__speech-bubble h5 {
    font-size: 12px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

#ai-lawyer-list .fixedBan__speech-bubble h5 span {
    color: #9F8156;
    font-weight: 700;
}

#ai-lawyer-list .fixedBan__speech-bubble svg {
    position: absolute;
    bottom: -12px;
    left: 20px;
}

#ai-lawyer-list .banWrap__left img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

#ai-lawyer-list .banWrap__left span {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

#ai-lawyer-list .banWrap__left span b {
    color: #fff;
}

#ai-lawyer-list .banRight {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 0 12px 24px;
    gap: 12px;
}

#ai-lawyer-list .banRight ul {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

#ai-lawyer-list .banRight li {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ai-lawyer-list .banRight span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

#ai-lawyer-list .banRight input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    outline: none;
}

#ai-lawyer-list .banRight label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

#ai-lawyer-list .fixedBan__select-li {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ai-lawyer-list .fixedBan__select-wrap {
    position: relative;
}

#ai-lawyer-list .fixedBan__select-wrap select {
    height: 36px;
    padding: 0 28px 0 12px !important;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    outline: none;
    line-height: normal !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}


#ai-lawyer-list .banRight .contact {
    height: 40px;
    padding: 0 24px;
    background: #9F8156;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

#ai-lawyer-list .banRight .contact:hover {
    background: #8a6d45;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1200px) {
    #ai-lawyer-list .lawyer_li {
        width: calc(50% - 10px);
    }
    #ai-lawyer-list .lawyer_li:nth-child(n+3) {
        margin-top: 15px;
    }
    #ai-lawyer-list .ft_fix ul {
        grid-template-columns: repeat(2, 1fr);
    }
    #ai-lawyer-list .main7 .wd1320 {
        flex-direction: column;
        gap: 40px;
    }
    #ai-lawyer-list .main7_lt {
        flex: none;
    }
}

@media (max-width: 768px) {
    #ai-lawyer-list .lawyer_li {
        width: 100%;
        margin-top: 0 !important;
    }
    #ai-lawyer-list .sub_top {
        padding: 60px 0 40px;
    }
    #ai-lawyer-list .sub_top_depth {
        font-size: 26px;
    }
    #ai-lawyer-list .ft_fix ul {
        grid-template-columns: 1fr 1fr;
    }
    #ai-lawyer-list .banRight ul {
        display: none;
    }
}

/* ---------- Empty List (No Results) ---------- */
#ai-lawyer-list .empty_list {
    width: 100% !important;
    padding: 100px 0;
    text-align: center;
    color: #818181;
    font-size: 16px;
    list-style: none;
}
