@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* 
   ghClinic Premium Purple Design
   Color Palette:
   - Primary: #7d3078 (Premium Purple)
   - Secondary: #5a1a56 (Deep Purple)
   - Accent: #f2e205 (Gold/Yellow)
   - Background: #fdfafb (Soft Lavender White)
   - White: #ffffff
*/

:root {
    --gh-primary: #7d3078;
    --gh-secondary: #5a1a56;
    --gh-accent: #f2e205;
    --gh-bg: #fdfafb;
    --gh-text: #4a3449;
    --gh-light-text: #9a8a9a;
    --gh-white: #ffffff;
    --gh-sidebar-width: 280px;
    --gh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Typography */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    background-color: var(--gh-bg);
    color: var(--gh-text);
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Layout Wrapper */
#gh-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation (Desktop) */
#gh-sidebar {
    width: var(--gh-sidebar-width);
    background: linear-gradient(180deg, var(--gh-primary) 0%, var(--gh-secondary) 100%);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    color: var(--gh-white);
}

/* Sidebar Background Pattern Effect */
#gh-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 4.5-2.24 4.5-5s-1.74-5-4.5-5-4.5 2.24-4.5 5 1.74 5 4.5 5zm-7 56c1.38 0 2.5-1.12 2.5-2.5S65.38 50 64 50s-2.5 1.12-2.5 2.5 1.12 2.5 2.5 2.5zm-3 28c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-18-70c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm58 40c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z" fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.gh-logo {
    padding: 40px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.gh-logo a {
    display: block;
}

.gh-logo .logogh {
    width: 70px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gh-slogan {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: left;
    margin-left: 14px;
}

.gh-logo .textlogo {
    width: 100%;
    max-width: 185px;
    display: block;
    margin-left: 8px;
}

.gh-nav-menu {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.gh-nav-menu ul li a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: var(--gh-transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gh-nav-menu ul li a:hover, 
.gh-nav-menu ul li a.active {
    color: var(--gh-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.gh-nav-menu ul li a.active {
    background-color: rgba(0, 0, 0, 0.2);
}

.gh-nav-menu ul li a i {
    margin-right: 15px;
    font-size: 18px;
    width: 25px;
    text-align: center;
    opacity: 0.7;
}

.gh-sidebar-footer {
    padding: 30px;
    background-color: rgba(0,0,0,0.2);
    color: var(--gh-white);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.gh-sidebar-footer .tel {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    color: var(--gh-accent); /* Gold point color */
}

/* Main Content Area */
#gh-main {
    flex-grow: 1;
    margin-left: var(--gh-sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--gh-sidebar-width));
}

/* Topbar */
.gh-topbar {
    display: none; /* Hide topbar (login/register) */
    height: 70px;
    background-color: var(--gh-white);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.gh-topbar-links a {
    margin-left: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gh-light-text);
    transition: var(--gh-transition);
}

.gh-topbar-links a:hover {
    color: var(--gh-primary);
}

/* Hero Section */
.gh-hero {
    height: 520px;
    background: url('../images/herobanner.webp') no-repeat center center;
    background-size: cover; /* 다시 꽉 차는 cover 방식으로 변경 */
    display: flex;
    align-items: center;
    padding: 0 60px;
    color: var(--gh-white);
    position: relative;
    overflow: hidden;
}

.gh-hero-content h2, 
.gh-hero-content p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 사진 배경에서 텍스트가 잘 보이도록 그림자 추가 */
}

.gh-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.gh-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.gh-hero h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px 0;
}

.gh-hero h2 strong {
    color: var(--gh-accent);
}

.gh-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

.gh-hero-btns .gh-btn-primary {
    display: inline-block;
    padding: 16px 35px;
    background: var(--gh-white);
    color: var(--gh-primary);
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--gh-transition);
}

.gh-hero-btns .gh-btn-outline {
    display: inline-block;
    padding: 14px 33px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    color: var(--gh-white);
    font-weight: 700;
    margin-left: 15px;
    transition: var(--gh-transition);
}

.gh-hero-btns a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Container and Grid */
.gh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.gh-section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.gh-section-title-wrap h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gh-secondary);
    margin: 0 0 10px 0;
}

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

.gh-card.specialty {
    background: var(--gh-white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--gh-transition);
}

.gh-card.specialty.accent {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: var(--gh-white);
}

.gh-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--gh-primary);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
}

.gh-card.specialty.accent .gh-card-tag {
    background: rgba(255,255,255,0.2);
    color: var(--gh-white);
}

.gh-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.gh-card p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;
}

