/* Custom styles to override Tailwind's preflight */

/* Restore default ul styling */
ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
}

/* WYSIWYG specific formatting - only affects content with this class */
.acf-wysiwyg-content {
  /* Use display: inline-block instead of white-space: pre-line for better line break control */
  display: block;
}

/* Reduce spacing between line breaks in WYSIWYG content */
.acf-wysiwyg-content br {
  display: block;
  content: "";
  margin-top: 0.65em; /* Slightly increased margin for line breaks */
}

/* Reduce paragraph spacing */
.acf-wysiwyg-content p {
  margin-bottom: 0.75em;
}

/* Ensure normal spacing for the last paragraph */
.acf-wysiwyg-content p:last-child {
  margin-bottom: 0;
}

/* Form component styles */
.form-container {
  margin-bottom: 1.5rem;
}

.form-container .wpforms-container {
  margin-bottom: 0;
}

.form-container .wpforms-field {
  padding: 10px 0;
}

.form-container .wpforms-field-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-container .wpforms-field-description {
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #666;
}

.form-container .wpforms-submit-container {
  padding-top: 15px;
}

.form-container .wpforms-submit {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-container .wpforms-submit:hover {
  background-color: #005a87;
}

/* You can add more custom styles here */

/* Mobile Menu Improvements */
.mobile-dropdown button svg.rotate-180 {
  transform: rotate(180deg);
}

.nested-mobile-dropdown button svg.rotate-180 {
  transform: rotate(180deg);
}

/* Override default ul styling for mobile menu */
#mobile-menu-container ul,
#mobile-menu-container .sub-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Nested dropdown animation */
.nested-mobile-dropdown + div {
  display: none;
}

/* Special styling for second level nav items */
.nested-mobile-dropdown button {
  position: relative;
  width: 100%;
  text-align: left;
}
