/* ==========================================
   서울바른교정치과 - CSS 디자인 시스템 & 스타일링
   ========================================== */

/* 1. 디자인 시스템 토큰 및 초기화 */
:root {
  /* 색상 토큰 (클래식 딥 네이비 & 웜 샴페인 골드 스펙트럼) */
  --primary-navy: #112233;       /* 딥 미드나잇 네이비 (메인 신뢰 타이틀, 서브 포인트) */
  --primary-dark: #0B131E;       /* 메인 차콜 블랙 (본문 타이틀 및 헤더 글자색) */
  --accent-teal: #2B5B84;        /* 세련된 슬레이트 블루 (주요 버튼, 활성 요소, 포인트 아이콘) */
  --accent-teal-light: #E8EEF5;  /* 아주 연한 블루 그레이 틴트 (배경 뱃지) */
  --accent-gold: #C5A880;        /* 프리미엄 샴페인 골드 (리뷰 별점, 강조 보조 요소) */
  --accent-gold-light: #FAF6F0;   /* 아주 연한 골드 틴트 배경 */
  --accent-red: #E25C5C;         /* 세련된 코랄 로즈 레드 (휴진, 휴무 표시) */
  
  --bg-pure: #ffffff;            /* 메인 백그라운드 */
  --bg-soft: #F5F8FA;            /* 매우 깨끗하고 부드러운 스카이 오프화이트 배경 */
  --bg-ice: #EBF0F3;             /* 부드러운 아이스 블루 그레이 배경 (섹션 구분용) */
  
  --border-light: #D9E2EC;       /* 은은한 블루 그레이 경계선 */
  --border-focus: #BACAD6;       /* 포커스 경계선 */
  
  --text-main: #334E68;          /* 높은 시인성의 슬레이트 차콜 본문색 */
  --text-muted: #627D98;         /* 은은한 슬레이트 블루 그레이 보조색 */
  
  /* 타이포그래피 */
  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-eng: 'Outfit', sans-serif;
  
  /* 레이아웃 규격 */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* 그림자 효과 (딥 네이비 블랙 기반의 깨끗하고 정교한 그림자) */
  --shadow-sm: 0 2px 8px rgba(11, 19, 30, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 19, 30, 0.06);
  --shadow-lg: 0 20px 40px rgba(11, 19, 30, 0.1);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  
  /* 애니메이션 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-pure);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

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

.text-accent {
  color: #82A00C;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* 2. 공통 공용 클래스 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 30%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  margin-bottom: 60px;
}

.section-header .sub-title {
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent-teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header .main-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.section-header .header-line {
  width: 50px;
  height: 4px;
  background-color: var(--accent-teal);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* 버튼 정의 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: var(--bg-pure);
  box-shadow: 0 4px 14px rgba(43, 91, 132, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 91, 132, 0.4);
}

.btn-secondary {
  background-color: var(--bg-pure);
  color: var(--primary-navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-soft);
  transform: translateY(-2px);
  border-color: var(--border-focus);
}


/* ==========================================
   3. 세부 섹션 스타일링
   ========================================== */

/* 3-1. 헤더 (Header & Nav) */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: var(--transition-normal);
}

#main-header.scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 24px;
  color: var(--primary-dark);
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-text {
  color: #82A00C; /* Olive Green */
  font-weight: 800;
}

.logo-text span {
  color: #3A3F3B; /* Slate Gray */
  font-weight: 700;
  margin-left: 2px;
}

/* 네비게이션 메뉴 */
.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-teal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 모바일 토글 버튼 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition-normal);
}


/* 3-2. 히어로 섹션 (Hero) */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, var(--accent-gold-light) 0%, var(--bg-pure) 70%);
  position: relative;
  overflow: hidden; /* 배경 블러 필터 유출 방지 */
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(11, 19, 30, 0.85) 0%, rgba(11, 19, 30, 0.7) 100%), url('hero_bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-eng);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #82A00C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* 히어로 비주얼 우측 카드 구성 */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  justify-content: center;
}

.visual-bar-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
}

.visual-bar-card:hover {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.bar-icon-box {
  width: 52px;
  height: 52px;
  background-color: rgba(130, 160, 12, 0.15); /* 로고 올리브 그린 투명 배경 */
  border: 1px solid rgba(130, 160, 12, 0.3);
  color: #82A00C; /* 올리브 그린 아이콘 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.visual-bar-card:hover .bar-icon-box {
  transform: rotate(15deg) scale(1.05);
  background-color: #82A00C;
  color: #ffffff;
}

.bar-icon-box svg {
  width: 24px;
  height: 24px;
}

.bar-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-content h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bar-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.45;
}


