:root {
  --primary-color: #2d5bff;
  --secondary-color: #f6f8ff;
  --text-color: #333333;
  --light-gray: #f5f5f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
}

a {
  text-decoration: none;
}

body {
  line-height: 1.6;
  color: var(--text-color);
}

.navbar {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

#hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("3.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

#services {
  padding: 6rem 2rem;
  background: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

#services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 500;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: block;
  }

  .logo {
    z-index: 1001;
  }

  .logo img {
    height: 32px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    max-width: 85%;
    margin: 0 auto;
  }

  .page-content section {
    min-height: auto;
    padding: 4rem 0;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    min-height: 700px;
    gap: 2rem;
  }

  .doctor-card {
    padding: 1.5rem;
  }

  .doctor-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .doctor-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-links li {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* About Section */
#about {
  padding: 6rem 2rem;
  background: var(--secondary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-features {
  list-style: none;
  margin-top: 2rem;
}

.about-features li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 모바일 대응을 위한 미디어 쿼리 수정 */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1; /* 이미지를 텍스트 위로 이동 */
    margin: 0 1rem; /* 좌우 여백 추가 */
  }

  .about-image img {
    width: 100%;
    border-radius: 20px; /* PC 버전과 동일한 둥근 모서리 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
  }

  .about-text {
    padding: 0 1.5rem;
  }

  .about-text h3 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .about-features {
    margin-top: 1.5rem;
  }

  .about-features li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
}

/* Doctors Section */
#doctors {
  padding: 6rem 2rem;
  background: white;
}

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
}

.doctor-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  height: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  opacity: 0;
}

.doctor-card.active {
  display: block;
  opacity: 1;
}

.doctor-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.doctor-specialty {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0.5rem 0;
}

.doctor-credentials {
  list-style: none;
  text-align: left;
  margin-top: 1.5rem;
}

.doctor-credentials li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* Reservation Section */
#reservation {
  padding: 6rem 2rem;
  background: var(--secondary-color);
}

.doctor-profile {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.doctor-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 8px solid var(--secondary-color);
  box-shadow: 0 10px 20px rgba(45, 91, 255, 0.1);
}

.doctor-info h3 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.doctor-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.doctor-brief {
  color: #666;
  margin-bottom: 2rem;
}

/* 상세 페이지 추가 스타일 */
.doctor-profile.detailed {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.doctor-profile.detailed .doctor-image {
  margin: 0 auto;
}

.doctor-profile.detailed .doctor-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.doctor-credentials {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--secondary-color);
  border-radius: 15px;
  text-align: left;
}

.doctor-specialties {
  margin-top: 2rem;
  text-align: center;
}

.doctor-credentials p {
  margin-bottom: 0.5rem;
  color: #666;
}

.doctor-specialties h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.more-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .doctor-profile {
    padding: 2rem;
    margin: 2rem 1rem;
  }

  .doctor-profile.detailed {
    gap: 2rem;
  }

  .doctor-image {
    width: 180px;
    height: 180px;
  }

  .doctor-info h3 {
    font-size: 1.8rem;
  }
}

/* Page Content Styles */
.page-content {
  padding-top: 80px; /* 네비게이션 바 높이만큼 여백 */
}

.page-content section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* Section Background Colors */
#about {
  background: var(--secondary-color);
}

#services {
  background: white;
}

#doctors {
  background: var(--secondary-color);
}

#reservation {
  background: white;
}

#location {
  background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-content section {
    min-height: auto;
    padding: 4rem 0;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
    max-height: 75vh;
    margin-top: 5vh;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-section {
    padding: 1.2rem;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease;
  }

  .service-detail h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    padding-top: 0.5rem;
  }

  .detail-section ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
  }
}

/* Policy Pages */
.policy-section {
  padding: 6rem 2rem;
  background: var(--secondary-color);
}

.policy-content {
  background: white;
  padding: 3rem 4rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 900px;
}

