/* ============================== */
/* RESET & BASE                   */
/* ============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

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

/* ============================== */
/* LAYOUT                         */
/* ============================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  gap: 30px;
}

.row.align-center {
  align-items: center;
}

.col-4 { flex: 0 0 calc(33.333% - 20px); }
.col-6 { flex: 0 0 calc(50% - 15px); }
.col-12 { flex: 0 0 100%; }

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

/* ============================== */
/* HEADER                         */
/* ============================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: background 0.3s;
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 15px 0 75px;
  display: flex;
  align-items: center;
  height: 80px;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #40b779;
  letter-spacing: -0.5px;
}

/* Navigation */
#main-nav {
  display: flex;
  margin-left: auto;
  margin-right: 80px;
}

.nav-menu {
  display: flex;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 28px 14px;
  font-size: 17px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.nav-menu > li > a:hover {
  color: #40b779;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-top: 3px solid #40b779;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}

.dropdown li a:hover {
  background: #f7fdf9;
  color: #40b779;
  padding-left: 25px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 8px;
  transition: color 0.3s;
}

.search-toggle:hover {
  color: #40b779;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-inner {
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #40b779;
  padding: 15px 0;
  font-size: 24px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  background: transparent;
}

.search-hint {
  margin-top: 15px;
  font-size: 13px;
  color: #999;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* ============================== */
/* HERO SLIDER                    */
/* ============================== */
.slider-section {
  margin-top: 80px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}


.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: left;
  color: #fff;
  padding: 20px;
  margin-left: 10%;
  position: relative;
  z-index: 2;
}

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

.slide-subtitle,
.slide-title,
.slide-desc,
.slide-btn {
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-subtitle {
  animation: slideFadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.slide.active .slide-title {
  animation: slideFadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.slide.active .slide-desc {
  animation: slideFadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.slide.active .slide-btn {
  animation: slideFadeUp 0.8s ease forwards;
  animation-delay: 1.1s;
}

.slide-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.slide-title {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.slide-desc {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 35px;
}

.slide-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
}

.slide-btn:hover {
  background: #fff;
  color: #333;
  border-color: #fff;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #fff;
  border-color: #fff;
}

/* ============================== */
/* CONTENT SECTIONS               */
/* ============================== */
.content-section {
  padding: 80px 0;
}

/* Service Cards */
.service-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.service-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.service-text {
  padding: 30px;
}

.service-en {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: #40b779;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.service-en.light {
  color: rgba(255,255,255,0.7);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.service-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn-detail {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #40b779;
  color: #40b779;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-detail:hover {
  background: #40b779;
  color: #fff;
}

.btn-detail.btn-light {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-detail.btn-light:hover {
  background: #fff;
  color: #333;
  border-color: #fff;
}

/* Section Titles */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.5;
}

.section-title.light {
  color: #fff;
}

.section-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.section-desc.light {
  color: rgba(255,255,255,0.8);
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #40b779;
  margin: 15px auto 0;
}

/* ============================== */
/* MEDICINE BANNER                */
/* ============================== */
.section-medicine-banner {
  padding: 0;
}

.medicine-banner {
  padding: 100px 0;
  background-size: cover;
  background-position: center;
}

/* ============================== */
/* DOCTOR SECTION                 */
/* ============================== */
.section-doctor {
  padding: 0;
}

.doctor-banner {
  background: linear-gradient(135deg, #2d5a3d 0%, #1a3a25 60%, #40b779 100%);
  padding: 120px 0;
  position: relative;
}

.doctor-content {
  color: #fff;
}

.doctor-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  letter-spacing: 3px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.doctor-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* ============================== */
/* CHUNA DETAIL                   */
/* ============================== */
.chuna-image {
  height: 400px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================== */
/* NOTICE CARDS                   */
/* ============================== */
.section-notice {
  background: #f9fafb;
}

.notice-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.notice-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.notice-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #222;
}

.notice-excerpt {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* ============================== */
/* IMAGE LINK CARDS               */
/* ============================== */
.image-link-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.ilc-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ilc-text {
  padding: 25px;
  background: #fff;
}

.ilc-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ilc-more {
  font-size: 14px;
  color: #40b779;
  font-weight: 500;
}

/* ============================== */
/* LOCATION & HOURS               */
/* ============================== */
.section-location {
  background: #f9fafb;
}

.map-container {
  height: 100%;
  min-height: 350px;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  gap: 10px;
  border-radius: 8px;
}

.map-address {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.hours-info {
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.hours-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #222;
  position: relative;
  padding-bottom: 15px;
}

.hours-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #40b779;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.hours-table th,
.hours-table td {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 15px;
}

.hours-table th {
  font-weight: 600;
  color: #333;
  width: 120px;
}

.hours-table td {
  color: #555;
}

.hours-table td small {
  color: #999;
  font-size: 13px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-phone,
.contact-address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #555;
}

.contact-phone {
  font-size: 22px;
  font-weight: 700;
  color: #40b779;
}

/* ============================== */
/* KAKAO FLOAT BUTTON             */
/* ============================== */
.kakao-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #FEE500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s;
}

.kakao-float:hover {
  transform: scale(1.1);
}

/* ============================== */
/* FOOTER                         */
/* ============================== */
#footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.footer-left {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.footer-right {
  margin-left: auto;
}

.footer-details li {
  font-size: 14px;
  line-height: 2;
  color: #fff;
}

.footer-details li strong {
  color: #fff;
  margin-right: 8px;
}

.footer-copyright {
  font-size: 13px;
  color: #fff;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #444;
}


/* ============================== */
/* RESPONSIVE - TABLET            */
/* ============================== */
@media (max-width: 1024px) {
  .nav-menu > li > a {
    padding: 28px 12px;
    font-size: 14px;
  }
}

@media (max-width: 778px) {
  /* Header */
  .mobile-menu-toggle {
    display: flex;
  }

  #main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #main-nav.open {
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav-menu {
    flex-direction: column;
    padding: 20px;
  }

  .nav-menu > li > a {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 20px;
  }

  /* Slider */
  .slider-container {
    height: 480px;
  }

  .slide-title {
    font-size: 36px;
  }

  .slide-desc {
    font-size: 16px;
  }

  /* Layout */
  .row {
    flex-direction: column;
    gap: 20px;
  }

  .col-4, .col-6 {
    flex: 0 0 100%;
  }

  /* Doctor */
  .doctor-title {
    font-size: 30px;
  }

  /* Chuna */
  .chuna-image {
    height: 300px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-logo-img {
    height: 100px;
  }
}

/* ============================== */
/* RESPONSIVE - MOBILE            */
/* ============================== */
@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-text {
    font-size: 18px;
  }

  #main-nav {
    top: 60px;
  }

  .slider-section {
    margin-top: 60px;
  }

  .slider-container {
    height: 400px;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-desc {
    font-size: 14px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-prev { left: 15px; }
  .slider-next { right: 15px; }

  .content-section {
    padding: 50px 0;
  }

  .section-heading {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .doctor-title {
    font-size: 24px;
  }

  .medicine-banner {
    padding: 70px 0;
  }

  .doctor-banner {
    padding: 80px 0;
  }

  .hours-info {
    padding: 25px;
  }

  .kakao-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
