/* Critical Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 14px
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #fff8f6;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

/* Critical Variables */
:root {
  --background: #fff8f6;
  --foreground: #1f2937;
  --primary: #d9706a;
  --primary-foreground: #fff;
  --secondary: #fff1ea;
  --muted-foreground: #9ca3af;
  --accent: #f7d6cc;
  --border: #00000014;
  --radius-md: 6px;
  --radius-lg: 8px
}

/* Critical Typography */
.text-display {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2
}

.text-h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600
}

.text-body-lg {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted-foreground)
}

/* Critical Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

/* Critical Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #000;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  max-width: 650px
}

.hero-title {
  margin-bottom: 24px
}

.hero-title .highlight {
  color: var(--primary)
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px
}

/* Critical Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px
}

/* Critical Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 32px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 112, 106, 0.3)
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground)
}

/* Critical Progress & Header */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0%;
  z-index: 9999
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 24px;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.sticky-header.visible {
  transform: translateY(0)
}

.sticky-header.hidden {
  transform: translateY(-100%)
}



/* Critical Breadcrumb */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px
}

.nav-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  list-style: none
}

.nav-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6)
}

/* Critical Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000
}

.skip-link:focus {
  top: 0
}

/* Critical Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* Critical Image Placeholder */
.img-placeholder {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center
}

/* Critical LCP Image Optimization */
.hero-bg {
  content-visibility: auto;
  contain-intrinsic-size: 100vw 100vh
}

/* Reduce CLS */
.hero {
  min-height: 100vh;
  min-height: 100dvh
}

.hero-trust {
  min-height: 80px
}



/* ===== Performance Optimizations ===== */

/* GPU Acceleration for animations */
.hero-bg,
.sticky-header,
.floating-cta,
.back-to-top,
.modal,
.toast {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Contain for layout optimization */
.card,
.testimonial-card,
.program-card,
.faq-item {
  contain: layout style;
}

/* Content visibility for below-fold sections */
.section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Reduce paint for fixed elements */
.reading-progress,
.sticky-header,
.floating-cta,
.back-to-top {
  isolation: isolate;
}

/* Font display optimization */
@font-face {
  font-display: swap;
}

/* Fonts loaded state */
.fonts-loaded body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reduce data mode - disable heavy features */
.reduce-data .hero-bg {
  transform: none !important;
}

.reduce-data .animate-hidden {
  opacity: 1;
  transform: none;
  transition: none;
}

.reduce-data .card:hover,
.reduce-data .program-card:hover {
  transform: none;
  box-shadow: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg {
    transform: none !important;
  }

  .animate-hidden {
    opacity: 1;
    transform: none;
  }
}

/* Image aspect ratio hints to prevent CLS */
img {
  aspect-ratio: attr(width) / attr(height);
}

.hero-bg {
  aspect-ratio: 16 / 9;
}

.doctor-image img {
  aspect-ratio: 3 / 4;
}

/* Skeleton loading states */
.skeleton {
  background: linear-gradient(90deg,
      var(--secondary) 25%,
      var(--muted) 50%,
      var(--secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Image placeholder blur-up effect */
img[loading="lazy"] {
  background: var(--secondary);
  transition: filter 0.3s ease;
}

img[loading="lazy"].loaded {
  filter: blur(0);
}

/* Print optimization */
@media print {

  .sticky-header,
  .floating-cta,
  .back-to-top,
  .reading-progress,
  .modal,
  .modal-overlay,
  .toast-container {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ===== Reading Progress Bar ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== Scroll Animations ===== */
.animate-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid items */
.grid-3 .animate-visible:nth-child(1) {
  transition-delay: 0.1s;
}

.grid-3 .animate-visible:nth-child(2) {
  transition-delay: 0.2s;
}

.grid-3 .animate-visible:nth-child(3) {
  transition-delay: 0.3s;
}

/* ===== Sticky Header ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: space-between;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header.hidden {
  transform: translateY(-100%);
}

.sticky-header-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--foreground);
}

.sticky-header-cta {
  display: flex;
  gap: 12px;
}

.sticky-header .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .sticky-header-logo {
    font-size: 16px;
  }

  .sticky-header .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--secondary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--muted);
}

.modal-body {
  padding: 24px;
}

.modal-form-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Form Styles ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.form-group label .required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.form-group textarea {
  height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 112, 106, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: #e53e3e;
}

.field-error {
  font-size: 14px;
  color: #e53e3e;
  min-height: 18px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ===== Success Message ===== */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #e6f8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: #0f8a66;
}

.success-message h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.success-message p {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* ===== Tooltip ===== */
.tooltip {
  position: absolute;
  background: var(--foreground);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.tooltip.visible {
  opacity: 1;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--foreground);
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-120%);
  transition: transform 0.3s ease;
}

.toast.visible {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #0f8a66;
}

.toast-error {
  border-left: 4px solid #e53e3e;
}

.toast-info {
  border-left: 4px solid var(--primary);
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 80px;
  }
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}



/* 기존 breadcrumb 스타일은 이제 필요 없으므로 삭제하거나 무시하셔도 됩니다. */
.breadcrumb {
  display: none;
}



/* ===== Before/After Slider ===== */
.ba-slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--foreground);
}

/* ===== Tab Navigation ===== */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== Event Banner ===== */
.event-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.event-banner-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.event-banner-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .event-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Site Header & Breadcrumb ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
}

.nav-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.nav-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.nav-breadcrumb li:not(:last-child)::after {
  content: '›';
  color: rgba(255, 255, 255, 0.4);
}

.nav-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-breadcrumb a:hover {
  color: white;
}

.nav-breadcrumb li:last-child {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .nav-breadcrumb {
    display: none;
  }
}

/* ===== CSS Variables (Extended) ===== */
:root {
  --background: #fff8f6;
  --foreground: #1f2937;
  --border: #00000014;
  --input: #ffffff;
  --primary: #d9706a;
  --primary-foreground: #ffffff;
  --secondary: #fff1ea;
  --secondary-foreground: #6b4b44;
  --muted: #f3eded;
  --muted-foreground: #9ca3af;
  --success: #e6f8f0;
  --success-foreground: #0f8a66;
  --accent: #f7d6cc;
  --accent-foreground: #7a423b;
  --destructive: #fceaea;
  --destructive-foreground: #b9382e;
  --warning: #fff4e6;
  --warning-foreground: #8a5a2a;
  --card: #ffffff;
  --card-foreground: #111827;
  --sidebar: #fff6f5;
  --sidebar-foreground: #374151;
  --sidebar-primary: #ffe9e6;
  --sidebar-primary-foreground: #7c2f2a;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font-family-body: 'Inter', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
.text-display {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: 24px;
  font-weight: 600;
}

.text-body-lg {
  font-size: 18px;
  color: var(--muted-foreground);
}

.text-body {
  font-size: 16px;
  color: var(--muted-foreground);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .text-display {
    font-size: 32px;
  }

  .text-h1 {
    font-size: 28px;
  }

  .text-h2 {
    font-size: 24px;
  }

  .text-h3 {
    font-size: 20px;
  }

  .text-body-lg {
    font-size: 18px;
  }
}

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--secondary);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* ===== Components ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 32px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 112, 106, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
  box-shadow: none;
}