.policy-content h3 {
  color: var(--primary-color);
  margin: 2.5rem 0 1.2rem;
  font-size: 1.4rem;
}

.policy-content h3:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.policy-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Map Page */
.map-section {
  padding: 6rem 2rem 4rem 2rem;
  background: var(--secondary-color);
}

.map-content {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-container {
  width: 100%;
  margin-bottom: 20px;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 600px;
}

#map {
  border-radius: 10px;
  width: 100%;
  height: 100% !important;
  min-height: 580px;
}

.iw_inner {
  font-family: "Noto Sans KR", sans-serif;
}

.iw_inner h3 {
  color: var(--primary-color);
  font-weight: 700;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.transport-info h4 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
}

@media (max-width: 768px) {
  .map-content {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }
  .map-container {
    min-height: 300px;
    width: 85%;
    margin: 0 auto;
    margin-bottom: 30px;
  }
  #map {
    min-height: 250px;
  }
  .location-info {
    width: 85%;
    margin: 0 auto;
    padding-bottom: 2rem;
  }
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

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

/* 메인 페이지의 의료진 섹션 */
.home-doctor-section .doctors-grid {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* 슬라이드 인디케이터 */
.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
}

.slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: var(--primary-color);
}

.doctor-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
}

/* 의료진 페이지 전용 스타일 */
.doctors-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.doctor-card {
  display: none;
  text-align: center;
  padding: 2rem;
}

.doctor-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.doctor-card img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 8px solid var(--secondary-color);
  box-shadow: 0 10px 20px rgba(45, 91, 255, 0.1);
}

.doctor-card h3 {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.doctor-specialty {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.doctor-credentials {
  list-style: none;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.doctor-credentials li {
  margin-bottom: 1rem;
  color: #666;
}

.doctor-description {
  margin-top: 2rem;
}

.doctor-description h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.doctor-description ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.prev-btn,
.next-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  transform: scale(1.2);
}

.slide-indicators {
  display: flex;
  gap: 1rem;
}

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

@media (max-width: 768px) {
  .doctors-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .doctor-card img {
    width: 200px;
    height: 200px;
  }

  .doctor-card h3 {
    font-size: 1.8rem;
  }

  .doctor-credentials {
    padding: 1.5rem;
  }

  .doctor-description ul {
    gap: 1rem;
  }
}

.doctors-link {
  text-align: center;
  margin-top: 2rem;
}

.more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.more-btn:hover {
  transform: translateY(-2px);
}

/* Reservation Section */
#reservation {
  padding: 6rem 2rem;
  background: var(--secondary-color);
}

.reservation-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.info-card ul {
  margin-bottom: 1rem;
}

.info-card li {
  margin-bottom: 0.8rem;
  color: #666;
}

.reservation-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: white;
  padding: 3rem 2rem;
  border-top: 1px solid #eee;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-info p {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-info {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
  }

  .footer-info h3 {
    font-size: 1.1rem;
  }

  .footer-info p {
    font-size: 0.9rem;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-links a {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem;
  }

  .copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-bottom: 3rem;
}

.modal-content {
  background: white;
  margin: auto;
  margin-top: 2vh;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.close-button {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  z-index: 1200;
}

.service-detail {
  display: none;
  padding-top: 20px;
}

.service-detail.active {
  display: block;
}

.service-detail h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.detail-section {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 15px;
  height: fit-content;
}

.detail-section:hover {
  transform: translateY(-5px);
}

.detail-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-section ul {
  list-style: none;
}

.detail-section ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.detail-section ul li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.service-card {
  cursor: pointer;
}

/* Page Content Styles */
.page-content {
  padding-top: 80px; /* 네비게이션 바 높이만큼 여백 */
}

.page-content section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* Section Background Colors */
#about {
  background: var(--secondary-color);
}

#services {
  background: white;
}

#doctors {
  background: var(--secondary-color);
}

