.text-card {
  --text-card-accent: #2f90e8;
  --text-card-accent-soft: #e8f3fd;
  --text-card-title-color: #152535;
  --text-card-muted: #617783;
  --text-card-bg: #ffffff;
  --text-card-border: rgba(0, 0, 0, 0.04);

  position: relative;
  margin: 24px 0;
  padding: 24px;
  scroll-margin-top: 80px;
  border-radius: 16px;
  background: var(--text-card-bg);
  border: 1px solid var(--text-card-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.text-card:first-child {
  margin-top: 0;
}

.text-card:last-child {
  margin-bottom: 0;
}

.text-card.text-theme-green {
  --text-card-accent: #2d8a4e;
  --text-card-accent-soft: rgba(45, 138, 78, 0.1);
  --text-card-title-color: #1a3320;
}

.text-card.text-theme-gold {
  --text-card-accent: #c88a00;
  --text-card-accent-soft: rgba(195, 136, 0, 0.1);
  --text-card-title-color: #3d2e0a;
}

.text-card.text-theme-slate {
  --text-card-accent: #4a5568;
  --text-card-accent-soft: rgba(74, 85, 104, 0.1);
  --text-card-title-color: #1a202c;
}

.text-card.text-theme-violet {
  --text-card-accent: #6b4fd8;
  --text-card-accent-soft: rgba(107, 79, 216, 0.1);
  --text-card-title-color: #2a1f4e;
}

.text-card-style-soft {
  background: var(--text-card-accent-soft);
}

.text-card-style-outline {
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--text-card-accent) 28%, #ffffff);
}

.text-card-style-accent {
  background: #ffffff;
  border-left: 5px solid var(--text-card-accent);
}

.text-card-style-gradient {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--text-card-accent-soft) 80%, #ffffff) 0%,
    #ffffff 55%,
    color-mix(in srgb, var(--text-card-accent-soft) 40%, #ffffff) 100%
  );
}

.text-card-title,
.text-card > h2.wp-block-heading,
.text-card h2.text-card-title {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-card-title-color);
  scroll-margin-top: 80px;
}

.text-card > h2.wp-block-heading:not(:first-child) {
  margin-top: 28px;
}

.text-card-description,
.text-card > p.wp-block-paragraph {
  margin: 0 0 14px;
  color: var(--text-card-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.text-card > p.wp-block-paragraph:last-child {
  margin-bottom: 0;
}

.text-card-list,
.text-card > ul.wp-block-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.text-card-list li,
.text-card > ul.wp-block-list li {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 12px 10px 36px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  line-height: 1.6;
  color: #3f4f59;
}

.text-card-list li:last-child {
  margin-bottom: 0;
}

.text-card-list li::before,
.text-card > ul.wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text-card-accent-soft);
  color: var(--text-card-accent);
  font-size: 11px;
  font-weight: 700;
}

.text-card-style-soft .text-card-list li,
.text-card-style-gradient .text-card-list li,
.text-card-style-soft > ul.wp-block-list li,
.text-card-style-gradient > ul.wp-block-list li {
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 767px) {
  .text-card {
    margin: 0;
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(213, 233, 230, 0.9);
    box-shadow: 0 18px 45px rgba(30, 76, 92, 0.13);
  }

  .text-card-style-accent {
    padding-left: 18px;
    border-left-width: 5px;
  }

  .text-card-style-soft,
  .text-card-style-gradient {
    background: rgba(255, 255, 255, 0.92);
  }

  .text-card-title,
  .text-card > h2.wp-block-heading {
    font-size: 1.25rem;
  }

  .text-card-list li,
  .text-card > ul.wp-block-list li {
    padding-left: 34px;
    border-radius: 14px;
  }
}