/* 3-3. 치과 소개 (Intro) */
.intro-section {
  padding: 140px 0 100px 0;
  background-color: var(--bg-soft);
}

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

.feature-item {
  background-color: var(--bg-pure);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-teal);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 14px;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}


/* 3-4. 교정 프로그램 (Program) */
.program-section {
  padding: 100px 0;
}

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

.program-card {
  display: flex;
  background-color: var(--bg-soft);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.program-img {
  width: 200px;
  background-color: var(--bg-ice);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.program-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-normal);
}

.program-card:hover .program-pic {
  transform: scale(1.06);
}

.program-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.program-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-teal);
  background-color: var(--accent-teal-light);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.program-info h3 {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.program-info p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.5;
}

.program-bullets {
  border-top: 1px dashed var(--border-light);
  padding-top: 16px;
}

.program-bullets li {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.program-bullets li::before {
  content: '•';
  color: var(--accent-teal);
  font-weight: 800;
  position: absolute;
  left: 0;
}


/* 3-5. 의료진 소개 (Doctor) */
.doctor-section {
  padding: 100px 0;
  background-color: var(--bg-soft);
}

.doctor-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  background-color: var(--bg-pure);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.doctor-image-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-img-container {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1.35;
  background: var(--bg-soft);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.doc-badge {
  position: absolute;
  bottom: 20px;
  background-color: var(--primary-navy);
  color: var(--bg-pure);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.doctor-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.doctor-details::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -15px;
  width: 368px;
  height: 368px;
  background-image: url('snu_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.08; /* 워터마크 불투명도 유지 */
  z-index: 0;
  pointer-events: none;
}

.doc-credentials {
  position: relative;
  z-index: 1;
}

.doc-title {
  font-size: 18px; /* 14px -> 18px로 확대 */
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.doc-name {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.doc-specialty {
  font-size: 24px; /* 20px -> 24px로 확대 */
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
}

.doc-philosophy {
  font-size: 16px;
  font-style: italic;
  color: var(--text-main);
  background-color: var(--bg-soft);
  padding: 20px 24px;
  border-left: 4px solid var(--accent-teal);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-bottom: 30px;
  line-height: 1.7;
}

.doc-credentials h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.doc-credentials ul li {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-main);
  position: relative;
  padding-left: 18px;
}

.doc-credentials ul li::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: 800;
  position: absolute;
  left: 0;
}


/* ==========================================
   3-5. 병원 둘러보기 (Clinic Tour)
   ========================================== */
.tour-section {
  padding: 100px 0;
  background-color: var(--bg-pure);
  position: relative;
  overflow: hidden;
}

.tour-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main);
  margin-top: 24px;
  font-weight: 400;
}

.tour-desc strong {
  font-weight: 700;
  color: var(--accent-teal);
}

.tour-slider-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.tour-main-viewer {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.tour-main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-ice);
}

.tour-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.tour-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 19, 30, 0.7));
  color: var(--bg-pure);
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 600;
  z-index: 1;
}

.tour-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.tour-nav-btn svg {
  width: 20px;
  height: 20px;
}

.tour-nav-btn:hover {
  background-color: var(--primary-navy);
  color: var(--bg-pure);
  border-color: var(--primary-navy);
}

.tour-prev {
  left: -24px;
}

.tour-next {
  right: -24px;
}

.tour-thumbnails-container {
  width: 100%;
  overflow: hidden;
}

.tour-thumbnails-scroll {
  display: flex;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 4px 12px;
}

/* Custom scrollbar for thumbnails */
.tour-thumbnails-scroll::-webkit-scrollbar {
  height: 6px;
}

.tour-thumbnails-scroll::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 3px;
}

.tour-thumbnails-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.tour-thumb-btn {
  flex: 0 0 120px;
  height: 75px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tour-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-thumb-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.tour-thumb-btn.active {
  border-color: var(--accent-teal);
  opacity: 1;
  transform: scale(1.04);
}


/* ==========================================
   3-6. 자주 묻는 질문 (FAQ) - 사용자 참고 스타일 완벽 매칭
   ========================================== */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-light);
}

/* FAQ 섹션 상단 마크 태그 및 타이틀 */
.faq-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--accent-teal-light); /* 연두/민트색 타원 태그 배경 */
  color: var(--accent-teal);                  /* 테일 텍스트 */
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.faq-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  background-color: transparent;
}

