* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
        body { color: #333; background-color: #f8fafc; line-height: 1.6; overflow-x: hidden; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        
        /* 1. 상단 헤더 */
        header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
        .header-top { display: flex; justify-content: flex-end; gap: 20px; padding: 10px 0; font-size: 0.85rem; color: #64748b; border-bottom: 1px solid #f1f5f9; }
        .header-top > div:not(.header-welcome), .header-top > a { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 14px; border: 1px solid #dbeafe; border-radius: 999px; background: #f8fbff; color: #1e3a8a; font-size: 0.92rem; font-weight: 700; line-height: 1; }
        .header-top > div:not(.header-welcome) i, .header-top > a i { color: #0284c7; }
        .header-top > a:hover { border-color: #7dd3fc; background: #e0f2fe; color: #0369a1; }
        .header-welcome { margin-right: auto; color: #0284c7; font-weight: 500; }
        .header-main { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; position: relative; }
        .logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: #0284c7; white-space: nowrap; }
        .logo i { font-size: 1.8rem; }
        .logo span { font-size: 0.9rem; color: #64748b; display: block; font-weight: 400; }
        .nav-menu { display: flex; gap: 24px; }
        .nav-item { font-size: 1.05rem; font-weight: 500; color: #334155; transition: color 0.3s; padding: 5px 0; }
        .nav-item:hover, .nav-item.active { color: #0284c7; }
        .menu-toggle { display: none; font-size: 1.5rem; color: #334155; cursor: pointer; padding: 5px; }
        
        /* 서브페이지 배너 & 서브탭 */
        .sub-banner { background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1920&q=80') no-repeat center/cover; height: 220px; display: flex; align-items: center; color: #fff; }
        .sub-banner-content h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
        .sub-banner-content p { font-size: 1rem; color: #cbd5e1; }
        .sub-nav-bar { background: #fff; border-bottom: 1px solid #e2e8f0; }
        .sub-nav-menu { display: flex; }
        .sub-nav-item { padding: 15px 30px; font-size: 1rem; font-weight: 500; color: #64748b; border-bottom: 3px solid transparent; transition: all 0.2s; text-align: center; }
        .sub-nav-item:hover, .sub-nav-item.active { color: #0284c7; border-bottom-color: #0284c7; background: #f8fafc; }
        
        .doctor-section { padding: 64px 0 92px; background: #fff; }
        .doctor-profile-card { padding: clamp(28px, 4vw, 58px); border: 1px solid #e2e8f0; border-radius: 32px; background: #fff; box-shadow: 0 22px 54px rgba(15,23,42,0.08); }
        .doctor-hero-row { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(34px, 5vw, 58px); align-items: center; margin-bottom: 44px; padding-bottom: 36px; border-bottom: 1px solid #e5eaf2; }
        .doctor-img-box { overflow: hidden; border: 1px solid #dbe5f3; border-radius: 28px; background: #fff; box-shadow: 0 18px 38px rgba(15,23,42,0.08); }
        .doctor-img-box img { display: block; width: 100%; height: auto; object-fit: cover; }
        .doctor-title { margin-bottom: 18px; color: #ff8a00; font-size: .95rem; font-weight: 900; letter-spacing: .42em; text-transform: uppercase; }
        .doctor-name { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; color: #11195f; font-size: clamp(2.25rem, 4vw, 3.35rem); font-weight: 900; letter-spacing: -.04em; }
        .doctor-name span { color: #11195f; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 900; letter-spacing: 0; }
        .doctor-specialty { color: #2f3748; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 900; }
        .history-sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 70px); }
        .history-block h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 2px solid #e8eef7; color: #11195f; font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 900; }
        .history-block h4 i { color: #ff8a00; }
        .history-list { display: grid; gap: 12px; }
        .history-list li { position: relative; padding-left: 18px; color: #2f3748; font-size: clamp(.98rem, 1.25vw, 1.08rem); font-weight: 700; line-height: 1.68; word-break: keep-all; }
        .history-list li::before { position: absolute; top: .72em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #ff9817; content: ""; }
        .history-list li i { display: none; }
        .doctor-bottom-greeting-box { margin-top: 72px; padding: clamp(44px, 7vw, 84px) clamp(24px, 8vw, 96px); border: 0; border-radius: 0; background: #fff; box-shadow: none; text-align: center; }
        .doctor-bottom-greeting-box .quote-mark { display: block; margin-bottom: 18px; color: #ff8a00; font-size: 3.2rem; font-weight: 900; line-height: 1; }
        .doctor-bottom-greeting-box .eyebrow { margin-bottom: 26px; color: #ff8a00; font-size: .95rem; font-weight: 900; letter-spacing: .52em; text-align: center; }
        .doctor-bottom-greeting-box h4 { display: block; margin-bottom: 48px; color: #11195f; font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.45; letter-spacing: -.04em; }
        .doctor-bottom-greeting-box h4 strong { color: #ff8a00; }
        .doctor-bottom-greeting-box > p:not(.eyebrow) { margin: 0 auto 24px; max-width: 880px; color: #3f4758; font-size: clamp(1.08rem, 1.65vw, 1.35rem); font-weight: 700; line-height: 2.02; text-align: left; word-break: keep-all; }
        .doctor-signature { max-width: 880px; margin: 64px auto 0; padding-top: 42px; border-top: 1px solid #e5eaf2; text-align: right; }
        .doctor-signature span { display: block; margin-bottom: 14px; color: #9aa4b8; font-size: 1.05rem; font-weight: 900; }
        .doctor-signature strong { color: #11195f; font-size: 1.45rem; font-weight: 900; }

        /* 3. 푸터 영역 */
        footer { background: #1e293b; color: #94a3b8; padding: 40px 0 30px; font-size: 0.85rem; }
        .footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #334155; padding-bottom: 15px; }
        .footer-links a { color: #e2e8f0; font-weight: 500; transition: color 0.2s; }
        .footer-links a:hover { color: #0284c7; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
        .footer-logo { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
        .footer-info p { margin-bottom: 6px; }
        .footer-hours h4 { color: #fff; margin-bottom: 15px; font-size: 1rem; }
        .hours-list li { display: flex; justify-content: space-between; margin-bottom: 8px; }
        .footer-bottom { margin-top: 30px; border-top: 1px solid #334155; padding-top: 20px; }

        /* ===================================================
           ★ 모바일 및 리사이징 반응형 레이아웃 붕괴 방지 ★
        =================================================== */
        @media (max-width: 1100px) { 
            .nav-menu { gap: 15px; } 
            .nav-item { font-size: 0.95rem; } 
            .doctor-hero-row { grid-template-columns: 280px 1fr; }
        }
        
        @media (max-width: 968px) { 
            /* 화면이 줄어들면 원장사진이 상단 중앙, 약력이 아래로 깔끔하게 떨어짐 */
            .doctor-hero-row { grid-template-columns: 1fr; gap: 30px; } 
            .doctor-img-box { max-width: 280px; margin: 0 auto; } 
            .doctor-name { justify-content: center; font-size: 1.8rem; } 
            .doctor-title, .doctor-specialty { text-align: center; }
            .history-sub-grid { grid-template-columns: 1fr; gap: 25px; } /* 약력 내부도 모바일에선 1열 정렬 */
        }
        
        @media (max-width: 768px) { 
            .header-top { display: none; } 
            .menu-toggle { display: block; } 
            .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: -24px; right: -24px; background: #fff; border-top: 1px solid #e2e8f0; padding: 20px 44px; box-shadow: 0 10px 15px rgba(0,0,0,0.05); gap: 15px; z-index: 999; } 
            .nav-menu.active { display: flex; } 
            .sub-banner { height: 180px; text-align: center; } 
            .sub-banner-content h2 { font-size: 1.8rem; } 
            .sub-nav-item { padding: 12px 20px; font-size: 0.95rem; } 
            .doctor-bottom-greeting-box { margin-top: 44px; }
            .footer-grid { grid-template-columns: 1fr; gap: 30px; } 
        }
        
        @media (max-width: 480px) { 
            .logo { font-size: 1.1rem; } 
            .sub-nav-menu { justify-content: center; width: 100%; } 
            .sub-nav-item { padding: 12px 10px; font-size: 0.85rem; flex: 1; } 
            .doctor-name { font-size: 1.5rem; } 
            .doctor-bottom-greeting-box > p:not(.eyebrow) { font-size: 0.95rem; }
            .doctor-signature { text-align: center; }
        }
