/**
 * Dermis 365 Pure - Category Treatments List Component Stylesheet
 * Brand Palette: Botanical Forest Green (#3A4A39), Warm Cream (#FAF8F5) & Gold (#CDAD7B)
 */

.category-treatments-section {
  position: relative;
  padding: 95px 0;
  background-color: var(--color-surface-white, #FFFFFF);
  color: var(--color-text-dark, #1C1D1F);
}

.category-treatments-section.sec-bg {
  background-color: var(--color-cream-bg, #FAF8F5);
}

.category-treatments-section .sec-head .sup {
  color: var(--color-gold-primary, #CDAD7B);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.825rem;
}

.category-treatments-section .sec-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  color: var(--color-text-dark, #1C1D1F);
}

.category-treatments-section .sec-head h2 em {
  color: var(--color-gold-primary, #CDAD7B);
  font-style: italic;
}

.ct-grid-desc {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--color-text-muted, #4A4E57);
}

.ct-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 45px;
}

.ct-img-card {
  position: relative;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-img-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ct-card-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ct-card-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-img-card:hover .ct-card-bg-wrap img {
  transform: scale(1.08);
}

.ct-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(28, 29, 31, 0.3) 0%, 
    rgba(28, 29, 31, 0.75) 60%, 
    rgba(28, 29, 31, 0.92) 100%
  );
  z-index: 2;
  transition: background 0.35s ease;
}

.ct-img-card:hover .ct-card-overlay {
  background: linear-gradient(180deg, 
    rgba(28, 29, 31, 0.2) 0%, 
    rgba(28, 29, 31, 0.7) 50%, 
    rgba(28, 29, 31, 0.95) 100%
  );
}

.ct-card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.ct-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ct-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(58, 74, 57, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ct-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ct-img-card:hover .ct-arrow {
  background: var(--color-gold-primary, #CDAD7B);
  transform: translateX(4px);
}

.ct-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ct-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .ct-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ct-img-card {
    height: 250px;
  }
}
