/* 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #d4af37;
    --accent-hover: #c9a030;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 70px; /* 네비게이션 높이만큼 여백 */
}

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

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    padding: 8px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
}

.nav-btn {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.nav-btn:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.nav-admin {
    padding: 8px 12px !important;
    opacity: 0.5;
    transition: all 0.3s;
}

.nav-admin:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1) !important;
}

.nav-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 30px;
        gap: 10px;
        transition: right 0.3s;
        align-items: flex-start;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 50%, #f0f4ff 100%);
    color: var(--text-dark);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(102,126,234,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.security-badge span {
    color: #667eea;
}

.security-badge i {
    color: #667eea;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-title .highlight {
    color: #667eea;
    position: relative;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
    font-weight: 400;
}

.hero-subtitle strong {
    color: #667eea;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* v5.9.61: 카카오톡 버튼 스타일 */
.btn-kakao {
    background: #FEE500;
    color: #3C1E1E;
    font-weight: 700;
    border: none;
}

.btn-kakao:hover {
    background: #FFD700;
    color: #3C1E1E;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 229, 0, 0.4);
}

.btn-kakao i {
    color: #3C1E1E;
    font-size: 18px;
}

/* 프로필 슬라이더 (v5.9.61: 메인 페이지에서 제거) */
.hero-image {
    display: none;
}

.profile-slider {
    position: relative;
    width: 350px;
    height: 400px;
    border-radius: 20px;
    overflow: visible;
}

.profile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border: 5px solid var(--accent-color);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: var(--white);
}

.profile-slide.active {
    opacity: 1;
    z-index: 1;
}

.profile-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover에서 contain으로 변경 */
    object-position: center; /* 중앙 정렬 */
    background-color: #f5f5f5; /* 여백 배경색 */
}

.slider-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent-color);
    border-color: var(--white);
    transform: scale(1.3);
}

/* 전문성 섹션 */
.expertise {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
}

.expertise-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.expertise-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 서비스 섹션 */
.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* 실적 섹션 */
.performance {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.performance-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    margin-top: 40px;
}

.chart-section h3,
.returns-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.chart-subtitle,
.returns-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

#dividendChart {
    max-height: 400px;
}

.returns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.return-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 3px solid var(--accent-color);
}

.return-card .quarter {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.return-card .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}

