.newsletter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 5px;
  background: linear-gradient(180deg, #071227, #071a2b);
  box-sizing: border-box;
  padding: 3rem;
  margin-bottom: 5px;
}

/* box 1 */
.newsletter1 {
  background: linear-gradient(
  135deg,
  #ffffff 0%,
  #f8fafc 28%,
  #f97316 52%,
  #2563eb 100%
);
  height: 10px;
  border-radius: 5px;
  width: 100%;
}

/* box 2 */
.newsletter_slider {
  position: relative;
  width: 100%;
  height: 30%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 5px;
}

.newsletter_slide {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 3rem 2.5rem 4.5rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;

  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.newsletter_slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.newsletter__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fafafa;
}

.newsletter__description {
  margin: 1rem 0 0;
  color: #fafafa;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
}

.newsletter__button {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #fafafa;
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.newsletter__button:hover {
  transform: translateY(-3px);
  background: #f1f1f1;
}

.newsletter_dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 5;
}

.newsletter_dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 100%;
  cursor: pointer;
  background: linear-gradient(
  135deg,
  #ffffff 0%,
  #f8fafc 28%,
  #f97316 52%,
  #2563eb 100%
);
}

.newsletter_dot.is-active {
  background: #fafafa;
}

@media (max-width: 768px) {
  .newsletter {
    padding: 0rem;
    margin-bottom: 5px;
  }
  .newsletter_slider {
    min-height: 400px;
    border-radius: 5px;
  }
  .newsletter1 {

    border-radius: 5px;
    margin: 1rem auto;
    width: 80%;
  }
}
