/* css/style.css */

/* Vue 초기화 전 깜빡임 방지 */
[v-cloak] { display: none; }

/* ==========================================================================
   1. 기본 변수 및 리셋
   ========================================================================== */
:root { 
    --primary: #0f172a; 
    /* 🌟 메인 컬러 컨셉 변경 (#02a8d7) */
    --secondary: #02A9D8; 
    --accent-dark: #0188ae; /* 기존 --gold-dark 대체 (버튼 호버 등에 사용) */
    --accent-light: #dcf4fc; /* 기존 --gold-light 대체 (뱃지, 옅은 배경 등에 사용) */
    --text-main: #333333; 
    --text-sub: #666666; 
    --bg-light: #f8f9fa; 
    --white: #ffffff; 
}

body { margin: 0; padding: 0; font-family: 'Pretendard', sans-serif; color: var(--text-main); overflow-x: hidden; background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { width: 100%; height: 100%; object-fit: cover; }

/* 애니메이션 유틸리티 */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ==========================================================================
   2. 네비게이션 & 히어로 슬라이더
   ========================================================================== */
.navbar { position: fixed; top: 0; width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; box-sizing: border-box; z-index: 1000; transition: all 0.4s ease; background: transparent; color: var(--white); }
.navbar.scrolled { background: var(--white); color: var(--text-main); box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: 80px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--secondary); }
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 16px; }
.nav-links li:hover { color: var(--secondary); cursor: pointer; }
.menu-btn { display: none; cursor: pointer; font-size: 28px; }

/* 네비게이션 로고 이미지 스타일 */
.nav-logo-img {
    height: 20px !important;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); 
    transition: filter 0.4s ease; 
}
.navbar.scrolled .nav-logo-img { filter: brightness(0); }