.chart-note {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.chart-note i {
    color: var(--accent-color);
    font-size: 20px;
    margin-top: 2px;
}

.chart-note p {
    font-size: 15px;
    line-height: 1.7;
}

/* 전략 섹션 */
.strategy {
    padding: 80px 0;
    background: var(--light-bg);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.strategy-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.strategy-header {
    padding: 20px;
    text-align: center;
}

.strategy-card.type-a .strategy-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.strategy-card.type-b .strategy-header {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.badge {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.strategy-body {
    padding: 30px;
}

.strategy-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.strategy-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.strategy-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.strategy-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.strategy-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.strategy-cta p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.strategy-cta p:last-child {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
}

/* 프로세스 섹션 */
.process {
    padding: 80px 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.process-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.process-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.process-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.process-cta {
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 15px;
}

.process-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 연락처 섹션 */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.contact-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 18px;
    color: var(--text-light);
}

/* v5.9.61: 카카오톡 카드 전용 스타일 */
.contact-card-kakao {
    background: linear-gradient(135deg, #FEE500 0%, #FFD700 100%);
    border-color: #FEE500;
}

.contact-card-kakao:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FEE500 100%);
    border-color: #FFD700;
    box-shadow: 0 15px 40px rgba(254, 229, 0, 0.4);
}

.contact-card-kakao i {
    color: #3C1E1E;
}

.contact-card-kakao h3 {
    color: #3C1E1E;
    font-weight: 700;
}

.contact-card-kakao p {
    color: #3C1E1E;
    font-weight: 600;
}

.consultation-note {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.consultation-note p {
    font-size: 20px;
    font-weight: 600;
}

/* v5.9.61: 하단 CTA 버튼 스타일 */
.btn-kakao-cta {
    background: #FEE500;
    color: #3C1E1E;
    font-weight: 700;
    border: none;
    padding: 18px 35px;
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.3);
}

.btn-kakao-cta:hover {
    background: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 229, 0, 0.5);
}

.btn-kakao-cta i {
    color: #3C1E1E;
    font-size: 20px;
}

.btn-primary-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    border: none;
    padding: 18px 35px;
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-primary-cta i {
    font-size: 20px;
}

/* ========== 진단 유형 선택 섹션 ========== */
.diagnosis-types {
    padding: 80px 0;
    background: #f8f9fa;
}

.diagnosis-types .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.diagnosis-types .section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.diagnosis-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.diagnosis-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4050 은퇴준비 섹션 */
.retirement-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.retirement-services .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.retirement-services .section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

.diagnosis-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    border: 2px solid transparent;
}

.diagnosis-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.diagnosis-card-premium {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid var(--accent-color);
}

.diagnosis-card-heritage {
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    border: 2px solid #d4af37;
}

.diagnosis-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.diagnosis-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.diagnosis-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.diagnosis-target {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.diagnosis-copy {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    min-height: 50px;
}

.diagnosis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.diagnosis-tags .tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.btn-diagnosis {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-diagnosis:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-diagnosis-premium {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9a030 100%);
}

.btn-diagnosis-premium:hover {
    background: linear-gradient(135deg, #c9a030 0%, var(--accent-color) 100%);
}

.btn-diagnosis-heritage {
    background: linear-gradient(135deg, #d4af37 0%, #f0d06b 100%);
}

.btn-diagnosis-heritage:hover {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
}

/* ====================================
   30대 특화 서비스 섹션 (Millennial Services)
   ==================================== */

.millennial-services {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.millennial-services .section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.millennial-services .section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 서비스 카드 공통 스타일 */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    border: 3px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.service-card:hover::before {
    opacity: 1;
}

/* 3D 파스텔톤 아이콘 */
.service-icon-3d {
    font-size: 68px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-3d {
    transform: scale(1.15) rotate(5deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.service-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-target {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.service-copy {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    min-height: 50px;
    line-height: 1.4;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.service-tags .tag {
    background: rgba(0,0,0,0.05);
    color: #555;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.btn-service {
    display: inline-block;
    color: white;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-service:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* 카드별 색상 가이드 - 활기찬 오렌지/옐로우 (1억 챌린지) */
.service-card-challenge {
    border-color: #ff9800;
}

.service-card-challenge::before {
    color: #ff9800;
}

.service-card-challenge:hover {
    border-color: #ff9800;
    background: linear-gradient(180deg, #fff8e1 0%, #ffffff 100%);
}

.service-card-challenge .service-tags .tag {
    background: rgba(255, 152, 0, 0.1);
    color: #ff6f00;
}

.btn-service-challenge {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.btn-service-challenge:hover {
    background: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
}

/* 카드별 색상 가이드 - 민트/블루 (포트폴리오 구조대) */
.service-card-sos {
    border-color: #26c6da;
}

.service-card-sos::before {
    color: #26c6da;
}

.service-card-sos:hover {
    border-color: #26c6da;
    background: linear-gradient(180deg, #e0f7fa 0%, #ffffff 100%);
}

.service-card-sos .service-tags .tag {
    background: rgba(38, 198, 218, 0.1);
    color: #00acc1;
}

.btn-service-sos {
    background: linear-gradient(135deg, #26c6da 0%, #4dd0e1 100%);
}

.btn-service-sos:hover {
    background: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
}

/* 카드별 색상 가이드 - 브라운/딥그린 (내 집 마련 레이더) */
.service-card-home {
    border-color: #8d6e63;
}

.service-card-home::before {
    color: #8d6e63;
}

.service-card-home:hover {
    border-color: #8d6e63;
    background: linear-gradient(180deg, #efebe9 0%, #ffffff 100%);
}

.service-card-home .service-tags .tag {
    background: rgba(141, 110, 99, 0.1);
    color: #6d4c41;
}

.btn-service-home {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 100%);
}

.btn-service-home:hover {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
}

/* 카드별 색상 가이드 - 핑크/퍼플 (우리 아이 부자 씨앗) */
.service-card-seed {
    border-color: #ab47bc;
}

.service-card-seed::before {
    color: #ab47bc;
}

.service-card-seed:hover {
    border-color: #ab47bc;
    background: linear-gradient(180deg, #f3e5f5 0%, #ffffff 100%);
}

.service-card-seed .service-tags .tag {
    background: rgba(171, 71, 188, 0.1);
    color: #8e24aa;
}

.btn-service-seed {
    background: linear-gradient(135deg, #ab47bc 0%, #ce93d8 100%);
}

.btn-service-seed:hover {
    background: linear-gradient(135deg, #8e24aa 0%, #ab47bc 100%);
}

/* 카드별 색상 가이드 - 골드/브라운 (상속 서비스) */
.service-card-heritage {
    border-color: #d4af37;
}

.service-card-heritage::before {
    color: #d4af37;
}

.service-card-heritage:hover {
    border-color: #d4af37;
    background: linear-gradient(180deg, #fffbf0 0%, #ffffff 100%);
}

.service-card-heritage .service-tags .tag {
    background: rgba(212, 175, 55, 0.1);
    color: #b8941f;
}

.btn-service-heritage {
    background: linear-gradient(135deg, #d4af37 0%, #f0d06b 100%);
}

.btn-service-heritage:hover {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
}

/* 서비스 비교 테이블 */
.service-comparison-table {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.comparison-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.comparison-table thead th {
    padding: 15px 12px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody td {
    padding: 18px 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.comparison-table tbody td:first-child {
    font-weight: 700;
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
    .diagnosis-types {
        padding: 60px 0;
    }
    
    .diagnosis-types .section-title {
        font-size: 28px;
    }
    
    .diagnosis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .diagnosis-card {
        padding: 30px 20px;
    }
    
    .diagnosis-icon {
        font-size: 48px;
    }
    
    .diagnosis-title {
        font-size: 20px;
    }
    
    .diagnosis-copy {
        font-size: 16px;
        min-height: auto;
    }
}

/* 진단 센터 안내 배너 */
.diagnosis-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    margin: 60px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.banner-icon {
    flex-shrink: 0;
}

.banner-icon i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-text {
    flex: 1;
    min-width: 300px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.banner-cta {
    flex-shrink: 0;
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-banner i {
    transition: transform 0.3s;
}

.btn-banner:hover i {
    transform: translateX(5px);
}

/* 배너 모바일 최적화 */
@media (max-width: 768px) {
    .diagnosis-banner {
        padding: 50px 0;
        margin: 40px 0;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .banner-icon i {
        font-size: 60px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .btn-banner {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-image {
        display: none;
    }

    .profile-slider {
        width: 300px;
        height: 350px;
    }

    .performance-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .profile-slider {
        width: 250px;
        height: 300px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 🆕 v5.8.2.4: 모바일 가로 모드 최적화 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        word-break: keep-all;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-image,
    .profile-slider {
        display: none;
    }

    .section-title {
        font-size: 24px;
        word-break: keep-all;
    }

    .expertise-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .expertise-card,
    .service-card {
        padding: 20px;
    }

    .returns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        width: auto;
        padding: 12px 25px;
        font-size: 14px;
    }

    section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
    }

    .expertise-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 🆕 v5.8.2.4: 텍스트 줄바꿈 전역 개선 */
@media (max-width: 768px) {
    * {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    input,
    select,
    textarea,
    button {
        word-break: normal;
    }

    /* 30대 특화 서비스 모바일 최적화 */
    .millennial-services {
        padding: 50px 0;
    }

    .millennial-services .section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .millennial-services .section-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 28px 20px;
        border-width: 2px;
    }

    .service-icon-3d {
        font-size: 56px;
        margin-bottom: 15px;
    }

    .service-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .service-target {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .service-copy {
        font-size: 16px;
        margin-bottom: 15px;
        min-height: auto;
    }

    .service-tags {
        gap: 6px;
        margin-bottom: 20px;
    }

    .service-tags .tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .btn-service {
        font-size: 14px;
        padding: 12px 24px;
    }

    .service-comparison-table {
        margin-top: 40px;
        padding: 25px 15px;
    }

    .comparison-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table thead th {
        padding: 12px 8px;
        font-size: 12px;
    }

    .comparison-table tbody td {
        padding: 14px 8px;
        font-size: 12px;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-text > *:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-text > *:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-image {
    display: none; /* v5.9.61: 메인 페이지에서 제거 */
}
