/****************************************
 * 1) 기본 리셋, 폰트, 박스 사이즈
 ****************************************/
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 가로 스크롤 완전 제거 */
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Roboto', sans-serif;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
}

/****************************************
 * 긴 텍스트 자동 줄바꿈
 ****************************************/
.banner-text, .info-text, .intro-doctor-text, 
.card1 p, .treatment-card p, .location-text, 
.schedule-section, .content1-title, .price-section,
.coverage-box, .popup-content, .coverage-grid,
.price-category, .footer-section, .footer-social .social-links {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/****************************************
 * 2) 헤더(navbar) 스타일
 ****************************************/
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 스크롤 시 적용될 클래스 */
.header.scrolled {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 100px;
  padding: 0 20px;
  position: relative;
}
.header.scrolled .navbar {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}
/* ★ PC버전 로고 기본 크기를 조금 줄임 (수정됨) */
.logo img {
  width: 100%;
  max-width: 280px; /* PC에서 약간 축소 */
  height: auto;
  object-fit: contain;
}

/* 데스크톱 nav-links */
.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
}
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0; padding: 0;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: #007bff;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #333;
  margin: 3px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 모바일 메뉴 팝업 */
.mobile-menu-popup {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  background: rgba(255,255,255,0.95);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.mobile-menu-popup.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mobile-menu-popup ul {
  list-style: none;
  margin: 0; 
  padding: 0;
}
.mobile-menu-popup li {
  margin-bottom: 15px;
  text-align: center;
}
.mobile-menu-popup a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  display: block;
  padding: 8px;
  transition: color 0.3s ease;
}
.mobile-menu-popup a:hover {
  color: #007bff;
}

/****************************************
 * 3) 배너 섹션
 ****************************************/
.banner {
  margin: 0; 
  padding-top: 1400px; /* 헤더 높이만큼 여유 */
  min-height: 60vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  display: flex; /* ★ 수직/수평 중앙정렬을 위해 flex 사용 (수정됨) */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 20px;
}
.banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.banner-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  margin: 0 auto; /* ★ 중앙 배치를 확실히 (수정됨) */
}
.banner-text h1 {
  font-size: 50px;
  margin: 0;
  font-weight: bold;
}
.banner-text p {
  font-size: 20px;
  margin-top: 10px;
  line-height: 1.6;
}
#banner-text-p {
  font-size: 16px;
}
.banner-buttons {
  margin-top: 20px;
}
.banner-button {
  display: inline-block;
  margin: 10px;
  padding: 15px 30px;
  background-color: #ff6347;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.banner-button:hover {
  background-color: #ff4500;
  transform: scale(1.05);
}

/****************************************
 * 4) 정보 섹션 (Bansuk's Philosophy)
 ****************************************/
.info-section .info-content {
  padding: 50px;
  margin: auto;
  max-width: 1200px;
}
.intro-section {
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.intro-section h2 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}
.info-subtitle {
  font-size: 1.2em;
  color: #596575;
  line-height: 1.6;
  margin-bottom: 30px;
}
.info-image {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 0;
}
.info-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-bottom-right-radius: 150px;
}
.info-text {
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 15px;
}
.info-text h1 {
  text-align: center;
  font-size: 32px;
  color: #2c3e50;
  margin: 30px 0 15px;
  font-weight: 600;
}
.info-text h4 {
  display: block;
  font-size: 22px;
  color: #2c3e50;
  margin: 30px 0 15px;
  font-weight: 600;
}
.info-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #596575;
  margin-bottom: 25px;
}
.info-text hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 30px 0;
  width: 100%;
}

/****************************************
 * 5) Why Choose Bansuk
 ****************************************/
.content1-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  overflow: visible;
  position: relative;
}
.content1-image {
  width: 100%;
  min-height: 600px;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  margin-bottom: 100px;
}
.content1-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}
.content1-title {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  margin-bottom: 40px;
  padding-top: 50px;
}
.content1-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.content1-cards {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 15px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.card1 {
  background: transparent;
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  color: white;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card1 h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}
.card1 p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/****************************************
 * 6) About Bansuk Dental Clinic
 ****************************************/
.content2-image {
  width: 100%;
  min-height: 600px;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}
.content2-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

/****************************************
 * 7) Location 섹션
 ****************************************/
.location-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.location-container {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}
.map-container {
  flex: 1;
  max-width: 500px;
}
.map-container iframe {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.location-text {
  flex: 1;
}
.location-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.location-text h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}
.location-desc {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.6;
}

/****************************************
 * 8) SERVICE 섹션
 ****************************************/
.about-treatment-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.about-treatment-section>h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 32px;
  margin-bottom: 40px;
}
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr); /* ★ PC에서는 3개씩 (수정됨) */
  gap: 30px;
  margin-bottom: 30px;
}
.treatment-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #ffffff;
}
.treatment-card h2 {
  color: #34495e;
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: capitalize;
}
.treatment-card p {
  color: #596575;
  line-height: 1.6;
  font-size: 16px;
}

/****************************************
 * 9) 원장 소개
 ****************************************/
