@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ===================================================
   공통 색상/변수 — 여기 값만 바꾸면 전체 사이트에 반영됩니다
=================================================== */
:root {
    --primary-green: #2D6A4F;
    --soft-brown: #A98467;
    --dark-green: #1B4332;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --naver-green: #03C75A;
    --kakao-yellow: #FEE500;
    --kakao-brown: #3C1E1E;
}

/* ===================================================
   기본 레이아웃
=================================================== */
body {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    color: #444;
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 100px;      /* 고정 헤더 높이만큼 여백 */
    padding-bottom: 120px;   /* 하단 고정 버튼 높이만큼 여백 */
}

/* ===================================================
   상단 고정 헤더 + 네비게이션
=================================================== */
header#site-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #f0f0f0; position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; backdrop-filter: blur(10px);
}
.logo-wrap {
    display: flex; align-items: center; text-decoration: none;
    font-weight: 800; font-size: 26px; color: var(--primary-green); letter-spacing: -1.5px;
}
.logo-img { height: 48px; width: auto; margin-right: 12px; object-fit: contain; }

.gnb { list-style: none; padding: 0; margin: 0; display: flex; }
.gnb > li { position: relative; margin-left: 30px; padding: 10px 0; }
.gnb > li > a { text-decoration: none; color: #666; font-weight: 600; display: block; transition: 0.2s; }
.gnb > li:hover > a,
.gnb > li > a.active { color: var(--soft-brown); }

.submenu {
    list-style: none; padding: 15px 0; margin: 0;
    position: absolute; top: 100%; left: -20px;
    background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 12px; min-width: 160px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
}
.gnb > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 10px 20px; text-decoration: none; color: #777; font-size: 0.95rem; }
.submenu li a:hover { background: var(--light-bg); color: var(--primary-green); }

@media (max-width: 992px) {
    .gnb { display: none; }
}

/* ===================================================
   하단 고정 예약/상담 버튼
=================================================== */
.fixed-btn-group {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 1000;
}
.btn-float {
    padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 800;
    text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: 0.2s;
    font-size: 1.1rem; display: flex; align-items: center; white-space: nowrap;
}
.btn-float:hover { transform: translateY(-5px); filter: brightness(1.08); }
.btn-naver { background: var(--naver-green); color: white; }
.btn-kakao { background: var(--kakao-yellow); color: var(--kakao-brown); }

/* ===================================================
   공통 푸터
=================================================== */
.common-footer {
    background-color: #f8f9fa;
    padding: 50px 8% 130px;
    border-top: 1px solid #eee;
    color: #555;
}
.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 30px;
}
.footer-brand h4 { font-size: 1.4rem; color: var(--primary-green); margin: 0 0 15px 0; font-weight: 800; }
.footer-brand p { margin: 5px 0; font-size: 0.95rem; color: #777; }

.footer-info-group { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-info-group .info-item h5 { font-size: 1rem; color: var(--dark-green); margin: 0 0 12px 0; font-weight: 700; }
.footer-info-group .info-item p { margin: 5px 0; font-size: 1.1rem; font-weight: 600; color: #444; }
.highlight-time { color: var(--soft-brown) !important; font-weight: 800; }

@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-info-group { justify-content: center; gap: 20px; width: 100%; }
    .common-footer { padding-bottom: 150px; }
}

/* ===================================================
   진료과목 상세 페이지 공통 레이아웃
   (내과 · 외과 · 치과 · 피부과 · 안과 페이지가 함께 사용)
=================================================== */
.page-header { padding: 80px 8%; text-align: center; background-color: var(--light-bg); }
.page-header h2 { font-size: 2.8rem; color: var(--dark-green); margin-bottom: 15px; }

.content-section { padding: 80px 8%; max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; align-items: center; }
.content-section:nth-child(even) { flex-direction: row-reverse; }
.text-area { flex: 1; }
.text-area h3 { font-size: 2rem; color: var(--primary-green); margin-bottom: 20px; }
.text-area p { font-size: 1.1rem; color: #666; margin-bottom: 30px; word-break: keep-all; }
.img-placeholder { flex: 1; height: 400px; background: #eee; border-radius: 30px; display: flex; justify-content: center; align-items: center; color: #ccc; font-weight: 700; }
.department-photo { flex: 1; min-width: 0; width: 100%; height: 400px; object-fit: cover; border-radius: 30px; display: block; }

.disease-box { background: white; border: 1px solid #eee; border-radius: 20px; padding: 30px; margin-top: 20px; }
.disease-box h4 { color: var(--soft-brown); margin-top: 0; font-size: 1.2rem; }
.disease-box ul { padding-left: 20px; margin: 0; }
.disease-box li { margin-bottom: 10px; color: #555; }

@media (max-width: 992px) {
    .content-section, .content-section:nth-child(even) { flex-direction: column; text-align: center; }
    .img-placeholder { width: 100%; height: 250px; }
    .department-photo { flex: none; width: 100%; height: 250px; }
}
