  /* ============================================================
     ROAM SEOUL — TREATMENTS PAGE (FINAL VERSION)
     ============================================================ */

  /* === Font Declarations (match global) === */
  @font-face {
    font-family: 'Proxima Nova';
    src: url('/fonts/ProximaNova-Regular.woff2') format('woff2'),
         url('/fonts/ProximaNova-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: 'Proxima Nova';
    src: url('/fonts/ProximaNova-Semibold.woff2') format('woff2'),
         url('/fonts/ProximaNova-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
  }

  @font-face {
    font-family: 'Proxima Nova';
    src: url('/fonts/ProximaNova-Bold.woff2') format('woff2'),
         url('/fonts/ProximaNova-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
  }

  @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Inter:wght@400;500&display=swap');


  /* === Root Variables === */
  :root {
    --brand: #3C1EB7;
    --ink: #1B1F3A;
    --lavender: #F8F6FF;
  }


  /* === Page Background === */
  body {
    background: linear-gradient(180deg, #F6F3FF 0%, #FAF9FC 100%);
  }


  /* ============================================================
     HERO SECTION
     ============================================================ */
  .treatments-hero {
    background: transparent;
    color: var(--ink);
    text-align: center;
    padding: 32px 24px 0px;
    position: relative;
  }

  .treatments-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.08), transparent 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
  }

  .treatments-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
  }

  .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
  }

  .hl-seoul {
    background: linear-gradient(90deg, var(--brand) 0%, #7E63FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: rgba(27, 31, 58, 0.7);
    margin: 18px auto 0;
    max-width: 680px;
  }


  /* ============================================================
     SPECIALTY FILTER PILLS
     ============================================================ */
.specialty-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.specialty-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Horizontal scroll on small screens */
@media (max-width: 600px) {
  .specialty-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    padding-left: 24px;
  }
  
  .specialty-filter-bar::-webkit-scrollbar {
    display: none;
  }
  
  .specialty-filter-wrap {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-right: 24px;
  }
}

.specialty-pill {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  border: 1.5px solid rgba(60, 30, 183, 0.2);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--ink);
  min-height: auto !important;
  height: auto;
  line-height: 1.3;
  white-space: nowrap;
}

.specialty-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.specialty-pill.active {
  background: linear-gradient(90deg, var(--brand) 0%, #6B4CFF 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(60, 30, 183, 0.15);
}

.specialty-block {
  margin-bottom: 56px;
}



/* ============================================================
 SPECIALTY HEADING
 ============================================================ */
.specialty-heading {
  font-family: 'Montserrat';
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 40px auto 16px;
  padding-left: 24px;
  max-width: 1320px; /* matches grid container */
}



/* ============================================================
   CLUSTER CARDS
   ============================================================ */
.cluster-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 80px; /* increases space for CTA */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(60, 30, 183, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.cluster-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(60, 30, 183, 0.15);
}

.cluster-card.open {
  border-color: rgba(60, 30, 183, 0.4);
}

/* Icon Wrapper */
.cluster-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(60, 30, 183, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(60, 30, 183, 0.05);
}

.cluster-icon img {
  width: 40px;
  height: 40px;
  opacity: 0.9;
  object-fit: contain;
}

.cluster-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.cluster-desc {
  font-family: 'Proxima Nova', sans-serif;
  color: rgba(0,0,0,0.65);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cluster-description {
  height: 66px;           /* ≈ 3 lines at 22px line-height */
  overflow: hidden;
  margin-bottom: 16px;    /* space before pills */
}

.cluster-description p {
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;/* adjust to match your current text rhythm */
}


.see-clinics-cta {
  position: absolute;
  bottom: 24px;
  left: 28px;

  font-size: 14px;
  font-weight: 600;
  color: #3C1EB7;
  text-decoration: none;
  transition: 0.2s ease;
}

.see-clinics-cta:hover {
  opacity: 0.6;
  transform: translateX(2px);
}

/* ============================================================
   COLLAPSIBLE CTA — match card-link hierarchy
   ============================================================ */
.cluster-toggle {
  background: transparent;
  border: none;
  font-family: 'Proxima Nova';
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  margin-bottom: 6px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cluster-toggle:hover {
  opacity: 0.8;
  transform: translateX(3px);
}


  /* ============================================================
     COLLAPSIBLE TREATMENT LIST
     ============================================================ */
  /* .cluster-treatments {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.35s ease;
    padding-left: 4px;
  }

.cluster-card.open .cluster-treatments {
  opacity: 1;
  transform: translateY(0);
  padding-top: 10px;
} */

.treatment-item {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 0.95rem;
  padding: 6px 0;
  display: block;
  color: var(--brand);
  text-decoration: none;
}

.treatment-item:hover {
  text-decoration: underline;
}

.treatment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;           /* smaller padding */
  font-size: 13px;             /* slightly smaller font */
  font-weight: 600;
  color: #3C1EB7;

  background: rgba(93, 63, 232, 0.06); /* subtle background */
  border: 1px solid rgba(93, 63, 232, 0.22); 
  border-radius: 999px;

  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
   background: rgba(93, 63, 232, 0.12); /* subtle hover */
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 840px) {
  .treatments-hero {
    padding: 80px 20px 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .specialty-heading {
    font-size: 1.6rem;
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  .treatments-hero {
    padding: 70px 16px 32px;
  }

  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .specialty-heading {
    font-size: 1.4rem;
  }
  
  .cluster-card {
    padding: 24px 20px 72px;
  }
  
  .cluster-grid {
    padding: 0 16px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }
}

/* === Mobile Navigation Overrides === */
@media (max-width: 840px) {
  .context-search {
    display: none;
  }
  
  .nav-toggle {
    display: inline-flex;
  }
}

/* === Cluster Grid Layout === */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* max 3 per row */
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 24px;

}


@media (max-width: 900px) {
  .cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cluster-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow: hidden;
  }
  
  .cluster-card {
    max-width: 100%;
    overflow: hidden;
  }
}
