/* ===================================
   청목 법무사 - 메인페이지 스타일
   ================================== */

/* 전역 설정 - 가로 스크롤 방지 */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    overflow-x: hidden;
}

/* CSS 변수 정의 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #ed8936;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --gray-light: #f7fafc;
    --gray: #718096;
    --gray-dark: #2d3748;
}

/* 메인 히어로 섹션 */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* 헤더 높이만큼 패딩 추가 */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(243, 156, 18, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(42, 82, 152, 0.2) 0%, transparent 50%);
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(1deg); 
        opacity: 1;
    }
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 100;
    letter-spacing: -2px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.8s forwards;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.1s forwards;
}

.hero-cta .btn {
    margin: 0 10px 10px 0;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* 스크롤 인디케이터 - 개선된 버전 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    color: #fff;
    transform: translateX(-50%) scale(1.1);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
    display: block;
    margin: 0 auto 15px;
    border-radius: 2px;
    position: relative;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

.scroll-text {
    font-weight: 300;
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* 서비스 섹션 */
.services-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 82, 152, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(42, 82, 152, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

/* 전문가 소개 섹션 */
.expert-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), #3d6db7);
    color: white;
    position: relative;
    overflow: hidden;
}

.expert-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.expert-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.expert-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
}

.expert-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.expert-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.expert-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ebebeb;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.expert-image {
    position: relative;
    text-align: center;
}

.expert-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.expert-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 연락처 섹션 */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.03) 0%, transparent 70%);
    transform: rotate(15deg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 82, 152, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(42, 82, 152, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: var(--gray);
    font-size: 0.95rem;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(42, 82, 152, 0.1);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dashed rgba(42, 82, 152, 0.3);
    border-radius: 10px;
}

.map-content {
    text-align: center;
    z-index: 2;
}

.map-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--dark-color);
}

.map-content p {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0;
}

/* 퀵 배너 완전 제거 */
.quick-banner-modern {
    display: none !important;
}

/* 모바일 하단 고정 버튼 */
.mobile-bottom-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 1rem;
}

.mobile-hook-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.mobile-hook-text .highlight {
    color: #ffd700;
    font-weight: 700;
}

.mobile-cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-cta-button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-cta-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mobile-cta-close:hover {
    opacity: 1;
}

/* 개인회생/파산 이해하기 섹션 */
.understanding-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.understanding-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 40%;
    height: 120%;
    background: radial-gradient(circle, rgba(42, 82, 152, 0.05) 0%, transparent 70%);
    transform: rotate(15deg);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.comparison-card:hover::before {
    transform: scaleX(1);
}

.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(42, 82, 152, 0.1);
}

.comparison-card.recovery {
    border-left: 4px solid var(--success-color);
}

.comparison-card.bankruptcy {
    border-left: 4px solid var(--secondary-color);
}

.comparison-header {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.comparison-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

.comparison-card.recovery .comparison-icon {
    background: linear-gradient(135deg, var(--success-color), #48bb78);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

.comparison-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comparison-subtitle {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.comparison-content {
    padding: 0 2rem 2rem;
}

.comparison-point {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-point:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comparison-point h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.comparison-point h4 i {
    margin-right: 0.8rem;
    color: var(--accent-color);
    font-size: 1rem;
}

.comparison-point p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.comparison-footer {
    padding: 0 2rem 2.5rem;
    text-align: center;
}

.comparison-footer .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
    align-self: center;
    position: relative;
    z-index: 3;
}

.consultation-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.consultation-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 전문가 신뢰도 섹션 */
.credentials-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.credentials-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.05) 0%, transparent 70%);
    transform: rotate(-20deg);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.credential-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(26, 54, 93, 0.1);
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.credential-card:hover::before {
    transform: scaleX(1);
}

.credential-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.credential-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.3);
}

