/* 기본 설정 (Reset) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } 
body { 
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #fff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    caret-color: transparent; /* 클릭 시 나타나는 텍스트 커서(I-빔) 숨김 */
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 시 하이라이트 제거 */
}
/* 입력창에서는 커서가 보이도록 설정 */
input, textarea { caret-color: auto; }
/* 폰트 교체 시 깜빡임 방지 */
@font-face {
    font-family: 'Pretendard';
    font-display: swap;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; content-visibility: auto; }

/* 스크린 리더용 (SEO 및 접근성) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 레이아웃 공통 */
.section { padding: 80px 20px; }
.section-container { max-width: 1200px; margin: 0 auto; width: 100%; }
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }

/* 제목 공통 스타일 */
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: #1a2b4c; letter-spacing: -1px; }
.divider { width: 50px; height: 3px; background-color: #c9a756; margin: 15px auto 20px; } /* 예닮 포인트 컬러(골드) */
.section-header p { font-size: 1.1rem; color: #666; }

/* 헤더 (메뉴바) */
.header { position: fixed; top: 0; width: 100%; background: transparent; z-index: 1000; transition: all 0.4s ease; }
.header.scrolled { background: rgba(26, 43, 76, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.2); padding: 5px 0; }
.header-container { 
    max-width: 1360px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: auto 1fr auto;
    align-items: center; 
    position: relative;
    column-gap: 24px;
    padding: 25px 36px; 
    transition: all 0.4s ease; 
}
.header.scrolled .header-container { padding: 15px 36px; }
.logo { justify-self: start; grid-column: 1; margin-left: -8px; } 
.logo img { height: 55px; width: auto; transition: height 0.4s ease; filter: brightness(0) invert(1); }
.header.scrolled .logo img { height: 45px; }
.nav-menu { 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease; 
} 
.nav-menu ul { display: flex; gap: 35px; }
.nav-menu li { position: relative; padding: 10px 0; } /* 하위 메뉴의 기준점 */
.nav-menu a { font-size: 1.05rem; font-weight: 600; color: #fff; transition: color 0.3s ease; letter-spacing: 0.5px; white-space: nowrap; }
.nav-menu a:hover { color: #c9a756; }

/* 우측 균형용 플레이스홀더 */
.header-right-placeholder { grid-column: 3; width: 160px; }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; justify-self: end; }

/* Registration Banner */
.reg-banner {
    background: linear-gradient(135deg, #1a2b4c 0%, #2c3e50 100%);
    color: #fff; padding: 40px; border-radius: 15px; margin: 10px 0 40px; 
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.reg-banner:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.reg-banner-text h3 { font-size: 1.8rem; margin-bottom: 10px; color: #c9a756; }
.reg-banner-text p { font-size: 1.1rem; opacity: 0.9; }
.reg-banner i { font-size: 3rem; color: #c9a756; opacity: 0.8; }

/* Business Model Sections */
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 50px; }
.model-card {
    background: #fff; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
    .model-card:hover {
        box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
        border-color: #d9c28b;
    }
}
@media (prefers-reduced-motion: reduce) {
    .model-card {
        transition: none;
    }
}
.model-card-header { background: #1a2b4c; color: #fff; padding: 40px 30px; text-align: center; }
.model-card-header h3 { font-size: 1.6rem; margin-bottom: 15px; color: #c9a756; }
.model-card-price { font-size: 2rem; font-weight: 700; }
.model-card-price span { font-size: 1.1rem; font-weight: 400; opacity: 0.8; }
.model-card-body { padding: 40px; flex: 1; display: flex; flex-direction: column; }
.model-card-body ul { margin-bottom: 30px; flex: 1; }
.model-card-body li { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; line-height: 1.4; }
.model-card-body i { color: #c9a756; margin-top: 3px; }

/* 드롭다운 하위 메뉴 스타일 */
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(5px); 
    background: rgba(26, 43, 76, 0.98); 
    min-width: 180px; 
    padding: 5px 0; 
    border-radius: 4px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.2s ease-in-out; 
    border-top: 3px solid #c9a756;
    display: flex;
    flex-direction: column;
    z-index: 1000; /* 하위 메뉴가 최상단에 오도록 설정 */
}
.nav-menu li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li { padding: 0; width: 100%; margin: 0; }
.dropdown-menu a { 
    padding: 8px 20px; 
    display: block; 
    font-size: 1.05rem; /* 주 메뉴와 동일한 크기 */
    font-weight: 500; 
    color: #fff; 
    text-align: center;
    line-height: 1.2; /* 줄 간격을 좁혀 공백 제거 */
    transition: all 0.2s;
}
.dropdown-menu a:hover { background: rgba(201, 167, 86, 0.1); color: #c9a756; }

.header-container::after { content: ""; display: block; } /* 우측 빈 공간을 만들어 메뉴 중앙 정렬 유지 */
.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; justify-self: end; }

/* 메인 비주얼 (Hero) */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('1234.webp') no-repeat center center/cover;
    color: #fff;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; margin-bottom: 40px; }
.hero-content strong { color: #c9a756; font-weight: 600; }
.btn-primary { 
    display: inline-block; padding: 15px 40px; background-color: #c9a756; color: #fff; 
    font-size: 1.1rem; font-weight: 600; border-radius: 4px; transition: background-color 0.3s; 
}
.btn-primary:hover { background-color: #b39247; }

/* 간단한 애니메이션 (페이드인) */
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* 사무실 소개 */
#about { 
    scroll-margin-top: 75px; /* 스크롤 시 헤더 높이에 정확히 맞춤 */
    padding-bottom: 60px; /* 다음 섹션과의 물리적 거리 확보 */
}
.about-content { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1.2; text-align: left; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: #1a2b4c; text-align: center; }
.about-text h3 strong { color: #c9a756; }
.about-text p { margin-bottom: 25px; font-size: 1.05rem; color: #555; line-height: 1.8; }

/* 경력사항 스타일 */
.career-wrap { display: flex; gap: 30px; margin-bottom: 35px; background: #fff; padding: 25px; border-radius: 8px; border-left: 4px solid #c9a756; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.career-group { flex: 1; }
.career-group h4 { font-size: 1.05rem; color: #1a2b4c; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.career-group h4 i { color: #c9a756; font-size: 0.9rem; }
.career-list { list-style: none; padding: 0; }
.career-list li { font-size: 0.95rem; color: #666; margin-bottom: 8px; position: relative; padding-left: 15px; line-height: 1.5; }
.career-list li::before { content: "•"; position: absolute; left: 0; color: #c9a756; font-weight: bold; }

.feature-list { margin-top: 25px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.feature-list li { margin-bottom: 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; color: #333; font-weight: 500;}
.feature-list i { color: #c9a756; }
.profile-access-wrap {
    max-width: 920px;
    margin: 24px auto 0;
}
.profile-access-card {
    padding: 18px 28px;
    border-radius: 18px;
    border: 1px solid rgba(201, 167, 86, 0.28);
    background: linear-gradient(135deg, #1a2b4c 0%, #243757 100%);
    box-shadow: 0 8px 20px rgba(26, 43, 76, 0.08);
}
.profile-access-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.profile-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.profile-access-card h4 {
    font-size: 1.06rem;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}
.profile-access-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 172px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.profile-access-btn:hover {
    transform: translateY(-2px);
}
.profile-access-btn-primary {
    background: #c9a756;
    color: #fff;
    box-shadow: 0 10px 20px rgba(201, 167, 86, 0.24);
}
.profile-access-btn-primary:hover {
    background: #b39247;
}
.profile-access-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.profile-access-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}
.about-image { flex: 0.8; align-self: center; display: flex; justify-content: center; }
.attorney-photo { 
    width: 100%; 
    max-width: 320px; /* 기존 400px에서 4/5인 320px로 추가 축소 */
    height: auto; 
    object-fit: contain; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border: 1px solid #eee;
}
.placeholder-img { width: 100%; height: 100%; min-height: 500px; background-color: #e9ecef; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #adb5bd; }

/* 주요 업무 */
#practice {
    scroll-margin-top: 75px; /* 스크롤 시 헤더 높이에 정확히 맞춤 */
    padding-top: 60px; /* 배경색(흰색)이 헤더 아래를 완전히 덮도록 패딩 확보 */
    padding-bottom: 20px; 
    background-color: #fff; /* 배경색 명시 */
}
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 0; }
.practice-card { 
    background: #fff; padding: 40px 30px; text-align: center; border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid #f1f3f5;
}
.practice-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #c9a756; }
.icon-box { width: 70px; height: 70px; margin: 0 auto 20px; background-color: #f4f6f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #1a2b4c; transition: all 0.3s; }
.practice-card:hover .icon-box { background-color: #1a2b4c; color: #c9a756; }
.practice-card h3 { font-size: 1.4rem; color: #1a2b4c; margin-bottom: 15px; font-weight: 600; }
.practice-card p { font-size: 1rem; color: #666; }

/* 오시는 길 */
.location-content { display: flex; gap: 40px; }
.map-container { flex: 1.5; }
.placeholder-map { width: 100%; height: 400px; background-color: #e9ecef; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6c757d; font-weight: 600;}
.info-container { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; }
.info-item i { font-size: 1.5rem; color: #c9a756; margin-top: 3px; }
.info-item h4 { font-size: 1.1rem; color: #1a2b4c; margin-bottom: 5px; font-weight: 600; }
.info-item p { color: #555; }

/* 푸터 */
.footer { background-color: #1a2b4c; color: #fff; padding: 60px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo img { width: 180px; }
.footer-info p { font-size: 0.95rem; color: #a0aec0; margin-bottom: 5px; }
.footer-info .copyright { margin-top: 15px; font-size: 0.85rem; color: #6c757d; }

/* 서브 페이지 전용 스타일 */
.sub-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('1234.webp') no-repeat center center/cover;
    padding: 180px 20px 100px;
    text-align: center;
    color: #fff;
}
.sub-hero h1 { font-size: 2.8rem; margin-bottom: 15px; letter-spacing: -1px; }
.sub-hero p { font-size: 1.2rem; opacity: 0.8; font-weight: 300; }

.practice-detail { display: flex; gap: 60px; }
.detail-content { flex: 2; }
.detail-content h3 { font-size: 1.8rem; color: #1a2b4c; margin-bottom: 25px; border-bottom: 2px solid #c9a756; display: inline-block; padding-bottom: 5px; }
.detail-content p { font-size: 1.1rem; line-height: 1.9; color: #555; margin-bottom: 30px; }

.ai-value-section {
    margin-bottom: 50px;
}

.ai-value-panel {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.ai-feature-panel {
    margin-top: 24px;
    padding: 28px 30px;
    border-radius: 16px;
    border: 1px solid #ead9ac;
    background: linear-gradient(135deg, #fcfaf5 0%, #f7f1e2 100%);
    box-shadow: 0 12px 30px rgba(26, 43, 76, 0.06);
}

.ai-feature-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.ai-feature-badge {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2b4c;
    color: #c9a756;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(26, 43, 76, 0.18);
}

.ai-feature-header h5 {
    font-size: 1.15rem;
    color: #1a2b4c;
    margin-bottom: 4px;
}

.ai-feature-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
}

.ai-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.ai-flow-step {
    position: relative;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(201, 167, 86, 0.26);
    box-shadow: 0 10px 24px rgba(26, 43, 76, 0.06);
    text-align: center;
}

.ai-flow-step-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-flow-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #1a2b4c;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c9a756;
}

.ai-flow-step h6 {
    font-size: 1.12rem;
    color: #1a2b4c;
    margin: 0;
    text-align: left;
}

.ai-flow-step p {
    margin: 0 0 16px;
    font-size: 0.93rem;
    color: #667085;
    line-height: 1.7;
}

.ai-flow-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ai-flow-tags span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7f2e5;
    border: 1px solid rgba(201, 167, 86, 0.28);
    color: #364152;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

.ai-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a756;
    font-size: 1.2rem;
}

.point-box { background: #fdfaf2; padding: 40px; border-radius: 12px; border: 1px solid #f3e5c2; }
.point-box h4 { font-size: 1.3rem; color: #1a2b4c; margin-bottom: 20px; }
.point-box h4 i { color: #c9a756; margin-right: 10px; }
.point-box ul { padding: 0; }
.point-box li { margin-bottom: 20px; font-size: 1.05rem; position: relative; padding-left: 20px; list-style: none; }
.point-box li::before { content: "•"; position: absolute; left: 0; color: #c9a756; font-weight: bold; }
.point-box li strong { color: #1a2b4c; font-size: 1.1rem; }

.detail-sidebar { flex: 1; position: sticky; top: 120px; align-self: flex-start; height: fit-content; }
.firm-strength { background: #1a2b4c; color: #fff; padding: 35px; border-radius: 12px; }
.firm-strength h4 { font-size: 1.4rem; color: #c9a756; margin-bottom: 25px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.firm-strength ul { padding: 0; }
.firm-strength li { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; opacity: 0.9; }
.firm-strength i { color: #c9a756; margin-top: 3px; }

/* AI 서비스 전용 */
.ai-hero { }

.ai-container { display: flex; gap: 30px; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); min-height: 600px; }
.ai-sidebar { flex: 1; background: #f8f9fa; padding: 30px; border-right: 1px solid #eee; }
.ai-sidebar h3 { font-size: 1.2rem; color: #1a2b4c; margin-bottom: 20px; font-weight: 700; }
.doc-select-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.doc-btn { 
    padding: 15px; border: 1px solid #ddd; background: #fff; border-radius: 8px; text-align: left; 
    font-size: 1rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 10px;
}
.doc-btn i { color: #c9a756; }
.doc-btn.active { background: #1a2b4c; color: #fff; border-color: #1a2b4c; }
.doc-btn.active i { color: #c9a756; }
.ai-info-box { background: #eef2f7; padding: 20px; border-radius: 8px; font-size: 0.9rem; line-height: 1.6; }

.chat-window { flex: 2.5; display: flex; flex-direction: column; background: #fff; }
.chat-messages { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #fafafa; }
.msg { max-width: 80%; padding: 12px 18px; border-radius: 15px; font-size: 1rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: #fff; color: #333; border: 1px solid #eee; border-bottom-left-radius: 2px; }
.msg.user { align-self: flex-end; background: #c9a756; color: #fff; border-bottom-right-radius: 2px; }

.chat-input-area { padding: 20px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; }
.chat-input-area input:focus { border-color: #1a2b4c; }
.send-btn { background: #1a2b4c; color: #fff; border: none; width: 50px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: background 0.3s; }
.send-btn:hover { background: #2c3e50; }

/* 블로그 및 인사이트 공통 스타일 */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 60px; }
.blog-card { 
    background: #fff; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    cursor: pointer; border: 1px solid #eee; display: flex; flex-direction: column;
    text-align: left;
}
.blog-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); border-color: #c9a756; }
.blog-card-img { 
    width: 100%; height: 180px; 
    display: flex; align-items: center; justify-content: center; 
    position: relative; color: #fff;
}
/* 카드별 그라데이션 */
.blog-card:nth-child(3n+1) .blog-card-img { background: linear-gradient(135deg, #1a2b4c 0%, #2c3e50 100%); }
.blog-card:nth-child(3n+2) .blog-card-img { background: linear-gradient(135deg, #c9a756 0%, #8e6d1e 100%); }
.blog-card:nth-child(3n+3) .blog-card-img { background: linear-gradient(135deg, #2c3e50 0%, #4a5568 100%); }

.blog-card-img i { font-size: 3.5rem; opacity: 0.7; }
.blog-card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.8rem; color: #c9a756; font-weight: 600; margin-bottom: 10px; }
.blog-card-date { font-size: 0.8rem; color: #c9a756; font-weight: 600; margin-bottom: 10px; }
.blog-card-title { font-size: 1.2rem; font-weight: 700; color: #1a2b4c; line-height: 1.4; margin-bottom: 12px; }
.blog-card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 상세 보기 모달 공통 */
.post-detail-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); z-index: 2000; display: none; 
    overflow-y: auto; padding: 40px 20px; backdrop-filter: blur(5px);
}
.post-detail-container { 
    max-width: 950px; margin: 0 auto; background: #fff; border-radius: 20px; 
    padding: 60px; position: relative; 
}
.post-detail-header { border-bottom: 2px solid #f0f0f0; margin-bottom: 40px; padding-bottom: 30px; text-align: center; }
.post-detail-header h2 { font-size: 2.2rem; color: #1a2b4c; margin-bottom: 15px; }
.post-detail-body { font-size: 1.1rem; line-height: 2; color: #333; white-space: pre-wrap; }
.post-detail-body h3 { font-size: 1.5rem; color: #1a2b4c; margin: 40px 0 20px; padding-left: 15px; border-left: 6px solid #c9a756; background: #fcfaf5; padding-top: 5px; padding-bottom: 5px; }

/* 반응형 모바일 최적화 */
@media (max-width: 1024px) {
    .header-container { padding: 15px 20px; }
    .hero-content h1 { font-size: 2.8rem; }
    .about-content { gap: 30px; }
    .career-wrap { flex-direction: column; }
}

@media (max-width: 768px) {
    /* 모바일 헤더 */
    .header-container { 
        display: flex; 
        justify-content: space-between; 
        grid-template-columns: none; 
        padding: 10px 20px; 
    }
    .header-container::after { display: none; }
    .logo img { height: 40px !important; }
    .brand {
        margin-left: 0;
        max-width: 160px;
    }
    .brand__logo {
        width: 100%;
        height: auto;
        max-height: 42px;
        object-fit: contain;
    }
    
    .mobile-menu-btn { display: block; font-size: 1.8rem; }
    
    .nav-menu { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 80%; 
        height: 100vh; 
        background: #1a2b4c; 
        z-index: 2000; 
        transition: 0.4s ease; 
        padding: 80px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; align-items: flex-start; }
    .nav-menu a { font-size: 1.2rem; display: block; width: 100%; }
    
    /* 모바일 하위 메뉴 항상 노출 또는 클릭 방식 전환 */
    .dropdown-menu { 
        position: static; 
        transform: none; 
        opacity: 1; 
        visibility: visible; 
        background: rgba(255,255,255,0.05); 
        box-shadow: none; 
        border: none; 
        margin-top: 10px; 
        display: none; /* 기본 숨김 */
        padding: 10px 0;
    }
    .has-dropdown.active .dropdown-menu { display: flex; }
    .dropdown-menu a { text-align: left; padding: 10px 20px; font-size: 1.1rem; }

    /* 레이아웃 1열 전환 */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { height: 70vh; }
    .sub-hero { padding: 140px 20px 72px; }
    .sub-hero h1 { font-size: 2rem; }
    .sub-hero p { font-size: 1rem; }
    .about-content, .location-content, .practice-detail, .consult-grid { flex-direction: column; }
    .detail-sidebar { position: static; width: 100%; margin-top: 40px; }
    .map-container { height: 300px; }
    .section { padding: 60px 20px; }
    .model-grid,
    .practice-grid,
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .model-card-header,
    .model-card-body,
    .point-box,
    .firm-strength,
    .ai-sidebar,
    .chat-messages,
    .post-detail-container { padding: 24px 20px; }
    .post-detail-header h2 { font-size: 1.7rem; }
    .post-detail-body { font-size: 1rem; line-height: 1.8; }
    .post-detail-body h3 { font-size: 1.25rem; margin: 28px 0 16px; }
    .chat-input-area { flex-direction: column; }
    .send-btn { width: 100%; height: 48px; }
    .msg { max-width: 100%; }
    .scope-box {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    .reg-banner {
        padding: 28px 22px;
        margin-bottom: 28px;
    }
    .reg-banner > div {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .reg-banner-text {
        min-width: 0 !important;
        width: 100%;
    }
    .reg-banner-text h3 { font-size: 1.55rem !important; }
    .reg-banner-text p { font-size: 1rem !important; }
    .reg-banner .btn-primary {
        width: 100%;
        text-align: center;
    }
    .ai-container { flex-direction: column; }
    .profile-access-card {
        padding: 18px 18px;
        background: linear-gradient(180deg, #1a2b4c 0%, #243757 100%);
    }
    .profile-access-wrap {
        max-width: 100%;
        margin-top: 22px;
    }
    .profile-access-card h4 {
        margin-bottom: 10px;
    }
    .profile-access-top {
        align-items: flex-start;
    }
    .profile-access-actions {
        flex-direction: column;
        align-items: center;
    }
    .profile-access-btn {
        width: 100%;
        max-width: 260px;
    }
    .ai-feature-panel { padding: 24px 20px; }
    .ai-feature-header { flex-direction: column; gap: 12px; }
    .ai-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ai-flow-arrow {
        transform: rotate(90deg);
        min-height: 28px;
    }
}

@media (max-width: 480px) {
    .hero--site { min-height: 420px; height: 52vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .sub-hero { padding: 126px 16px 60px; }
    .sub-hero h1 { font-size: 1.7rem; }
    .section { padding: 52px 16px; }
    .header-container,
    .header.scrolled .header-container { padding: 10px 16px; }
    .brand {
        max-width: 138px;
    }
    .brand__logo {
        max-height: 36px;
    }
    .nav-menu { width: 88%; padding: 72px 24px; }
    .career-wrap,
    .point-box,
    .firm-strength,
    .model-card-header,
    .model-card-body,
    .advisory-header,
    .advisory-body,
    .advisory-footer,
    .res-modal-content,
    .blog-form,
    .archive-section,
    .comment-section,
    .probono-card,
    .bridge-container { padding: 18px !important; }
    .post-detail-container { padding: 24px 16px; }
    .post-detail-header h2 { font-size: 1.45rem; }
    .btn-primary { width: 100%; text-align: center; }
}

/* ===== Shared Top Hero (site-wide) ===== */
.hero--site {
  position: relative;
  height: 60vh; /* 화면 높이의 3/5 (60%) 로 고정 */
  min-height: 500px;
  background: url("1234.webp") center/cover no-repeat;
}

.hero--site .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero--site .hero__inner {
  position: relative;
  z-index: 10;
  padding: 40px;
  color: #fff;
  max-width: 1360px;
  margin: 0 auto;
  height: 100%; /* 전체 높이 사용 */
  display: flex;
  flex-direction: column;
}

/* 셰어드 히어로 내비게이션 정렬 보정 */
.hero--site .nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
  column-gap: 24px;
  margin-bottom: 0; /* 글귀 정중앙 배치를 위해 여백 제거 */
  z-index: 100; /* 글귀보다 내비게이션이 위에 오도록 설정 */
}

.hero--site .brand {
  justify-self: start;
  margin-left: -8px;
}

.hero--site .nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero--site .header-right-placeholder {
  width: 160px;
  min-height: 1px;
}

.hero--site .nav-menu ul {
  display: flex;
  gap: 35px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero--site .nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.hero--site .nav-menu a:hover {
  color: #c9a756;
}

/* 드롭다운 위치 보정 (히어로 섹션용) */
.hero--site .dropdown-menu {
  background: rgba(26, 43, 76, 0.98);
  z-index: 1000; /* 최상단 레이어 보장 */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand__logo {
  height: 55px; /* 로고 크기 원래대로 복구 */
  width: auto;
  filter: brightness(0) invert(1);
}

.brand__text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* 글귀 정중앙 배치 */
.hero--site .hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1; /* 내비게이션(z-index: 100)보다 아래에 배치 */
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* 맨 위로 버튼 스타일 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1a2b4c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.1);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: #c9a756;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 167, 86, 0.3);
}

@media (max-width: 1024px) {
  .hero--site .mobile-menu-btn {
    display: block;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    justify-self: end;
    z-index: 2100;
  }
  .hero--site .nav-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 360px);
    height: 100vh;
    background: #1a2b4c;
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 88px 28px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .hero--site .nav-menu.active {
    right: 0;
  }
  .hero--site .nav-menu ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .hero--site .nav-menu a {
    display: block;
    width: 100%;
    font-size: 1.15rem;
  }
  .hero--site .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border: none;
    margin-top: 10px;
    display: none;
    padding: 10px 0;
  }
  .hero--site .has-dropdown.active .dropdown-menu {
    display: flex;
  }
  .hero--site .dropdown-menu a {
    text-align: left;
    padding: 10px 20px;
    font-size: 1.05rem;
  }
  .hero__title { font-size: 2.5rem; }
}
