body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 헤더 상단 영역 */
.header-top {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 20px;
}

.header-top-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: #6c757d;
}

.top-link {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s;
    font-size: 12px;
}

.top-link:hover {
    color: #333;
}

.separator {
    margin: 0 8px;
    color: #dee2e6;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

/* 공통 설정 */
.icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 사용자 프로필 이미지 스타일 */
.user-profile {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav ul li {
    display: inline;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

.nav ul li a:hover {
    color: #00695c;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 5px;
    background-color: #00695c;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

.nav .nav-menu {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav .nav-toggle {
    margin-left: 4px;
    padding: 6px 3px;
    border: 0;
    background: transparent;
    color: #52616a;
    cursor: pointer;
    font-size: 13px;
}

.nav .nav-dropdown-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 8px;
    border: 1px solid #dce5e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
    z-index: 1001;
}

.nav .nav-menu:hover > .nav-dropdown-wrap,
.nav .nav-menu:focus-within > .nav-dropdown-wrap,
.nav .nav-menu.is-open > .nav-dropdown-wrap {
    display: block;
}

.nav .nav-dropdown,
.nav .nav-sublist {
    display: block;
    padding: 0;
    margin: 0;
}

.nav .nav-dropdown li,
.nav .nav-sublist li {
    display: block;
}

.nav .nav-dropdown a,
.nav .nav-sublist a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.35;
}

.nav .nav-dropdown a:hover,
.nav .nav-sublist a:hover {
    background: #eef7f5;
}

.nav .nav-dropdown a::after,
.nav .nav-sublist a::after {
    display: none;
}

.nav .nav-sublist {
    margin: 0 0 7px 12px;
    border-left: 2px solid #e5eeeb;
}

.nav .nav-sublist a {
    font-size: 13px;
    color: #516260;
}

/* 기존 스타일 제거 - 새로운 nav 구조에 맞게 수정됨 */

.container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 15px;
}

/* 배너 및 서비스 패널 */
.banner-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-height: 220px;
    margin-bottom: 44px;
}

.banner {
    flex: 2;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* 서비스 컨테이너 */
.service-container {
    flex: 1;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 배너 Swiper 스타일 */
.banner-swiper {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.banner-swiper .swiper-wrapper {
    height: 100% !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.banner-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    max-height: 220px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover;
    border-radius: 10px;
}

/* service-panel 세로 2열 */
.service-panel {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.full-width {
    width: 100%;
}

/* right-panel 수정 */
.right-panel {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    align-items: stretch; /* 높이를 동일하게 맞춤 */
    height: 100%;
}

/* service-box 공통 스타일 */
.service-box {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 60px; /* 최소 높이 설정 */
    max-height: 108px;
    cursor: pointer;
    overflow: hidden; /* 이미지가 박스를 벗어나지 않도록 */
}

.service-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지 비율 유지하면서 박스에 맞춤 */
    max-width: 100%;
    max-height: 100%;
}

.small-box {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 40px;
    max-height: 70px;
    overflow: hidden; /* 이미지가 박스를 벗어나지 않도록 */
}

.small-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지 비율 유지하면서 박스에 맞춤 */
    max-width: 100%;
    max-height: 100%;
}

.service-panel .service-box {
    min-height: 60px; /* 좌측 박스도 동일한 높이 적용 */
    height: 100%;
}

/* 카테고리 10개씩 */
.categories-all{
    background: #ffffff;
    margin-bottom: 44px;
}

.consultation-title {
    font-size: 24px;
    color: #333;
    margin: 30px 0 20px 30px;
    text-align: left;
    font-weight: 600;
}

.categories {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin-top: 5px;
    text-align: center;
}

.category-box {
    background: none;
    padding: 0px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-box:hover p {
    color: #00695c;
}

.icon-circle:hover {
    border: 1px solid #00695c;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    border: 1px solid transparent;
}

.icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-box p {
    margin: 0;
    font-size: 14px;
    color: #333;
}



/* 배너 이미지 공간 */
.ad-banner {
    width: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 44px;
}

.ad-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}



/* 실시간 활동 중인 변호사 */
.lawyer-section {
    max-width: 1200px;
    margin-bottom: 44px;
}

.lawyer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lawyer-section h2 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: bold;
}

.lawyer-swiper {
    padding-bottom: 20px;
}

.live-active-lawyer {
    margin-top: 50px;
}

.lawyer-card {
    background: #f1f1f5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;
    min-height: 160px;
    position: relative;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.lawyer-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.lawyer-profile {
    flex-shrink: 0;
    position: relative;
}

.lawyer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: fill;
    border: 3px solid #f0f0f0;
}

.profile-arrow {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #00695c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.profile-arrow:hover {
    background: #0080ff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lawyer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lawyer-header {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.lawyer-card h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: bold;
    flex-shrink: 0;
}

.lawyer-title {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.lawyer-office {
    font-size: 18px;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.tags .tag-item {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    box-sizing: border-box;
}

.tag-item {
    display: inline-block;
    background: #ffffff;
    color: #00695c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lawyer-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.consult-btn {
    display: block;
    width: 100%;
    padding: 12px 0px;
    color: #00695c;
    border: 1px solid #00695c;
    border-radius: 10px;
    text-decoration: none;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
}

.consult-btn:hover {
    background: #0080ff;
    color: #fff;
}

/* Swiper 네비게이션 스타일 */
.popular-law-swiper .swiper-navigation,
.law-specialist-swiper .swiper-navigation {
    padding: 25px 0 0 0;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* lawyer-swiper 네비게이션만 별도 처리 */
.lawyer-header .swiper-navigation {
    padding: 0;
    margin: 0;
    border-top: none;
}

/* popular-law-header 네비게이션만 별도 처리 */
.popular-law-header .swiper-navigation {
    padding: 0;
    margin: 0;
    border-top: none;
}

/* law-specialist-header 네비게이션만 별도 처리 */
.law-specialist-header .swiper-navigation {
    padding: 0;
    margin: 0;
    border-top: none;
}

.popular-law-swiper .swiper-progress,
.law-specialist-swiper .swiper-progress {
    position: relative;
    width: 100%;
}

/* lawyer-swiper progress만 별도 처리 */
.lawyer-header .swiper-progress {
    position: relative;
    width: auto;
    min-width: 120px;
}

/* popular-law-header progress만 별도 처리 */
.popular-law-header .swiper-progress {
    position: relative;
    width: auto;
    min-width: 120px;
}

/* law-specialist-header progress만 별도 처리 */
.law-specialist-header .swiper-progress {
    position: relative;
    width: auto;
    min-width: 120px;
}

/* lawyer-swiper에서는 progress bar 숨기기 */
.lawyer-header .swiper-progress-bar {
    display: none;
}






.popular-law-swiper .swiper-buttons,
.law-specialist-swiper .swiper-buttons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    width: 100px;
    justify-content: flex-end;
}

/* lawyer-swiper 버튼만 별도 처리 */
.lawyer-header .swiper-buttons {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* popular-law-header 버튼만 별도 처리 */
.popular-law-header .swiper-buttons {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* law-specialist-header 버튼만 별도 처리 */
.law-specialist-header .swiper-buttons {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.popular-law-swiper .swiper-button-next,
.popular-law-swiper .swiper-button-prev,
.law-specialist-swiper .swiper-button-next,
.law-specialist-swiper .swiper-button-prev {
    color: #666 !important;
    background: #f8f9fa !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: static !important;
    z-index: 10 !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* lawyer-swiper 버튼만 별도 스타일 적용 */
.lawyer-header .swiper-button-next,
.lawyer-header .swiper-button-prev {
    color: #666 !important;
    background: #f8f9fa !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: static !important;
    z-index: 10 !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* popular-law-header 버튼만 별도 스타일 적용 */
.popular-law-header .swiper-button-next,
.popular-law-header .swiper-button-prev {
    color: #666 !important;
    background: #f8f9fa !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: static !important;
    z-index: 10 !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* law-specialist-header 버튼만 별도 스타일 적용 */
.law-specialist-header .swiper-button-next,
.law-specialist-header .swiper-button-prev {
    color: #666 !important;
    background: #f8f9fa !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: static !important;
    z-index: 10 !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.popular-law-swiper .swiper-button-next:hover,
.popular-law-swiper .swiper-button-prev:hover,
.law-specialist-swiper .swiper-button-next:hover,
.law-specialist-swiper .swiper-button-prev:hover {
    background: #00695c !important;
    color: #fff !important;
    border-color: #00695c !important;
    transform: translateY(-1px) !important;
}

/* lawyer-swiper hover 효과 */
.lawyer-header .swiper-button-next:hover,
.lawyer-header .swiper-button-prev:hover {
    background: #00695c !important;
    color: #fff !important;
    border-color: #00695c !important;
    transform: translateY(-1px) !important;
}

/* popular-law-header hover 효과 */
.popular-law-header .swiper-button-next:hover,
.popular-law-header .swiper-button-prev:hover {
    background: #00695c !important;
    color: #fff !important;
    border-color: #00695c !important;
    transform: translateY(-1px) !important;
}

/* law-specialist-header hover 효과 */
.law-specialist-header .swiper-button-next:hover,
.law-specialist-header .swiper-button-prev:hover {
    background: #00695c !important;
    color: #fff !important;
    border-color: #00695c !important;
    transform: translateY(-1px) !important;
}

.popular-law-swiper .swiper-button-next::after,
.popular-law-swiper .swiper-button-prev::after,
.law-specialist-swiper .swiper-button-next::after,
.law-specialist-swiper .swiper-button-prev::after {
    display: none !important;
}

/* lawyer-swiper ::after 제거 */
.lawyer-header .swiper-button-next::after,
.lawyer-header .swiper-button-prev::after {
    display: none !important;
}

/* popular-law-header ::after 제거 */
.popular-law-header .swiper-button-next::after,
.popular-law-header .swiper-button-prev::after {
    display: none !important;
}

/* law-specialist-header ::after 제거 */
.law-specialist-header .swiper-button-next::after,
.law-specialist-header .swiper-button-prev::after {
    display: none !important;
}

.popular-law-swiper .swiper-button-prev::before,
.law-specialist-swiper .swiper-button-prev::before {
    content: '<' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

.popular-law-swiper .swiper-button-next::before,
.law-specialist-swiper .swiper-button-next::before {
    content: '>' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

/* lawyer-swiper 화살표 */
.lawyer-header .swiper-button-prev::before {
    content: '<' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

.lawyer-header .swiper-button-next::before {
    content: '>' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

/* popular-law-header 화살표 */
.popular-law-header .swiper-button-prev::before {
    content: '<' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

.popular-law-header .swiper-button-next::before {
    content: '>' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

/* law-specialist-header 화살표 */
.law-specialist-header .swiper-button-prev::before {
    content: '<' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

.law-specialist-header .swiper-button-next::before {
    content: '>' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
}

/* 상담 사례 & 커뮤니티 베스트 */
/* 가로 배치 설정 */
.best-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 44px;
}

.best-item {
    width: 48%;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    cursor: pointer;
}

.best-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.best-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.best-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
    position: relative;
    min-height: 95px;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.best-list li:last-child {
    border-bottom: none;
}

.title {
    font-size: 16px;
    font-weight: bolder;
    line-height: 1.2;
    color: #333;
    letter-spacing: -0.02em;
    font-family: 'Arial', sans-serif;
    display: inline-block;
    margin: 0;
    padding: 0;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

/* 제목과 태그를 함께 표시하는 컨테이너 */
.title-with-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.title-with-tag .tag {
    flex-shrink: 0;
    margin-right: 0;
}

.title-with-tag .title {
    flex: 1;
    margin: 0;
}


.desc{
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    flex: 1;
    line-height: 1.4;
}

.tag{
    font-size: 12px;
    color: #00695c;
    font-weight: bold;
    display: inline-block;
    padding: 3px 8px;
    background: #e7f8f2;
    border-radius: 5px;
}

.info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-shrink: 0;
    margin-top: auto;
    min-height: 24px; /* 좋아요 영역이 없어도 동일한 높이 유지 */
}

.stats {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 0; /* 오른쪽 여백 제거 */
    flex-shrink: 0;
}

.profile {
    display: flex;
    gap: 5px;
    margin-left: 5px; /* like, comment와 프로필 이미지 간격 최소화 */
}

.profile img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}




/* 인기 법률 정보 */
.popular-law-section {
    max-width: 1200px;
    margin-bottom: 44px;
}

.popular-law-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popular-law-section h2 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: bold;
}

.popular-law-swiper {
    padding-bottom: 20px;
}

.law-card {
    background: #d1f0e9;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    min-height: 180px;
    cursor: pointer;
}

.law-card:hover {
    transform: translateY(-5px);
}

.law-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.law-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.law-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #d1f0e9;
}

/* 중복된 .info 스타일 제거 */

.like-box {
    display: flex;
    align-items: center;
    border: 1px solid #4caf50;
    border-radius: 20px;
    padding: 3px 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.like-box:hover {
    transform: translateY(-2px);
}

.like-box img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.like-box .like {
    color: green;
    font-weight: bold;
    font-size: 14px;
}




/* 지금 진행 중인 투표 */
.poll-section {
    background: linear-gradient(135deg, #2cb5e8 0%, #1fc8db 100%);
    width: 100vw;
    margin: 0 calc(50% - 50vw); /* 화면 전체 너비 */
    padding: 60px 0;
    color: white;
}

.poll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.poll-container h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}

.poll-container p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #e0f7ff;
}

.poll-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.poll-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.poll-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.vote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.vote-bar span {
    font-size: 14px;
    color: #333;
}

.progress {
    background: #e0e0e0;
    border-radius: 20px;
    flex-grow: 1;
    height: 10px;
    margin: 0 10px;
    overflow: hidden;
}

.progress-bar {
    background: #00bcd4;
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s;
}

.vote-count {
    font-size: 14px;
    color: #333;
}

.vote-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #00bcd4;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.vote-btn:hover {
    background: #019aa7;
}

/* 다음 컨텐츠 */
.next-content {
    padding: 40px 0;
}

.next-content h2 {
    font-size: 28px;
    color: #333;
}

.next-content p {
    font-size: 16px;
    color: #666;
}



/* Law Specialist 섹션 */
.law-specialist-section {
    text-align: center;
    margin-bottom: 44px;
}

.law-specialist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.law-specialist-section h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    text-align: left;
    font-weight: bold;
}

.law-specialist-swiper {
    cursor: pointer;
    padding-bottom: 20px;
}

.profile-card {
    text-align: center;
    width: auto;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}

.profile-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.active-bar {
    height: 4px;
    width: 50px;
    background: #00bcd4;
    margin: 10px auto 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Swiper 기본 스타일 조정 */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    transition: color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #00bcd4;
}

/* Swiper 기본 버튼 스타일 오버라이드 */
.lawyer-swiper .swiper-button-next,
.lawyer-swiper .swiper-button-prev {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.swiper-slide {
    flex-shrink: 0;
    width: auto;
}




/* 파트너 로고 섹션 */
.partners-section {
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.partners-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    flex: 1 1 auto;
    max-width: 150px;
    text-align: center;
    transition: transform 0.3s;
}

.partner-logo img {
    width: 100%;
    max-width: 120px;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
    opacity: 0.7;
}

/*.partner-logo img:hover {*/
/*    filter: grayscale(0%);*/
/*    opacity: 1;*/
/*    transform: scale(1.1);*/
/*}*/



/* 서비스 전체보기 영역 */
.service-overview {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.service-overview-header {
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    background: #e7e7e7;
    padding: 0;
}

.service-overview-toggle {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
    background: rgb(114, 114, 114);
    width: fit-content;
}



.service-overview-toggle.active {
    background: rgb(17, 177, 182);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 10px;
}

.hamburger-icon span {
    width: 16px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}



.toggle-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.service-overview-content {
    display: none;
    background-color: #f8f8f8;
    padding: 30px 20px;
    max-width: 1165px;
    margin: 0 auto;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    margin-bottom: 30px;
}

.service-overview-grid .service-category:first-child {
    grid-row: span 2;
}

.service-category h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category li {
    margin-bottom: 8px;
}

.service-category a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.service-category a:hover {
    color: #00695c;
}



/* Footer 스타일 */
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    color: #666;
    font-size: 12px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 상단 메뉴 */
.footer-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.footer-menu li {
    list-style: none;
}

.footer-menu li a {
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #333;
}

/* 하단 정보 */
.footer-info {
    text-align: left;
    color: #999;
    line-height: 1.6;
}

.footer-info .footer-logo img {
    max-height: 30px;
    margin-bottom: 10px;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info .copyright {
    margin-top: 10px;
    color: #ccc;
    font-size: 11px;
}





/* 서비스 박스 텍스트 스타일 */
.service-box span {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    text-align: center;
    line-height: 1.2;
    padding: 0 10px;
}

/* 온라인 법률상담 - 연한 초록색 */
.online-consultation {
    background: #e8f5e8;
}

/* 변호사 전화상담 - 연한 초록색 */
.phone-consultation {
    background: #e8f5e8;
}

/* 변호사 찾기 - 연한 회색 */
.find-lawyer {
    background: #f0f0f0;
}

/* 법률 지식 - 연한 주황색/복숭아색 */
.legal-knowledge {
    background: #ffe8d6;
}

/* 고객문의 - 연한 파란색/회색 */
.customer-inquiry {
    background: #e6f3ff;
}
