.newsletterSection {
  position: relative;
  display: flex;
  margin: 2rem auto 0;
  padding: 3rem 1.5rem;
  align-items: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  /* Section starts hidden, fades in when featured events load */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease-in-out,
    visibility 0.6s ease-in-out;
  overflow: hidden;
}

.newsletterSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1c375b;
  background-image:
    url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000000' stroke-width='2' stroke-opacity='0.1'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1c375b, #6f8197);
  background-size:
    21px 38px,
    auto;
  background-repeat: repeat, no-repeat;
  z-index: 0;
}

/* Show newsletter when featured events are loaded */
.newsletterSection.featured-events-loaded {
  opacity: 1;
  visibility: visible;
}

.newsletterContainer {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.newsletterContent {
  color: white;
  display: flex;
  flex-direction: row;
  gap: 6rem;
  align-items: center;
  justify-content: center;
}

.newsletterColumnOne {
  flex: 0 1 auto;
  max-width: 350px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-60px);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease,
    transform 0.7s ease;
}

.newsletterColumnTwo {
  flex-shrink: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease,
    transform 0.7s ease;
}

.newsletterColumnOne.fly-in,
.newsletterColumnTwo.fly-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

.newsletterHeading {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.newsletterHighlight {
  color: #67e8f9;
}

.newsletterDescription {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

.newsletterNo-spam {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.newsletterCta-button {
  display: inline-block;
  background: linear-gradient(135deg, #CD4236, #a53f3e);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.newsletterCta-button:hover {
  background: linear-gradient(135deg, #e04d40, #CD4236);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
  .newsletterSection {
    padding: 1.5rem 1rem;
  }
  
  .newsletterContent {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  
  .newsletterColumnTwo {
    width: 100%;
  }
  
  .newsletterHeading {
    font-size: 1.5rem;
  }
  
  .newsletterDescription {
    font-size: 0.95rem;
  }
  
  .newsletterCta-button {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
  }
}