.btn-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.btn-kakao:hover {
  background: #F5DC00;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

@media (max-width: 768px) {
  .btn {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 24px;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== Grids ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    gap: 24px;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

/* === 2. 히어로 배경 줌인 효과 === */
@keyframes zoomInEffect {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-bg {
  /* 기존 스타일 유지 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;

  /* 애니메이션 추가 */
  animation: zoomInEffect 20s ease-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 650px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-item {
  text-align: center;
}

.hero-trust-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.hero-trust-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 0 80px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .text-h2 {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 40px;
  }
}

/* ===== Pain Points Section (수정된 띠 효과) ===== */

/* 1. 카드 기본 설정 */
.pain-card {
  position: relative;
  /* 띠(가상요소) 위치 잡기 위해 필수 */
  background-color: var(--accent);
  /* 기본 배경: 연한 살구색 */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* 은은한 테두리 */
  overflow: hidden;
  /* 띠가 둥근 모서리를 넘치지 않게 */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* 부드러운 전환 */
  z-index: 1;
}

/* 2. 상단 띠 (가상 요소로 만들기) */
.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  /* 띠의 두께 */
  background: var(--primary);
  /* 브랜드 컬러 (진한 핑크) */
  transform: scaleX(0);
  /* 처음엔 너비 0으로 숨김 */
  transform-origin: left;
  /* 왼쪽부터 시작 */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

/* 3. 마우스 올렸을 때 (Hover) 효과 */
.pain-card:hover {
  background-color: #ffffff;
  /* 배경이 하얗게 변하면서 깔끔해짐 */
  transform: translateY(-10px);
  /* 위로 쑥 올라감 */
  box-shadow: 0 15px 30px rgba(217, 112, 106, 0.15);
  /* 핑크빛 그림자 */
  border-color: var(--primary);
  /* 테두리도 핑크색으로 */
}

/* 4. 마우스 올렸을 때 띠가 나타남 */
.pain-card:hover::before {
  transform: scaleX(1);
  /* 띠가 100%로 꽉 참 */
}

/* 5. 아이콘 스타일 (기존 유지 + 효과 강화) */
.pain-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pain-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.5s ease;
}

/* 호버 시 아이콘 배경 반전 효과 */
.pain-card:hover .pain-icon {
  background: var(--secondary);
  /* 연한 핑크 배경으로 변경 */
  transform: rotate(-10deg) scale(1.1);
  /* 아이콘 박스 살짝 회전 */
}

/* 호버 시 아이콘 흔들림 */
.pain-card:hover .pain-icon svg {
  animation: shake 0.5s ease-in-out;
}

/* 6. 텍스트 스타일 */
.pain-card h3 {
  margin-bottom: 20px;
  transition: color 0.3s;
}

.pain-card:hover h3 {
  color: var(--primary);
  /* 제목도 핑크색으로 강조 */
}

.pain-card ul {
  padding-left: 20px;
  list-style: disc;
}

.pain-card li {
  color: var(--foreground);
  /* 가독성을 위해 진한 회색 */
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.pain-card:hover li {
  opacity: 1;
  /* 호버 시 글씨가 더 또렷해짐 */
}

/* 흔들림 애니메이션 키프레임 */
@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* 하단 요약 박스 (기존 유지) */
.pain-summary {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary), #e88b85);
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: 0 10px 30px rgba(217, 112, 106, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.pain-summary:hover {
  transform: translateY(-5px);
}

.pain-summary p {
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .pain-summary p {
    font-size: 16px;
  }
}

/* ===== Solution Section (프리미엄 포커스 효과) ===== */

/* 1. 카드 전체 프레임 */
.solution-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* 이미지가 커질 때 밖으로 튀어나가지 않게 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  /* 테두리 공간 확보 */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

/* 2. 마우스 올렸을 때 카드 전체 효과 */
.solution-card:hover {
  transform: translateY(-8px);
  /* 위로 가볍게 떠오름 */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  /* 그림자 깊게 */
  border-color: rgba(217, 112, 106, 0.3);
  /* 연한 핑크색 테두리 */
}

/* 3. 이미지 & 비디오 줌인 효과 */
.solution-card img,
.solution-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s ease;
  /* 천천히 부드럽게 */
  will-change: transform;
}

/* 호버 시 이미지가 1.1배 커짐 */
.solution-card:hover img,
.solution-card:hover video {
  transform: scale(1.1);
}

/* 4. 이미지 영역 래퍼 (오버레이 효과용) */
/* HTML 구조상 이미지가 바로 자식으로 있어서, 가상요소로 빛나는 효과 추가 */
.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* 이미지 영역만큼만 */
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s;
  pointer-events: none;
  z-index: 2;
}

/* 호버 시 이미지 위에 아주 얇은 하얀 막이 걷히며 선명해지는 느낌 */
.solution-card:hover::after {
  background: rgba(255, 255, 255, 0.1);
}


/* 5. 텍스트 콘텐츠 영역 */
.solution-content {
  padding: 40px;
  background: white;
  position: relative;
  z-index: 3;
  /* 이미지보다 위에 있어야 함 */
  transition: background-color 0.3s ease;
}

/* 호버 시 텍스트 배경색이 아주 연한 핑크로 변경되어 '활성화' 느낌 줌 */
.solution-card:hover .solution-content {
  background-color: #fff9f9;
}

/* 6. 제목 스타일 & 밑줄 애니메이션 */
.solution-content h3 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  color: #1f2937;
  transition: color 0.3s;
}

/* 제목 밑줄 만들기 */
.solution-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  /* 처음엔 없음 */
  height: 2px;
  background-color: var(--primary);
  /* 핑크색 선 */
  transition: width 0.4s ease;
}

/* 호버 시 제목 글씨색 변경 + 밑줄 쫙 */
.solution-card:hover h3 {
  color: var(--primary);
}

.solution-card:hover h3::after {
  width: 100%;
}

/* 7. 리스트 스타일 */
.solution-content ul {
  padding-left: 20px;
  list-style: disc;
}

.solution-content li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  transition: opacity 0.3s, transform 0.3s;
}

