/* ==========================================================================
   Yete Clinic Main CSS - Premium Medical Aesthetic Design System
   ========================================================================== */

@font-face {
  font-family: 'HappinessSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2205@1.0/Happiness-Sans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HappinessSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2205@1.0/Happiness-Sans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 1. Design System & Variables */
:root {
  /* Colors */
  --color-primary-brown: #847265;     /* Doctor section left panel, accents */
  --color-dark-brown: #4f4137;        /* Philosophy & Footer backgrounds */
  --color-light-beige: #faf8f5;       /* Surgery section background */
  --color-accent-gold: #ebdcc9;       /* Buttons, highlights */
  --color-accent-gold-dark: #d4c2b0;  /* Button hover state */
  --color-naver-green: #6cbe72;       /* Naver button */
  --color-naver-green-dark: #5cb35c;  /* Naver button hover */
  --color-text-primary: #222222;      /* Primary text */
  --color-text-secondary: #666666;    /* Muted text */
  --color-text-white: #ffffff;        /* White text */
  --color-border-light: rgba(255, 255, 255, 0.2);
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
  --font-happiness: 'Gowun Batang', serif;
  
  /* Layout */
  --container-max-width: 1440px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
}

/* 2. Global Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #ffffff;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li {
  list-style: none;
}

/* 3. Header / Navigation Bar (GNB) */
#gnb-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 25px 0;
}

/* Scroll Active State for Header */
#gnb-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  padding: 15px 0;
  border-bottom: 1px solid rgba(132, 114, 101, 0.08);
}

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

.left-menu, .right-menu {
  display: flex;
  gap: 80px;
  width: 40%;
}

.right-menu {
  justify-content: flex-end;
}

.menu-item {
  font-family: 'Gowun Batang', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-white);
  letter-spacing: 0.08em;
  position: relative;
  padding: 5px 0;
}

/* Header scrolled link color adjustment */
#gnb-header.scrolled .menu-item {
  color: #333333;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: var(--transition-fast);
}

.menu-item:hover::after {
  width: 100%;
}

/* Circular Logo */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
}

.logo-circle {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--color-text-white);
}

#gnb-header.scrolled .logo-circle {
  border-color: var(--color-primary-brown);
  color: var(--color-primary-brown);
}

.logo-circle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

#gnb-header.scrolled .logo-circle:hover {
  background-color: rgba(132, 114, 101, 0.05);
}

.logo-top {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.logo-bottom {
  font-size: 8px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1px;
}

/* 4. Section 1: Hero Slider */
.hero-section {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 10%;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  z-index: 1;
}

.slider-background.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  color: var(--color-text-white);
  max-width: 600px;
}

.hero-subtitle-top {
  font-family: 'Gowun Batang', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Gowun Batang', serif;
  font-size: 88px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subtitle-bottom {
  font-family: 'Gowun Batang', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 80px;
  left: 10%;
  z-index: 4;
  display: flex;
  align-items: center;
}

.slider-indicator {
  display: flex;
  align-items: center;
  gap: 20px;
}

.indicator-bar {
  width: 120px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  position: relative;
}

.indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* 2 background options, show progress */
  background-color: var(--color-text-white);
  transition: var(--transition-smooth);
}

.indicator-text {
  color: var(--color-text-white);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Scroll Down Indicator */
.scroll-down-wrapper {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-white);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* 5. Section 2: Doctor Introduction */
.doctor-section {
  padding: 0;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 75%, #f4f2ef 100%), url('원본/2%EB%8B%A8_%EC%9D%98%EC%82%AC%20%EB%B0%B0%EA%B2%BD.png');
  background-size: cover;
  background-position: center;
  width: 100%;
}

.doctor-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  gap: 0;
}

/* Left Image Panel - Fills exactly horizontal half with brown */
.doctor-image-panel {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  background-color: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 100px 120px 100px 40px;
}

