/* 공통 색상 변수 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 공통 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SUIT-Regular', sans-serif;
}
ul, ol { list-style: none; }
a {
    text-decoration: none;
    color: var(--main-text);
}
img {
    vertical-align: bottom;
    display: block;
    max-width: 100%;
}
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #fff;
}

.search-subbox {
    text-align: center;
    margin: 30px auto;
}
.search-subbox form {
    display: inline-flex;
    border: 2px solid #123144;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 20px;
}
.search-subbox input[type="text"] {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    width: 300px;
}
.search-subbox button {
    background: none;
    border: none;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
    color: #123144;
}
.search-keywords {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}
.search-keywords .keyword-pill {
    background-color: #e0f4ff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    color: #123144;
}

/* 제목 */
.search-title {
    padding-top: 200px;
    text-align: center;
    margin-bottom: 60px;
    font-size: 24px;
    color: var(--main-text);
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin: 60px 0 40px 120px;
    color: #1a1a1a;
}
/* 전문가 소개 영역 */
.expert-section {
    padding: 60px 20px;
    background-color: #fff;
}
.expert-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 40px 120px;
    color: #1a1a1a;
}
.expert-zigzag-slide {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 300px;
    padding: 0 20px;
}
.zigzag-card {
    width: 220px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
}
.zigzag-card:hover {
    transform: translateY(-8px);
}
.zigzag-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.lawyer-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%;
}
.background-img {
    position: absolute;
    top: 0;
    left: 110px;
    width: 50%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.lawyer-photo-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
}
.zigzag-card strong {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #01576b;
    margin-top: 10px;
}
.zigzag-card span {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    display: block;
}
/* 카드 영역 공통 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.card-box {
    width: calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    filter: grayscale(0%);
}

.card-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
}

.card-text {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-navi);
    margin-bottom: 10px;
}

.card-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 줄 수 조절 */
    -webkit-box-orient: vertical;
    line-height: 1.6;
    max-height: 3.2em; /* 줄 수 * line-height */
}

.card-meta {
    display: flex;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.card-tag {
    font-weight: bold;
    color: var(--main-navi);
}

/* 더보기 버튼 */
.more-btn {
    text-align: center;
    margin-bottom: 80px;
}

.more-btn a {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--main-navi);
    color: #fff;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.more-btn a:hover {
    background-color: #123144;
}

/* 변호사 정보 박스 */
.lawyer-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.card-box .lawyer-box .lawyer-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-left: 20%;
    object-position: top;
}

.lawyer-info {
    display: flex;
    flex-direction: column;
}

.lawyer-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--main-navi);
    line-height: 1.2;
}

.lawyer-specialty {
    font-size: 13px;
    color: #555;
}
