/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;

}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    /* 스크롤 막기 */
    touch-action: none;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 상세설정 ---------------------------------------------------------------------------- */

main {
    margin-top: 60px;
}

.txt {
    background-image: url(/img/banner_8.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    /* 또는 원하는 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.txt h1 {
    font-size: 60px;
    font-weight: bold;
    display: inline-block;
    color: var(--main-white);
    /*letter-spacing: 8.5px;*/
}

.intro-image {
    text-align:center;
    margin: 50px 0px 0px 0px;
}

.intro-image img {
    max-width:100%;
    height:auto;
}

/* 이미지 정렬 */

.experts-section {
    margin-left: 200px;
}


.section-title {
    font-size: 30px;
    font-weight: bold;
    text-align: left;
    color: #204B62;
}

.profile-line {
    display: block;
    margin-bottom: 40px;
    margin-left: -11rem;
    width: 1500px;
    /* 원하는 크기로 조정 가능 */
}

.experts-row {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap; /* 이거 추가! */
    margin-bottom: 40px;
    align-items: center;
    margin-left: 50px;
}

.lawyer-role{
    font-size: 15px;
}

/* 기존 hover 효과에서 .lawyer-background img 제외 */
.experts-row a:hover .lawyer-photo img {
    transform: scale(1.05);
}

/* 전문위원 */

.advisors-section {
    margin-left: 200px;
}


.section-title1 {
    font-size: 30px;
    font-weight: bold;
    margin: 60px 0 0px 0;
    text-align: left;
    color: #204B62;
}

.profile-line1 {
    display: block;
    margin-bottom: 40px;
    width: 1500px;
    /* 원하는 크기로 조정 가능 */
}

.experts-row1 {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
    align-items: center;
    margin-left: 50px;
}

.experts-row1 img {
    width: 280px;
    margin-left: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experts-row1 img:hover {
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.lawyer-card {
    position: relative;
    width: 280px;
    height: 450px; /* 카드 높이 증가 */
    margin: 20px 15px 20px 3rem; /* top, right, bottom, left */
    overflow: hidden;
}

.lawyer-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.lawyer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-photo {
    position: absolute;
    top: 40px; /* 살짝 내리자 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lawyer-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(49, 49, 49, 0.7);
    color: white;
    padding: 10px 5px;
    z-index: 3;
    border-radius: 0 0 15px 15px;

}

.lawyer-specialty {
    font-size: 15px;
    color: #ffcc00;
    margin-bottom: 5px;
    text-align: right;
}

.lawyer-name {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}




/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */


/* PC 전용 */
@media screen and (min-width: 1440px) {

    .experts-section,
    .advisors-section {
        margin-left: 100px;
        padding: 0 10px;
    }

    .section-title1 {
        margin-top: 60px;
    }

    .experts-row a img{
    }

    .lawyer-photo-img{
    }

    .profile-line,
    .profile-line1 {
        margin-left: 0;
    }

    .experts-row,
    .experts-row1 {
        width: 70%;
        display: flex;
        flex-wrap: wrap;
        justify-content: start;    /* ✅ 3개 균등 정렬 */
        gap: 30px;                          /* ✅ 카드 사이 간격 */
        padding: 0 20px;
        box-sizing: border-box;
        margin-left: 10rem;
    }

    .lawyer-card,
    .advisor-card {
        width: calc(25% - 23px);       /* ✅ 정확히 3개씩 */
        height: auto;
        margin: 0;
        box-sizing: border-box;

        overflow: hidden;
    }

    .lawyer-photo,
    .advisor-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-left: 0;
        display: block;
    }
    /* 변호사 카드 내부 요소 맞춤 */
    .lawyer-info {
        padding: 10px;
        text-align: center;
        background: rgba(49, 49, 49, 0.7);
        color: white;
        width: 92%;
        border-radius: 0 0 15px 15px;
    }

    .lawyer-specialty {
        font-size: 20px;
    }

    .lawyer-name {
        font-size: 23px;
    }

    .lawyer-role {
        font-size: 20px;
    }
}
/* 노트북 전용 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {

    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .experts-section,
    .advisors-section {
        margin-left: 100px;
        padding: 0 10px;
    }

    .section-title,
    .section-title1 {
        margin: 0px 0 20px;
    }

    .section-title1 {
        margin-top: 60px;
    }

    .profile-line,
    .profile-line1 {
        margin-left: 0;
    }

    .experts-row,
    .experts-row1 {
        width: 85%;
        display: flex;
        flex-wrap: wrap;
        justify-content: start;    /* ✅ 3개 균등 정렬 */
        gap: 30px;                          /* ✅ 카드 사이 간격 */
        padding: 0 20px;
        box-sizing: border-box;
    }

    .lawyer-card,
    .advisor-card {
        width: calc(25% - 23px);       /* ✅ 정확히 3개씩 */
        height: auto;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .lawyer-photo,
    .advisor-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-left: 0;
        display: block;
    }
    /* 변호사 카드 내부 요소 맞춤 */
    .lawyer-info {
        padding: 10px;
        text-align: center;
        background: rgba(49, 49, 49, 0.7);
        color: white;
        width: 92%;
    }

    .lawyer-specialty {
        font-size: 20px;
    }

    .lawyer-name {
        font-size: 23px;
    }

    .lawyer-role {
        font-size: 20px;
    }
}


/* 태블릿 전용 */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .experts-section,
    .advisors-section {
        margin-left: 0;
        padding: 0 10px;
    }

    .section-title,
    .section-title1 {
        margin: 0px 0 20px;
    }

    .section-title1 {
        margin-top: 60px;
    }


    .profile-line,
    .profile-line1 {
        margin-left: 0;
    }

    .experts-row,
    .experts-row1 {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;    /* ✅ 3개 균등 정렬 */
        gap: 30px;                          /* ✅ 카드 사이 간격 */
        margin: 0 auto 20px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .lawyer-card,
    .advisor-card {
        width: calc(33.333% - 20px);       /* ✅ 정확히 3개씩 */
        height: auto;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .lawyer-photo,
    .advisor-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-left: 0;
        display: block;
    }
    /* 변호사 카드 내부 요소 맞춤 */
    .lawyer-info {
        padding: 10px;
        text-align: center;
        background: rgba(49, 49, 49, 0.7);
        color: white;
        width: 92%;
    }

    .lawyer-specialty {
        font-size: 20px;
    }

    .lawyer-name {
        font-size: 23px;
    }

    .lawyer-role {
        font-size: 20px;
    }
}


/* 모바일 전용 */
@media screen and (min-width: 481px) and (max-width: 767px) {

    .txt h1 {
        font-size: 40px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }


    .experts-section,
    .advisors-section {
        margin-left: 0;
        padding: 0 10px;
    }


    .banner1 img{
        width: 400px;
    }


    .section-title,
    .section-title1 {
        font-size: 26px;
        text-align: center;
        margin: 30px auto 15px;
    }

    .profile-line,
    .profile-line1 {
        margin: 10px auto 20px;

    }

    .experts-row,
    .experts-row1 {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
        margin: 0 auto 30px;
    }

    .lawyer-card,
    .advisor-card {
        width: calc(50% - 15px);
        margin: 10px 0;
        height: auto;

        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lawyer-photo,
    .advisor-photo {
        width: 100%;
        margin-top: 0;
    }

    .lawyer-photo img,
    .advisor-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        margin-left: 0;
        display: block;
    }

    .lawyer-info {
        padding: 8px 5px;
        background: rgba(49, 49, 49, 0.7);
        color: white;
        width: 95%;
        text-align: center;
    }

    .lawyer-specialty {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .lawyer-name {
        font-size: 18px;
    }

    .lawyer-role {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .txt {
        height: 250px;          /* 배경 영역 축소 */
    }

    .txt h1 {
        font-size: 35px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .experts-section,
    .advisors-section {
        margin-left: 0;
        padding: 0 10px;
    }

    .banner1{
        height: 200px;
    }

    .banner1 img{
        width: 350px;
    }

    .section-title,
    .section-title1 {
        font-size: 22px;
        text-align: center;
        margin: 25px auto 10px;
    }

    .profile-line,
    .profile-line1 {
        margin: 10px auto 20px;

    }

    .experts-row,
    .experts-row1 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
        margin: 0 auto 20px;
    }

    .lawyer-card,
    .advisor-card {
        width: calc(50% - 12px);
        margin: 8px 0;
        height: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lawyer-photo,
    .advisor-photo {
        width: 100%;
        margin-top: 0;
    }

    .lawyer-photo img,
    .advisor-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin-left: 0;
    }

    .lawyer-info {
        padding: 8px 5px;
        background: rgba(49, 49, 49, 0.7);
        color: white;
        width: 95%;
        text-align: center;
    }

    .lawyer-specialty {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .lawyer-photo-img{
        margin-left: -30px;
    }

    .lawyer-name {
        font-size: 16px;
    }

    .lawyer-role {
        font-size: 12px;
    }
}