.credential-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.credential-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.credential-docs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.doc-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(26, 54, 93, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.doc-item i {
    margin-right: 0.8rem;
    color: var(--accent-color);
    font-size: 1rem;
}

.credential-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.credential-stats .stat {
    text-align: center;
}

.credential-stats .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.credential-stats .label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.credential-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(56, 161, 105, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

.feature i {
    margin-right: 0.8rem;
    font-size: 1rem;
}

/* 성공사례 섹션 */
.success-cases-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.success-cases-section::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -20%;
    width: 40%;
    height: 120%;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.case-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(26, 54, 93, 0.05);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.case-type {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.case-result {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--success-color);
    color: white;
}

.case-content {
    padding: 0rem;
}

.case-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.case-details {
    background: rgba(26, 54, 93, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.detail:last-child {
    border-bottom: none;
}

.detail .label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail .value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.case-story {
    background: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cases-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.cases-cta p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cases-cta .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
}

/* About 페이지 - 치유자 섹션 */
.therapist {
    padding: 120px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.therapist::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.03) 0%, transparent 70%);
    transform: rotate(25deg);
}

.therapist-content {
    
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.therapist-text {
    padding: 2rem;
}

.therapist-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.therapist-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.therapist-text .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.therapist-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.therapist-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.3);
    position: relative;
    overflow: hidden;
}

.therapist-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 6s linear infinite;
}

.therapist-placeholder h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.therapist-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.final-message {
    background: rgba(26, 54, 93, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
}

.final-message h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.final-message p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.final-message p:last-child {
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray), #718096);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-dark), var(--gray));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 개인회생/파산 페이지 - 원칙 섹션 */
.principles-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.principles-section::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -20%;
    width: 40%;
    height: 130%;
    background: radial-gradient(circle, rgba(42, 82, 152, 0.03) 0%, transparent 70%);
    transform: rotate(-20deg);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.principle-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.principle-card:hover::before {
    transform: scaleX(1);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.principle-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.principle-card h4 i {
    margin-right: 0.8rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.principle-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 불인가 사유 섹션 */
.rejection-reasons {
    padding: 120px 0;
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    position: relative;
}

.rejection-reasons::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 30%;
    height: 120%;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.rejection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.rejection-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.15);
    border: 1px solid rgba(237, 137, 54, 0.2);
    transition: all 0.3s ease;
}

.rejection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(237, 137, 54, 0.2);
}

.rejection-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.rejection-card h4 i {
    margin-right: 0.8rem;
    color: var(--accent-color);
}

.rejection-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.9rem;
}

.warning-note {
    background: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 3rem;
}

.warning-note h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.warning-note p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 개인파산 페이지 전용 스타일 */

/* 면책불허가사유 섹션 */
.disqualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.disqualification-item {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.disqualification-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 129, 129, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.disqualification-item:hover::before {
    transform: scale(1);
}

.disqualification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(252, 129, 129, 0.3);
    border-color: #e53e3e;
}

.disqualification-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
}

.disqualification-icon i {
    font-size: 2rem;
    color: white;
}

.disqualification-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #742a2a;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.disqualification-item p {
    font-size: 1rem;
    color: #9c4221;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* 준비서류 섹션 */
.document-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.document-category {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-category::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.document-category:hover::before {
    transform: scaleX(1);
}

.document-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
    border-color: var(--primary-color);
}

.document-category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-category h3 i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.document-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-category ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--gray-dark);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.2s ease;
}

.document-category ul li:last-child {
    border-bottom: none;
}

.document-category ul li::before {
    content: '📄';
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 0.9rem;
}