.faq-item {
  border-bottom: 1.5px solid var(--border-light); /* 질문 간의 얇은 구분선 */
}

/* 아코디언 트리거 버튼 */
.faq-question {
  width: 100%;
  padding: 24px 8px;
  display: flex;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  transition: var(--transition-fast);
  position: relative;
}

.q-prefix {
  font-family: var(--font-eng);
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-navy);
  margin-right: 8px;
  flex-shrink: 0;
}

.q-text {
  flex-grow: 1;
  padding-right: 30px;
  transition: var(--transition-fast);
}

/* 질문 호버 시 색상 변환 */
.faq-question:hover .q-text {
  color: var(--accent-teal);
}

/* 우측 ∨ 모양 꺾쇠 아이콘 */
.chevron-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: #64748b;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

/* 답변 패널 (높이 0에서 시작하여 확장되는 트랜지션) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-normal) ease-out, opacity var(--transition-normal) ease-out;
}

.faq-answer-content {
  padding: 0 8px 24px 28px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-main);
}

.faq-answer-content strong {
  color: var(--accent-teal);
}

/* 아코디언이 활성화된 상태 (JS로 aria-expanded="true" 부여 시 동작) */
.faq-question[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-teal);
}

.faq-question[aria-expanded="true"] .q-text {
  color: var(--accent-teal);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  opacity: 1;
}


/* ==========================================
   3-7. 오시는 길 & 진료시간 (Contact) - 사용자 요청 레이아웃
   ========================================== */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-pure);
}

/* 상단 영역: 진료 시간 / 예약 문의 (2열 카드 정렬) */
.contact-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* 개별 카드 외형 공통 */
.contact-card {
  background-color: var(--bg-soft);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.card-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-teal);
}

.card-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
}

/* 진료 시간 세부 내용 */
.hours-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.hours-row:last-of-type {
  border-bottom: none;
}

.hours-row .day {
  font-weight: 700;
  font-size: 17.5px;
  color: var(--primary-navy);
}

.hours-row .day.highlight {
  color: var(--accent-red);
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.time-block .time {
  font-family: var(--font-eng);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--text-main);
}

.time-block .lunch {
  font-size: 12.5px;
  color: var(--text-muted);
}

.time-block .lunch.highlight-no-lunch {
  color: var(--accent-red);
  font-weight: 700;
}

.hours-row .time.closed {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 17.5px;
}

.hours-notice {
  font-size: 13.5px;
  color: var(--accent-red);
  font-weight: 700;
  margin-top: 10px;
}

.booking-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
}

