/* Blog hero — full-cover background image + left-to-right gradient (right side fades) */
.elementor-widget-tas-blog-hero {
  width: 100%;
}

.tas-blog-hero {
  position: relative;
  width: 100%;
  /* margin-left: calc(50% - 50vw); */
  min-height: min(300px, 45vh);
  overflow: hidden;
  background-color: var(--background-color);
}

.tas-blog-hero--has-bg {
  background-image:
    linear-gradient(
      90deg,
      var(--background-color) 0%,
      var(--background-color) 30%,
      rgba(252, 249, 244, 0.96) 42%,
      rgba(252, 249, 244, 0.78) 52%,
      rgba(252, 249, 244, 0.48) 62%,
      rgba(252, 249, 244, 0.22) 72%,
      rgba(255, 255, 255, 0.12) 84%,
      rgba(255, 255, 255, 0.45) 94%,
      rgba(255, 255, 255, 0.72) 100%
    ),
    var(--tas-blog-hero-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.tas-blog-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  width: min(100% - 40px, var(--layout-max-width));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.tas-blog-hero__content {
  width: min(100%, 620px);
}

.tas-blog-hero__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.tas-blog-hero__lead {
  margin: 0;
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .tas-blog-hero {
    min-height: auto;
  }

  .tas-blog-hero__inner {
    padding: 36px 0 40px;
  }

  .tas-blog-hero--has-bg {
    background-image:
      linear-gradient(
        180deg,
        var(--background-color) 0%,
        rgba(252, 249, 244, 0.96) 38%,
        rgba(252, 249, 244, 0.82) 55%,
        rgba(252, 249, 244, 0.55) 72%,
        rgba(255, 255, 255, 0.35) 100%
      ),
      var(--tas-blog-hero-bg);
    background-position: center, center;
  }
}
