/* ---------- Desktop: 1025px+ (base) ---------- */
.post-content h1 {
  text-wrap: balance;
}

.post-content .article-container cite {
  font-style: italic;
}

.post-content .article-container .eretec-cta {
  --cta-accent: #B60007;
  --cta-accent-dark: #8E0005;
  margin: 40px 0 80px;
  /* bottom > top: separates CTA from the next H2 */
  text-align: center;
}

.post-content .article-container .eretec-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 14px 24px 14px 14px;
  background: var(--cta-accent);
  color: #fff !important;
  font-family: inherit;
  text-align: left;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(182, 0, 7, .22);
  box-sizing: border-box;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.post-content .article-container .eretec-cta__button:hover {
  transform: translateY(-2px);
}

.post-content .article-container .eretec-cta__button:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}

.post-content .article-container .eretec-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
}

.post-content .article-container .eretec-cta__icon svg {
  width: 22px;
  height: 22px;
}

.post-content .article-container .eretec-cta__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-content .article-container .eretec-cta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: .8;
}

.post-content .article-container .eretec-cta__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.post-content .article-container .eretec-cta__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  margin-left: 6px;
  transition: transform .2s ease;
}

.post-content .article-container .eretec-cta__button:hover .eretec-cta__arrow {
  transform: translateX(4px);
}

/* ---------- Tablet: 768px – 1024px (Elementor default) ---------- */
@media (max-width: 1024px) {
  .post-content .article-container .eretec-cta {
    margin: 36px 0 72px;
  }

  .post-content .article-container .eretec-cta__button {
    gap: 14px;
    padding: 12px 22px 12px 12px;
  }

  .post-content .article-container .eretec-cta__icon {
    width: 42px;
    height: 42px;
  }

  .post-content .article-container .eretec-cta__icon svg {
    width: 20px;
    height: 20px;
  }

  .post-content .article-container .eretec-cta__label {
    font-size: 10px;
  }

  .post-content .article-container .eretec-cta__title {
    font-size: 14px;
  }

  .post-content .article-container .eretec-cta__arrow {
    width: 17px;
    height: 17px;
  }
}

/* ---------- Mobile: ~767px (Elementor default) ---------- */
@media (max-width: 767px) {
  .post-content .article-container .eretec-cta {
    margin: 32px 0 56px;
  }

  .post-content .article-container .eretec-cta__button {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 12px 14px 12px 12px;
  }

  .post-content .article-container .eretec-cta__icon {
    width: 38px;
    height: 38px;
  }

  .post-content .article-container .eretec-cta__icon svg {
    width: 18px;
    height: 18px;
  }

  .post-content .article-container .eretec-cta__label {
    font-size: 10px;
  }

  .post-content .article-container .eretec-cta__title {
    font-size: 13px;
  }

  .post-content .article-container .eretec-cta__arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {

  .post-content .article-container .eretec-cta__button,
  .post-content .article-container .eretec-cta__arrow {
    transition: none;
  }

  .post-content .article-container .eretec-cta__button:hover {
    transform: none;
  }
}

/* ---------- Section heading group: H2 + subtitle ---------- */
.post-content .article-container hgroup {
  margin: 0 0 24px;
}

.post-content .article-container hgroup>h2 {
  margin: 0 0 24px;
}

.post-content .article-container hgroup>h2+p {
  margin: 0;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #333 !important;
}

@media (max-width: 1024px) {
  .post-content .article-container hgroup>h2+p {
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  .post-content .article-container hgroup {
    margin-bottom: 20px;
  }

  .post-content .article-container hgroup>h2 {
    margin-bottom: 8px;
  }

  .post-content .article-container hgroup>h2+p {
    font-size: 15px !important;
  }
}

/* ---------- Section H2 size & spacing from previous section ---------- */
.post-content .article-container section h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.4;
}

.post-content .article-container section+section {
  margin-top: 56px;
  /* gap between previous paragraph and next H2 */
}

@media (max-width: 1024px) {
  .post-content .article-container section h2 {
    font-size: 20px !important;
  }

  .post-content .article-container section+section {
    margin-top: 48px;
  }
}

@media (max-width: 767px) {
  .post-content .article-container section h2 {
    font-size: 19px !important;
  }

  .post-content .article-container section+section {
    margin-top: 40px;
  }
}

/* ---------- Flow step badges (same as white paper .prd-step / .wp-flow) ---------- */
.post-content .article-container .prd-step {
  display: inline;
  padding: 2px 8px;
  margin: 0 1px;
  font-size: 0.88em;
  color: var(--e-global-color-secondary, #202020);
  background: var(--e-global-color-3c7c33d, #F8F8F8);
  border: 1px solid var(--e-global-color-4bc68fe, #D5D5D5);
  border-radius: 4px;
  white-space: nowrap;
  /* keep each badge on one line */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* flow-only paragraph: extra line height so badges don't overlap vertically */
.post-content .article-container .wp-flow {
  display: block;
  line-height: 2.2;
}

.post-content .article-container p .wp-flow {
  margin: 10px 0;
}