/* 힐링오아시스 커스텀 테마 스타일 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap");

/* Customizer Preview 모드에서 AOS 요소들이 보이도록 처리 */
body.wp-customizer [data-aos],
.wp-customizer [data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

:root {
  --primary-color: #00433b;
  --primary-hover: #003329;
  --secondary-color: #006659;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: white;
}

.pc-none{display: none !important;}

/* 블로그 상세페이지 및 서브페이지 배경색 화이트 */
.site-main,
.site-content,
.single .site-main,
.page .site-main,
.blog-single-article,
#primary {
  background: white !important;
}

/* Container */
.max-w-7xl {
  max-width: 80rem; /* 1280px */
}

.max-w-4xl {
  max-width: 56rem; /* 896px */
}

.max-w-3xl {
  max-width: 48rem; /* 768px */
}

.guide-container {
  max-width: 76rem; /* 1216px */
}

/* Benefit Section Styles */
.benefit-section {
  margin-bottom: 3rem;
}

.benefit-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.benefit-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.benefit-section h3:first-child {
  margin-top: 0;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 1rem !important;
  line-height: 1.6;
}

.benefit-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .benefit-cards-grid {
    grid-template-columns: 1fr;
  }
  .pc-none{display: block !important;}
  .m-none{display: none !important;}
}

.benefit-info-card {
  background: #f5f5f5;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: none;
}

.benefit-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.benefit-info-card p {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.125rem;
}

.benefit-section p {
  margin-bottom: 0;
  line-height: 1.7;
}

.benefit-section ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.benefit-section ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.benefit-section table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: none;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.benefit-section table th {
  background: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
}

.benefit-section table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
}

.benefit-section table tr:last-child td {
  border-bottom: none;
}

.benefit-info-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.benefit-info-card ul,
.benefit-info-card ol {
  margin: 0;
  padding-left: 1.5rem;
}

.benefit-info-card li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.patient-category {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.patient-category:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* patient-category가 하나만 있는 경우 border 제거 */
.benefit-info-card > .patient-category:only-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.benefit-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 0;
  box-shadow: none;
}

.benefit-cards-grid + .benefit-box {
  margin-top: 1.5rem;
}

.benefit-box + .benefit-box {
  margin-top: 1.5rem;
}

.benefit-info-card + .benefit-box {
  margin-top: 1.5rem;
}

.benefit-box-warning {
  background: #fef3c7;
  border-color: #f59e0b;
}

