.newsletter-section {
  position: relative;
  background-size: cover;
  background-position: top;
  z-index: 1;
}

.newsletter-section::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.5);
  z-index: -1;
}

.newsletter-section .ptb-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}
.newsletter-section::before {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(26, 26, 26, 0.9);
  z-index: -1;
}

.newsletter-section .newsletter-content {
  padding-left: 30px;
}

.newsletter-section .newsletter-content h2 {
  color: #ffffff;
  line-height: 1.3;
  margin-top: -10px;
  margin-bottom: 15px;
}

.newsletter-section .newsletter-content p {
  color: #d2d2d2;
  margin-bottom: 30px;
}

.newsletter-section .newsletter-content .newsletter-form .form-control {
  color: #d2d2d2;
  height: auto;
  background: transparent;
  border-radius: var(--button-radius);
  border: 1px solid var(--color-primary);
}

.newsletter-section .primary-btn {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: inline-block;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  border-radius: var(--button-radius);
  border: none;
  padding: 10px 30px;
  z-index: 1;
  color: var(--color-second);
  background-color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--title-font-family);
  line-height: 1.8;
  text-transform: capitalize;
}
.newsletter-section .primary-btn::before,
.newsletter-section .primary-btn::after {
  content: "";
  position: absolute;
  width: calc(50% + 4px);
  height: 0;
  background-color: var(--color-second);
  z-index: -1;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.newsletter-section .primary-btn::before {
  bottom: 0;
  left: 0;
}

.newsletter-section .primary-btn::after {
  top: 0;
  right: 0;
}

.newsletter-section .primary-btn:hover {
  color: var(--color-primary);
}

.newsletter-section .primary-btn:hover::before,
.newsletter-section .primary-btn:hover::after {
  height: 120%;
}

.newsletter-section .cta-btn {
  line-height: 0.8;
}

@media only screen and (min-width: 768px) and(max-width: 991px) {
  .newsletter-section .newsletter-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-left: 0;
  }
  .newsletter-section .ptb-100 {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .newsletter-section .newsletter-content h2 {
    margin-top: -8px;
  }
  .newsletter-section .newsletter-content p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
  }
  .newsletter-section::before {
    width: 100%;
    background: rgba(26, 26, 26, 0.5);
  }
}
@media only screen and (max-width: 767px) {
  .newsletter-section .ptb-100 {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .newsletter-section .newsletter-content {
    text-align: center;
    padding-left: 0;
  }
  .newsletter-section::before {
    width: 100%;
    background: rgba(26, 26, 26, 0.5);
  }
  .newsletter-section .owl-carousel .owl-nav {
    text-align: center;
    position: unset !important;
  }
  .newsletter-section .newsletter-content h2 {
    margin-top: -7px;
  }
}