/* 히어로 슬라이더 기본 배경 */
.hero-slider { height: 100vh; position: relative; overflow: hidden; background: #000; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 10; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -1; transform: scale(1); transition: transform 6s ease; }
.hero-slide.active .slide-bg { transform: scale(1.1); } 

/* 히어로 슬라이더: 중앙 영문 로고 */
.hero-logo { 
    height: 55px; 
    width: auto; 
    position: absolute;
    top: 45%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    filter: brightness(0) invert(1) !important; 
    opacity: 0; 
}

/* 히어로 슬라이더: 하단 텍스트 및 버튼 그룹 */
.hero-text-box {
    position: absolute;
    bottom: 12%; 
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.hero-text-box h1 { 
    font-size: 32px !important; 
    font-weight: 500;
    margin-bottom: 10px !important; 
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
}
.hero-text-box h1 span { 
    display: block; 
    font-size: 25px !important; 
    color: #cbd5e1; 
    margin-top: 8px; 
}
.hero-text-box p { 
    font-size: 15px !important; 
    margin-bottom: 25px !important; 
    color: #e2e8f0; 
    opacity: 0;
    transform: translateY(20px);
}
.hero-text-box .slide-btn { 
    display: inline-block;
    padding: 12px 28px; 
    font-size: 14px;
    background: var(--secondary); 
    color: var(--white); 
    font-weight: 600; 
    border-radius: 10px; 
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer; 
    transition: 0.3s;
}
.hero-text-box .slide-btn:hover { background: var(--accent-dark); }

/* 히어로 슬라이더 애니메이션 순서 */
.hero-slide.active .hero-logo { animation: fadeCenterLogo 1.2s forwards 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.hero-slide.active .hero-text-box h1 { animation: fadeUp 1s forwards 0.6s; }
.hero-slide.active .hero-text-box p { animation: fadeUp 1s forwards 0.8s; }
.hero-slide.active .hero-text-box .slide-btn { animation: fadeUp 1s forwards 1.0s; }

@keyframes fadeCenterLogo {
    from { opacity: 0; transform: translate(-50%, -30%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 20; }
.indicator { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); cursor: pointer; transition: 0.3s; background: transparent; }
.indicator.active { background: var(--secondary); border-color: var(--secondary); }

/* ==========================================================================
   3. 메인 섹션들 (About, Stats, Business, Doctor, Projects)
   ========================================================================== */
section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 40px; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.section-desc { font-size: 18px; color: var(--text-sub); }

/* About */
.about-section { background: var(--bg-light); display: flex; gap: 60px; align-items: flex-start; }
.about-visual { flex: 1; position: relative; min-height: 100%; }
.about-img-sticky { position: sticky; top: 120px; width: 100%; height: 750px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-img-sticky img { width: 100%; height: 100%; object-fit: cover; }
.about-content { flex: 1.2; padding-top: 20px; }
.about-header-group { margin-bottom: 40px; }
.sub-label { font-size: 14px; font-weight: 700; color: var(--secondary); display: block; margin-bottom: 10px; letter-spacing: 2px; }
.about-content h2 { font-size: 42px; color: var(--primary); font-weight: 800; line-height: 1.2; margin: 0; }
.about-content h2 span { font-size: 24px; color: #555; font-weight: 500; display: block; margin-top: 10px; }
.quote-box { margin-bottom: 40px; padding-left: 25px; border-left: 4px solid var(--secondary); position: relative; }
.quote-icon { position: absolute; top: -15px; left: 10px; font-size: 60px; color: rgba(2, 168, 215, 0.2); font-family: serif; }
.quote-box p { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.5; font-family: 'Pretendard', serif; }
.body-text p { font-size: 17px; line-height: 1.8; color: #555; margin-bottom: 25px; text-align: justify; word-break: keep-all; }
.body-text b { color: var(--primary); font-weight: 700; }
.signature-block { margin-top: 50px; text-align: right; border-top: 1px solid #ddd; padding-top: 30px; }
.signature-block span { display: block; font-size: 15px; color: #666; margin-bottom: 5px; }
.sign-name { font-size: 24px !important; font-weight: 800; color: var(--primary) !important; font-family: serif; }

/* Stats */
.stats-section { background-color: var(--white); padding: 80px 5%; display: flex; justify-content: center; align-items: center; }
.stats-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; width: 100%; }
.stat-box { background: #f8f9fa; padding: 40px; text-align: center; border: 1px solid #eee; border-radius: 8px; transition: 0.3s; }
.stat-box:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--secondary); }
.stat-box.highlight { background: var(--primary); color: white; border: none; }
.stat-num { display: block; font-size: 56px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.stat-box.highlight .stat-num { color: var(--secondary); }
.stat-label { font-size: 16px; font-weight: 600; color: #666; }

/* ==========================================================================
   Business Area (3D Flip Card)
   ========================================================================== */
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1000px; }
.biz-flip-container { background-color: transparent; height: 380px; cursor: pointer; }
.biz-flip-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; }
.biz-flip-inner.flipped { transform: rotateY(180deg); }
.biz-flip-front, .biz-flip-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(2, 168, 215, 0.2); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; background: #fff; transition: 0.3s; }
.biz-flip-front { background: #fff; }
.biz-flip-front:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(2, 168, 215, 0.15); border-color: var(--secondary); }
.biz-icon { font-size: 56px; margin-bottom: 25px; color: var(--secondary); display: inline-block; }
.biz-title-en { font-size: 20px; font-weight: 800; color: var(--accent-dark); letter-spacing: 1px; margin-bottom: 5px; }
.biz-title-ko { font-size: 18px; font-weight: 600; color: #555; }
.click-guide { margin-top: 40px; font-size: 12px; color: #999; display: flex; align-items: center; gap: 5px; opacity: 0.7; }
.click-guide .material-icons-outlined { font-size: 16px; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.biz-flip-back { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); color: white; transform: rotateY(180deg); align-items: flex-start; text-align: left; }
.biz-flip-back .biz-title-en.small { color: var(--secondary); font-size: 14px; margin-bottom: 20px; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; width: 100%; }
.biz-desc-main { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; line-height: 1.4; }
.biz-desc-sub { font-size: 14px; color: #cbd5e1; line-height: 1.6; }

/* Doctor */
.doctor-section { background-color: var(--primary); color: var(--white); display: flex; justify-content: center; }
.doctor-container { width: 100%; display: flex; gap: 60px; align-items: center; }
.doctor-text { flex: 1; }
.doctor-badge { display: inline-block; background: var(--secondary); color: white; padding: 5px 12px; font-size: 12px; font-weight: bold; border-radius: 2px; margin-bottom: 20px; }
.doctor-text h2 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.doctor-text .main-desc { font-size: 24px; font-weight: 300; margin-bottom: 20px; opacity: 0.9; }
.doctor-text .sub-desc { font-size: 16px; color: #94a3b8; line-height: 1.8; margin-bottom: 40px; }
.btn-doctor { padding: 12px 30px; border: 1px solid var(--secondary); background: var(--secondary); color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-right: 15px; }
.btn-doctor:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-doctor.outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white; }
.btn-doctor.outline:hover { background: white; color: var(--primary); border-color: white; }
.doctor-grid { flex: 1.2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doc-card { background: rgba(255,255,255,0.05); padding: 30px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; cursor: default; }
.doc-card:hover { background: rgba(255,255,255,0.1); border-color: var(--secondary); transform: translateY(-5px); }
.doc-card .material-icons-outlined { font-size: 36px; color: var(--secondary); margin-bottom: 15px; }
.doc-card h4 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.doc-card p { font-size: 14px; color: #94a3b8; line-height: 1.5; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-item { height: 350px; position: relative; overflow: hidden; cursor: pointer; }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; }
.project-item:hover img { transform: scale(1.1); transition: 0.6s; }
.project-item:hover .project-overlay { opacity: 1; }
.project-info h3 { font-size: 24px; margin-bottom: 10px; }
.project-info p { font-size: 14px; color: var(--secondary); margin-bottom: 20px; }
.view-more-btn { border: 1px solid white; padding: 8px 20px; border-radius: 30px; font-size: 13px; transition: 0.2s; }
.view-more-btn:hover { background: white; color: var(--primary); }

/* ==========================================================================
   4. 모달 & 팝업
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 40px; box-sizing: border-box; transition: all 0.3s ease; }
.modal-container { background: var(--white); width: 100%; max-width: 1200px; max-height: 90vh; border-radius: 12px; overflow-y: auto; position: relative; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.8); }
.modal-close { position: absolute; top: 25px; right: 25px; font-size: 28px; cursor: pointer; color: #94a3b8; z-index: 10; transition: 0.3s; background: #f1f5f9; border-radius: 50%; padding: 5px; }
.modal-close:hover { background: var(--secondary); color: white; transform: rotate(90deg); }
.modal-content { padding: 50px; }
.modal-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.modal-title { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.modal-category { color: var(--secondary); font-size: 16px; font-weight: 600; }
.modal-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.gallery-item { height: 300px; border-radius: 4px; overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-item:first-child { grid-column: span 2; height: 500px; margin-bottom: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.03); }

.caption-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.6); color: white; padding: 10px 15px; font-size: 14px; opacity: 0; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.gallery-item:hover .caption-overlay { opacity: 1; }

/* ==========================================================================
   5. 챗봇, 푸터, 기타 컴포넌트
   ========================================================================== */
@keyframes pulse-accent { 
    0% { box-shadow: 0 0 0 0 rgba(2, 168, 215, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(2, 168, 215, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(2, 168, 215, 0); } 
}
@keyframes shake-attention { 0%, 90% { transform: rotate(0deg); } 91% { transform: rotate(-10deg); } 93% { transform: rotate(10deg); } 95% { transform: rotate(-10deg); } 97% { transform: rotate(10deg); } 100% { transform: rotate(0deg); } }
@keyframes bounce-tooltip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.chat-toggle-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--secondary); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(2, 168, 215, 0.4); cursor: pointer; z-index: 3000; transition: 0.3s; animation: pulse-accent 2s infinite, shake-attention 5s infinite; }
.chat-toggle-btn:hover { transform: scale(1.1); animation: none; }

.chat-promo-tooltip { position: absolute; bottom: 75px; right: 0; background-color: var(--white); color: var(--primary); padding: 8px 14px; border-radius: 20px; border-bottom-right-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 5px 15px rgba(0,0,0,0.15); border: 2px solid var(--secondary); animation: bounce-tooltip 1.5s infinite ease-in-out; pointer-events: none; }
.chat-promo-tooltip::after { content: ''; position: absolute; bottom: -6px; right: 15px; width: 10px; height: 10px; background: var(--white); border-bottom: 2px solid var(--secondary); border-right: 2px solid var(--secondary); transform: rotate(45deg); }

.chat-container { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 3000; display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s ease-out; }
.chat-header { background: var(--primary); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; background: #f1f5f9; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-msg { max-width: 80%; padding: 10px 15px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: white; align-self: flex-start; border-bottom-left-radius: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.chat-msg.user { background: var(--secondary); color: white; align-self: flex-end; border-bottom-right-radius: 0; box-shadow: 0 2px 5px rgba(2, 168, 215, 0.2); }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chat-opt-btn { background: white; border: 1px solid var(--secondary); color: var(--secondary); padding: 8px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: 0.2s; }
.chat-opt-btn:hover { background: var(--secondary); color: white; }
.chat-input-area { padding: 15px; background: white; border-top: 1px solid #eee; display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; font-size: 14px; }
.chat-send-btn { background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.chat-close { cursor: pointer; transition: 0.2s; }
.chat-close:hover { color: var(--secondary); transform: scale(1.2); }

/* Footer */
footer { background: var(--primary); color: #94a3b8; padding: 70px 5%; font-size: 15px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-logo { font-size: 26px; color: var(--white); font-weight: 800; margin-bottom: 25px; display: inline-block; }
.footer-logo span { color: var(--secondary); }
.info-group { margin-bottom: 15px; line-height: 1.8; }
.info-label { color: var(--white); font-weight: 600; margin-right: 10px; display: inline-block; width: auto; min-width: 60px; white-space: nowrap; }
.footer-links { display: flex; gap: 30px; }
.copyright { text-align: center; font-size: 13px; color: #64748b; }

/* ==========================================================================
   6. 클리닉 & 인트로
   ========================================================================== */
.clinic-container { max-width: 900px; margin: 0 auto; }
.clinic-step-bar { display: flex; gap: 5px; margin-bottom: 40px; }
.clinic-dot { flex: 1; height: 8px; background: #eee; border-radius: 4px; transition: 0.3s; }
.clinic-dot.active { background: var(--secondary); }
.clinic-header { text-align: center; margin-bottom: 40px; }
.clinic-logo { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 10px; display:block; letter-spacing: 1px;}
.clinic-title { font-size: 28px; font-weight: bold; color: var(--text-main); margin-bottom: 10px; }
.clinic-desc { color: #666; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #555; }
.form-input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; box-sizing: border-box; transition: 0.2s; }
.form-input:focus { border-color: var(--secondary); outline: none; }
.diagnosis-card { border: 1px solid #eee; border-radius: 10px; padding: 30px; margin-bottom: 20px; background:#fff; }
.diagnosis-head { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.diagnosis-head h4 { font-size: 22px; margin: 0; color: var(--primary); }
.question-group { margin-bottom: 25px; }
.question-text { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #333; display: block; }
.time-options { display: flex; gap: 10px; flex-wrap: wrap; }
.time-btn { flex: 1; min-width: 100px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background: white; color: #666; cursor: pointer; transition: 0.2s; font-size: 14px; }
.time-btn:hover { background: #f9f9f9; border-color: #bbb; }
.time-btn.selected { background: var(--primary); color: white; border-color: var(--primary); font-weight: bold; }
.rx-list { display: grid; gap: 15px; grid-template-columns: repeat(2, 1fr); }
.rx-card { border: 1px solid #ddd; border-radius: 10px; padding: 20px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 120px; box-sizing: border-box;}
.rx-card:hover { border-color: var(--secondary); background: #f5fcff; }
.rx-card.selected { border-color: var(--secondary); background: #e6f9ff; border-width: 2px; }
.rx-info h4 { margin: 0 0 5px 0; font-size: 16px; color: var(--primary); display: flex; align-items: center; gap: 5px;}
.rx-info p { margin: 0; font-size: 13px; color: #666; line-height: 1.4; }
.rx-check { margin-top: 10px; align-self: flex-end; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ddd; display: flex; justify-content: center; align-items: center; color: white; }
.rx-card.selected .rx-check { background: var(--secondary); border-color: var(--secondary); }
.rx-reason { margin-top: 8px; font-size: 12px; color: var(--accent-dark); background: rgba(2, 168, 215, 0.15); padding: 5px 10px; border-radius: 4px; display: block; font-weight: 600;}
.rx-badge { background: #ef4444; color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.report-section-title { font-size: 18px; font-weight: bold; color: var(--primary); margin-bottom: 20px; border-left: 4px solid var(--secondary); padding-left: 15px; }
.radar-box { display: flex; justify-content: center; margin-bottom: 40px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #eee; }
.radar-chart { width: 300px; height: 300px; }
.cost-receipt { background: #f9fafb; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 25px; margin-bottom: 40px; }
.cost-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: #555; }
.cost-row.total { margin-top: 20px; padding-top: 15px; border-top: 2px solid #ddd; font-weight: bold; font-size: 18px; color: var(--primary); }
.valuation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.val-card { background: white; border: 1px solid #eee; border-radius: 12px; padding: 25px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.val-card h4 { font-size: 15px; color: #666; margin: 0 0 10px 0; }
.val-card .num { font-size: 24px; font-weight: 800; color: var(--primary); }
.val-card .highlight { color: #ef4444; }
.val-card .desc { font-size: 12px; color: #999; margin-top: 8px; }
.net-profit-highlight { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); color: white; padding: 30px; border-radius: 12px; text-align: center; margin-top: 30px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2); }
.np-title { font-size: 18px; color: #cbd5e1; margin-bottom: 5px; }
.np-amount { font-size: 48px; font-weight: 900; color: var(--secondary); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.np-desc { font-size: 14px; color: #94a3b8; margin-top: 10px; }
.clinic-nav { display: flex; justify-content: space-between; margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; }
.btn-prev { background: #eee; color: #666; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.btn-next { background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: bold; }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

.clinic-intro-flex { display: flex; align-items: center; gap: 40px; padding: 20px 0; }
.intro-left { flex: 1.2; }
.intro-right { flex: 0.8; text-align: center; }
.doctor-img { width: 100%; max-width: 350px; height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }

.speech-bubble { position: relative; background: #ffffff; border: 1px solid rgba(2, 168, 215, 0.3); border-left: 5px solid var(--secondary); border-radius: 16px; padding: 35px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); animation: bubbleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.speech-bubble h4 { font-size: 24px; margin: 15px 0; color: var(--primary); font-weight: 700; line-height: 1.3; }
.speech-bubble h4 span { color: var(--secondary); border-bottom: 2px solid rgba(2, 168, 215, 0.3); }
@keyframes bubbleIn { from { opacity: 0; transform: scale(0.9) translateX(-20px); } to { opacity: 1; transform: scale(1) translateX(0); } }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--accent-light); padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; margin-bottom: 20px; }

.btn-intro-select { width: 100%; max-width: none; min-width: 150px; min-height: 260px; background: #ffffff; border: 1px solid #e2e8f0; border-bottom: 4px solid #cbd5e1; padding: 25px 10px; border-radius: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.btn-intro-select .material-icons-outlined { color: var(--primary); font-size: 42px !important; margin-bottom: 12px; transition: 0.3s; }
.btn-intro-select .btn-main-text { font-size: 18px !important; font-weight: 800; color: #334155; margin-bottom: 8px; letter-spacing: -0.5px; text-align: center; word-break: keep-all; }
.btn-intro-select small { color: #64748b; font-size: 13px; display: block; line-height: 1.3; font-weight: 500; text-align: center; opacity: 0.9; }
.btn-intro-select:hover { transform: translateY(-5px); box-shadow: 0 15px 20px -5px rgba(2, 168, 215, 0.1); border-color: var(--primary); border-bottom-color: var(--primary); }
.btn-intro-select:hover .material-icons-outlined { color: var(--primary); transform: scale(1.1); }
.btn-intro-select:hover .btn-main-text { color: var(--primary); }

/* 시안 컬러 컨셉 틴트 적용 (기존 gold 클래스를 유지하면서 색상만 하늘색 계열로 변경) */
.btn-intro-select.gold { background: #ffffff; border: 1px solid #e0f7fa; border-bottom: 4px solid var(--accent-light); }
.btn-intro-select.gold .material-icons-outlined { color: var(--secondary) !important; }
.btn-intro-select.gold .btn-main-text { color: #334155; }
.btn-intro-select.gold:hover { transform: translateY(-5px); box-shadow: 0 15px 20px -5px rgba(2, 168, 215, 0.15); border-color: var(--secondary); border-bottom-color: var(--secondary); background: #f0fbff; }
.btn-intro-select.gold:hover .material-icons-outlined { transform: scale(1.1); }
.btn-intro-select.gold:hover .btn-main-text { color: var(--secondary); }

.intro-btn-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; width: 100%; }

.ai-calculating { text-align: center; padding: 60px 0; }
.ai-spinner { width: 60px; height: 60px; border: 4px solid #f3f3f3; border-top: 4px solid var(--secondary); border-radius: 50%; margin: 0 auto 30px; animation: spinLoader 1s linear infinite; }
.total-vat-small { margin-top: 5px !important; border-top: none !important; padding-top: 0 !important; }
.total-vat-small span:last-child { font-size: 17px !important; font-weight: 600 !important; color: #666 !important; }
@keyframes spinLoader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==========================================================================
   7. 소셜 프루프
   ========================================================================== */
.social-proof-toast { position: fixed; bottom: 25px; left: 25px; z-index: 9999; background-color: rgba(255, 255, 255, 0.95); padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); display: flex; align-items: center; gap: 12px; max-width: 320px; border: 1px solid #eee; border-left: 3px solid var(--secondary); backdrop-filter: blur(5px); font-family: 'Pretendard', sans-serif; transform-origin: bottom left; }
.sp-icon { width: 32px; height: 32px; background: transparent; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.sp-icon .material-icons-outlined { font-size: 20px; color: var(--secondary); }
.sp-content { display: flex; flex-direction: column; justify-content: center; }
.sp-text { font-size: 13px; font-weight: 500; color: #444; line-height: 1.3; margin-bottom: 2px; word-break: keep-all; }
.sp-text strong { font-weight: 700; color: var(--primary); }
.sp-time { font-size: 11px; color: #999; font-weight: 400; }
.slide-fade-enter-active, .slide-fade-leave-active { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-fade-enter-from, .slide-fade-leave-to { transform: translateY(15px); opacity: 0; }
.chat-opt-btn.selected { background: var(--secondary); color: white; border-color: var(--secondary); }

/* FAQ */
.faq-section { background-color: #f0f4f4; border-top: 1px solid #e2e8f0; position: relative; }
.faq-container { max-width: 1024px; margin: 0 auto 50px; }
.faq-item { border-bottom: 1px solid #eee; cursor: pointer; transition: background 0.3s; }
.faq-item:first-child { border-top: 1px solid #eee; }
.faq-item:hover { background: #f9fafb; }
.faq-question { padding: 20px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: #333; }
.q-mark { color: var(--secondary); margin-right: 10px; font-weight: 800; }
.arrow { color: #999; transition: transform 0.3s; }
.faq-item.active .arrow { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #f8f9fa; color: #666; }
.faq-item.active .faq-answer { max-height: 200px; }
.a-content { padding: 20px 20px 30px; line-height: 1.6; font-size: 15px; }
.a-mark { color: #999; margin-right: 10px; font-weight: 800; }

.contact-banner { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); color: white; text-align: center; padding: 40px; border-radius: 16px; max-width: 800px; margin: 0 auto; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); }
.contact-banner p { font-size: 18px; margin-bottom: 20px; font-weight: 300; }
.contact-info-row { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.contact-info-row span { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--secondary); }

/* ==========================================================================
   Before & After Compare (기존)
   ========================================================================== */
.ba-modal-overlay { user-select: none; }
.ba-modal-container { max-width: 900px; overflow: hidden; padding: 0; }
.ba-header { padding: 30px 30px 20px; background: #fff; }
.ba-slider-container { position: relative; width: 100%; height: 500px; overflow: hidden; cursor: ew-resize; }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.ba-label { position: absolute; top: 20px; padding: 8px 15px; background: rgba(0, 0, 0, 0.6); color: white; font-weight: bold; font-size: 14px; border-radius: 4px; pointer-events: none; }
.ba-label.before { left: 20px; }
.ba-label.after { right: 20px; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--white); box-shadow: 0 0 10px rgba(0,0,0,0.2); z-index: 10; transform: translateX(-50%); pointer-events: none; }
.ba-handle-btn { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); background: var(--secondary); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); pointer-events: auto; cursor: ew-resize; }
.ba-handle-btn .material-icons-outlined { font-size: 24px; transform: rotate(90deg); }

/* ==========================================================================
   [신규] Lightbox (크게 보기) 스타일
   ========================================================================== */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 3000; display: flex; justify-content: center; align-items: center; flex-direction: column; }
.lightbox-content { max-width: 90%; max-height: 85%; display: flex; flex-direction: column; align-items: center; }
.lightbox-caption { color: #fff; margin-top: 15px; font-size: 18px; font-weight: 500; text-align: center; }
.lightbox-close { position: absolute; top: 30px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s; background: rgba(255,255,255,0.1); border-radius: 50%; padding: 5px; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* 1. 메인 사진 고정된 틀 크기 확대 (화면 비율에 맞춤) */
.lightbox-content > img:first-child {
    width: 100%;
    max-width: 90vw;         /* 화면 가로폭의 90%까지 꽉 차게 허용 */
    height: 75vh !important; /* 화면 높이의 75%까지 허용 (썸네일 공간 넉넉히 확보) */
    max-height: 70vh !important;
    object-fit: contain;     /* 사진 원본 비율 유지 (잘림 방지) */
    background: rgba(0, 0, 0, 0.5); /* 빈 여백 색상 조금 더 어둡게 처리하여 몰입감 향상 */
    border-radius: 8px;
}

/* 2. 하단 썸네일 래퍼 (버튼 포함) */
.lightbox-thumbnail-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin-top: 15px;
}

/* 3. 좌우 스크롤 버튼 */
.thumb-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0; /* 버튼 크기 찌그러짐 방지 */
}
.thumb-nav-btn:hover {
    background: var(--secondary);
}

/* 4. 썸네일 리스트 영역 */
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scroll-behavior: smooth; /* 부드럽게 스크롤 이동 */
    /* 스크롤바 숨기기 (버튼으로 조작) */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.lightbox-thumbnails::-webkit-scrollbar {
    display: none; 
}

/* 5. 개별 썸네일 이미지 */
.lightbox-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.lightbox-thumbnails img:hover,
.lightbox-thumbnails img.active {
    opacity: 1;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive (반응형 모바일 환경)
   ========================================================================== */
@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-gallery { grid-template-columns: 1fr; }
    .gallery-item:first-child { grid-column: span 1; height: 350px; }
    .gallery-item { height: 250px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 60px; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); }
    .navbar .logo { color: var(--primary); font-size: 20px; }
    .menu-btn { display: block; color: var(--primary) !important; }
    .nav-links { position: absolute; top: 60px; left: 0; width: 100%; background: var(--white); flex-direction: column; align-items: center; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .nav-links.active { max-height: 300px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
    .nav-links li { width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid #f8f9fa; color: var(--text-main); }
    
    /* 히어로 슬라이더 모바일 맞춤 제어 */
    .hero-logo { height: 30px; top: 40%; }
    .hero-text-box { bottom: 12%; }
    .hero-text-box h1 { font-size: 24px !important; margin-bottom: 8px !important; }
    .hero-text-box p { font-size: 13px !important; margin-bottom: 20px !important; }
    .hero-text-box .slide-btn { padding: 10px 24px; font-size: 13px; }

    section { padding: 60px 5%; }
    .section-title { font-size: 28px; }
    .section-desc { font-size: 15px; word-break: keep-all; }
    .about-section { flex-direction: column; gap: 30px; }
    .about-visual { width: 100%; height: auto; min-height: 300px; }
    .about-img-sticky { position: relative; top: 0; height: 300px; }
    .about-content h2 { font-size: 32px; }
    .quote-box p { font-size: 18px; }
    .stats-container { grid-template-columns: 1fr; gap: 15px; }
    .stat-box { padding: 30px; }
    .stat-num { font-size: 42px; }
    .business-grid { grid-template-columns: 1fr; gap: 25px; }
    .biz-flip-container { height: 320px; }
    .doctor-container { flex-direction: column; text-align: center; }
    .doctor-text h2 { font-size: 36px; }
    .doctor-text .main-desc { font-size: 18px; }
    .modal-overlay { padding: 10px; align-items: center; } 
    .modal-container { max-height: 85vh; border-radius: 12px; width: 95%; }
    .modal-content { padding: 20px; }
    .modal-header { margin-bottom: 15px; padding-bottom: 15px; }
    .modal-title { font-size: 20px; }
    .modal-close { top: 10px; right: 10px; font-size: 24px; padding: 5px; }
    .clinic-intro-flex { flex-direction: column; text-align: center; gap: 15px; padding: 0; }
    .speech-bubble { padding: 20px; margin-bottom: 10px; border-radius: 12px; }
    .speech-bubble h4 { font-size: 18px; margin: 10px 0; }
    .speech-bubble p { font-size: 13px; line-height: 1.4; margin: 0; }
    .ai-badge { margin-bottom: 8px; font-size: 11px; padding: 4px 10px; }
    .intro-right img { width: 100px; margin-top: 5px; }
    .intro-btn-group { grid-template-columns: 1fr; gap: 10px; margin-top: 15px; }
    .btn-intro-select { min-height: auto; flex-direction: row; justify-content: flex-start; padding: 15px; gap: 12px; text-align: left; border-radius: 12px; }
    .btn-intro-select .material-icons-outlined { margin-bottom: 0; font-size: 28px !important; }
    .btn-intro-select .btn-main-text { margin-bottom: 0; font-size: 15px !important; }
    .btn-intro-select small { display: none; }
    .btn-intro-select > div { align-items: flex-start; }
    .clinic-header { margin-bottom: 20px; }
    .clinic-logo { font-size: 14px; margin-bottom: 5px; }
    .clinic-title { font-size: 22px; margin-bottom: 5px; }
    .clinic-desc { font-size: 13px; line-height: 1.4; }
    .input-grid { grid-template-columns: 1fr; gap: 12px; }
    .form-label { margin-bottom: 4px; font-size: 13px; }
    .form-input { padding: 10px; font-size: 14px; height: 42px; }
    .cost-receipt { padding: 15px; }
    .cost-row { font-size: 13px; margin-bottom: 8px; }
    .cost-row.total { font-size: 16px; margin-top: 15px; padding-top: 10px; }
    .radar-box { padding: 10px; margin-bottom: 20px; }
    .radar-chart { width: 100%; height: auto; max-width: 220px; }
    .clinic-nav { flex-direction: column-reverse; gap: 10px; margin-top: 20px; padding-top: 15px; }
    .btn-prev, .btn-next { width: 100%; padding: 12px; font-size: 14px; }
    .chat-toggle-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .chat-container { bottom: 80px; right: 20px; left: 20px; width: auto; height: 60vh; }
    .chat-promo-tooltip { bottom: 65px; right: 0; font-size: 11px; padding: 6px 12px; }
    .social-proof-toast { left: 50%; transform: translateX(-50%); bottom: 85px; width: 90%; max-width: 350px; border-left: 1px solid #eee; }
    .slide-fade-enter-from, .slide-fade-leave-to { transform: translate(-50%, 15px); opacity: 0; }
    .contact-info-row { gap: 15px; flex-direction: column; }
    .contact-info-row span { justify-content: center; font-size: 18px; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-links { flex-direction: column; gap: 15px; text-align: center; }
    .footer-links li a { display: block; padding: 5px; }
    .project-grid { grid-template-columns: 1fr; }
    .ba-slider-container { height: 350px; }
    .ba-header { padding: 20px; }
    .ba-label { font-size: 12px; padding: 5px 10px; }
    .ba-handle-btn { width: 36px; height: 36px; }
    
    /* 모바일 라이트박스 세부 제어 */
    .lightbox-close { top: 15px; right: 15px; font-size: 30px; }
    .lightbox-caption { font-size: 15px; }
}