.intro-doctor-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.intro-doctor-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}
.intro-doctor-text {
  padding-right: 20px;
}
.intro-doctor-text h2 {
  color: #2c3e50;
  font-size: 28px;
  margin: 30px 0 20px;
  line-height: 1.3;
}
.intro-doctor-text h3 {
  color: #34495e;
  font-size: 20px;
  margin: 25px 0 15px;
  line-height: 1.4;
}
.intro-doctor-text p {
  color: #596575;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 16px;
}
.intro-doctor-text hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 30px 0;
}
.intro-doctor-image {
  position: sticky;
  top: 120px;
  height: fit-content;
  align-self: flex-start;
}
.intro-doctor-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}
.intro-doctor-image img:hover {
  transform: scale(1.02);
}
.academic-section {
  width: 100%;
  margin: 2rem 0;
}
.read-more-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  transition: all 0.3s ease;
}
.read-more-btn:hover {
  background-color: #0056b3;
}
.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.arrow-icon.rotate {
  transform: rotate(180deg);
}
.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background-color: #f8f9fa;
  border-radius: 10px;
}
.expandable-content.expanded {
  max-height: 2000px;
}
.academic-content {
  padding: 20px;
}

/****************************************
 * 10) 장비(Equipment) 섹션
 ****************************************/
.equipment-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}
.equipment-section h1 {
  color: #2c3e50;
  font-size: 32px;
  margin-bottom: 30px;
  line-height: 1.3;
  text-align: center;
}
.content-wrapper {
  display: flex;
  gap: 40px;
}
.equipment-content {
  flex: 1;
  padding-right: 20px;
}
.equipment-content h2 {
  color: #34495e;
  font-size: 22px;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
.equipment-content p {
  color: #596575;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}
.equipment-image {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.equipment-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.equipment-image img:hover {
  transform: scale(1.02);
}

/****************************************
 * 11) 가격(Price) 섹션
 ****************************************/
.price-section {
  background-color: #ffffff;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-radius: 20px;
}
.price-title {
  font-size: 36px;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* coverage-grid: PC에서는 2열, 모바일에서는 1열 */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
  margin: 20px 0;
}

.coverage-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.coverage-box h2 {
  font-size: 20px;
  margin-bottom: 15px;
}
.coverage-box ul {
  list-style: none;
  margin: 0; padding: 0;
}
.coverage-box li {
  margin-bottom: 10px;
}
.covered {
  border-left: 4px solid #4caf50;
}
.not-covered {
  border-left: 4px solid #ff5252;
}
.info-box {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}
.payment-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}
.promotion-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  border-left: 4px solid #3498db;
}
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}
.promotion-item {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.promotion-item:hover {
  transform: translateY(-5px);
}

/* 팝업 (가격표) */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.popup-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
@media (max-width: 480px) {
  .popup-content {
    width: 95%;
    margin: 20px auto;
  }
}
.popup-title {
  text-align: center;
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}
.close-popup {
  position: absolute;
  top: 20px; right: 20px;
  width: 30px; height: 30px;
  font-size: 24px;
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: all 0.3s ease;
}
.close-popup:hover {
  background: #e9ecef;
  transform: rotate(90deg);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
  gap: 25px;
  padding: 20px 0;
}
.price-category {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  animation: fadeIn 0.5s ease;
}
.price-category:hover {
  transform: translateY(-5px);
}
.price-category h3 {
  color: #2c3e50;
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  white-space: normal;
}
.detail-table tr {
  border-bottom: 1px solid #e9ecef;
}
.detail-table td {
  padding: 12px 8px;
  color: #596575;
}
.detail-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: #2c3e50;
}
.note, .popup-note {
  font-size: 0.9em;
  color: #666;
  margin-top: 15px;
  font-style: italic;
  text-align: center;
}
.button-container {
  text-align: center;
  margin: 30px 0;
}
.popup-button {
  background-color: #2c3e50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.popup-button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/****************************************
 * 12) 스케줄(프로세스) 섹션
 ****************************************/
.schedule-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.timeline-header {
  text-align: center;
  margin-bottom: 40px;
}
.timeline-header h2 {
  color: #2c3e50;
  font-size: 32px;
  margin-bottom: 20px;
}
.timeline-intro {
  color: #596575;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px;
  margin: 40px 0;
}
.timeline-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}
.card-header h3 {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}
.treatment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.treatment-list li {
  margin-bottom: 20px;
}
.treatment-list strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 5px;
}

/****************************************
 * 13) Contact Info (아이콘+텍스트)
 ****************************************/
.contact-info {
  background-color: #e3f2fd;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 1000px;
}
.contact-header {
  margin-bottom: 20px;
}
.contact-header h4 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}
.contact-header p {
  font-size: 1rem;
  color: #666;
}
.contact-methods {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, color 0.3s;
}
.contact-link i {
  font-size: 36px;
  margin-bottom: 10px;
}
.contact-link span {
  font-size: 16px;
  font-weight: 500;
}
.contact-link:hover {
  color: #007bff;
  transform: translateY(-3px);
}

/****************************************
 * 14) 리뷰 섹션
 ****************************************/