.benefit-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.benefit-box h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.benefit-box p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.benefit-box ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.benefit-box li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.support-amount {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.support-amount:last-of-type {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.support-scope {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* support-amount:last-of-type 다음에 오는 support-scope는 border-top 제거하고 padding-top도 0 */
.support-amount:last-of-type + .support-scope {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* support-amount가 없는 경우 support-scope는 border-top 없음 */
.benefit-box > .support-scope:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.hospice-services {
  list-style: decimal;
  padding-left: 0;
  margin-left: 0;
}

.hospice-services li {
  margin-bottom: 2rem;
}

.hospice-services h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.hospice-services p {
  margin: 0;
  line-height: 1.7;
}

.hospice-types-table {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.hospice-types-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: none;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.hospice-types-table th {
  background: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.hospice-types-table th:first-child {
  min-width: 100px;
  width: 15%;
}

.hospice-types-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.6;
  word-break: keep-all;
}

.hospice-types-table td:first-child {
  white-space: nowrap;
  min-width: 100px;
  width: 15%;
}

.hospice-types-table tr:last-child td {
  border-bottom: none;
}

.hospice-procedure-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.procedure-card {
  background: #f5f5f5;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: none;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
}

.procedure-card:last-child {
  border-bottom: none;
}

.procedure-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--primary-color);
}

.procedure-icon svg:first-of-type {
  width: 20px;
  height: 20px;
  color: white;
  stroke: white;
  z-index: 1;
}

.procedure-icon .icon-cross {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  z-index: 2;
}

.procedure-content {
  flex: 1;
}

.procedure-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.procedure-content p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.procedure-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .procedure-card {
    flex-direction: column;
    gap: 1rem;
  }
  
  .procedure-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .procedure-icon svg:first-child {
    width: 20px;
    height: 20px;
  }
}

.max-w-xl {
  max-width: 36rem; /* 576px */
}

.max-w-lg {
  max-width: 32rem; /* 512px */
}

/* Contact Form Container */
.contact-form-container {
  max-width: 32rem; /* 512px */
  margin-left: auto;
  margin-right: auto;
}

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

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.site-header {
  background: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* 헤더 내부 컨테이너 - 모바일 메뉴의 기준점 */
.site-header > .w-full {
  position: relative;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.site-logo {
  height: 2.5rem; /* h-10 = 40px = 2.5rem */
  width: auto;
  display: block;
}

.nav-menu {
  display: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1rem;
}

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

.nav-menu .btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.nav-menu .btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

/* 서브 메뉴 스타일 */
.nav-menu-item-has-children {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  margin: 0;
  padding-top: 0.5rem;
  z-index: 50;
  list-style: none;
}

.nav-menu-item-has-children:hover .nav-submenu,
.nav-submenu:hover {
  display: block;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.nav-submenu a:hover {
  background-color: var(--gray-50);
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  border: none;
  color: var(--gray-700) !important;
  cursor: pointer;
  padding: 0.5rem;
  width: 2rem;
  height: 2rem;
  transition: color 0.2s;
}

/* 터치 디바이스에서는 호버 효과 제거 (기본 색상 유지) */
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
button.mobile-menu-toggle:hover,
button.mobile-menu-toggle:focus,
.site-header .mobile-menu-toggle:hover,
.header-inner .mobile-menu-toggle:hover {
  background: #fff !important;
  color: var(--gray-700) !important;
}

/* 마우스가 있는 디바이스에서만 호버 효과 적용 */
@media (hover: hover) {
  .mobile-menu-toggle:hover,
  button.mobile-menu-toggle:hover,
  .site-header .mobile-menu-toggle:hover,
  .header-inner .mobile-menu-toggle:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
  }
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  padding-bottom: 1rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}

/* 데스크톱에서는 모바일 메뉴 완전히 숨김 */
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
  padding: 0.25rem 0;
}

@media (hover: hover) {
  .site-header .mobile-menu a:hover,
  .mobile-menu a:hover {
    color: var(--primary-color);
  }
}

.mobile-menu .btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  display: inline-block;
  width: 100%;
  margin-top: 0.25rem;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .site-header .mobile-menu .btn-primary:hover,
.mobile-menu .btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

/* 모바일 서브 메뉴 스타일 */
.mobile-menu-item-has-children {
  position: relative;
}

.mobile-menu-parent-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  width: 100% !important;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
  padding: 0.25rem 0;
  cursor: pointer;
}

/* 모바일에서 아코디언 메뉴 부모 링크는 JavaScript로 제어하므로 기본 링크 동작은 유지하되, 
   JavaScript에서 preventDefault로 막습니다 */

.mobile-submenu-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.mobile-menu-item-has-children.active .mobile-submenu-arrow {
  transform: rotate(180deg);
}

/* 모바일 서브 메뉴 - 최상위 우선순위로 리스트 스타일 제거 */
.mobile-menu ul.mobile-submenu,
.mobile-menu .mobile-submenu,
.site-header .mobile-menu ul.mobile-submenu,
.site-header .mobile-menu .mobile-submenu,
.mobile-menu-item-has-children ul,
.mobile-menu-item-has-children .mobile-submenu {
  list-style: none !important;
  list-style-type: none !important;
  -webkit-list-style: none !important;
  -moz-list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-top: 0;
  gap: 0.5rem;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  display: none !important;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, visibility 0.3s ease;
}

/* active 상태일 때만 표시 */
.mobile-menu-item-has-children.active .mobile-submenu,
.mobile-menu-item-has-children.active ul.mobile-submenu,
.site-header .mobile-menu-item-has-children.active .mobile-submenu,
.site-header .mobile-menu-item-has-children.active ul.mobile-submenu,
.mobile-menu .mobile-menu-item-has-children.active .mobile-submenu,
.mobile-menu .mobile-menu-item-has-children.active ul.mobile-submenu {
  display: flex !important;
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
  visibility: visible;
}

.mobile-menu ul.mobile-submenu li,
.mobile-menu .mobile-submenu li,
.site-header .mobile-menu ul.mobile-submenu li,
.site-header .mobile-menu .mobile-submenu li,
.mobile-menu-item-has-children ul li,
.mobile-menu-item-has-children .mobile-submenu li {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  -webkit-list-style: none !important;
  -moz-list-style: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mobile-menu ul.mobile-submenu li::before,
.mobile-menu .mobile-submenu li::before,
.mobile-menu ul.mobile-submenu li::after,
.mobile-menu .mobile-submenu li::after,
.mobile-menu ul.mobile-submenu li::marker,
.mobile-menu .mobile-submenu li::marker,
.site-header .mobile-menu ul.mobile-submenu li::before,
.site-header .mobile-menu .mobile-submenu li::before,
.site-header .mobile-menu ul.mobile-submenu li::after,
.site-header .mobile-menu .mobile-submenu li::after,
.site-header .mobile-menu ul.mobile-submenu li::marker,
.site-header .mobile-menu .mobile-submenu li::marker,
.mobile-menu-item-has-children ul li::before,
.mobile-menu-item-has-children ul li::after,
.mobile-menu-item-has-children ul li::marker {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

.mobile-submenu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

@media (hover: hover) {
  .mobile-submenu a:hover {
    color: var(--primary-color);
  }
}
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
  /* 모바일: 고정 높이 */
  height: 400px;
}

@media (min-width: 768px) {
  .hero-slider-container {
    height: 580px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 모바일에서 이미지 전체 표시 */
@media (max-width: 767px) {
  .hero-slider-container {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }
  
  .hero-slide {
    position: relative;
  }
  
  .hero-slide.active {
    position: relative;
  }
  
  .hero-slide:not(.active) {
    display: none;
  }
  
  .hero-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .slider-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 0.75rem;
    margin-bottom: 0;
    justify-content: center;
    z-index: 20;
  }
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem; /* bottom-6 = 24px = 1.5rem */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem; /* gap-2 = 8px = 0.5rem */
}

button.slider-dot,
.slider-dot,
.slider-dots .slider-dot,
.slider-dots button,
.hero-slider .slider-dot,
.hero-slider .slider-dots button,
.hero-slider-container .slider-dot,
.hero-slider-container .slider-dots button,
.hero-slider-container .slider-dots button.slider-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  max-width: 8px !important;
  max-height: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: var(--gray-400) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  font-size: 0 !important;
  overflow: visible !important;
}

button.slider-dot.active,
.slider-dot.active,
.slider-dots .slider-dot.active,
.slider-dots button.active,
.hero-slider .slider-dot.active,
.hero-slider .slider-dots button.active,
.hero-slider-container .slider-dot.active,
.hero-slider-container .slider-dots button.active,
.hero-slider-container .slider-dots button.slider-dot.active {
  background: var(--primary-color) !important;
  width: 24px !important;
  height: 8px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  border-radius: 4px !important;
}

button.slider-dot:hover,
.slider-dot:hover,
.slider-dots .slider-dot:hover,
.slider-dots button:hover,
.hero-slider .slider-dot:hover {
  background: var(--gray-600) !important;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

/* Section Decorative Text */
.section-decorative-text {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Section Subtitle Spacing */
.section h2 + .text-gray-600,
.text-center h2 + .text-gray-600 {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* 섹션 타이틀 영역과 컨텐츠 사이 간격 조정 */
.section .text-center.mb-12,
.section .flex.justify-between.mb-8 {
  margin-bottom: 2rem !important;
}

@media (max-width: 767px) {
  .section .text-center.mb-12,
  .section .flex.justify-between.mb-8 {
    margin-bottom: 1.5rem !important;
  }
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--primary-color);
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.aspect-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  margin: 0;
  flex-shrink: 0;
}

.aspect-video > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-video img {
  transition: transform 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
  outline: none;
  width: 100% !important;
  height: 100% !important;
}

.card:hover .aspect-video img {
  transform: scale(1.05);
}

/* Typography */
.text-center {
  text-align: center;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 2.5rem;
  line-height: 2.25rem;
}

/* 모바일에서 섹션 타이틀 폰트 크기 조정 */
@media (max-width: 767px) {
  .text-3xl {
    font-size: 1.75rem;
    line-height: 2rem;
  }
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-full {
  width: 100%;
}

/* Contact Section with Background */
.contact-section-with-bg {
  position: relative;
  background-image: url('../images/bg-contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
}

.contact-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.contact-section-with-bg .text-center,
.contact-section-with-bg .max-w-3xl {
  position: relative;
  z-index: 2;
}

.contact-section-with-bg .text-center h2,
.contact-section-with-bg .text-center p {
  color: white;
}

.contact-section-with-bg .text-center .section-decorative-text {
  color: white;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  background: white;
  position: relative;
  z-index: 2;
}

/* Forms */
.form-group {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.space-y-6 > .form-group,
.contact-form .form-group,
.contact-form.space-y-6 > .form-group {
  margin-top: 0 !important;
}

.form-label {
  display: block;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.form-input,
.form-textarea,
.form-group .form-input,
.form-group .form-textarea,
.contact-form .form-input,
.contact-form .form-textarea {
  width: 100% !important;
  padding: 1.25rem 1rem !important;
  min-height: 3.5rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  border: 1px solid var(--gray-300) !important;
  border-radius: 0.75rem !important;
  font-size: 1rem !important;
  transition: all 0.2s !important;
  box-shadow: none !important;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: none;
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
}

/* Contact form button */
.contact-form .btn,
.contact-form button {
  min-height: 4rem;
  border-radius: 0.75rem;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0;
}

.footer-logo {
  height: 2rem;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 푸터 p 태그 마진 제거 */
.site-footer p {
  margin-bottom: 0;
}

/* 푸터 '문의' 텍스트 스타일 */
.site-footer h3 {
  color: white;
  font-size: 16px;
}

/* 블로그 상세 페이지 스타일 */
.blog-single-article {
  flex-grow: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.blog-single-container {
  max-width: 56rem; /* max-w-4xl = 896px = 56rem */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .blog-single-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-single-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: var(--primary-color);
}

.blog-single-title {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.blog-featured-image {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
}

.blog-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prose 스타일 (블로그 본문) */
.prose {
  max-width: none;
  color: var(--gray-900);
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
}

.prose-lg {
  font-size: 1.125rem;
}

.prose-lg p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* 블로그 CTA 섹션 */
.blog-cta {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  text-align: center;
}

.blog-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.blog-cta-text {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Hide Astra default scroll-to-top button */
#ast-scroll-top {
  display: none !important;
}

/* Quick Menu */
.quick-menu {
  position: fixed;
  right: 1.5rem; /* right-6 = 24px = 1.5rem */
  bottom: 1.5rem; /* bottom-6 = 24px = 1.5rem */
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* gap-3 = 12px = 0.75rem */
}

.quick-menu-btn-group {
  position: relative;
}

.quick-menu-btn {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  position: relative;
  padding: 0;
  overflow: visible;
}

.quick-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.quick-menu-btn.phone {
  background: var(--primary-color);
  color: white;
}

.quick-menu-btn.phone:hover {
  background: var(--primary-hover);
}

.quick-menu-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.quick-menu-btn.kakao:hover {
  background: #F5DC00;
}

.quick-menu-btn.top {
  background: var(--gray-700);
  color: white;
}

.quick-menu-btn.top:hover {
  background: var(--gray-800);
}

/* 카카오톡 버튼 내부 이미지 */
.quick-menu-btn.kakao img,
.quick-menu-btn .kakao-logo {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain;
  flex-shrink: 0;
  max-width: none;
  max-height: none;
}

.quick-menu-btn svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: block;
  flex-shrink: 0;
}

/* Quick Menu Tooltip */
.quick-menu-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-800);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.quick-menu-btn-group:hover .quick-menu-tooltip {
  opacity: 1;
}

.quick-menu-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-800);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* bg-black/50 */
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
  max-width: 28rem; /* max-w-md */
  width: 100%;
  padding: 1.5rem; /* p-6 */
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gray-600);
}

.modal-icon {
  width: 4rem; /* w-16 */
  height: 4rem; /* h-16 */
  background: #dcfce7; /* bg-green-100 */
  border-radius: 9999px; /* rounded-full */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem; /* mb-4 */
}

.modal-icon svg {
  width: 2rem;
  height: 2rem;
  color: #16a34a;
}

/* Success Modal Text */
.modal-content h3 {
  color: var(--gray-900) !important;
}

.modal-content p {
  color: var(--gray-700) !important;
}

.modal-content .text-gray-600 {
  color: var(--gray-700) !important;
}

/* Privacy Policy Modal */
.modal-content-large {
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-privacy-content {
  padding-top: 0.5rem;
}

.modal-privacy-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.modal-privacy-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-privacy-body {
  margin-bottom: 1.5rem;
}

.privacy-section {
  margin-bottom: 1.5rem;
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.privacy-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.privacy-text:last-child {
  margin-bottom: 0;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

.privacy-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.privacy-list li:last-child {
  margin-bottom: 0;
}

.privacy-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
}

.privacy-notice p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* Modal Close Button (확인 버튼) */
.modal-close-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-close-btn:hover {
  background: var(--primary-hover);
  color: white;
}

/* Privacy Policy Button */
.privacy-policy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.privacy-policy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Page Header */
.page-header {
  position: relative;
  background-image: url('../images/bg-pageheader.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 3rem 0;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header > div {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 500;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 1.875rem;
  }
}

.page-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-header p {
    font-size: 1rem;
    margin-bottom: 0;
  }
}

/* Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-white {
  color: white;
}

.text-red-500 {
  color: #ef4444;
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.ml-4 {
  margin-left: 1rem;
}

.w-14 {
  width: 3.5rem;
}

.h-14 {
  height: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

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

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.leading-relaxed {
  line-height: 1.625;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border-red-200 {
  border-color: #fecaca;
}

.text-red-700 {
  color: #b91c1c;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Quick Search Cards */
.quick-search-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
  gap: 1rem;
}

.quick-search-card:hover {
  border-color: var(--primary-color);
}

.quick-search-content {
  flex: 1 1 0%;
  min-width: 0;
}

.quick-search-content h3 {
  color: var(--gray-900);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.quick-search-icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-search-icon svg {
  width: 4rem;
  height: 4rem;
  display: block;
}

.quick-search-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-grow {
  flex: 1 1 0%;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.p-8 {
  padding: 2rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.transition {
  transition: all 0.2s;
}

/* Features Section */
.feature-card {
  background: white;
  padding: 0;
  border-radius: 1.5rem;
  box-shadow: none;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-image {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.feature-card h3 {
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  margin: 0;
}

.feature-card p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(0, 67, 59, 0.1);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
}

/* Hide/Show utilities */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
}

/* Link styles */
.link-arrow {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--primary-hover);
}

/* Blog card hover effect */
.card:hover h3 {
  color: var(--primary-color);
}

/* 힐링매거진 카드 제목 폰트 크기 */
.card-link h3 {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive text */
@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Blog Grid (Blog List, Event List) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 암 진료·지원 가이드 리스트 페이지에서는 4열이 아닌 3열로 표시 */
  .page-template-page-guide-list .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 암 진료·지원 가이드 리스트 카드 전용 스타일 */
.page-template-page-guide-list .blog-grid .blog-card {
  border: none;
  box-shadow: none;
}

.page-template-page-guide-list .blog-grid .blog-card-content {
  border-radius: 1rem;
  padding: 0;
  color: #ffffff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.page-template-page-guide-list .benefit-guide-card-header {
  padding: 2rem 2rem 1rem 2rem;
}

.page-template-page-guide-list .benefit-guide-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.page-template-page-guide-list .blog-grid .blog-card-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* 카드 타이틀 호버 효과 제거 */
.page-template-page-guide-list .blog-card:hover .blog-card-title {
  color: #ffffff;
}

.page-template-page-guide-list .blog-grid .blog-card-excerpt {
  color: #f9fafb;
  font-size: 0.9375rem;
}

/* 1번 카드 배경색 */
.page-template-page-guide-list .blog-grid .blog-card:nth-child(1) .blog-card-content {
  background-color: #58AB51;
}

/* 2번 카드 배경색 */
.page-template-page-guide-list .blog-grid .blog-card:nth-child(2) .blog-card-content {
  background-color: #213BAA;
}

/* 3번 카드 배경색 */
.page-template-page-guide-list .blog-grid .blog-card:nth-child(3) .blog-card-content {
  background-color: #F8944D;
}

.page-template-page-guide-list .benefit-guide-card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-template-page-guide-list .benefit-guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 1rem 1rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 2rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.blog-card:hover {
  border-color: var(--primary-color);
}

.blog-card:hover .blog-card-title {
  color: var(--primary-color);
}

.blog-card-image {
  height: 300px;
  overflow: hidden;
  background: var(--gray-100);
  margin: 0;
  padding: 0;
  width: 100%;
  flex-shrink: 0;
}

.blog-card-img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
  outline: none;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 0.8rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-900);
  transition: color 0.2s;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-600);
}

/* Benefit Grid (Special Benefit Page) */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-card {
  background: white;
  border: 2px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.benefit-card-title {
  color: var(--primary-color);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.icon-check {
  color: var(--primary-color);
  flex-shrink: 0;
}

.benefit-rate {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.benefit-rate strong {
  color: var(--primary-color);
  font-weight: 700;
}

.benefit-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Info Boxes */
.info-box {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box-primary {
  background: rgba(0, 67, 59, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
}

.info-box-warning {
  background: #fef3c7; /* amber-50 */
  border-left: 4px solid #f59e0b; /* amber-500 */
  padding: 1.5rem;
}

.info-box-title {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.icon-alert {
  color: #f59e0b;
  flex-shrink: 0;
}

.info-box ul {
  margin-bottom: 0;
}

.info-box ul li {
  margin-bottom: 0.5rem;
}

.info-box ul li:last-child {
  margin-bottom: 0;
}

/* Process Steps (Special Benefit Page) */
.process-box {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.process-title {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1rem;
}

.process-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-step h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  color: var(--gray-700);
}

/* Document Box */
.document-box {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.document-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.document-item:last-child {
  margin-bottom: 0;
}

.icon-document {
  color: var(--primary-color);
  flex-shrink: 0;
}

.document-item h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.document-item ul {
  margin: 0;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.faq-question {
  color: var(--primary-color);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.icon-help {
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-answer {
  padding-left: 1.75rem;
  margin: 0;
  color: var(--gray-700);
  line-height: 1.7;
}

/* Checklist Box & Grid */
.checklist-box {
  background: rgba(0, 67, 59, 0.05);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.checklist-box h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.checklist-item span {
  line-height: 1.6;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checklist-card {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.checklist-card h4 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.checklist-card ul {
  margin: 0;
}

.checklist-card ul li {
  margin-bottom: 0.5rem;
}

.checklist-card ul li:last-child {
  margin-bottom: 0;
}

/* CTA Box */
.cta-box {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.cta-box p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Prose 추가 스타일 */
.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
}

.prose ul li:last-child,
.prose ol li:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 700;
  color: var(--gray-900);
}

.prose a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

/* Guide Card Styles - 이미지 디자인 반영 */
.guide-card {
  display: flex;
  gap: 1.5rem;
  background: #f5f5f5;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
  position: relative;
  transition: all 0.3s ease;
}

.guide-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.guide-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  background: transparent;
}

.guide-content {
  flex: 1;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  padding-top: 0;
}

.guide-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

.guide-conclusion {
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.guide-conclusion p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1f2937;
  margin: 0;
}

@media (max-width: 768px) {
  .guide-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .guide-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 1.25rem;
  }
  
  .guide-title {
    font-size: 1.125rem;
  }
  
  .guide-text {
    font-size: 0.9375rem;
  }
}

.prose blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  color: var(--gray-700);
  font-style: italic;
}

/* 메인페이지 블로그 카드 (건강 이야기 섹션) - 이미지가 꽉 차고 제목 표시 */
.blog-card-home {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.blog-card-home:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blog-card-image-home {
  height: 300px;
  overflow: hidden;
  background: var(--gray-100);
  width: 100%;
  flex-shrink: 0;
}

.blog-card-img-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.blog-card-home:hover .blog-card-img-home {
  transform: scale(1.05);
}

.blog-card-title-home {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  align-items: flex-start;
  min-height: 0;
}

.blog-card-title-home h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
  transition: color 0.2s;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-home:hover .blog-card-title-home h3 {
  color: var(--primary-color);
}

/* Event Banner Slider */
.event-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.event-banner-container {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  border-radius: 0.75rem; /* 모바일: 작은 라운드값 */
}

@media (min-width: 768px) {
  .event-banner-container {
    height: 240px;
    border-radius: 1.5rem; /* 데스크톱: 큰 라운드값 */
  }
}

.event-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.event-banner-slide.active {
  opacity: 1;
  z-index: 10;
}

.event-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem; /* 모바일: 작은 라운드값 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
}

@media (min-width: 768px) {
  .event-banner-image {
    border-radius: 1.5rem; /* 데스크톱: 큰 라운드값 */
  }
}

.event-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem;
  padding-top: 4rem;
}

.event-banner-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .event-banner-title {
    font-size: 2rem;
  }
}

.event-banner-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.event-banner-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  max-width: 8px;
  max-height: 8px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0;
}

.event-banner-dot.active {
  background: white;
  width: 32px;
  max-width: 32px;
  border-radius: 4px;
}

/* About Page Styles */
@media (min-width: 768px) {
  .about-grid-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .about-grid-lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .about-grid-lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  
  .about-order-lg-1 {
    order: 1;
  }
  
  .about-order-lg-2 {
    order: 2;
  }
}

/* 암 예방, 생활 속 실천 Section 모바일 반응형 */
@media (max-width: 767px) {
  .prevention-practice-section .prevention-card {
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
  }
  .prevention-practice-section .prevention-card .prevention-number {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.875rem !important;
  }
  .prevention-practice-section .prevention-card .prevention-text {
    font-size: 0.875rem !important;
  }
  .prevention-practice-section .prevention-list {
    gap: 0.75rem !important;
  }
}

/* 주요 암종별 위험 요인 정리 Section 모바일 반응형 - 3열에서 1열로 변경 */
@media (max-width: 767px) {
  .cancer-types-section .cancer-types-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 암을 일으킬 수 있는 주요 위험 요인 Section 모바일 반응형 - flex-wrap 적용 */
@media (max-width: 767px) {
  .risk-factors-section .risk-factor-card {
    flex-wrap: wrap !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .risk-factors-section .risk-factor-card > div[style*="flex: 1"] {
    text-align: center !important;
  }
  .risk-factors-section .risk-factor-card > div[style*="text-align: right"] {
    text-align: center !important;
  }
}

/* 고위험군 기준 안내 Section 모바일 반응형 - 이미지와 텍스트 세로 나열 */
@media (max-width: 767px) {
  .high-risk-section .high-risk-content {
    flex-direction: column !important;
    align-items: center !important;
  }
  .high-risk-section .high-risk-image {
    width: 100% !important;
    text-align: center !important;
  }
  .high-risk-section .high-risk-image img {
    width: 100% !important;
    max-width: 400px !important;
  }
  .high-risk-section .high-risk-text {
    text-align: center !important;
    width: 100% !important;
  }
}

/* 섹션 타이틀(h2) 모바일 반응형 - 폰트 크기 축소 */
@media (max-width: 767px) {
  .section h2,
  .section .section-title {
    font-size: 1.5rem !important;
  }
}

/* 검진 대상 암종 Section 테이블 모바일 반응형 */
@media (max-width: 767px) {
  .screening-target-section .screening-target-table {
    font-size: 0.875rem !important;
  }
  .screening-target-section .screening-target-table th,
  .screening-target-section .screening-target-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
  }
}

/* p태그 모바일 반응형 - 폰트 크기 축소 */
@media (max-width: 767px) {
  .section p {
    font-size: 0.9375rem !important;
  }
}

/* 암요양병원 선택기준 페이지 - 리스트 세로 나열 (1열) */
.selection-criteria-grid {
  grid-template-columns: 1fr !important;
}