.doctor-profile-card {
  width: 100%;
  max-width: 440px;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.doctor-card-tag {
  font-family: var(--font-happiness);
  color: var(--color-primary-brown);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 25px;
}

.doctor-photo {
  width: 100%;
  border: 1px solid rgba(132, 114, 101, 0.2);
  border-radius: 2px;
  background-color: #f7f7f7;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.doctor-profile-card:hover .doctor-photo {
  transform: scale(1.015);
}

.doctor-card-watermark {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: rgba(132, 114, 101, 0.15);
  pointer-events: none;
  text-align: left;
  white-space: nowrap;
}

/* Right Info Panel - Fills exactly other half with beige shadow background */
.doctor-info-panel {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  background-color: transparent;
  padding: 100px 40px 100px 120px;
  display: flex;
  align-items: center;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.info-content {
  width: 100%;
  max-width: 540px;
}

.info-tag {
  font-family: 'Gowun Batang', serif;
  color: var(--color-primary-brown);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.info-title {
  font-family: 'Gowun Batang', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 35px;
}

.info-body {
  margin-bottom: 40px;
}

.highlight-text {
  font-family: var(--font-happiness);
  font-size: 19px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.desc-text {
  font-family: var(--font-happiness);
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 400;
}

.desc-text strong {
  font-weight: 500;
  color: var(--color-primary-brown);
}

.info-divider {
  border: none;
  height: 1px;
  background-color: rgba(132, 114, 101, 0.2);
  width: 60px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.info-resume {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-row {
  display: flex;
  font-size: 14.5px;
  line-height: 1.7;
}

.resume-row.align-top {
  align-items: flex-start;
}

.resume-label {
  font-family: var(--font-happiness);
  color: var(--color-primary-brown);
  font-weight: 700;
  width: 70px;
  flex-shrink: 0;
}

.resume-val {
  font-family: var(--font-happiness);
  color: #444444;
  font-weight: 400;
}

/* 6. Section 3: Why Yete */
.why-section {
  padding: 120px 0 160px 0; /* 늘어난 하단 패딩 */
  background: linear-gradient(to bottom, #f4f2ef 0%, #faf8f5 100%); /* 2단 우측 베이지와 자연스럽게 연결 */
  position: relative;
  overflow: hidden;
}

.why-watermark {
  position: absolute;
  top: 12%;
  right: 2%;
  font-family: 'Zen Old Mincho', serif;
  font-style: italic;
  font-size: 140px;
  font-weight: 400;
  color: rgba(132, 114, 101, 0.045);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.why-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 2;
}

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

.section-subtitle {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  color: var(--color-primary-brown);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--color-text-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px; /* 세로 마진 확보 및 간격 소폭 확대 */
}

.why-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(132, 114, 101, 0.08);
}

.card-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.why-card:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: 30px 25px;
  position: relative;
}

.card-index {
  position: absolute;
  top: -24px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(132, 114, 101, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-brown);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.why-card:hover .card-index {
  background-color: var(--color-primary-brown);
  color: #ffffff;
  border-color: var(--color-primary-brown);
}

.card-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.card-desc {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 7. Section 4: Doctor's Philosophy */
.philosophy-section {
  padding: 120px 0;
  background-color: #6e5e52; /* 더 연하고 명도가 높아진 코코아 브라운 */
  background-image: linear-gradient(rgba(110, 94, 82, 0.82), rgba(110, 94, 82, 0.82)), url('원본/2%EB%8B%A8_%EC%9D%98%EC%82%AC%20%EB%B0%B0%EA%B2%BD.png');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: var(--color-text-white);
  position: relative;
}

.philosophy-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
}

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

.phil-tag {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 10px;
}

.phil-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.phil-subtitle {
  color: var(--color-accent-gold);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

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

.phil-card {
  height: 440px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  transition: var(--transition-smooth);
}

.card-inner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.75) 100%);
  transition: var(--transition-smooth);
  z-index: 1;
}

.phil-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phil-card:hover .card-inner-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.85) 100%);
}

.phil-point-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  align-self: flex-end;
}

.phil-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phil-big-stat {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 15px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-white);
}

.stat-unit {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-top: 4px;
}

.phil-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  word-break: keep-all;
}

