.newsletter_container {
  font-family: "Nunito", sans-serif;
  position: relative;
  max-width: 1440px;
  margin: 4% auto;
  padding: 0 4%;
  box-sizing: border-box;
}

.newsletter_container *,
.newsletter_block * {
  box-sizing: border-box;
}

.newsletter_container_form_body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.newsletter_container_heading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding-bottom: 4px;
}

.newsletter_container_heading h1 {
  position: relative;
  font-size: 36px;
  margin: 0;
}

.newsletter_container_heading h1::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  height: 5px;
  width: 70%;
  background: #00a651;
  border-radius: 20px;
  transform: translate(-50%);
}

/* ---------------------------------------------------------
   Subscribe panel
   --------------------------------------------------------- */
.newsletter_block {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: stretch;
}

.mailchimp-subscription {
  width: 100%;
  max-width: 460px;
}

.mailchimp-subscription .mc-field-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mailchimp-subscription .mc-field-group label {
  display: none;
}
.get_involved_text{
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* input: was missing padding entirely, which is why it looked
   cramped and didn't line up with the button next to it */
.newsletter_subscriber_email_input {
  flex: 1 1 200px;
  height: 48px;
  max-height: 48px;
  padding: 0 16px;
  border-radius: 10px !important;
  border: 1px solid black;
  background: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: #101818;
  transition: border-color 0.2s ease;
}

.newsletter_subscriber_email_input:hover,
.newsletter_subscriber_email_input:focus {
  border-color: #33bfff;
  outline: none;
}

.newsletter_subscriber_email_input::placeholder {
  color: rgba(16, 24, 24, 0.4);
}

.newsletter_btn {
  height: 48px;
  padding: 0 28px;
  background: #009f9c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter_btn:hover {
  background: #00807d;
}

.mailchimp-image-div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.refferal_badge {
  opacity: 0.55;
}

#mce-responses .response {
  font-size: 0.85em;
  margin-top: 8px;
  color: rgba(20, 31, 30, 0.65);
}

.indicates-required,
.mc-field-group > label,
.mailchimp-image-div > p {
  display: none;
}

.mailchimp-subscription address {
  font-style: normal;
  color: rgba(20, 31, 30, 0.65);
  font-size: 15px;
  margin-top: 12px;
  display: block;
}

/* ---------------------------------------------------------
   Year filter
   --------------------------------------------------------- */
.newsletter_form_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 4%;
}

.newsletter_form_block {
  width: 100%;
  max-width: 280px;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.newsletter_form_section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
}

.newsletter_form_section > label {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: rgba(16, 24, 24, 0.75);
  white-space: nowrap;
}

.newsletter_date {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #101818;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009f9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 14px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 0 40px 0 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.newsletter_date:hover,
.newsletter_date:focus {
  border-color: #33bfff;
  outline: none;
}

/* ---------------------------------------------------------
   Newsletter issue grid
   was flex-wrap with % widths (uneven last-row gaps) - now a
   real grid so gaps stay consistent regardless of item count
   --------------------------------------------------------- */
.newsletter_list {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3%;
}

.newsletter_list_show {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.newsletter_body {
  background: #fff;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0px 4px 4px 0px #00000017;
  border: 1px solid #eaeaea;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.newsletter_body:has(a):hover {
  transform: translateY(-4px);
  box-shadow: 0px 10px 24px 0px #0000001a;
  border-color: #33bfff33;
  background-color: #fafeff;
}

.newsletter_body a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.newsletter_body_img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fdff;
  padding: 14%;
  box-sizing: border-box;
}

.newsletter_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.newsletter_body:hover .newsletter_img {
  transform: scale(1.05);
}

.newsletter_body h2 {
  color: #2584b1;
  padding: 16px 12px 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  transition: color 0.25s ease;
}

.newsletter_body:hover h2 {
  color: #009f9c;
}

.newsletter_date_block {
  width: 100%;
  text-align: center;
  padding: 8px 20px 24px;
}

.newsletter_date_block p {
  font-size: 14px;
  color: rgba(20, 31, 30, 0.65);
  margin: 0;
}

/* ---------------------------------------------------------
   Footer newsletter signup (compact variant used in footer.html)
   --------------------------------------------------------- */
.footer_newsletter_section {
  margin-top: 4%;
}

.footer_subscriber_email_input {
  flex: 1 1 auto;
}

/* ---------------------------------------------------------
   Responsive — same breakpoints as the rest of the site
   --------------------------------------------------------- */
@media (max-width: 1200px) {
  .newsletter_list_show {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .newsletter_list_show {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .newsletter_list_show {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .newsletter_form_block {
    max-width: 100%;
  }
  .mailchimp-subscription {
    width: 100%;
    max-width: 100%;
  }
  .mailchimp-subscription .mc-field-group {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter_btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .newsletter_list_show {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .newsletter_subscriber_email_input,
  .newsletter_date {
    height: 44px;
  }
  .newsletter_btn {
    height: 44px;
  }
}