.testimonials-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
  position: relative;
}
.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #555;
  margin-bottom: 30px;
}
.testimonials-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}
.testimonials-container {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  width: 940px; /* (300px*3 + gap*2=940) */
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  justify-content: center;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 300px;
  height: 450px;
  padding: 20px;
  text-align: left;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.testimonial-rating {
  font-size: 16px;
  color: #ff9800;
  margin-bottom: 15px;
}
.testimonial-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
.testimonial-source img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.pagination-arrows {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.arrow {
  background: #ff6347;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s ease;
}
.arrow:hover {
  background: #ff4500;
}

/****************************************
 * 15) 푸터
 ****************************************/
.main-footer {
  background-color: #242323d7;
  padding: 60px 0 20px;
  color: #fff;
  margin-top: 60px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
  gap: 40px;
}
.footer-section {
  flex: 1;
  min-width: 250px;
}
.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}
.footer-info .footer-address {
  margin: 10px 0;
  line-height: 1.6;
}
.footer-contact strong {
  margin: 5px 0;
  font-size: 14px;
  color: #fff;
}
.hours-list {
  list-style: none;
  margin: 0; padding: 0;
}
.hours-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
}
.hours-list span {
  font-weight: 600;
  color: #fff;
}
/* ★ 푸터 소셜 링크 중앙 정렬 (수정됨) */
.footer-social {
  text-align: center; /* 추가 */
}
.footer-social .social-links {
  display: inline-flex; /* 인라인 형식으로 중앙에 모음 */
  gap: 15px;
}
.footer-social .social-links a {
  text-decoration: none;
  background-color: #fff;
  color: #333;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.footer-social .social-links a:hover {
  background-color: #007bff;
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.footer-bottom p {
  font-size: 14px;
  color: #fff;
}

/****************************************
 * 반응형 미디어 쿼리
 ****************************************/
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {

  /* ★ 모바일에서 로고 크기를 약간 늘림 (수정됨) */
  .logo img {
    max-width: 200px; 
  }

  .mobile-menu-btn {
    top: 15px;
    right: 15px;
    transform: none;
  }

  /* 배너, 상단 */
  .banner {
    min-height: 50vh;
  }
  .banner-text h1 {
    font-size: 28px;
  }
  .banner-text p {
    font-size: 14px;
  }

  .navbar {
    padding: 10px 20px;
    height: 60px;
  }
  .content1-section,
  .intro-section {
    max-width: 95%;
  }
  .location-container {
    flex-direction: column;
  }
  .map-container {
    margin-bottom: 20px;
    max-width: 100%;
  }
  .info-text {
    max-width: 95%;
    padding: 0 15px;
  }
  .schedule-section {
    padding: 30px 20px;
  }
  .timeline-header h2 {
    font-size: 24px;
  }
  .timeline-container {
    grid-template-columns: 1fr;
  }
  .testimonials-container {
    width: 100%;
    max-width: 100%;
  }
  .testimonial-card {
    margin: 0 auto;
  }
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-section {
    text-align: center;
  }

  /* 연락처 섹션: 아이콘 2x2 */
  .contact-info {
    padding: 30px 15px;
    max-width: 95%;
  }
  .contact-header h4 {
    font-size: 1.2rem;
  }
  .contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }
  .contact-link i {
    font-size: 32px;
  }
  .contact-link span {
    font-size: 14px;
  }

  /* 원장 소개 (Director) 섹션: 세로 */
  .intro-doctor-content {
    display: block;
  }
  .intro-doctor-text {
    width: 100%;
    padding-right: 0;
  }
  .intro-doctor-image {
    position: relative;
    margin: 20px 0;
    width: 100%;
    top: auto;
    transform: none !important;
  }
  .intro-doctor-section .intro-doctor-content {
    display: flex;
    flex-direction: column;
  }
  .intro-doctor-section .intro-doctor-text h2 {
    order: 1;
  }
  .intro-doctor-section .intro-doctor-image {
    order: 2;
  }
  .intro-doctor-section .intro-doctor-text > *:not(h2) {
    order: 3;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .equipment-image {
    max-width: 100%;
    margin: 20px 0;
  }

  /* content1-cards -> 1열 */
  .content1-cards {
    grid-template-columns: 1fr !important;
  }

  /* treatment-grid -> 1열 (수정됨) */
  .treatment-grid {
    grid-template-columns: 1fr !important;
  }

  /* coverage-grid -> 1열 (수정됨) */
  .coverage-grid {
    grid-template-columns: 1fr !important;
  }

  /* h2 폰트 크기 축소 + 줄바꿈 (수정됨) */
  .intro-section h2,
  .price-section .intro-section h2 {
    font-size: 1.4rem; 
    line-height: 1.3;
    word-break: keep-all; 
  }

  /* 팝업 내 가격표 -> 1열 */
  .price-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .banner-text p {
    font-size: 12px;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 모바일용 원장 이미지 기본 숨김 */
.mobile-doctor-image {
  display: none;
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .intro-doctor-image {
    display: none;
  }
  .mobile-doctor-image {
    display: block;
  }
}