.gh-card-link {
    font-weight: 700;
    color: var(--gh-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-card.accent .gh-card-link {
    color: var(--gh-white);
}

/* Info Banner */
.gh-info-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--gh-white);
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.gh-info-item {
    padding: 40px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--gh-bg);
}

.gh-info-item:last-child { border-right: none; }

.gh-info-item .icon {
    width: 55px;
    height: 55px;
    background: var(--gh-bg);
    color: var(--gh-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 20px;
}

.gh-info-item strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.gh-info-item span {
    font-size: 14px;
    color: var(--gh-light-text);
}

/* Bottom Grid */
.gh-bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.gh-bottom-box {
    background: var(--gh-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.gh-bottom-box h4 {
    font-size: 20px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gh-bg);
    display: flex;
    justify-content: space-between;
}

.time-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gh-bg);
}

.call-box {
    margin-top: 30px;
    background: var(--gh-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.call-box .number {
    font-size: 26px;
    font-weight: 800;
    color: var(--gh-primary);
}

/* Footer Content */
#gh-footer {
    margin-top: auto;
    background-color: var(--gh-white);
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.gh-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gh-bg);
    margin-bottom: 30px;
}

.gh-footer-logo h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gh-light-text);
}

.gh-footer-logo h2 span {
    color: var(--gh-primary);
    opacity: 0.5;
}

.gh-footer-links {
    display: flex;
    gap: 25px;
}

.gh-footer-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gh-light-text);
}

.gh-footer-links a.privacy {
    color: var(--gh-text);
}

.gh-footer-info p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gh-light-text);
    margin-bottom: 20px;
}

.gh-footer-info p strong {
    color: var(--gh-text);
}

.gh-footer-info p span {
    margin: 0 10px;
    color: #e2e8f0;
}

.gh-footer-copy {
    font-size: 13px;
    color: #cbd5e1;
}

/* Mobile Adjustments */
.gh-mobile-header {
    display: none;
    height: 60px;
    background: var(--gh-white);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 1024px) {
    #gh-sidebar { transform: translateX(-100%); transition: 0.3s; }
    #gh-sidebar.active { transform: translateX(0); }
    #gh-main { margin-left: 0; width: 100%; padding-top: 60px; }
    .gh-mobile-header { display: flex; }
    .gh-grid, .gh-bottom-grid, .gh-info-banner { grid-template-columns: 1fr; }
    .gh-hero { padding: 0 30px; height: 400px; }
    .gh-hero h2 { font-size: 32px; }
    
    .gh-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .gh-footer-links {
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* Animations */
.animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Right Quick Menu */
#gh-quick {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100px;
    z-index: 1000;
    text-align: center;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    background-color: var(--gh-white);
    display: flex;
    flex-direction: column;
}

.quick-header {
    background: linear-gradient(180deg, var(--gh-primary) 0%, var(--gh-secondary) 100%);
    padding: 50px 10px;
    color: var(--gh-white);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    margin: 0 auto;
    width: 100%;
    gap: 15px; /* 텍스트 간격 확보 */
}

.main-label {
    font-size: 25px;
    font-weight: 200;
    letter-spacing: 3px;
    display: block;
}

.tiny-label {
    font-size: 9px; /* 아주 작은 글씨 */
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3); /* 투명도를 줘서 배경처럼 보이게 */
    text-transform: uppercase;
    display: block;
}

.quick-list {
    margin: 0;
    padding: 0;
}

.quick-list li a {
    display: block;
    padding: 20px 10px;
    color: var(--gh-white);
    transition: var(--gh-transition);
}

.quick-list li.item-purple { background-color: #5a1a56; }
.quick-list li.item-magenta { background-color: #bd1e8e; }
.quick-list li.item-gray { 
    background-color: #f1f5f9; 
    color: var(--gh-light-text) !important;
    border-bottom: 1px solid #e2e8f0;
}

.quick-list li a .txt {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-bottom: 8px;
}

.quick-list li a i {
    font-size: 12px;
    opacity: 0.8;
}

.quick-list li.item-gray a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.quick-list li.item-gray a .small-txt {
    display: block;
    font-size: 11px;
    font-weight: 700;
}

.quick-list li a:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.quick-top {
    background-color: var(--gh-secondary);
    padding: 15px 0;
}

.quick-top a {
    color: var(--gh-white);
    font-size: 12px;
    font-weight: 800;
}

.quick-top a i {
    display: block;
    margin-bottom: 3px;
}

@media (max-width: 1400px) {
    #gh-quick { right: 0; width: 85px; }
    .quick-header { font-size: 11px; }
    .quick-list li a .txt { font-size: 13px; }
}

@media (max-width: 1024px) {
    #gh-quick { display: none; } /* 모바일에서는 숨김 (필요시 하단 바로 변경 가능) */
}