.document-category ul li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* CTA 섹션 개선 */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .expert-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .expert-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* 태블릿에서 comparison 카드 간격 조정 */
    .comparison-container {
        gap: 2rem;
    }
    
    /* 개인파산 페이지 태블릿 조정 */
    .disqualification-grid,
    .document-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* 모바일 헤더 높이 + 여유 공간 */
        min-height: calc(100vh - 80px); /* 모바일 하단 CTA 공간 확보 */
        height: auto;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .hero-stats .stat {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-btn-primary,
    .hero-btn-outline {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-trust {
        margin-top: 1.5rem;
    }
    
    .trust-text {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .trust-text span {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .expert-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .expert-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    /* 개인회생/파산 이해하기 섹션 - 모바일 반응형 */
    .comparison-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .vs-divider {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 auto;
        order: 2;
    }
    
    .comparison-card.recovery {
        order: 1;
    }
    
    .comparison-card.bankruptcy {
        order: 3;
    }
    
    .comparison-card {
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .comparison-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .comparison-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .consultation-cta {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    

    
    /* 모바일 하단 CTA 표시 */
    .mobile-bottom-cta {
        display: block;
    }
    
    /* 모바일에서 body padding-bottom 추가 (하단 CTA 공간 확보) */
    body {
        padding-bottom: 80px;
    }
    
    .therapist-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .therapist-text h2 {
        font-size: 2rem;
    }
    
    .therapist-placeholder {
        width: 250px;
        height: 320px;
    }
    
    .principles-grid,
    .rejection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .principle-card,
    .rejection-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* 추가 오버플로우 방지 */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }
    
    .hero-section {
        padding-top: 90px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .services-section,
    .expert-section,
    .contact-section,
    .understanding-section,
    .credentials-section,
    .success-cases-section {
        padding: 80px 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    /* 개인회생/파산 이해하기 섹션 - 더 작은 모바일 */
    .comparison-container {
        gap: 1.5rem;
    }
    
    .comparison-card {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .comparison-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .comparison-content {
        padding: 0 1rem 1.5rem;
    }
    
    .comparison-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .comparison-header h3 {
        font-size: 1.5rem;
    }
    
    .comparison-point {
        padding: 1rem 0;
    }
    
    .comparison-point h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .comparison-point p {
        font-size: 0.9rem;
    }
    
    .vs-divider {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .consultation-cta {
        padding: 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* 모바일 하단 CTA 조정 */
    .mobile-cta-content {
        padding: 0 0.5rem;
    }
    
    .mobile-hook-text {
        font-size: 0.8rem;
    }
    
    .mobile-cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* 전문가 신뢰도 및 성공사례 섹션 조정 */
    .credentials-grid,
    .cases-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .credential-card,
    .case-card {
        padding: 1.5rem;
    }
    
    .credential-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .credential-card h3,
    .case-content h4 {
        font-size: 1.2rem;
    }
    
    /* 개인파산 페이지 반응형 */
    .disqualification-grid,
    .document-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .disqualification-item,
    .document-category {
        padding: 1rem;
    }
    
    .disqualification-icon {
        width: 50px;
        height: 50px;
    }
    
    .disqualification-icon i {
        font-size: 1.2rem;
    }
    
    .disqualification-item h3,
    .document-category h3 {
        font-size: 1.1rem;
    }
    
    .document-category ul li {
        font-size: 0.9rem;
        padding: 0.6rem 0 0.6rem 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Li 기반 플로우차트 시스템 */
.recovery-flowchart,
.bankruptcy-flowchart {
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.flow-list li {
    display: grid;
    grid-template-columns: 40% 20% 40%;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    min-height: 80px;
}

/* 마지막 li 제외하고 모든 li에 화살표 추가 
.flow-list li:not(:last-child)::after {
    content: "⬇";
    position: absolute;
    left: 15%;
    bottom: -1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    z-index: 2;
}
*/
/* 메인 프로세스 박스 */
.main-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--gray-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.main-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.main-box.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.main-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #065f46;
}

/* 분기점 화살표 */
.branch-right {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
    position: relative;
}

.branch-right::before {
    content: "→";
    font-size: 1.2rem;
    margin-right: 0.3rem;
    color: #dc2626;
}

/* 실패/종료 박스 */
.end-box.failure {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #991b1b;
    position: relative;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

.end-box.failure::before {
    content: "✕";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .flow-list li {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .flow-list li:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -2rem;
    }
    
    .branch-right {
        order: 2;
        margin: 0.5rem 0;
    }
    
    .end-box.failure {
        order: 3;
        margin-top: 0.5rem;
    }
    
    .main-box {
        order: 1;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .branch-right::before {
        content: "⬇";
        margin-right: 0.2rem;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .main-box {
        padding: 1rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .end-box.failure {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .branch-right {
        font-size: 0.75rem;
    }
    
    .flow-list li:not(:last-child)::after {
        font-size: 1.2rem;
        bottom: -1.8rem;
    }
}

/* 화면을 넘어가는 배경 요소들 모바일에서 제한 */
@media (max-width: 768px) {
    /* 모든 overflow 요소 제한 */
    *::before,
    *::after {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    /* 화면 밖으로 나가는 배경 요소들 숨김 */
    .understanding-section::before,
    .credentials-section::before,
    .success-cases-section::before,
    .therapist::before,
    .cta-section::before,
    .hero-section::before {
        display: none !important;
    }
    
    /* 절대 위치 요소들 화면 내 제한 */
    .disqualification-item::before,
    .document-category::before,
    .principle-card::before {
        max-width: calc(100% - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
    }
    
    /* 컨테이너 최대 너비 제한 */
    .container {
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 auto !important;
    }
    
    /* 그리드와 플렉스 컨테이너 오버플로우 방지 */
    .comparison-container,
    .credentials-grid,
    .cases-container,
    .disqualification-grid,
    .document-categories,
    .requirements-grid {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* 카드 요소들 너비 제한 */
    .comparison-card,
    .credential-card,
    .case-card,
    .disqualification-item,
    .document-category,
    .requirement-card,
    .principle-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===================================
   관련 서류 사이트 섹션
   ================================== */

.related-sites-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.site-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.site-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.site-logo i {
    font-size: 1.5rem;
    color: white;
}

.site-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.site-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.site-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.site-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 푸터 CTA 스타일 */
.footer-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-cta .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
    display: inline-block;
}

/* 관련 사이트 섹션 반응형 */
@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .site-card {
        padding: 1.5rem;
    }
    
    .footer-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .site-card {
        padding: 1.2rem;
    }
    
    .site-logo {
        width: 50px;
        height: 50px;
    }
    
    .site-logo i {
        font-size: 1.2rem;
    }
}

/* ===================================
   법무사 탭 스타일
   ================================== */

.lawyer-tabs {
    margin-top: 3rem;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
    margin: 0 0.5rem;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(26, 54, 93, 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 3px solid var(--accent-color);
    transform: translateY(2px);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.tab-content {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    animation: fadeInUp 0.5s ease;
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lawyer-introduction {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.lawyer-introduction::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 82, 152, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
    z-index: 1;
}

.lawyer-introduction > * {
    position: relative;
    z-index: 2;
}

.lawyer-name {
    text-align: center;
    margin-bottom: 2rem;
}

.lawyer-name h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lawyer-name .title {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.lawyer-message {
    line-height: 1.8;
    font-size: 1rem;
    color: #4a5568;
}

.lawyer-message p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.lawyer-message p:last-child {
    margin-bottom: 0;
}

/* 반응형 탭 스타일 */
@media (max-width: 768px) {
    .tab-header {
        flex-direction: column;
        align-items: center;
        border-bottom: none;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
        border-radius: 8px;
        border: 2px solid #e2e8f0;
    }
    
    .tab-button.active {
        border-color: var(--accent-color);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        transform: none;
    }
    
    .tab-button.active::before {
        display: none;
    }
    
    .lawyer-introduction {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .lawyer-name h3 {
        font-size: 1.5rem;
    }
    
    .lawyer-message {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .lawyer-introduction {
        padding: 1.5rem 1rem;
    }
    
    .lawyer-name h3 {
        font-size: 1.3rem;
    }
    
    .lawyer-message {
        font-size: 0.9rem;
        line-height: 1.6;
    }
} 