/* =========================================
   Case study & blog article styling
   ========================================= */

/* Base typography */
.elementor-widget-theme-post-content h2 {
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.elementor-widget-theme-post-content p {
  margin: 0 0 16px;
}

.elementor-widget-theme-post-content .case-study-section {
  margin: 32px 0;
}

/* ── Callouts ── */
.elementor-widget-theme-post-content [class*="callout-"] {
  padding: 24px;
  border-radius: 8px;
  margin: 16px 0;
}

.elementor-widget-theme-post-content [class*="callout-"] ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}

.elementor-widget-theme-post-content [class*="callout-"] li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 8px;
}

.elementor-widget-theme-post-content [class*="callout-"] li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Callout modifiers */
.elementor-widget-theme-post-content .callout-pink {
  background-color: #FFD0CC;
}
.elementor-widget-theme-post-content .callout-pink li::before {
  color: #ffffff;
  background-color: #FF7466;
}

.elementor-widget-theme-post-content .callout-light-blue {
  background-color: #edf5ff;
}
.elementor-widget-theme-post-content .callout-light-blue li::before {
  color: #ffffff;
  background-color: #1f4e8c;
}

.elementor-widget-theme-post-content .callout-white {
  background-color: #ffffff;
}
.elementor-widget-theme-post-content .callout-white li::before {
  color: #ffffff;
  background-color: #1f4e8c;
}

.elementor-widget-theme-post-content .callout-red {
  color: #ffffff;
  background-color: #ff6254;
}
.elementor-widget-theme-post-content .callout-red li::before {
  color: #ff6254;
  background-color: #ffffff;
}

/* ── Stats cards ── */
.elementor-widget-theme-post-content .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.elementor-widget-theme-post-content .stats-card {
  min-width: 0;
  min-height: 180px;
  padding: 18px 14px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  background-color: #FF7466;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.elementor-widget-theme-post-content .stats-card--red {
  background-color: #FF7466;
}

.elementor-widget-theme-post-content .stats-card__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
  color: #ffffff;
}

.elementor-widget-theme-post-content .stats-card__label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 14ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ── Strategy cards ── */
.elementor-widget-theme-post-content .strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.elementor-widget-theme-post-content .strategy-card {
  min-width: 0;
  padding: 28px 24px;
  border-radius: 12px;
  text-align: left;
}

.elementor-widget-theme-post-content .strategy-card__num {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.elementor-widget-theme-post-content .strategy-card__title {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.elementor-widget-theme-post-content .strategy-card p {
  margin: 0;
  line-height: 1.55;
}

.elementor-widget-theme-post-content .strategy-card--light {
  background-color: #edf5ff;
  color: #16324f;
}
.elementor-widget-theme-post-content .strategy-card--light .strategy-card__num,
.elementor-widget-theme-post-content .strategy-card--light .strategy-card__title {
  color: #16324f;
}

.elementor-widget-theme-post-content .strategy-card--blue {
  background-color: #4791ff;
  color: #ffffff;
}
.elementor-widget-theme-post-content .strategy-card--blue .strategy-card__num,
.elementor-widget-theme-post-content .strategy-card--blue .strategy-card__title {
  color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .elementor-widget-theme-post-content .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .elementor-widget-theme-post-content .stats-card {
    min-height: 160px;
    padding: 16px 12px;
  }

  .elementor-widget-theme-post-content .stats-card__number {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .elementor-widget-theme-post-content .stats-card__label {
    font-size: 0.88rem;
    max-width: 12ch;
  }

  .elementor-widget-theme-post-content .strategy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .elementor-widget-theme-post-content .strategy-card {
    padding: 22px 18px;
  }

  .elementor-widget-theme-post-content .strategy-card__title {
    font-size: 1.25rem;
  }
}

/* ── CTA box ── */
.elementor-widget-theme-post-content .cta-box {
  padding: 40px 32px;
  border-radius: 12px;
  margin: 32px 0;
  text-align: center;
  background-color: #16324f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.elementor-widget-theme-post-content .cta-box__heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #ffffff;
}

.elementor-widget-theme-post-content .cta-box__text {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
}

.elementor-widget-theme-post-content .cta-box__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: #16324f;
  background-color: #ffffff;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.elementor-widget-theme-post-content .cta-box__btn:hover {
  background-color: #edf5ff;
  transform: translateY(-2px);
}

/* CTA modifiers */
.elementor-widget-theme-post-content .cta-box--blue {
  background-color: #4791ff;
}
.elementor-widget-theme-post-content .cta-box--blue .cta-box__btn {
  color: #4791ff;
}
.elementor-widget-theme-post-content .cta-box--blue .cta-box__btn:hover {
  background-color: #f0f7ff;
}

.elementor-widget-theme-post-content .cta-box--red {
  background-color: #FF7466;
}
.elementor-widget-theme-post-content .cta-box--red .cta-box__btn {
  color: #FF7466;
}
.elementor-widget-theme-post-content .cta-box--red .cta-box__btn:hover {
  background-color: #fff5f4;
}

.elementor-widget-theme-post-content .cta-box--light {
  background-color: #edf5ff;
  color: #16324f;
}
.elementor-widget-theme-post-content .cta-box--light .cta-box__heading {
  color: #16324f;
}
.elementor-widget-theme-post-content .cta-box--light .cta-box__text {
  color: rgba(22, 50, 79, 0.75);
}
.elementor-widget-theme-post-content .cta-box--light .cta-box__btn {
  color: #ffffff;
  background-color: #16324f;
}
.elementor-widget-theme-post-content .cta-box--light .cta-box__btn:hover {
  background-color: #1f4e8c;
}

/* CTA responsive */
@media (max-width: 767px) {
  .elementor-widget-theme-post-content .cta-box {
    padding: 32px 24px;
  }

  .elementor-widget-theme-post-content .cta-box__heading {
    font-size: 1.25rem;
  }

  .elementor-widget-theme-post-content .cta-box__text {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .elementor-widget-theme-post-content .cta-box__btn {
    padding: 12px 28px;
    font-size: 0.88rem;
  }
}