@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.newsletter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0f231c;
  padding: 60px 20px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  animation: fadeDown 0.8s ease-out;
  margin-left: 80px;
  margin-right: 80px;
  margin-top: 50px;
}

.newsletter-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newsletter-title {
  position: relative;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  padding-left: 20px;
}

.newsletter-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 3px;
  background-color: #e76f25;
  border-radius: 4px;
}

.newsletter-form {
  display: flex;
  width: 55%;
  background-color: #fff;
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
}

.newsletter-form button {
  padding: 14px 25px;
  background-color: #e76f25;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #d66319;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .newsletter-section {
        width: 90%;
        margin-left: 30px;
      }
      
    .newsletter-container {
      flex-direction: column;
      align-items: stretch;
      text-align: left;
      
    }
  
    .newsletter-form {
      width: 100%;
      margin-top: 20px;
      flex-direction: column;
      border-radius: 12px;
    }
  
    .newsletter-form input[type="email"] {
      border-radius: 12px 12px 0 0;
      text-align: left;
      padding: 15px;
    }
  
    .newsletter-form button {
      border-radius: 0 0 12px 12px;
      padding: 15px;
      width: 100%;
      box-sizing: border-box;
    }
  
    .newsletter-title {
      font-size: 22px;
    }
  }