.philosophy-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.phil-footer-brand {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

/* 8. Section 5: Plastic Surgery Slider */
.surgery-section {
  padding: 120px 0;
  background-color: var(--color-light-beige);
  overflow: hidden;
}

.surgery-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.surgery-left {
  flex-shrink: 0;
  width: 25%;
  max-width: 320px;
}

.surgery-icon {
  color: var(--color-primary-brown);
  margin-bottom: 25px;
}

.surgery-tag {
  font-family: 'Gowun Batang', serif;
  color: var(--color-primary-brown);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.surgery-title {
  font-family: 'Gowun Batang', serif;
  font-size: 28px; /* 타이틀 크기 축소 */
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 25px;
}

.surgery-desc {
  font-family: 'Gowun Batang', serif;
  font-size: 14.5px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-weight: 400;
  word-break: keep-all;
}

.surgery-right {
  flex-grow: 1;
  width: 70%;
  position: relative;
}

.surgery-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 20px;
}

.surgery-carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.surgery-slide {
  flex: 0 0 310px;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.slide-image-card {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.surgery-slide:hover .slide-image-card {
  transform: scale(1.03);
}

.slide-info {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.slide-text {
  flex-grow: 1;
}

.slide-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.slide-desc {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

.slide-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e0dbdb;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666666;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.slide-arrow-btn:hover {
  background-color: var(--color-primary-brown);
  border-color: var(--color-primary-brown);
  color: #ffffff;
  transform: scale(1.05);
}

/* Slider navigation buttons */
.carousel-navigation {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: flex-end;
  padding-right: 25px; /* 카루셀 카드들과 정렬 맞춤 */
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #dcd5d5;
  background-color: #ffffff;
  color: #444444;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.carousel-btn:hover {
  border-color: var(--color-primary-brown);
  color: var(--color-primary-brown);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(132, 114, 101, 0.12);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* 9. Section 6: Footer with map */
#footer {
  background-color: var(--color-dark-brown);
  color: var(--color-text-white);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
}

/* Left Map Panel */
.footer-map-panel {
  flex: 1;
  max-width: 50%;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Clean Custom Map Marker Popup Style */
.leaflet-popup-content-wrapper {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(132, 114, 101, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  color: #333333 !important;
  font-family: var(--font-sans) !important;
}

.leaflet-popup-tip {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Right Info Panel */
.footer-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-sub-logo {
  color: var(--color-accent-gold);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.footer-main-logo {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.detail-row {
  display: flex;
  font-size: 14.5px;
  line-height: 1.8;
}

.detail-row.align-top {
  align-items: flex-start;
}

.detail-label {
  color: var(--color-accent-gold);
  font-weight: 500;
  width: 70px;
  flex-shrink: 0;
}

.detail-value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.footer-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  flex: 1;
  height: 52px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.kakao-btn {
  background-color: #fee500; /* 카카오 공식 옐로우 */
  color: #191919; /* 카카오 공식 블랙/차콜 */
}

.kakao-btn:hover {
  background-color: #fada0a;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(254, 229, 0, 0.25);
}

.naver-map-btn {
  background-color: var(--color-naver-green);
  color: var(--color-text-white);
}

.naver-map-btn:hover {
  background-color: var(--color-naver-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(108, 190, 114, 0.2);
}

.footer-copyright {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 30px 80px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* 10. Responsive Media Queries */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 40px;
  }
  
  .left-menu, .right-menu {
    gap: 50px;
  }
  
  .doctor-container, .why-container, .philosophy-container, .surgery-container, .footer-container {
    padding: 0 40px;
  }
  
  .hero-title {
    font-size: 72px;
  }
  
  .doctor-container {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .doctor-image-panel {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 60px 40px;
  }
  
  .doctor-profile-card {
    max-width: 380px;
  }
  
  .doctor-info-panel {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 60px 40px;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .left-menu, .right-menu {
    display: none; /* Mobile menu triggers or simplified bar usually, but let's stack or hide */
  }
  
  .header-container {
    justify-content: center;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .phil-card {
    height: 380px;
  }
  
  .surgery-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  
  .surgery-left {
    width: 100%;
    max-width: 100%;
  }
  
  .surgery-right {
    width: 100%;
  }
  
  .footer-container {
    flex-direction: column-reverse;
    gap: 50px;
  }
  
  .footer-map-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
  
  .hero-subtitle-bottom {
    font-size: 18px;
  }
  
  .doctor-profile-card {
    padding: 20px;
  }
  
  .doctor-card-watermark {
    font-size: 16px;
    left: 20px;
    right: 20px;
  }
  
  .info-title {
    font-size: 30px;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .phil-title {
    font-size: 38px;
  }
  
  .footer-container, .doctor-container, .why-container, .philosophy-container, .surgery-container {
    padding: 0 20px;
  }
}

/* ==========================================================================
   Subpages Styles (Eye, Nose, Breast, Lifting, Body, Petite)
   ========================================================================== */

/* Subpage Hero */
.sub-hero {
  height: 60vh;
  min-height: 480px;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text-white);
  background-size: cover;
  background-position: center;
}

.sub-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.sub-hero-subtitle {
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sub-hero-title {
  font-family: 'Gowun Batang', serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.sub-hero-desc {
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Subpage Philosophy (2단) */
.sub-philosophy-section {
  padding: 120px 0;
  background-color: #ffffff;
}

.sub-phil-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px auto;
}

.sub-phil-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 15px;
}

.sub-phil-subtitle {
  font-family: 'Gowun Batang', serif;
  font-size: 15px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.sub-phil-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
}

.sub-phil-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.sub-phil-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(132, 114, 101, 0.08);
  border-color: rgba(132, 114, 101, 0.1);
}

.sub-card-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.sub-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-phil-card:hover .sub-card-img {
  transform: scale(1.04);
}

.sub-card-body {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sub-card-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.sub-card-desc {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sub-treatment-list {
  margin-top: auto;
  border-top: 1px dashed rgba(132, 114, 101, 0.2);
  padding-top: 10px;
}

.sub-treatment-item {
  border-bottom: 1px solid rgba(132, 114, 101, 0.1);
  padding: 0;
}

.sub-treatment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sub-treatment-header:hover .sub-treatment-title {
  color: var(--color-primary-brown);
}

.sub-treatment-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 14px;
  color: #333333;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-treatment-icon {
  font-size: 14px;
  color: var(--color-primary-brown);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-weight: 300;
  display: inline-block;
  line-height: 1;
}

.sub-treatment-item.active .sub-treatment-icon {
  transform: rotate(45deg); /* plus to cross icon */
}

.sub-treatment-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-treatment-desc {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-bottom: 12px;
  word-break: keep-all;
}

/* Narrow 3단 Container */
.sub-why-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .sub-why-container {
    padding: 0 20px;
  }
}

/* Subpage Why Yete (3단) */
.sub-why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.sub-why-row:last-child {
  margin-bottom: 0;
}

.sub-why-image-wrapper {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

.sub-why-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-why-row:hover .sub-why-image {
  transform: scale(1.03);
}

.sub-why-text {
  padding: 0 20px;
}

.sub-why-num {
  font-family: 'Zen Old Mincho', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--color-primary-brown);
  margin-bottom: 12px;
}

.sub-why-title {
  font-family: 'Gowun Batang', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 15px;
}

.sub-why-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--color-primary-brown);
}

.sub-why-desc {
  font-family: 'Gowun Batang', serif;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  font-weight: 400;
  word-break: keep-all;
}

/* Alternating Alignment for even rows */
.sub-why-row:nth-of-type(even) .sub-why-text {
  text-align: right;
}

.sub-why-row:nth-of-type(even) .sub-why-title::after {
  left: auto;
  right: 0;
}

/* Subpage Process Section (4단) */
.sub-process-section {
  padding: 120px 0;
  background-color: var(--color-light-beige);
}

.sub-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px;
}

.sub-process-card {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
}

.sub-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(132, 114, 101, 0.06);
}

.process-num {
  font-family: 'Zen Old Mincho', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--color-accent-gold-dark);
  margin-bottom: 15px;
  display: block;
}

.process-title {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.process-desc {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}

/* Subpage Responsiveness */
@media (max-width: 1200px) {
  .sub-phil-grid, .sub-process-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .sub-hero-title {
    font-size: 42px;
  }
  
  .sub-why-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 70px;
  }
  
  .sub-why-row:nth-child(even) .sub-why-image-wrapper {
    order: 0; /* Reset ordering for stacking */
  }
  
  .sub-why-image-wrapper {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .sub-phil-grid, .sub-process-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .sub-hero-title {
    font-size: 36px;
  }
  
  .sub-phil-title {
    font-size: 30px;
  }
}

/* Mobile Hamburger Button & Drawer Styling */
.hamburger-btn {
  display: none;
}

.mobile-menu-drawer {
  display: none;
}

@media (max-width: 992px) {
  .left-menu, .right-menu {
    display: none !important;
  }
  
  .header-container {
    justify-content: center;
    position: relative;
    width: 100%;
  }

  .logo-wrapper {
    width: auto;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 0;
  }

  .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    transition: all 0.3s ease;
  }

  #gnb-header.scrolled .hamburger-line {
    background-color: #333333;
  }

  .hamburger-btn.active .hamburger-line {
    background-color: #333333 !important;
  }

  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-direction: column;
    padding: 100px 40px 40px 40px;
    box-sizing: border-box;
  }

  .mobile-menu-drawer.active {
    right: 0;
  }

  .drawer-close-wrapper {
    display: none !important;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .drawer-item {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 19px;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
  }

  .drawer-item:hover {
    color: var(--color-primary-brown);
  }

  /* Subpage Why Yete stacking and left alignment */
  .sub-why-row {
    display: flex;
    flex-direction: column !important;
    gap: 30px;
    margin-bottom: 70px;
  }

  .sub-why-image-wrapper {
    order: 1 !important;
    height: 300px;
  }

  .sub-why-text {
    order: 2 !important;
    padding: 0;
    text-align: left !important;
  }

  .sub-why-row:nth-of-type(even) .sub-why-text {
    text-align: left !important;
  }

  .sub-why-row:nth-of-type(even) .sub-why-title::after {
    left: 0 !important;
    right: auto !important;
  }
}

/* Mobile Hero Controls & Scroll Down Adjustments */
@media (max-width: 768px) {
  .slider-controls {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 120px !important;
  }

  .scroll-down-wrapper {
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Floating Quick Menu Styling (White Container / Brown Icons) */
.floating-quick-menu {
  position: fixed;
  right: 25px;
  top: 180px;
  width: 76px;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(132, 114, 101, 0.15) !important;
  border-radius: 38px;
  box-shadow: 0 10px 35px rgba(132, 114, 101, 0.12) !important;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 18px 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, visibility 0.4s;
}

.floating-quick-menu.collapsed {
  transform: translateX(120px);
  opacity: 0;
  visibility: hidden;
}

.quick-menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.quick-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff !important;
  color: var(--color-primary-brown) !important;
  border: 1px solid rgba(132, 114, 101, 0.15);
  box-shadow: 0 4px 10px rgba(132, 114, 101, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 6px;
}

.quick-item:hover .quick-icon-wrapper {
  background-color: var(--color-primary-brown) !important;
  color: #ffffff !important;
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(132, 114, 101, 0.25);
  border-color: transparent;
}

.quick-label {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--color-primary-brown) !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color 0.3s ease;
}

.quick-item:hover .quick-label {
  color: var(--color-primary-brown-dark, #6e5e52) !important;
}

/* Close button - Elegant thin divider and text-close */
.quick-close-btn {
  background: none !important;
  border: none !important;
  border-top: 1px solid rgba(132, 114, 101, 0.12) !important;
  color: #a89a90 !important;
  cursor: pointer;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 12px 0 0 0;
  box-shadow: none !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.quick-close-btn:hover {
  color: var(--color-primary-brown) !important;
  transform: scale(1.1);
}

/* Toggle tab when collapsed */
.quick-menu-toggle-tab {
  position: fixed;
  right: 0;
  top: 250px;
  width: 28px;
  height: 90px;
  background-color: var(--color-primary-brown);
  color: #ffffff;
  border: none;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  z-index: 998;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  box-shadow: -4px 0 15px rgba(0,0,0,0.08);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: translateX(40px); /* Hidden by default */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.quick-menu-toggle-tab.visible {
  transform: translateX(0); /* Slide in when menu collapsed */
}

.quick-menu-toggle-tab:hover {
  background-color: var(--color-primary-brown-dark, #6e5e52);
  padding-right: 4px;
}

.quick-event {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 768px) {
  .floating-quick-menu {
    right: 15px;
    top: auto;
    bottom: 95px; /* position above bottom tab/footer on mobile */
    width: 68px;
    padding: 24px 0 15px 0;
  }
  
  .quick-icon-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .quick-menu-items {
    gap: 15px;
  }
  
  .quick-close-btn {
    margin-top: 12px;
    padding: 8px 0 0 0;
  }
  
  .quick-menu-toggle-tab {
    top: auto;
    bottom: 150px;
  }
}

/* Event Button Highlight & Glow Animation */
.quick-event .quick-icon-wrapper {
  background-color: #ff6b6b !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  animation: pulse-glow 2s infinite;
}

.quick-event:hover .quick-icon-wrapper {
  background-color: #ff5252 !important;
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.6);
  transform: scale(1.08);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 22px rgba(255, 107, 107, 0.75);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.45);
    transform: scale(1);
  }
}

/* Doctor Biography Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-family: 'Noto Sans KR', sans-serif;
}

.timeline-item strong {
  font-family: 'Gowun Batang', serif;
  color: var(--color-primary-brown);
  font-weight: 700;
  min-width: 48px;
  margin-right: 12px;
  flex-shrink: 0;
}