.booking-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.phone-number {
  font-family: var(--font-eng);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.phone-number:hover {
  color: #0f766e;
  transform: scale(1.02);
}

/* 상담 채널 3대 버튼 */
.channel-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-channel {
  flex: 1;
  min-width: 120px;
  height: 48px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* 네이버 플레이스 (네이버 지도 블루) */
.btn-place {
  background-color: #3571e8;
  color: var(--bg-pure);
}

.btn-place:hover {
  background-color: #265dcf;
}

.channel-icon {
  width: 16px;
  height: 16px;
}

/* 네이버 예약 (초록색) */
.btn-naver {
  background-color: #03c75a;
  color: var(--bg-pure);
}

.btn-naver:hover {
  background-color: #02b34f;
}

.naver-icon {
  font-family: var(--font-eng);
  font-weight: 800;
  font-size: 14px;
}

/* 공식 블로그 (연두/초록색) */
.btn-blog {
  background-color: #2db400;
  color: var(--bg-pure);
}

.btn-blog:hover {
  background-color: #279e00;
}

.blog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  color: #2db400;
  border-radius: 50%;
  font-family: var(--font-eng);
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}



/* 하단 영역: 오시는 길 (지도 & 아래 상세 정보 2칸) */
.location-card {
  background-color: var(--bg-soft);
  width: 100%;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.map-container iframe {
  display: block;
}

/* 지도 아래 2단 레이아웃 */
.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.info-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.info-group h3::before {
  content: '';
  width: 4px;
  height: 14px;
  background-color: var(--accent-teal);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.address-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.parking-text {
  font-size: 14px;
  color: var(--accent-teal);
  font-weight: 700;
  background-color: var(--accent-teal-light);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
}

.transit-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bus-badge-icon {
  width: 28px;
  height: 28px;
  background-color: var(--border-light);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bus-badge-icon svg {
  width: 14px;
  height: 14px;
}

.transit-station {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* 버스 리스트 규격 */
.bus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bus-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 한국 대중교통 노선 색상 뱃지 */
.bus-type {
  width: 50px;
  height: 24px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bg-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.type-blue {
  background-color: #5F76E8; /* 간선 버스 (파란색) */
}

.type-green {
  background-color: #4EAB43; /* 지선 버스 (초록색) */
}

.type-seat {
  background-color: #2C93E8; /* 좌석 버스 (하늘색) */
}

.type-normal {
  background-color: #009E97; /* 일반 버스 (청록색) */
}

.type-express {
  background-color: #E85F4F; /* 급행 버스 (주황/빨간색) */
}

.bus-numbers {
  font-size: 14px;
  font-family: var(--font-eng);
  color: var(--text-main);
  font-weight: 500;
}


/* ==========================================
   4. 푸터 스타일링
   ========================================== */
.main-footer {
  background-color: #F3F6F2;
  color: #4A4F3F;
  padding: 60px 0 40px;
  border-top: 1px solid #DFE6DE;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-brand h3 {
  color: #82A00C;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13.5px;
}

.footer-details {
  border-top: 1px solid #DFE6DE;
  padding-top: 20px;
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-details p {
  margin-bottom: 4px;
}

.footer-details .copyright {
  margin-top: 16px;
  color: #7E8780;
}


/* ==========================================
   5. 반응형 미디어 쿼리 (반응형 최적화)
   ========================================== */

/* 태블릿 규격 (Max: 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    gap: 20px;
  }
  .hero-title {
    font-size: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
  .doctor-wrapper {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 30px;
  }
  .doctor-details::after {
    width: 240px;
    height: 240px;
    right: 0px;
    bottom: -10px;
    opacity: 0.06;
  }
  .doctor-image-area {
    width: 100%;
  }
}

/* 모바일 모드 규격 (Max: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header .main-title {
    font-size: 28px;
  }

  /* 헤더 모바일 메뉴 토글 */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: -10px 10px 30px rgba(11, 19, 30, 0.05);
    flex-direction: column;
    padding: 40px 30px;
    gap: 24px;
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 100%;
    margin: 40px auto 0;
    gap: 12px;
  }

  .visual-bar-card {
    padding: 16px 20px;
    gap: 16px;
  }

  .bar-icon-box {
    width: 44px;
    height: 44px;
  }

  .bar-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .bar-content h3 {
    font-size: 16px;
  }

  .bar-content p {
    font-size: 12px;
  }

  /* 치과 소개 모바일 */
  .intro-section {
    padding: 100px 0 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-item {
    padding: 30px 24px;
  }

  /* 교정 프로그램 모바일 */
  .program-section {
    padding: 60px 0;
  }

  .program-card {
    flex-direction: column;
  }

  .program-img {
    width: 100%;
    height: 240px;
  }

  .program-info {
    padding: 24px;
  }

  /* 의료진 소개 모바일 */
  .doctor-section {
    padding: 60px 0;
  }

  .doc-name {
    font-size: 28px;
  }
  .doctor-details::after {
    width: 176px;
    height: 176px;
    right: -10px;
    bottom: -10px;
    opacity: 0.05;
  }
  .doc-title {
    font-size: 16px; /* 모바일 대표원장 타이틀 최적화 */
  }
  .doc-specialty {
    font-size: 20px; /* 모바일 전문의 폰트 확대 */
    display: block;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .doc-philosophy {
    font-size: 14.5px;
    padding: 16px 18px;
  }

  /* 병원 둘러보기 모바일 */
  .tour-section {
    padding: 60px 0;
  }
  .tour-desc {
    font-size: 14px;
    margin-top: 16px;
    padding: 0 10px;
  }
  .tour-nav-btn {
    width: 38px;
    height: 38px;
  }
  .tour-prev {
    left: 8px;
  }
  .tour-next {
    right: 8px;
  }
  .tour-thumb-btn {
    flex: 0 0 80px;
    height: 50px;
  }
  .tour-caption-overlay {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* FAQ 모바일 */
  .faq-section {
    padding: 60px 0;
  }

  .faq-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .faq-question {
    padding: 20px 4px;
    font-size: 15px;
  }

  .faq-answer-content {
    padding-left: 26px;
    font-size: 13.5px;
  }

  /* 진료시간 / 오시는 길 모바일 */
  .contact-section {
    padding: 60px 0;
  }

  .contact-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .phone-number {
    font-size: 32px;
  }

  .channel-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-channel {
    width: 100%;
  }

  .map-container {
    height: 280px;
  }

  .location-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