/* 호버 시 글씨가 더 진해짐 */
.solution-card:hover li {
  color: #4b5563;
  /* 조금 더 진한 회색 */
}

@media (max-width: 768px) {
  .solution-content {
    padding: 24px;
  }
}

/* ===== Programs Section ===== */
.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.program-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

.program-card.featured .program-badge {
  background: var(--primary);
  color: white;
}

.program-card h3 {
  margin-bottom: 12px;
}

.program-card .text-body {
  margin-bottom: 24px;
  min-height: 48px;
}

.program-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.program-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--foreground);
}

.program-feature svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.program-tagline {
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.program-price {
  margin-top: 20px;
  padding: 16px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

.program-price .label {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.program-price .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}

/* ===== Process Section ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  text-align: center;
}

.process-number {
  font-size: 40px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 16px;
  color: var(--muted-foreground);
}

/* ===== Differentiators Section ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.diff-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.diff-icon {
  width: 64px;
  height: 64px;
  background: var(--secondary);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-icon svg {
  width: 32px;
  height: 32px;
  color: var(--foreground);
}

.diff-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.diff-content p {
  font-size: 16px;
  color: var(--muted-foreground);
}

/* ===== Doctor Section ===== */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* === 원장님 사진 흑백 -> 컬러 반전 효과 === */
.doctor-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(100%);
  /* 기본 상태: 흑백 */
  transition: filter 0.5s ease, transform 0.5s ease;
}

/* 마우스 올렸을 때 동작 */
.doctor-image:hover img {
  filter: grayscale(0%);
  /* 컬러로 복귀 */
  transform: translateY(-5px);
  /* 살짝 위로 떠오름 */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.doctor-content .text-h2 {
  margin-bottom: 16px;
}

.doctor-quote {
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
}

.doctor-credentials {
  margin-bottom: 32px;
}

.doctor-credentials p {
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-credentials .note {
  font-weight: 400;
  color: var(--muted-foreground);
}

.doctor-bio {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ===== Testimonials Section ===== */
.testimonial-card {
  padding: 32px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-info {
  flex-grow: 1;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-procedure {
  font-size: 14px;
  color: var(--muted-foreground);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #FFC107;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-content {
  font-size: 16px;
  color: var(--foreground);
  line-height: 1.65;
}

.testimonial-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ===== FAQ Section ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  color: var(--foreground);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--secondary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ===== Footer CTA ===== */
.footer-cta {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: white;
  text-align: center;
}

.footer-cta .text-h2 {
  margin-bottom: 24px;
  color: white;
}

.footer-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

@media (max-width: 640px) {
  .footer-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

.footer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-info p {
  margin-bottom: 12px;
}

.footer-disclaimer {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  line-height: 1.65;
}

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.phone {
  background: var(--primary);
  color: white;
}

.floating-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* 로고 감싸는 컨테이너 */
.sticky-header-logo {
  display: flex;
  /* 이미지 세로 중앙 정렬을 위해 사용 */
  align-items: center;
  /* 수직 중앙 정렬 */
  justify-content: flex-start;
  /* 좌측 정렬 (필요 시 center로 변경) */
  width: auto;
  /* 컨텐츠 크기에 맞춤 */
  height: 100%;
  /* 부모 헤더 높이에 맞춤 */
  padding: 10px 0;
  /* 상하 여백 */
}

/* 로고 이미지 자체 */
.sticky-header-logo img {
  max-width: 150px;
  /* 로고가 너무 커지지 않도록 최대 너비 제한 (조절 가능) */
  height: auto;
  /* 비율 깨지지 않게 높이 자동 조절 */
  display: block;
  /* 이미지 하단 미세한 여백 제거 */
  object-fit: contain;
  /* 이미지가 찌그러지지 않고 영역 안에 들어오게 함 */
}

.solution-image img {
  width: 100%;
  /* 부모 영역 너비에 꽉 차게 */
  height: auto;
  /* 비율 유지 */
  display: block;
  /* 하단 여백 제거 */
  border-radius: 8px;
  /* 모서리 둥글게 (선택사항) */
}

/* === 1. 스크롤 등장 애니메이션 === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 순차적으로 등장하게 만드는 지연 효과 (그리드 아이템용) */
.grid-3>.reveal-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}

.grid-3>.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

.grid-3>.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

/* === 3. 카드 호버 인터랙션 강화 === */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  /* 위로 10px 떠오름 */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  /* 그림자 깊게 */
}

/* 통증 카드 아이콘 흔들림 효과 */
.pain-card:hover .pain-icon svg {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* 프로그램 카드 뱃지 색상 반전 효과 */
.program-card:hover .program-badge {
  background-color: var(--primary);
  color: #fff;
  transition: all 0.3s;
}

/* === 4. 텍스트 하이라이트 (빛나는 효과) === */
.highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
  /* 기본 색상 */
  background: linear-gradient(to right, #d9706a 0%, #fff 50%, #d9706a 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  font-weight: 800;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* === 신뢰도 섹션 호버 효과 === */
.hero-trust-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  cursor: default;
  /* 커서는 기본 모양 유지 */
  padding: 10px;
  /* 호버 영역 확보 */
  border-radius: 8px;
}

/* 마우스 올렸을 때 */
.hero-trust-item:hover {
  transform: translateY(-10px) scale(1.05);
  /* 위로 붕 뜨면서 커짐 */
  background: rgba(255, 255, 255, 0.1);
  /* 배경에 살짝 빛나는 효과 */
  backdrop-filter: blur(4px);
  /* 배경 흐림 효과로 고급스럽게 */
}

/* 숫자/텍스트 색상 강조 */
.hero-trust-item:hover .hero-trust-number,
.hero-trust-item:hover .hero-trust-label {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  /* 글자 주변에 빛나는 광채(Glow) 추가 */
  opacity: 1;
}

/* === 프로세스 섹션: 인터랙티브 카드 디자인 === */

/* 1. 각 단계(STEP) 카드화 */
.process-step {
  padding: 30px 20px;
  /* 내부 여백 확보 */
  border-radius: 20px;
  /* 둥근 모서리 */
  background: transparent;
  /* 평소엔 배경 없음 */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 부드러운 움직임 */
  position: relative;
  z-index: 1;
}

/* 마우스를 올렸을 때 카드가 살아나는 효과 */
.process-step:hover {
  background: #fff;
  /* 흰색 배경 생김 */
  box-shadow: 0 20px 40px rgba(217, 112, 106, 0.15);
  /* 핑크빛 그림자 */
  transform: translateY(-15px);
  /* 위로 쑥 올라옴 */
}

/* 2. 숫자 디자인 변경 (고스트 넘버 스타일) */
.process-number {
  font-size: 60px;
  /* 숫자를 더 크게 키움 */
  font-weight: 800;
  color: transparent;
  /* 속은 투명하게 */
  -webkit-text-stroke: 1px #d1d5db;
  /* 테두리만 회색으로 */
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.4s ease;
}

/* 마우스를 올렸을 때 숫자가 채워짐 */
.process-step:hover .process-number {
  color: var(--primary);
  /* 병원 테마색(핑크)으로 채움 */
  -webkit-text-stroke: 0px;
  /* 테두리 제거 */
  transform: scale(1.1) rotate(-5deg);
  /* 살짝 커지면서 기울어짐 (포인트) */
}

/* 3. 설명 텍스트도 진하게 */
.process-step p {
  transition: color 0.3s;
}

.process-step:hover p {
  color: var(--foreground);
  /* 설명 글씨가 더 또렷해짐 */
}

/* === 왜 라프린인가? (차별점 섹션) 인터랙티브 효과 === */

/* 1. 각 항목을 카드로 변신시킬 준비 */
.diff-item {
  padding: 25px;
  /* 호버 시 배경이 생길 공간 확보 */
  border-radius: 20px;
  /* 부드러운 모서리 */
  background: transparent;
  /* 평소엔 투명 */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  /* 테두리 깜빡임 방지 */
}

/* 마우스 올렸을 때: 카드가 솟아오름 */
.diff-item:hover {
  background: #fff;
  /* 배경색 등장 */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  /* 고급스러운 그림자 */
  transform: translateY(-8px);
  /* 위로 가볍게 뜸 */
  border-color: rgba(217, 112, 106, 0.1);
  /* 아주 연한 핑크 테두리 */
}

/* 2. 아이콘 박스 변신 효과 (모핑 애니메이션) */
.diff-icon {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* 호버 시: 사각형 -> 원형으로 변하면서 색상 반전 */
.diff-item:hover .diff-icon {
  background: var(--primary);
  /* 브랜드 컬러(진한 핑크)로 변경 */
  color: #fff;
  /* 아이콘 선 색상을 흰색으로 */
  border-radius: 50%;
  /* 동그라미로 변신 (포인트!) */
  transform: rotate(-10deg) scale(1.1);
  /* 살짝 회전하며 커짐 */
  box-shadow: 0 5px 15px rgba(217, 112, 106, 0.4);
  /* 아이콘 자체에도 빛나는 그림자 */
}

/* 3. 제목 텍스트 강조 */
.diff-content h4 {
  transition: color 0.3s;
}

.diff-item:hover .diff-content h4 {
  color: var(--primary);
  /* 제목도 핑크색으로 하이라이트 */
}

/* 4. 아이콘 내부 SVG 미세 조정 */
.diff-icon svg {
  transition: transform 0.4s ease;
}

.diff-item:hover .diff-icon svg {
  transform: scale(1.1);
  /* 아이콘 알맹이도 살짝 커짐 */
}

/* === 자주 묻는 질문(FAQ) 인터랙티브 효과 === */

/* 1. FAQ 카드 움직임 설정 */
.faq-item {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* 부드러운 움직임 */
  border: 1px solid transparent;
  /* 테두리 공간 미리 확보 (움직일 때 덜컹거림 방지) */
}

/* 마우스 올렸을 때: 살짝 뜨면서 그림자 */
.faq-item:hover {
  transform: translateY(-5px);
  /* 위로 붕 뜸 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  /* 그림자 깊게 */
  z-index: 1;
  /* 다른 카드보다 위로 */
}

/* 2. 질문이 열렸을 때 (Active 상태) 강조 */
.faq-item.active {
  border-color: var(--primary);
  /* 테두리가 핑크색으로 변함 (포인트!) */
  box-shadow: 0 8px 25px rgba(217, 112, 106, 0.15);
  /* 은은한 핑크빛 그림자 */
  transform: scale(1.01);
  /* 아주 살짝 커져서 강조됨 */
}

/* 3. 열린 질문의 텍스트 스타일 */
.faq-item.active .faq-question {
  color: var(--primary);
  /* 질문 글씨도 핑크색으로 */
  font-weight: 900;
  /* 더 굵게 */
  background-color: #fff;
  /* 배경 깔끔하게 정리 */
}

/* 4. 화살표 아이콘 애니메이션 강화 */
.faq-question svg {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* 띠용~ 하고 튕기는 느낌 */
}

/* 열렸을 때 화살표가 회전하며 커짐 */
.faq-item.active .faq-question svg {
  transform: rotate(180deg) scale(1.2);
  color: var(--primary);
  /* 아이콘 색상 변경 */
}

/* === 시술 후기(Testimonials) 섹션 디자인 강화 === */

/* 1. 리뷰 카드 기본 스타일 업그레이드 */
.testimonial-card {
  position: relative;
  /* 인용구 배치를 위해 */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* 쫀득한 움직임 */
  border: 1px solid transparent;
  overflow: hidden;
  /* 배경 장식 넘침 방지 */
  z-index: 1;
}

/* 배경에 은은한 큰 따옴표 장식 추가 */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 120px;
  font-family: serif;
  color: rgba(217, 112, 106, 0.05);
  /* 아주 연한 핑크색 */
  line-height: 1;
  z-index: -1;
  transition: transform 0.4s ease;
}

/* 2. 마우스 올렸을 때 (호버 효과) */
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  /* 위로 뜨면서 살짝 커짐 */
  background: #fff;
  border-color: rgba(217, 112, 106, 0.3);
  /* 테두리에 핑크빛 */
  box-shadow: 0 15px 40px rgba(217, 112, 106, 0.1);
  /* 핑크빛 그림자 */
}

/* 호버 시 따옴표 장식 움직임 */
.testimonial-card:hover::before {
  transform: rotate(15deg) scale(1.2);
  color: rgba(217, 112, 106, 0.1);
  /* 조금 더 진해짐 */
}

/* 3. 별점 반짝임 애니메이션 */
@keyframes star-twinkle {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* 호버 시 별들이 순차적으로 반짝임 */
.testimonial-card:hover .testimonial-stars svg {
  animation: star-twinkle 0.6s ease-in-out infinite alternate;
}

/* 별들마다 박자 다르게 주기 (자연스러운 반짝임) */
.testimonial-card:hover .testimonial-stars svg:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(2) {
  animation-delay: 0.1s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(3) {
  animation-delay: 0.2s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(4) {
  animation-delay: 0.3s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(5) {
  animation-delay: 0.4s;
}

/* 4. 프로필 아이콘(아바타) 효과 */
.testimonial-avatar {
  transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: rotate(-10deg) scale(1.1);
  /* 갸우뚱하며 커짐 */
  box-shadow: 0 0 15px rgba(217, 112, 106, 0.4);
  /* 후광 효과 */
}

/* === 모바일 레이아웃 최적화 (세로 길이 단축 & 사진 교정) === */
@media (max-width: 768px) {

  /* 1. 히어로 섹션 높이와 여백 확 줄이기 */
  .hero {
    min-height: auto;
    /* 화면 꽉 채우기 강제 해제 */
    padding-top: 90px;
    /* 상단 여백 축소 (헤더 높이 고려) */
    padding-bottom: 40px;
    /* 하단 여백 축소 */
    /* 100vh 대신 적당한 높이감을 주되 스크롤 유도 */
  }

  /* 2. 배경 사진 위치 조정 (핵심!) */
  .hero-bg {
    /* 모델의 얼굴/가슴 라인이 잘 보이도록 중심점을 위로 이동 */
    /* 수치 조절: center 20% (위쪽 20% 지점을 보여줌) */
    object-position: center 20% !important;
    opacity: 0.5;
    /* 글씨가 잘 보이게 배경을 조금 더 어둡게 */
  }

  /* 3. 텍스트 크기 다이어트 */
  .hero-title {
    font-size: 37px !important;
    /* 제목 크기 줄임 */
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 18px !important;
    margin-bottom: 20px;
    word-break: keep-all;
    /* 단어가 뚝뚝 끊기지 않게 */
  }

  /* 4. [공간 절약 핵심] 버튼 2개를 '한 줄'로 배치 */
  .hero-cta {
    flex-direction: row !important;
    /* 가로 배치 강제 */
    gap: 8px;
  }

  .hero-cta .btn {
    flex: 1;
    /* 버튼 너비를 반반씩 차지 */
    width: auto;
    height: 48px;
    /* 버튼 높이도 살짝 줄임 */
    font-size: 14px;
    padding: 0 10px;
  }

  /* 5. 하단 경력/인증(25+...) 부분 축소 */
  .hero-trust {
    margin-top: 24px;
    padding-top: 16px;
    gap: 12px;
    justify-content: center;
    /* 가운데 정렬 */
  }

  .hero-trust-number {
    font-size: 20px !important;
    /* 숫자 크기 줄임 */
  }

  .hero-trust-label {
    font-size: 14px !important;
    /* 글자 크기 줄임 */
  }
}

/* === 고민 해결 요약 배너(Pain Summary) 효과 === */

.pain-summary {
  position: relative;
  overflow: hidden;
  /* 빛이 박스 밖으로 나가는 것 방지 */

  /* 1. 살아 숨 쉬는 그라데이션 배경 */
  background: linear-gradient(45deg, #d9706a, #e88b85, #d9706a);
  background-size: 200% 200%;
  animation: bgBreathing 6s ease infinite;
  /* 6초마다 색상이 부드럽게 흐름 */

  box-shadow: 0 15px 30px rgba(217, 112, 106, 0.3);
  /* 핑크빛 그림자 */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* 테두리에 살짝 빛나는 선 */
  transition: all 0.3s ease;
}

/* 배경 그라데이션 애니메이션 */
@keyframes bgBreathing {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 2. 주기적으로 빛이 '스윽' 지나가는 효과 (Shine) */
.pain-summary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  /* 투명 -> 흰색 빛 -> 투명 */
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  /* 빛을 비스듬하게 */
  animation: shineSweep 5s infinite;
  /* 5초마다 한 번씩 빛남 */
}

@keyframes shineSweep {

  0%,
  80% {
    left: -100%;
    opacity: 0;
  }

  /* 80% 시간 동안은 안 보임 (휴식) */
  81% {
    opacity: 1;
  }

  100% {
    left: 200%;
    opacity: 1;
  }

  /* 휙 지나감 */
}

/* 3. 마우스 올렸을 때 반응 */
.pain-summary:hover {
  transform: scale(1.02) translateY(-5px);
  /* 살짝 커지며 위로 뜸 */
  box-shadow: 0 20px 50px rgba(217, 112, 106, 0.5);
  /* 그림자가 진해짐 */
  cursor: default;
}

/* ===== Before & After Section (Interactive) ===== */

/* 1. 그리드 레이아웃 (기존 동일) */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 2. 카드 박스 디자인 */
.ba-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* 평소에는 옅은 그림자와 투명한 테두리 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

/* 3. 마우스 올렸을 때 (Hover) 카드 효과 */
.ba-card:hover {
  transform: translateY(-10px);
  /* 위로 붕 떠오름 */
  box-shadow: 0 20px 40px rgba(217, 112, 106, 0.15);
  /* 핑크빛 그림자 */
  border-color: var(--primary);
  /* 테두리가 핑크색으로 변함 */
}

/* 4. 헤더 영역 (CASE 뱃지 + 제목) */
.ba-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  transition: background 0.3s;
}

/* 호버 시 헤더 배경 살짝 밝게 */
.ba-card:hover .ba-header {
  background: #fff9f9;
}

/* 5. CASE 뱃지 디자인 */
.ba-badge {
  background: #1f2937;
  /* 기본 검정 */
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* 호버 시 뱃지가 핑크색으로 변신 (포인트!) */
.ba-card:hover .ba-badge {
  background: var(--primary);
  transform: scale(1.1);
}

.ba-case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  transition: color 0.3s;
}

.ba-card:hover .ba-case-title {
  color: var(--primary);
  /* 제목도 핑크색으로 */
}

/* 6. 이미지 비교 박스 */
.ba-compare-box {
  display: flex;
  width: 100%;
  position: relative;
}

.ba-img-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  /* 이미지 확대 시 튀어나감 방지 */
}

.ba-img-wrap:first-child {
  border-right: 2px solid #fff;
  /* 사진 사이 구분선 */
}

/* 이미지 줌인 효과 */
.ba-img-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 쫀득한 확대 */
}

/* 카드에 마우스 올리면 사진 확대 */
.ba-card:hover .ba-img-wrap img {
  transform: scale(1.1);
}

/* 7. Before / After 라벨 */
.ba-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  transition: all 0.3s ease;
}

.ba-label.before {
  background: rgba(31, 41, 55, 0.8);
  /* 반투명 검정 */
}

.ba-label.after {
  background: rgba(217, 112, 106, 0.9);
  /* 반투명 핑크 */
}

/* 호버 시 After 라벨 강조 효과 */
.ba-card:hover .ba-label.after {
  padding: 12px 0;
  /* 라벨이 위로 쑥 올라옴 */
  background: rgba(217, 112, 106, 1);
  /* 불투명하게 진해짐 */
  letter-spacing: 2px;
  /* 글자 간격 넓어짐 */
}

/* 8. 하단 설명 텍스트 */
.ba-desc {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--muted-foreground);
  text-align: center;
  border-top: 1px solid var(--border);
  margin: 0;
  background-color: #fcfcfc;
  transition: color 0.3s;
}

.ba-card:hover .ba-desc {
  color: #1f2937;
  /* 글씨가 더 선명해짐 */
  font-weight: 500;
}

/* 반응형 */
@media (max-width: 992px) {
  .ba-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ba-img-wrap img {
    height: 200px;
  }

  .ba-header {
    padding: 16px 20px;
  }

  .ba-case-title {
    font-size: 18px;
  }
}

/* ===== 전후사진 섹션 전용 배경색 ===== */
.section-gray {
  background-color: #f8f9fa;
  /* 아주 연한 회색 */
  border-top: 1px solid #e5e7eb;
  /* 위쪽 구분선 */
  border-bottom: 1px solid #e5e7eb;
  /* 아래쪽 구분선 */
}

/* (선택사항) 만약 카드가 배경이랑 너무 비슷하면 카드 그림자를 더 진하게 */
.section-gray .ba-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* ===== New Section: Stem Cell Technology (Warm Brand Tone) ===== */

/* 1. 배경 설정: 위(살구색), 아래(회색)와 다른 '화이트->연한 핑크' 그라데이션 */
.section-tech {
  /* 아주 연한 핑크빛이 감도는 화이트 그라데이션으로 화사함 강조 */
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF0F2 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* 2. 텍스트 스타일 */
.tech-subtitle {
  font-size: 18px;
  color: var(--muted-foreground);
  /* 차분한 회색 */
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tech-highlight {
  /* 사이트 메인 컬러(Coral Pink) 사용 */
  color: var(--primary);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

/* 텍스트 뒤 은은한 강조선 */
.tech-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(217, 112, 106, 0.15);
  /* Primary 컬러의 투명도 조절 */
  z-index: -1;
  border-radius: 4px;
}

/* 3. 레이아웃 중앙 정렬 */
.tech-content-wrapper {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 4. 이미지 스타일 & 둥둥 떠다니는 효과 */
.tech-image-box {
  position: relative;
  margin: 20px auto 40px;
  display: inline-block;
  animation: floatTech 4s ease-in-out infinite;
}

.tech-img {
  max-width: 100%;
  width: auto;
  /* 그림자를 붉은 계열로 넣어 따뜻한 느낌 */
  filter: drop-shadow(0 20px 30px rgba(217, 112, 106, 0.15));
  position: relative;
  z-index: 2;
}

.tech-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  /* 핑크빛 후광 효과 */
  background: radial-gradient(circle, rgba(255, 241, 234, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

@keyframes floatTech {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 5. 정보 카드 (하얀색 박스 + 핑크 테두리 포인트) */
.tech-info-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  /* 그림자와 테두리로 따뜻한 느낌 전달 */
  box-shadow: 0 10px 30px rgba(217, 112, 106, 0.08);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 241, 234, 1);
  /* 아주 연한 살구색 테두리 */
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ffe5e0;
  /* 연한 핑크 점선 */
}

.tech-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* 번호 디자인 (메인 컬러 활용) */
.tech-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  /* 메인 핑크색 */
  background: #fff1ea;
  /* 연한 살구색 배경 */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-text {
  font-size: 17px;
  font-weight: 600;
  color: #4b5563;
  /* 진한 회색 텍스트 */
  letter-spacing: -0.01em;
}

/* 6. 하단 약속 문구 (캡슐 형태) */
.tech-promise {
  display: inline-block;
  background: white;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: #6b7280;
  border: 1px solid #ffe5e0;
}

.promise-highlight {
  color: var(--primary);
  /* 메인 핑크색 강조 */
  font-weight: 800;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .section-tech {
    padding: 60px 0;
  }

  .tech-info-card {
    padding: 24px;
  }

  .tech-text {
    font-size: 16px;
  }

  .tech-item {
    gap: 12px;
  }

  .tech-promise {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

/* ===== 3 Core Technologies Section ===== */

/* 1. 그리드 레이아웃 */
.tech3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .tech3-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* 2. 카드 스타일 */
.tech3-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
  /* 강제로 보이게 설정 */
  transform: none !important;
  /* 강제로 위치 고정 */
}

.tech3-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(217, 112, 106, 0.15);
  border-color: rgba(217, 112, 106, 0.3);
}

/* 3. 이미지 영역 */
.tech3-icon-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech3-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tech3-card:hover .tech3-img {
  transform: scale(1.1);
}

/* 4. 번호 뱃지 */
.tech3-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 5. 텍스트 */
.tech3-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tech3-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
  word-break: keep-all;
}

.tech3-content p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.tech3-content b {
  color: var(--primary);
  font-weight: 700;
}

/* 프로세스 단계 텍스트 강조 스타일 */
.process-step p b {
  color: var(--primary);
  /* 브랜드 포인트 컬러 적용 */
  font-weight: 700;
  /* 굵기 강조 */
}

/* ===== Language Selector ===== */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 4px;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted-foreground);
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s;
}

.lang-dropdown li a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.lang-dropdown li a.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--secondary);
}

@media (max-width: 768px) {
  .lang-btn {
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* === 2026-11-23 accessibility fixes (UI audit, tools/a11y_fixes.py): contrast 4.5:1, text >= 12px, heading size === */
:root{--primary:#b04a45;--muted-foreground:#5f6672}
.hero-title .highlight{color:#d9706a} /* on the dark hero photo the original coral reads better */
.text-display{font-size:clamp(32px,4.2vw,42px)}
.ba-badge{font-size:14px}
@media (max-width:768px){.hero-trust-label{font-size:14px!important}}
.footer-info{color:rgba(255,255,255,.7)} /* was .4 = 3.8:1 */
.process-step h3{font-size:20px;font-weight:800;margin-bottom:12px}
.diff-content h3{font-size:20px;font-weight:600;margin-bottom:8px;transition:color .3s}
.diff-item:hover .diff-content h3{color:var(--primary)}
