/* =============================================
   법무법인 재이 - 메인페이지 CSS
   ============================================= */

:root {
    --primary-color: #1a3a5c;
    --primary-dark: #0f2a45;
    --accent-color: #c9a227;
    --text-dark: #222;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;
    --white: #fff;
    --border-color: #ddd;
}

body{color:#181818;}
/* 공통 스타일 */
.index-section {
    padding: 80px 0;
}

.index-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title h2 span {
    color: #326fee
}

.section-title p {
    font-size: 24px;
    color: #181818;
    margin-top: 20px;
	word-break:keep-all;
}

/* =============================================
   섹션 1: 메인 배너
   ============================================= */
.hero-section {
    position: relative;
    height: 923px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 14, 14, 0.749);
    opacity: 0.749;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('../img/index/twi001t3233690.jpg') center/cover no-repeat;
    z-index: 0;
    animation: heroBackgroundMove 30s ease-in-out infinite;
}

@keyframes heroBackgroundMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5%);
    }
    100% {
        transform: translateX(0);
    }
}

.hero-text-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 20px));
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.hero-content {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    max-width: 1260px;
    background-color: rgba(13, 21, 34, 0.8);
    opacity: 0.902;
    padding: 35px 20px;
    text-align: center;
	border-radius:35px 0px 35px 0px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin-bottom: 60px;
}

.fade-char {
    display: inline-block;
    opacity: 0;
}