#reservation {
  background: white;
}

#location {
  background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-content section {
    min-height: auto;
    padding: 4rem 0;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
    max-height: 75vh;
    margin-top: 5vh;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-section {
    padding: 1.2rem;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease;
  }

  .service-detail h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    padding-top: 0.5rem;
  }

  .detail-section ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
  }

  .reservation-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reservation-info {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .info-card {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .reservation-form {
    margin: 0 1rem;
    padding: 2rem;
  }

  /* 스크롤바 스타일링 */
  .reservation-info::-webkit-scrollbar {
    height: 4px;
  }

  .reservation-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .reservation-info::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
}

/* Policy Pages */
.policy-section {
  padding: 6rem 2rem;
  background: var(--secondary-color);
}

.policy-content {
  background: white;
  padding: 3rem 4rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 900px;
}

.policy-content h3 {
  color: var(--primary-color);
  margin: 2.5rem 0 1.2rem;
  font-size: 1.4rem;
}

.policy-content h3:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.policy-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Map Page */
.map-section {
  padding: 6rem 2rem 4rem 2rem;
  background: var(--secondary-color);
}

.map-content {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-container {
  width: 100%;
  margin-bottom: 20px;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 600px;
}

#map {
  border-radius: 10px;
  width: 100%;
  height: 100% !important;
  min-height: 580px;
}

.iw_inner {
  font-family: "Noto Sans KR", sans-serif;
}

.iw_inner h3 {
  color: var(--primary-color);
  font-weight: 700;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.transport-info h4 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
}

@media (max-width: 768px) {
  .map-content {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }
  .map-container {
    min-height: 300px;
    width: 85%;
    margin: 0 auto;
    margin-bottom: 30px;
  }
  #map {
    min-height: 250px;
  }
  .location-info {
    width: 85%;
    margin: 0 auto;
    padding-bottom: 2rem;
  }
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

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

/* 메인 페이지의 의료진 섹션 */
.home-doctor-section .doctors-grid {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* 슬라이드 인디케이터 */
.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
}

.slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: var(--primary-color);
}

.doctor-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
}

/* 의료진 페이지 전용 스타일 */
.doctors-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.doctor-card {
  display: none;
  text-align: center;
  padding: 2rem;
}

.doctor-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.doctor-card img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 8px solid var(--secondary-color);
  box-shadow: 0 10px 20px rgba(45, 91, 255, 0.1);
}

.doctor-card h3 {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.doctor-specialty {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.doctor-credentials {
  list-style: none;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.doctor-credentials li {
  margin-bottom: 1rem;
  color: #666;
}

.doctor-description {
  margin-top: 2rem;
}

.doctor-description h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.doctor-description ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.prev-btn,
.next-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  transform: scale(1.2);
}

.slide-indicators {
  display: flex;
  gap: 1rem;
}

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

@media (max-width: 768px) {
  .doctors-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .doctor-card img {
    width: 200px;
    height: 200px;
  }

  .doctor-card h3 {
    font-size: 1.8rem;
  }

  .doctor-credentials {
    padding: 1.5rem;
  }

  .doctor-description ul {
    gap: 1rem;
  }
}

.doctors-link {
  text-align: center;
  margin-top: 2rem;
}

.more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.more-btn:hover {
  transform: translateY(-2px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  flex: 1;
}

@media (max-width: 768px) {
  .checkbox-group {
    padding: 0.8rem 0;
  }

  .checkbox-group label {
    font-size: 0.9rem;
  }
}

input[type="text"]::placeholder {
  color: #999;
  font-size: 0.9rem;
}

/* 모바일에서는 여백을 줄임 */
@media (max-width: 768px) {
  .policy-content {
    padding: 2rem;
    margin: 0 1.5rem;
  }
}

/* 페이지 헤더 로고 스타일 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header img {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .page-header img {
    height: 40px;
  }
}
