.treatment-custom-archive-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0px;
  margin-top: 50px;
  margin-bottom: 50px;
  max-width: 1280px;
  position: relative;
  align-items: center;
  z-index: 1;
}

.treatment-hero {
  position: relative;
  padding: 50px 20px;
  text-align: center;
  overflow: hidden;
}

.treatment-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
}

.hero-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #d6c9b2;
  color: #2d2d2d;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: #333;
}

.hero-title span {
  color: #c5a15d;
  font-style: italic;
}

.hero-description {
  max-width: 760px;
  margin: 35px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6c8793;
  font-family: "Inter", sans-serif;
}

.treatment-filter {
  background: #fff;

  padding: 40px;

  border-radius: 30px;
}

.treatment-filter h3 {
  font-family: "Public Sans", Sans-serif;
  font-size: 12px;
  padding: 10px;
  color: var(--e-global-color-secondary);
  text-transform: uppercase;
}

#treatment-search {
  width: 100%;

  padding: 18px 25px;

  border-radius: 50px;
  background: #f3efe9;

  border: 1px solid #ddd;
}

.category-list,
.concern-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 40px;
}

.category-btn,
.concern-btn {
  color: color-mix(in oklab, #333 70%, transparent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f3efe9;
  cursor: pointer;
}

/* Hover effect */
button.category-btn:hover,
button.concern-btn:hover {
  background-color: #333;
  color: #fff;
}

/* Active state */
.category-btn.active,
.concern-btn.active {
  background-color: #333;
  color: #fff;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 17px);
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(10, 10, 10, 0.06);
  align-self: stretch;
}

#treatment-ajax-posts {
  display: flex;
  flex: 1;
  flex-flow: row wrap;
  padding: 10px 0;
  gap: 25px;
  width: 100%;
  align-items: stretch;
  max-width: 1280px;
}

#treatment-ajax-posts .learn-more {
  font-size: 11px;
  padding: 10px;
  color: #333;
}

#treatment-ajax-posts .treatment-card {
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 17px);
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(10, 10, 10, 0.06);
  align-self: stretch;
}

.treatment-card img {
  width: 100%;
  height: 250px;
  display: block;
}

.article.treatment-card h2 {
  font-size: 24px;
  padding: 20px;
  color: #333;
  font-family: "Cormorant Garamond", sans-serif;
}

/* card Style start here */

/* =========================
   Tablet (1024px and below)
========================= */
@media (max-width: 1024px) {
  .treatment-custom-archive-wrapper {
    padding: 40px 30px;
    gap: 40px;
  }

  .treatment-card {
    width: calc(50% - 12px);
  }

  #treatment-ajax-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .treatment-filter {
    padding: 30px;
  }

  .hero-description {
    font-size: 16px;
  }
}

/* =========================
   Mobile (768px and below)
========================= */
@media (max-width: 768px) {
  #treatment-ajax-posts .treatment-card {
    background: #fff;
    width: 48%;
    border-radius: 20px;
    overflow: hidden;
  }

  .treatment-card {
    width: 100%;
    border-radius: 20px;
  }

  .treatment-custom-archive-wrapper {
    padding: 20px 15px;
    margin: 30px auto;
    gap: 30px;
  }

  .treatment-hero {
    padding: 20px 0;
  }

  .hero-badge {
    font-size: 11px;
    padding: 8px 18px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.15;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 20px;
  }

  .treatment-filter {
    padding: 20px;
    border-radius: 20px;
    max-width: 1380px;
  }

  .treatment-filter h3 {
    font-size: 11px;
    padding: 8px 0;
  }

  #treatment-search {
    padding: 14px 18px;
    font-size: 14px;
  }

  .category-list,
  .concern-list {
    gap: 10px;
    margin-bottom: 25px;
  }

  .category-btn,
  .concern-btn {
    font-size: 10px;
    padding: 10px 14px;
    letter-spacing: 1px;
  }

  #treatment-ajax-posts {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .treatment-card img {
    height: 220px;
    object-fit: cover;
  }

  #treatment-ajax-posts h2 {
    font-size: 22px;
  }
}

/* =========================
   Small Mobile (480px and below)
========================= */
@media (max-width: 480px) {
  .treatment-custom-archive-wrapper {
    padding: 15px;
    gap: 25px;
  }

  #treatment-ajax-posts .treatment-card {
    background: #fff;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
  }

  .treatment-filter {
    padding: 15px;
  }

  #treatment-search {
    padding: 12px 16px;
    font-size: 14px;
  }

  .category-btn,
  .concern-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .category-list,
  .concern-list {
    flex-direction: column;
  }

  .treatment-card img {
    height: 200px;
  }

  #treatment-ajax-posts h2 {
    font-size: 20px;
  }
}