.hero-text-wrap .hero-desc {
    font-size: 20px;
    line-height: 1.5;
    color: white;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.hero-stat-arrow {
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.hero-stat-arrow img {
    display: block;
}

.hero-stat-item {
    text-align: center;
}

/* PC: stat-left wrapper는 투명하게 동작 */
.hero-stat-item .stat-left {
    display: contents;
}

.hero-stat-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.hero-stat-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-stat-item .icon img.m_line{display:none;}
@media (max-width: 768px) {
	.hero-stat-item .icon img.m_line{display:inline-block;width:var(--font-60);}
	.hero-stat-item .icon img.pc_line{display:none;}
}
@media (max-width: 650px) {
	.hero-stat-item .icon img.m_line{width:var(--font-70);}
}
@media (max-width: 500px) {
	.hero-stat-item .icon img.m_line{width:var(--font-80);}
}
@media (max-width: 400px) {
	.hero-stat-item .icon img.m_line{width:var(--font-90);}
}
.hero-stat-item .number {
    margin-bottom:15px;color:#78a2f9;font-weight:700;font-size:18px;
}

.hero-stat-item .label {
	color:#b0b2b6;
    font-size: 16px;
	line-height:1.6;
}
.hero-stat-item .label strong{
	color:white;font-weight:600;
}



/* =============================================
   섹션 2: 업무 프로세스
   ============================================= */
.process-section {
    background: url('../img/index/2_background.png') center/cover no-repeat;
    position: relative;
	padding:150px 0px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 65px;
}

.process-step {
    text-align: left;
    padding: 30px 25px;
    background: #fff;
    border-radius: 20px 0px 20px 0px;
	border:1px solid #d1d1d1;
	box-shadow: 0px 0px 32px 0px rgba(173, 173, 173, 0.17);
}

.process-step .step-num {
    display: inline-flex;
	align-items:center;justify-content:center;
	height:35px;
    padding: 0px 15px;
    background: transparent;
    color: #326fee;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    border: 2px solid #326fee;
    margin-bottom: 20px;
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.process-step .step-num.active {
    border-color: #326fee;
    background-color: #326fee;
    color: white;
}

.process-step h4 {
    font-size: 20px;
    font-weight: 700;
    color: #181818;
    margin-bottom: 0;
}

.step-line {
    width: 100%;
    height: 1px;
    background: #dfdfdf;
    margin: 40px 0;
}

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

.step-desc li {
    position: relative;
    padding-left: 14px;
    font-size: 16px;
    line-height: 25px;
    color: #181818;
    margin-bottom: 10px;
    word-break: keep-all;
}

.step-desc li:last-child {
    margin-bottom: 0;
}

.step-desc li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 0;
    color: #555;
    font-weight: 700;
}


/* =============================================
   섹션 3: 업무분야
   ============================================= */
.practice-section {
	padding:120px 0px;
    background: var(--white);
}

.practice-grid {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.practice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height:72px;
	padding: 0px 20px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #181818;
    text-decoration: none;
    transition: all 0.3s;
    word-break: keep-all;
}

.practice-item:hover{
  border-color: #2c70eb;
  box-shadow: 0px 0px 32px 0px rgba(0, 63, 207, 0.17);
}

.practice-item .arrow img.pc_line.arrow-on {display: none;}
.practice-item:hover .arrow img.pc_line.arrow-off {display: none;}
.practice-item:hover .arrow img.pc_line.arrow-on {display: block;}
.practice-item .arrow img.m_line{display:none;}
@media (max-width: 768px) {
	.practice-item .arrow img.pc_line.arrow-off {display: none;}
	.practice-item:hover .arrow img.pc_line.arrow-on {display: none;}
	.practice-item .arrow img.m_line.arrow-off{display:block;}
	.practice-item:hover .arrow img.m_line.arrow-off{display:none;}
	.practice-item:hover .arrow img.m_line.arrow-on{display:block;}
	.practice-item .arrow img.m_line{width:20px;}
}


.practice-item:hover {
    border-color: #326fee;
    color: #326fee;
	font-weight:bold;
}


/* =============================================
   섹션 4: CTA (초기대응)
   ============================================= */
.cta-section {
    height: 775px;
    background:  no-repeat center center;
	background-size:cover;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.cta-section .index-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.cta-top {
    padding-top: 100px;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
	color:#cecece;
}

.cta-section h2 .highlight {
    color: #78a4ff;
	font-style: italic;
}

.cta-divider {
    width: 23px;
    height: 1px;
    background: rgb(193, 193, 193);
    margin: 0 auto 15px;
}


.cta-section  div, 
.cta-section  p{word-break:keep-all;}

.cta-section .cta-desc {
    font-size: 22px;
    color: #e8e8e8;
	line-height:1.7
}
.cta-section .cta-desc strong{color:white;}

.cta-bottom {
    padding-bottom: 120px;
}

.cta-keyword {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
	color:#cecece;
	line-height:1.5;
}

.cta-keyword .highlight {
    color:#e93030;
	font-style: italic;
}

.cta-sub {
    font-size: 22px;
    color:#cecece;
    line-height:1.5;
    margin: 0;
}
.cta-sub strong{color:white;}
/* =============================================
   섹션 5: 변호사 소개
   ============================================= */
.lawyers-section {
    padding: 80px 0;
}

.lawyers-slider-wrapper {
    position: relative;
    margin-top: 40px;
}

.lawyers-swiper {
    overflow: hidden;
    height: 420px;
}

.lawyers-swiper .swiper-slide {
    overflow: visible;
}

.lawyer-item {
    display: block;
    text-decoration: none;
    position: relative;
    height: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.lawyer-photo {
    width: 350px;
    height: 100%;
    background: #e8e8e8;
    overflow: hidden;
    border-radius: 20px;
	padding: 0px 0px 0px 0px;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    margin-top: 0px;
}

.lawyer-info {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 330px;
    height: 220px;
    padding: 0;
    background-color: #303c4f;
    color: white;
    border-radius: 25px 0px 25px 0px;
    z-index: 2;
    overflow: hidden;
}

.lawyer-name {
    display: flex;
    align-items: baseline;
    height: 70px;
    background: #0d1522;
    color: white;
    font-size: 24px;
    font-weight: 700;
    padding-left: 50px;
    margin: 0;
    line-height: 70px;
    border-bottom-right-radius: 25px;
}

.lawyer-position {
    font-size: 18px;
    font-weight: 400;
    margin-left: 8px;
}

.lawyer-career {
    list-style: none;
    padding: 20px 20px 0px 50px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.lawyer-career li {
    position: relative;
    font-size: 16px;
    line-height: 24px;
}

/* 좌우 버튼 스타일 */
.lawyers-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.lawyers-nav:hover {
    opacity: 0.7;
}

.lawyers-nav img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lawyers-prev {
    left: -80px;
    right: auto;
}

.lawyers-next {
    right: -80px;
    left: auto;
}

/* =============================================
   섹션 6: 성공사례
   ============================================= */
.cases-section {
	padding:70px 0px;
	background:no-repeat center center ;
	background-size:cover;
}

.case {
	margin-top:50px;
    width: 100%;
    text-align: center;
}

/* 탭 메뉴 스타일 */
.case .tab-menu {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.case .tab-item {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	background-color:white;
	height:50px;
    padding: 0px 30px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case .tab-item:hover {
    background-color: #7a8894;
    color: #fff;
    border-color: #7a8894;
}

.case .tab-item.active {
    background-color: #2c343d;
    color: #fff;
    border-color: #2c343d;
}

/* Swiper 컨테이너 */
.cases-swiper {
    margin-bottom: 40px;
    padding: 30px 0 20px 0;
}

.cases-swiper .swiper-slide {
    height: auto;
}

/* 카드 기본 스타일 */
.case .card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: left;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.case .badge {
    display: inline-flex;
	align-items:center;
	justify-content:center;
	height:35px;
    padding: 0px 20px;
    border: 1px solid #d1d1d1;
    border-radius: 20px;
    font-size: 18px;
    margin-bottom: 25px;
	font-weight:600;
}

.case .card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
	height:67px;
    margin-bottom: 45px;
    word-break: keep-all;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
	overflow:hidden;
}

.case .card-desc {
    font-size: 16px;
    color: #4e4e4e;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 마우스 오버 효과 (첫 번째 이미지 스타일 적용) */
.case .card:hover, .card-active {
    background-color: rgb(50, 111, 238);
    color: #fff;
    transform: translateY(-15px); /* 위로 들리는 효과 */
    box-shadow: 0px 0px 32px 0px rgba(50, 51, 51, 0.25);
}

.case .card:hover .badge, .card-active .badge {
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}

.case .card:hover .card-desc, .card-active .card-desc {
    color: rgba(255,255,255,0.9);
}

/* 뷰올 버튼 */

.view-all {
	display:inline-flex;
	align-items:center;
	justify-content:center;
    font-size: 18px;
    font-weight: 500;
    color: #797979;
    cursor: pointer;
}
.view-all span{margin-right:15px;}
.practice-section .view-all{margin:40px 0px;}

/* =============================================
   섹션 7: 법률상담 신청
============================================= */
.consultation-section {
	padding:70px 0px;
	background:no-repeate center center; 
	background-size:cover; 
	color:white;
}

.consultation-section .section-title h2 {
    color: var(--white);
}

.consultation-section .section-title p {
    color: #cecece;
}

.counsel {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 1:1 비율로 분할 */
    gap: 40px;
    width: 100%;
    padding: 50px 0px 0px 0px;
}

/* 왼쪽: 상담현황 영역 */
.counsel .counsel-status {
    background: rgba(40, 47, 57, 0.72);
    padding: 55px 40px;
    border-radius: 30px;
    overflow: hidden;
}

.counsel .counsel-status h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.counsel-swiper {
    overflow: hidden;
    height: 525px;
}

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

.counsel .status-item {
    height: 75px;
}

.counsel .status-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    border-bottom: 2px solid rgb(102, 115, 133);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.counsel .status-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.counsel .swiper-slide:first-child .status-link {
    border-top: 2px solid rgb(102, 115, 133);
}

.counsel .status-item .title {
    flex: 2;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.counsel .status-item .category {
    flex: 1;
    font-size: 16px;
    text-align: center;
}

.counsel .btn {
    width: 120px;
    height: 40px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}

.counsel .btn-apply { background-color: rgb(70, 79, 91); color: #fff; }
.counsel .btn-complete { background-color: rgb(50, 111, 238); color: #fff; }



/* 오른쪽: 상담 신청 폼 영역 */
.counsel .counsel-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.counsel .form-input, .counsel .select-box, .counsel .form-textarea {
    width: 100%;
	height:64px;
    background: rgba(40, 47, 57, 0.902);
    border: 1px solid  rgb(122, 132, 148);
    border-radius: 15px;
    padding:0px 30px;
	color: #fff;
    font-size: 18px;
    outline: none;
}



.counsel .form-input::placeholder, 
.counsel .select-box::placeholder,
.counsel .form-textarea::placeholder{
  color: #999eaa;
  opacity: 1;          /* Firefox에서 색이 흐릿하게 나오는 것 방지 */
}

.counsel .form-input::placeholder,
.counsel .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.counsel .form-input::-webkit-input-placeholder,
.counsel .form-textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.counsel .form-input::-moz-placeholder,
.counsel .form-textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.counsel .select-box {
    position: relative;
    color: #888;
    cursor: pointer;
}

.counsel .form-textarea {
    height: 240px;
	padding:30px;
    resize: none;
}

.counsel .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.counsel .checkbox-container {
    display: flex;
    align-items: center;
    font-size: 16px;
     color: #cbcbcb;
    cursor: pointer;
}

.counsel .checkbox-container {
    position: relative;
}

.counsel .checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-right: 10px;
    width: 22px;
    height: 22px;
    background-color: rgba(40, 47, 57, 0.902);
    border: 1px solid rgb(122, 132, 148);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.counsel .checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.counsel .view-policy {
    color: #cbcbcb;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.counsel .submit-btn {
    margin-top: 20px;
    height: 64px;
    background: rgb(9, 15, 24);
    border: 1px solid rgb(129, 170, 255);
    border-radius: 32px;
    color: #81aaff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.counsel .submit-btn:hover {
    background: #326fee;
	color:white;
}		


/*프라이버시 모달창*/
/* 모달 전체 래퍼 */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 뒷배경 오버레이 */
.privacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* 팝업 컨테이너 */
.privacy-container {
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
    padding: 60px 50px;
    position: relative;
    border: 1px solid #ddd;
    z-index: 2;
    max-height: 80vh;
    overflow-y: auto;
}

/* 닫기 버튼 */
.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

/* 제목 */
h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* 리스트 스타일 */
.privacy-list {
    list-style: none;
}
.privacy-list li {
    display: flex;
    align-items: flex-start;
	font-size:16px;
    line-height: 2;
	word-break: keep-all; 
}

.privacy-list li .num {
    margin-right: 8px;
    white-space: nowrap;
}


/* =============================================
   섹션 8: 오시는 길
   ============================================= */
.location-section {
	padding:100px 0px;
    background: var(--white);
}

.location-section .section-title{margin-bottom:60px;}
.location-section .section-title h2{margin-bottom:0px;}
.map {
    width: 100%;
}

/* 상단 탭 스타일 */
.map .map-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.map .map-tabs div:first-child {
	display:flex;align-items:center;
	justify-content:center;
}
  
.map .map-tabs .tab{
    display:inline-flex;
	align-items:center;
	justify-content:center;
	height:50px;
	padding: 0px 25px;
    border-radius: 30px;
    border: 1px solid #d3d3d3;
    background: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.map .map-tabs .tab:hover{
	background: #2d457d; /* 이미지의 어두운 남색 */
    color: #fff;
    border-color: #2d457d;
}

.map .map-tabs .tab.active {
    background: #0f172a; /* 이미지의 어두운 남색 */
    color: #fff;
    border-color: #0f172a;
}

/* 하단 컨텐츠 레이아웃 */
.map .map-content {
    position: relative;
}

.map-location {
    display: grid;
    grid-template-columns: 1fr 630px;
    gap: 40px;
    align-items: center;
}

/* 좌측 정보 영역 */
.map .map-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}

.map .map-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 18px;
    color: #181818;
	font-weight:500;
	word-break:keep-all;
}

.map .map-info .info-item img {
	margin-right:10px;
    flex-shrink: 0;
}
.map .map-info .info-item span{padding-top:3px;display:inline-block;line-height:1.5;}

/* 우측 지도 영역 */
.map .map-view {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map .map-view .mapBox {
    width: 100%;
	height:350px;
    display: block;
}



/* 반응형 처리 */
@media (max-width: 980px) {
    .map-location {
        grid-template-columns: 1fr !important;
    }

    .map-location .map-view {
        order: -1;
        max-width: 630px;
        margin: 0 auto;
        width: 100%;
    }

    .map-location .map-info {
        order: 1;
    }
}

/* 탭 줄바꿈 - 기본 숨김 */
.map .map-tabs .tab-break {
    display: none;
}

@media (max-width: 768px) {
	.map .map-tabs div:first-child {
		flex-basis: 100%;
	}

    .map .map-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .map .map-tabs .tab-break {
        display: block;
        width: 100%;
    }
}

/* =============================================
   반응형 스타일
   ============================================= */
@media (max-width: 1100px) {
   .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
	.map-location{
		grid-template-columns: 380px 1fr;
	}
}
@media (max-width: 1024px) {

    .practice-grid {
        grid-template-columns: repeat(4, 1fr);
    }


    .consultation-wrapper {
        grid-template-columns: 1fr;
    }

    .location-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 981px) {
    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 890px) {
   .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .index-section {
        padding: calc(120 * var(--ratio)) 0;
    }
	
    .section-title h2 {
        font-size: calc(36 * var(--ratio));
		margin-bottom:calc(36 * var(--ratio));
    }
	.section-title p{font-size: calc(26 * var(--ratio));}
	.process-steps{margin-top:calc(56 * var(--ratio));}
    .hero-section {
		height:100vh;
		min-height:calc(1430 * var(--ratio));
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
	
	body.index .practice-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(5, auto);
        overflow: hidden;
        max-height: calc(65px * 5 + 5px * 4);
    }
	
	body.crime .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	
    .cta-section {
        height: auto;
        min-height: 600px;
    }

    .cta-keyword {
        font-size: 22px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }


    .form-row {
        grid-template-columns: 1fr;
    }
	
	.hero-text-wrap{top:calc(250 * var(--ratio));transform:translate(-50% , 0px);}
	.hero-title{font-size:calc(46 * var(--ratio));margin-bottom:calc(70 * var(--ratio))}
	
	.hero-text-wrap .hero-desc {font-size:calc(30 * var(--ratio));letter-spacing:-0.03em;}
	
	.hero-content{bottom:0px;}
	
	.process-step{padding:calc(30 * var(--ratio));}
	.process-step .step-num{}
	.process-step h4{font-size:18px}
	.step-line{margin:calc(40 * var(--ratio)) 0px;}
	
	.cta-top{padding-top:0px}
	
	.cta-section h2 , .cta-keyword
	{font-size: calc(38 * var(--ratio));margin-bottom: calc(50 * var(--ratio));}
	
	.cta-section .cta-desc, .cta-sub{font-size: calc(30 * var(--ratio));}
	.cta-bottom {
        padding-bottom: 0px;
    }
	.cta-section .index-container{height:auto;}
}


@media (max-width: 540px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
	.step-desc li{font-size:15px;}
	
}	

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .practice-tabs,
    .cases-tabs {
        gap: 5px;
    }

    .practice-tab,
    .cases-tab {
        padding: 8px 15px;
        font-size: 13px;
    }

    

    .location-tabs {
        flex-wrap: wrap;
    }

    .lawyers-prev {
        left: 10px !important;
    }

    .lawyers-next {
        right: 10px !important;
    }
}

@media (max-width: 400px) {

}
@media (max-width: 380px) {
	body.crime .practice-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}	

/* 변호사 페이징 */
.lawyers-pagination {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.lawyers-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    margin: 0 6px;
    background: #ccc;
    opacity: 1;
}

.lawyers-pagination .swiper-pagination-bullet-active {
    background: #333;
}

@media (max-width: 980px) {
    .lawyers-pagination {
        display: block;
    }

    .lawyers-nav {
        display: none;
    }
}

/* =============================================
   변호사 섹션 반응형 (1450px 이하)
   ============================================= */
@media (max-width: 1450px) {
    .lawyers-prev,
    .lawyers-next {
        top: -70px;
        transform: translateY(0);
    }

    .lawyers-prev {
        left: auto;
        right: 100px;
    }

    .lawyers-next {
        right: 0;
    }
}

@media (max-width: 1180px) {
	.counsel {
		grid-template-columns: 530px 1fr ;
		gap:20px;
	}
}

@media (max-width: 980px) {
	.counsel {display: block;}
	.counsel .counsel-status h2{text-align:left;}
}

@media (max-width: 768px) {
	.lawyer-photo img {
		border-radius: calc(25 * var(--ratio));
		margin-top: calc(-10 * var(--ratio));
	}
	.lawyer-photo{width:60%;}
	.lawyers-swiper{height:calc(480 * var(--ratio))}
	
	.lawyer-info {
		width: 55%;
		height: calc(240 * var(--ratio)); 
		border-radius: calc(30 * var(--ratio)) 0px;
		bottom:calc(40 * var(--ratio));
	}
	.lawyer-name {
		align-items:center;
		height: calc(76 * var(--ratio)); 
		font-size: calc(28 * var(--ratio)); 
		padding-left: calc(40 * var(--ratio)); 
		line-height: 1.3;
		border-bottom-right-radius: calc(28 * var(--ratio)); 
	}

	.lawyer-position {		 
		font-size: calc(24 * var(--ratio));
		margin-left: calc(10 * var(--ratio));;
	}

	.lawyer-career {
		list-style: none;
		padding: calc(15 * var(--ratio))  calc(15 * var(--ratio))  0px calc(40 * var(--ratio)); 
	}

	.lawyer-career li {
		font-size: calc(22 * var(--ratio));
		line-height: 1.3;
	}
	
	.case {
		margin-top: calc(50 * var(--ratio));
    }
	
	.case .tab-menu {
		margin-bottom: calc(50 * var(--ratio));
		gap: calc(8 * var(--ratio));
	}
	
	.case .tab-item {
		height: calc(50 * var(--ratio));
		padding: 0px calc(30 * var(--ratio));
		border-radius: calc(30 * var(--ratio));;
		font-size: calc(20 * var(--ratio));;
	}

	.case .card {
		padding: var(--font-40) var(--font-30);
		border-radius: var(--font-30);
	}

	.case .badge {
		height:var(--font-40);
		padding: 0px var(--font-20);
		border-radius: var(--font-20);
		font-size: var(--font-20);
		margin-bottom: var(--font-28);
	}

	.case .card-title {
		height:var(--font-68);
		font-size: var(--font-24);
		margin-bottom: var(--font-46);
	}

	.case .card-desc {
		font-size: var(--font-18);
		color: #4e4e4e;
	}
	

	/*.counsel*/
	.counsel {
		padding-top: var(--font-60);
	}

	/* 왼쪽: 상담현황 영역 */
	.counsel .counsel-status {
		padding: var(--font-50) var(--font-40);
		border-radius: var(--font-30);
	}
	.counsel .counsel-status h2 {
		font-size: var(--font-24);
		margin-bottom: var(--font-30);
	}
	.counsel-swiper {
		height: calc(480 * var(--ratio));
	}
	.counsel .status-item {
		height: var(--font-30);
	}
	.counsel .status-item .title {
		font-size: var(--font-16);
	}

	.counsel .status-item .category {
		font-size: var(--font-16);
	}

	.counsel .btn {
		width: var(--font-110);
		height: var(--font-40);
		border-radius: var(--font-8);
		font-size: var(--font-16);
	}
	
	/* 오른쪽: 상담 신청 폼 영역 */
	.counsel .counsel-form {
		margin-top:var(--font-40);
		gap: var(--font-16);
	}
	
	.counsel .form-input, 
	.counsel .select-box, 
	.counsel .form-textarea {
		height:var(--font-64);
		border-radius: var(--font-16);
		padding:0px var(--font-30);
		font-size: var(--font-18);
	}
	
	.counsel .form-textarea {
		height: calc(240 * var(--ratio));
		padding:var(--font-30);
	}

	.counsel .form-footer {
		margin-top: var(--font-6);
	}

	.counsel .checkbox-container {
		font-size: var(--font-16);
	}

	.counsel .checkbox-container input[type="checkbox"] {
		margin-right: var(--font-10);;
		width:var(--font-22);
		height:var(--font-22);
		border-radius: var(--font-4);
	}

	.counsel .checkbox-container input[type="checkbox"]:checked::after {
		font-size: var(--font-16);
	}
	.counsel .view-policy {
		font-size: var(--font-16);
		text-underline-offset: var(--font-8);
	}

	.counsel .submit-btn {
		margin-top: var(--font-20);
		height: var(--font-64);
		border-radius: var(--font-40);
		font-size: var(--font-18);
	}
	
	/* 팝업 컨테이너 */
	.privacy-container {
		padding: var(--font-60) var(--font-50);
	}

	/* 닫기 버튼 */
	.close-btn {
		position: absolute;
		top: var(--font-26);
		right: var(--font-30);
	}

	/* 제목 */
	.privacy-container h2 {
		font-size: var(--font-28);
		margin-bottom: var(--font-40);
	}

	/* 리스트 스타일 */
	.privacy-list li {
		font-size:var(--font-24);
	}

	.privacy-list li .num {
		margin-right: var(--font-8);
	}
	/* END .counsel*/
	
	
	
	/* map 상단 탭 스타일 */
	.location-section .section-title{margin-bottom:var(--font-60);}
	.map .map-tabs {
		gap: 10px;
		margin-bottom: var(--font-50);
		flex-wrap:wrap;
	}

	.map .map-tabs .tab {
		height:var(--font-50);
		padding: 0px var(--font-26);
		border-radius: var(--font-30);
		font-size: var(--font-18);
	}
	
	/* 좌측 정보 영역 */
	.map .map-info {
		gap: var(--font-22);
	}

	.map .map-info .info-item {
		gap: var(--font-16);
		font-size: var(--font-18);
	}

	.map .map-info .info-item img {
		margin-right:var(--font-10);
	}
	.map .map-info .info-item span{padding-top:var(--font-4);}

	/* 우측 지도 영역 */
	.map .map-view {
		border-radius: var(--font-20);
		box-shadow: 0 var(--font-10) var(--font-30) rgba(0,0,0,0.1);
	}
	.map .map-view .mapBox {
		height:var(--font-350);;
	}
}

@media (max-width: 600px) {
	.case .badge {
		height:var(--font-50);
		padding: 0px var(--font-30);
		border-radius: var(--font-30);
		font-size: var(--font-26);
		margin-bottom: var(--font-32);
	}

	.case .card-title {
		font-size: var(--font-28);
		height: var(--font-80);
	}

	.case .card-desc {
		font-size: var(--font-24);
	}
	
	.practice-section .view-all{margin:20px 0px;}
	.view-all {
		width:100%;
		height:50px;
		font-size: 17px;
		background-color:white;
		border:1px solid #ccc;
	}
	
	
	
	/*.counsel*/
	.counsel {
		padding-top: var(--font-60);
	}

	/* 왼쪽: 상담현황 영역 */
	.counsel .counsel-status {
		padding: var(--font-56) var(--font-46);
		border-radius: var(--font-36);
	}
	.counsel .counsel-status h2 {
		font-size: var(--font-28);
		margin-bottom: var(--font-34);
	}
	.counsel-swiper {
		height: calc(480 * var(--ratio));
	}
	.counsel .status-item {
		height: var(--font-34);
	}
	.counsel .status-item .title {
		font-size: var(--font-20);
	}

	.counsel .status-item .category {
		font-size: var(--font-20);
	}

	.counsel .btn {
		width: var(--font-120);
		height: var(--font-44);
		border-radius: var(--font-10);
		font-size: var(--font-20);
	}
	
	/* 오른쪽: 상담 신청 폼 영역 */
	.counsel .counsel-form {
		gap: var(--font-20);
	}
	
	.counsel .form-input, 
	.counsel .select-box, 
	.counsel .form-textarea {
		height:var(--font-68);
		border-radius: var(--font-20);
		padding:0px var(--font-34);
		font-size: var(--font-22);
	}
	
	.counsel .form-textarea {
		height: calc(240 * var(--ratio));
		padding:var(--font-34);
	}

	.counsel .form-footer {
		margin-top: var(--font-10);
	}

	.counsel .checkbox-container {
		font-size: var(--font-20);
	}

	.counsel .checkbox-container input[type="checkbox"] {
		margin-right: var(--font-14);;
		width:var(--font-26);
		height:var(--font-26);
		border-radius: var(--font-8);
	}

	.counsel .checkbox-container input[type="checkbox"]:checked::after {
		font-size: var(--font-20);
	}
	.counsel .view-policy {
		font-size: var(--font-20);
		text-underline-offset: var(--font-10);
	}

	.counsel .submit-btn {
		margin-top: var(--font-24);
		height: var(--font-68);
		border-radius: var(--font-40);
		font-size: var(--font-22);
	}
	
	/* 팝업 컨테이너 */
	.privacy-container {
		padding: var(--font-64) var(--font-54);
	}

	/* 닫기 버튼 */
	.close-btn {
		position: absolute;
		top: var(--font-30);
		right: var(--font-34);
	}

	/* 제목 */
	.privacy-container h2 {
		font-size: var(--font-28);
		margin-bottom: var(--font-44);
	}

	/* 리스트 스타일 */
	.privacy-list li {
		font-size:var(--font-24);
	}

	.privacy-list li .num {
		margin-right: var(--font-10);
	}

	
	.location-section .section-title{margin-bottom:var(--font-66);}
	.map .map-tabs {
		margin-bottom: var(--font-56);
	}

	.map .map-tabs .tab {
		height:var(--font-60);
		padding: 0px var(--font-30);
		border-radius: var(--font-34);
		font-size: var(--font-22);
	}
	
	/* 좌측 정보 영역 */
	.map .map-info {
		gap: var(--font-28);
	}

	.map .map-info .info-item {
		font-size: var(--font-22);
	}
	
	.map .map-info .info-item span{padding-top:var(--font-6);}

	/* 우측 지도 영역 */
	.map .map-view .mapBox {
		height:var(--font-380);
	}
	
}

@media (max-width: 550px) {
	.lawyer-photo{width:55%;}
}

@media (max-width: 500px) {
	.case .card {
		padding: var(--font-46) var(--font-34);
		border-radius: var(--font-34);
	}

	.case .badge {
		height:var(--font-60);
		padding: 0px var(--font-30);
		border-radius: var(--font-30);
		font-size: var(--font-28);
		margin-bottom: var(--font-32);
	}
	.case .card-title {
		font-size: var(--font-32);
		height: var(--font-90);
		margin-bottom: var(--font-50);
	}
	
	.case .card-desc {
		font-size: var(--font-28);
		color: #4e4e4e;
	}
	
	
	/*.counsel*/
	.counsel {
		padding-top: var(--font-60);
	}

	/* 왼쪽: 상담현황 영역 */
	.counsel .counsel-status {
		padding: var(--font-56) var(--font-46);
		border-radius: var(--font-36);
	}
	.counsel .counsel-status h2 {
		font-size: var(--font-32);
		margin-bottom: var(--font-40);
	}
	.counsel-swiper {
		height: calc(600 * var(--ratio));
	}
	.counsel .status-item {
		height: var(--font-36);
	}
	.counsel .status-item .title {
		font-size: var(--font-26);
	}

	.counsel .status-item .category {
		font-size: var(--font-26);
	}

	.counsel .btn {
		width: var(--font-120);
		height: var(--font-54);
		border-radius: var(--font-14);
		font-size: var(--font-26);
	}
	
	/* 오른쪽: 상담 신청 폼 영역 */
	.counsel .counsel-form {
		gap: var(--font-24);
	}
	
	.counsel .form-input, 
	.counsel .select-box, 
	.counsel .form-textarea {
		height:var(--font-80);
		border-radius: var(--font-24);
		padding:0px var(--font-40);
		font-size: var(--font-28);
	}
	
	.counsel .form-textarea {
		height: calc(260 * var(--ratio));
		padding:var(--font-34);
	}

	.counsel .form-footer {
		margin-top: var(--font-14);
	}

	.counsel .checkbox-container {
		font-size: var(--font-26);
	}

	.counsel .checkbox-container input[type="checkbox"] {
		margin-right: var(--font-16);
		width:var(--font-30);
		height:var(--font-30);
		border-radius: var(--font-10);
	}

	.counsel .checkbox-container input[type="checkbox"]:checked::after {
		font-size: var(--font-24);
	}
	.counsel .view-policy {
		font-size: var(--font-26);
		text-underline-offset: var(--font-12);
	}

	.counsel .submit-btn {
		margin-top: var(--font-30);
		height: var(--font-90);
		border-radius: var(--font-50);
		font-size: var(--font-28);
	}
	
	/* 팝업 컨테이너 */
	.privacy-container {
		padding: var(--font-80) var(--font-60);
	}

	/* 닫기 버튼 */
	.close-btn {
		top: var(--font-6);
		right: var(--font-10);
	}

	/* 제목 */
	.privacy-container h2 {
		font-size: var(--font-34);
		margin-bottom: var(--font-50);
	}

	/* 리스트 스타일 */
	.privacy-list li {
		font-size:var(--font-26);
	}

	.privacy-list li .num {
		margin-right: var(--font-12);
	}
	
		.location-section .section-title{margin-bottom:var(--font-70);}
	.map .map-tabs {
		margin-bottom: var(--font-60);
	}

	.map .map-tabs .tab {
		height:var(--font-64);
		padding: 0px var(--font-34);
		border-radius: var(--font-34);
		font-size: var(--font-26);
	}
	
	/* 좌측 정보 영역 */
	.map .map-info {
		gap: var(--font-30);
	}

	.map .map-info .info-item {
		font-size: var(--font-26);
	}
	
	.map .map-info .info-item span{padding-top:var(--font-8);}

	/* 우측 지도 영역 */
	.map .map-view .mapBox {
		height:var(--font-400);
	}
	
	
}

@media (max-width: 420px) {
	.case .tab-menu {
		gap: 3px;
	}
	.case .tab-item {
		height: calc(68 * var(--ratio));
		padding: 0px calc(28 * var(--ratio));
		border-radius: calc(30 * var(--ratio));
		font-size: calc(26 * var(--ratio));;
	}
	
	
	
}

@media (max-width: 768px) {
	.cases-section .index-container {
		overflow: visible;
	}

	.cases-swiper {
		overflow: visible;
		margin-right: -20px;
	}
	.cases-swiper .swiper-slide {
		width: calc(450 * var(--ratio));
	}
}

@media (max-width: 600px) {
	.cases-swiper .swiper-slide {
		width: calc(550 * var(--ratio));
	}
}

@media (max-width: 468px) {
	.address-section, 
	.address-section p{margin-bottom:8px;line-height:1.5;word-break:keep-all;color:#ccc;}
	.address-section p span{color:#fafafa;}
	.contact-section{line-height:1.5}
}
@media (max-width: 450px) {
	.cases-swiper .swiper-slide {
		width: calc(600 * var(--ratio));
	}
}

/* =============================================
   따라다니는 사이드바 메뉴 (추후 사용)
   ============================================= */
.process-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s;
}

.sidebar-btn:hover {
    background: var(--primary-dark);
}

.sidebar-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

