.ad-hospital-card {
  background: #ffffff !important;
  border-radius: 10px;
  /* padding removed so .ad-chat-adbox controls padding */
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.ad-result-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 2rem;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-result-metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.ad-metric .metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f04e23;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-metric .metric-label {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.ad-chatbox {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-header {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-label {
  font-size: 0.7rem;
  color: #fff;
  background: #ff9800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-adbox {
  background: #fff7f0;
  border: 1px solid #ffe1cf;
  border-radius: 12px;
  padding: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-thumbnail {
  font-size: 1.75rem;
}

.ad-chat-info {
  flex: 1;
  background-color: white;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-title {
  font-weight: bold;
  margin: 0;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-meta {
  font-size: 0.75rem;
  color: #999;
  margin: 0.2rem 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-badge {
  font-size: 0.7rem;
  background: #ff5722;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ad-chat-note {
  font-size: 0.75rem;
  color: #999;
  margin: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-bubble {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-bubble.ai {
  background: #ff5722;
  color: #fff;
}

.ad-chat-bubble.user {
  background: #f5f5f5;
  color: #222;
}
/* Card icon and title-row layout for features section */
.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card .title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.card .title-row h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.card .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.card p {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* --- HEADER --- */
.main-header {
  background: white;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

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

.logo img {
  width: 90px;
  height: 30px;
}

.logo span {
  font-size: 1.1rem;
  font-weight: bold;
  color: #d5381d;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  cursor: pointer;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

nav .btn-orange {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
section {
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin: auto;
}
.hero {
  background: #fffaf6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  color: #ff5722;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
/* Features Section Refined */
.features {
  background: #fff;
  margin-top: 2rem;
  padding: 4rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.features h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.features .label {
  background-color: #ffe7d6;
  color: #ff5722;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.features-subtext {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.2rem;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.features .card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 1px solid #ddd;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.features .card:hover {
  transform: translateY(-5px);
  border: 1px solid #333;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.icon-title span {
  font-size: 1.5rem;
}

.icon-title h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.card p {
  font-size: 0.9rem;
  color: #444;
  margin: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.badge {
  display: inline-block;
  background: #f5f5f5;
  font-size: 0.75rem;
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.badge.orange {
  background: #fff2e6;
  color: #ff6600;
}

.badge.red {
  background: #ffe5e5;
  color: #e00;
}

/* --- PRICING SECTION --- */
.pricing h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-grid .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card.popular {
  border: 2px solid #ff5722;
}

.pricing-grid .card .tag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5722;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card .subtitle {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card .price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff5722;
  margin: 0.5rem 0 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card .price.red {
  color: #e60000;
}

.pricing-grid .card .unit {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #444;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card ul li {
  margin-bottom: 0.4rem;
  color: #222;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-grid .card ul li::before {
  content: '✓';
  color: #28a745; /* green check */
  margin-right: 0.5rem;
}

.pricing-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-grid .card button {
  width: 100%;
  margin-top: auto;
}

.btn-orange {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.btn-outline {
  background: white;
  border: 1px solid #ccc;
  color: #222;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.pricing, .howto {
  background: #f9f9f9;
  margin-top: 2rem;
  border-radius: 12px;
}
.footer-language-selector button {
  background-color: white;
  border: none;
  border-radius: 50%;       /* ← 원형 */
  width: 36px;              /* 크기 조정 */
  height: 36px;
  margin: 0 4px;            /* 버튼 사이 간격 */
  font-size: 18px;          /* 이모지 크기 */
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.1); /* 살짝 음영 */
  transition: transform 0.2s;
}

.footer-language-selector button:hover {
  transform: scale(1.1);   /* 호버 시 약간 확대 */
}
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  .hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}


.features-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-heading .label {
  background-color: #ffe7d6;
  color: #ff5722;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.features-heading h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-note p {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.pricing-note .btn-outline.small {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-color: #ff5722;
  color: #ff5722;
}

.howto {
  background: #ef3f1f;
  padding: 4rem 1.5rem;
  color: #fff;
  text-align: center;
  margin-top: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.howto-inner {
  background: #fff;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  color: #111;
  max-width: 860px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.howto h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.howto .highlight {
  color: #ff5722;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.howto .subtext {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.steps > div {
  flex: 1;
  min-width: 200px;
}

@media (min-width: 768px) {
  .steps > div {
    position: relative;
  }

  .steps > div:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 25%;
    right: -1.5rem;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #ff5722;
  }
}

.circle {
  background: #ffeae3;
  color: #ff5722;
  font-weight: bold;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  line-height: 48px;
  margin: 0 auto 0.5rem;
  font-size: 1.2rem;
}

/* Pulse animation for .steps .circle */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.steps .circle {
  animation: pulse 1.5s ease-in-out infinite;
}
.steps div:nth-child(1) .circle {
  animation-delay: 0s;
}
.steps div:nth-child(2) .circle {
  animation-delay: 0.5s;
}
.steps div:nth-child(3) .circle {
  animation-delay: 1s;
}

.step-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.step-desc {
  font-size: 0.85rem;
  color: #555;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.terms {
  font-size: 0.75rem;
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
/* Remove duplicate/conflicting .hero rule that sets flex-wrap/row here, handled in media query */

.hero-left {
  flex: 1;
  min-width: 280px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #ff5722;
  background: #ffeee6;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero h1 .highlight {
  color: #ff5722;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero-subtext {
  margin: 1rem 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero-buttons {
  margin: 1.5rem 0;
}

.hero-buttons .btn-orange {
  background-color: #ff5722;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.hero-buttons .btn-outline {
  background: white;
  color: #ff5722;
  border: 1px solid #ff5722;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 1rem;
  cursor: pointer;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #444;
}

.hero-stats div {
  text-align: center;
}

.hero-stats strong {
  color: #ff5722;
  font-size: 1.2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero-right {
  flex: 1;
  min-width: 300px;
}

.chatbox {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.chat-header {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.chat-header .status {
  font-size: 0.8rem;
  color: green;
}

.chat-header .chat-label {
  margin-left: auto;
  font-size: 0.7rem;
  color: #fff;
  background: #ffcc00;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.chat-bubble.visible {
  animation: fadeSlideIn 0.6s ease forwards;
}

.chat-bubble.user {
  background: #f5f5f5;
  align-self: flex-start;
}

.chat-bubble.ai {
  background: #ff5722;
  color: white;
  align-self: flex-end;
}

/* Footer styles */
.site-footer {
  background: #0d1117;
  color: #ccc;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-brand img {
  width: 90px;
  vertical-align: middle;
  filter: brightness(0) invert(1);

}

.footer-brand h3 {
  color: white;
  margin: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-columns {
  display: flex;
  flex: 2 1 500px;
  gap: 3rem;
}

.footer-columns h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columns ul li {
  margin-bottom: 0.4rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-columns ul li a {
  color: #888;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-columns ul li a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: #888;
  font-size: 0.8rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-company-info {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-company-info h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.footer-company-info p {
  margin: 0.25rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-company-info strong {
  color: #ccc;
}

.footer-links a {
  margin-left: 1.5rem;
  color: #888;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-links a:hover {
  color: #fff;
}
/* Section wrappers for full-width background color and centered content */
.section-wrapper {
  width: 100%;
}

.hero-bg {
  background-color: #fffaf6;
}
.pricing-bg {
  background-color: #f9f9f9;
}
.howto-bg {
  background-color: #ef3f1f;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Scoped hero .container flex for desktop, handled in media query above */
/* 맞춤형 AI 광고 섹션 스타일 */
.ad-ai-bg {
  background: #fff5f0;
}

.ad-ai-section {
  padding: 4rem 1.5rem;
}

.ad-ai-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.ad-ai-left {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  height: 100%;
}

.ad-ai-section {
  display: flex;
  align-items: stretch;
  min-height: 600px; /* or another appropriate value */
}

.ad-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.ad-step-number {
  background: #ff6d3a;
  color: white;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
}

.ad-step-text strong {
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-step-text p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-result-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-ai-right {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-ai-right img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ad-market-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ad-market-icon {
  font-size: 1.5rem;
  background: #ff5722;
  color: white;
  padding: 0.4rem;
  border-radius: 50%;
}

.ad-market-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-click-label {
  font-size: 0.75rem;
  color: #ff5722;
  text-align: center;
  font-weight: bold;
  margin: 0.75rem 0 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-hospital-icon {
  background: fff8f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.ad-hospital-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ad-bot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.ad-bot-avatar {
  background: #ff5722;
  color: #fff;
  width: 36px;
  height: 36px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.status-green {
  color: #28a745;
  font-size: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.ad-market-card {
  background: #fff8f2;
  border: 1px solid #ffe1cf;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-market-card .ad-chat-adbox {
  border: none;
  background: none;
  /* Remove padding override so .ad-chat-adbox padding is respected */
  margin-top: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ad-chat-wrap {
  border: 1px solid #ffd2b3;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  background: #fffdfb;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}



.analysis-section-placement {
  background: #fffaf6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.analysis-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.analysis-graph-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex: 1 1 320px;
  max-width: 400px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-chart-with-axis {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  min-height: 200px;
  height: 200px;
  padding-bottom: 0;
  margin-bottom: 0;
}
.analysis-y-axis {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: 0 0.5rem 0 0;
  border-right: 1px solid #ccc;
  height: 90%;
  margin: 0;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  flex: 1;
  padding: 0;
  gap: 1rem;
  height: 100%;
}
.bar {
  background: #151c2c;
  width: 40px;
  border-radius: 4px 4px 0 0;
  min-height: 100px;
  position: relative;
}
.bar.green {
  background: #2e993f;
  min-height: 15px;
}
.bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 80%;
  text-align: center;
}
.bar-container.black-bar {
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}
.bar-container.green-bar {
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}
/* 툴팁 박스 */
.bar::after {
  content: attr(data-value); /* data-value 속성에서 수치를 가져옴 */
  position: absolute;
  bottom:110%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.5rem;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
/* hover 시 표시 */
.bar:hover::after {
  opacity: 1;
}
.analysis-title {
  background: #e05124;
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.bar-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-comment {
  background: #fff7e6;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-subtext {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-heading {
  text-align: center;
  padding: 2rem 1rem 1.5rem 1rem;
  max-width: 960px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-heading .label {
  background-color: #ffe7d6;
  color: #ff5722;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-heading h2 {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.4;
  color: #222;
  margin: 0;
  padding: 0 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.analysis-heading .highlight {
  color: #ff5722;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Analysis Section Placement Flex Layout */
/* Analysis Section Placement Flex Layout */
.analysis-section-placement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 큰 화면에서만 960px 제한 */
.analysis-section-placement > .evidence-header,
.analysis-section-placement > section.analysis-section-placement {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* 작은 화면에서 max-width 해제 */
@media (max-width: 768px) {
  .analysis-section-placement > .evidence-header,
  .analysis-section-placement > section.analysis-section-placement {
    max-width: none;       /* <- 고정 폭 제거 */
    width: 100%;           /* <- 화면을 꽉 채우도록 */
    padding: 0 1rem;       /* <- 안쪽 여백만 남김 */
    box-sizing: border-box; /* <- padding 포함 계산 */
  }
}