@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --primary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  --secondary: #0f172a;
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f0fdfa;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #2dd4bf;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-base: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.site-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.gnb-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.gnb-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}

.gnb-link:hover, .gnb-link.active {
  color: var(--primary);
}

.gnb-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-cta-btn {
  background: var(--primary-gradient);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ccfbf1 0%, #f8fafc 100%);
  padding: 60px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #99f6e4;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--secondary);
  margin-bottom: 18px;
}

.hero-title span.highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 30px;
}

.hero-info-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.info-tag-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Notice / Summary Box */
.summary-box {
  background: #ffffff;
  border: 1px solid #99f6e4;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.summary-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.summary-box li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.summary-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* 6 Grid Cards Section (Hub-Spoke Gallery) */
.gallery-section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.45;
  margin-bottom: 10px;
  height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.card-btn {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Longform Content Section */
.content-section {
  padding: 50px 0;
}

.article-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 45px 50px;
  box-shadow: var(--shadow-sm);
}

.content-article h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.content-article h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.content-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 26px;
  margin-bottom: 12px;
}

.content-article p {
  font-size: 1.02rem;
  color: #334155;
  margin-bottom: 18px;
  line-height: 1.8;
}

.feature-callout {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 2rem;
  line-height: 1;
}

.callout-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.callout-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  margin-top: 50px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.7;
}

/* Disclaimer */
.disclaimer-box {
  margin-top: 45px;
  padding: 20px;
  background: #f8fafc;
  border: 1px dashed var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Board Table / Post View */
.board-wrap {
  padding: 40px 0 60px;
}

.board-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.board-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.board-count strong {
  color: var(--primary);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.board-table th {
  background: #f8fafc;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 2px solid var(--border-color);
  text-align: center;
}

.board-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  text-align: center;
}

.board-table td.cell-title {
  text-align: left;
  font-weight: 600;
}

.board-table td.cell-title a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-table td.cell-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.board-table tr:hover td {
  background: #f0fdfa;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Post Detail View */
.post-detail-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin: 30px 0 60px;
}

.post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.post-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.post-main-img {
  max-width: 680px;
  margin: 30px auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.post-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 36px;
  margin-bottom: 14px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-nav-btns {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 40px;
}

.btn-list {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.btn-list:hover {
  background: #e2e8f0;
}

/* Clinic Info / CTA Section */
.clinic-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #fff;
  padding: 60px 0;
  margin-top: 60px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
}

.cta-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #2dd4bf;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 8px;
}

.cta-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2dd4bf;
  display: block;
  margin-top: 10px;
  font-family: var(--font-en);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-info h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
  border: none;
  font-size: 1.2rem;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .gnb-list {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .gnb-list.open {
    display: flex;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .article-container, .post-detail-wrap {
    padding: 24px 18px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .board-table th:nth-child(1), .board-table td:nth-child(1),
  .board-table th:nth-child(4), .board-table td:nth-child(4),
  .board-table th:nth-child(5), .board-table td:nth-child(5) {
    display: none;
  }
}
