document.querySelectorAll('a[href^="#"]').forEach(anchor => {
   anchor.addEventListener('click', function (e) {
       e.preventDefault();

       document.querySelector(this.getAttribute('href')).scrollIntoView({
           behavior: 'smooth'
       });
   });
});
/* PRIMARY BUTTON */
.btn-primary-ug {
  background-color: #16345E;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary-ug:hover {
  background-color: #0f2645; /* Slightly darker blue */
  color: white;
}

/* SECONDARY BUTTON */
.btn-secondary-ug {
  background-color: white;
  color: #16345E;
  border: 2px solid #16345E;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.btn-secondary-ug:hover {
  background-color: #16345E;
  color: white;
}
@media (max-width: 768px) {
  .small-mobile-image {
    width: 60% !important;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .event-mobile-style h2 {
    font-size: 1.5rem !important;      /* Smaller heading */
    line-height: 1.3em !important;
    margin-bottom: 0.5rem;
  }

  .event-mobile-style p {
    font-size: 0.95rem !important;     /* Smaller paragraph text */
    line-height: 1.4em !important;
    margin-bottom: 0.75rem;
  }

  .event-mobile-style {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .event-mobile-style .wp-block-buttons {
    margin-top: 0.5rem;
  }

  .event-mobile-style .wp-block-button__link {
    padding: 0.4rem 1rem !important;
    font-size: 0.95rem !important;
  }
}
@media (max-width: 768px) {
  .event-mobile-style .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem; /* controls spacing between buttons */
    margin-top: 0.75rem !important;
  }

  .event-mobile-style .wp-block-button {
    flex: 1 1 auto;
    max-width: 48%;
    padding: 0 !important;
  }

  .event-mobile-style .wp-block-button__link {
    width: 100%;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
  }
}
.custom-columns .wp-block-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 1rem !important;
}
@media (max-width: 767px) {
  .tight-mobile-columns {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .tight-mobile-columns .wp-block-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tight-mobile-columns .wp-block-group {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Equal height for columns inside Gutenberg block editor */
.equal-columns {
  display: flex;
  flex-wrap: wrap;
}

.equal-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 650px; /* Adjust as needed */
}

/* Stack columns on mobile */
@media (max-width: 768px) {
  .equal-columns {
    flex-direction: column;
  }
}