.category .site-main {
    padding-top: 60px;
}

.map-wrapper {
  position: relative;
}

.map-wrapper .map-prompt {
  position: absolute;
  top: 16px;
  left: 70px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  color: #2f3b33;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  width: fit-content;
  max-width: 80%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.map-wrapper iframe,
.map-wrapper .wpgmza_map {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .map-wrapper .map-prompt {
    top: 10px;
    left: 50px;
    font-size: 13px;
    padding: 8px 10px;
  }
}

.hero-subscribe-form .wpforms-container,
.hero-subscribe-form .wpforms-form {
  width: 100%;
}

.hero-subscribe-form .wpforms-field-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-subscribe-form .wpforms-field {
  flex: 1 1 30%;
  min-width: 220px;
  padding: 0;
  margin: 0;
}

.hero-subscribe-form .wpforms-field-label {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-subscribe-form input[type="text"],
.hero-subscribe-form input[type="email"] {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,0.85) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
}

.hero-subscribe-form input::placeholder {
  color: rgba(255,255,255,0.65) !important;
}

.hero-subscribe-form input[type="text"]:focus,
.hero-subscribe-form input[type="email"]:focus {
  outline: none !important;
  border-bottom: 2px solid #7ed957 !important;
}

.hero-subscribe-form .wpforms-submit-container {
  width: 100%;
  text-align: center;
  margin-top: 28px;
}

.hero-subscribe-form button[type="submit"] {
  background: transparent !important;
  color: #ffffff !important;
  border: 3px solid #43A047 !important;
  border-radius: 16px !important;
  padding: 14px 34px !important;
  font-size: 20px;
  font-weight: 700;
  box-shadow: none !important;
}

.hero-subscribe-form button[type="submit"]:hover {
  background: #43A047 !important;
  color: #0b2239 !important;
}

.hero-subscribe-form {
  font-family: "Inter", sans-serif;
}

.hero-subscribe-form button {
  font-weight: 700;
  letter-spacing: 1px;
}

.entry-content > .wp-block-cover:first-of-type,
.entry-content > .wp-block-group:first-child > .wp-block-cover {
  position: relative;
  overflow: visible !important;
}

.entry-content > .wp-block-cover:first-of-type {
  padding-block: 400px !important;
}

.entry-content > .wp-block-cover:first-of-type::after,
.entry-content > .wp-block-group:first-child > .wp-block-cover::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: #F8F9F4;
  clip-path: polygon(0% 100%,0% 70%,5% 60%,10% 52%,15% 47%,20% 45%,25% 47%,30% 52%,35% 58%,40% 63%,45% 65%,50% 63%,55% 58%,60% 52%,65% 47%,70% 45%,75% 47%,80% 52%,85% 58%,90% 63%,95% 65%,100% 60%,100% 100%);
  z-index: 10;
}

.ct-footer {
  padding-top: 2rem;
}

.site-main:not(:has(.wp-block-cover:first-of-type)) {
  padding-bottom: 60px;
}

.search-results .entry-header,
.search-results .page-header,
.ct-container .ct-no-results {
  margin-top: 40px;
}

/* Algolia */
.autocomplete-footer {
  display: none !important;
}

/* Modal dropdown - green background */
.aa-modal-dropdown {
  background: rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

.aa-modal-dropdown .aa-suggestion,
.aa-modal-dropdown .aa-suggestion a,
.aa-modal-dropdown .aa-suggestion span {
  color: #ffffff !important;
}

.aa-modal-dropdown .aa-suggestion.aa-cursor,
.aa-modal-dropdown .aa-suggestion:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* All other dropdowns - white card */
.aa-dropdown-menu:not(.aa-modal-dropdown) {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  overflow-y: auto !important;
}

.aa-dropdown-menu:not(.aa-modal-dropdown) .aa-suggestion,
.aa-dropdown-menu:not(.aa-modal-dropdown) .aa-suggestion a,
.aa-dropdown-menu:not(.aa-modal-dropdown) .aa-suggestion span {
  color: #1B2B23 !important;
}

.aa-dropdown-menu:not(.aa-modal-dropdown) .aa-suggestion.aa-cursor,
.aa-dropdown-menu:not(.aa-modal-dropdown) .aa-suggestion:hover {
  background: #f0f5f0 !important;
}

/* Cap height on search results page inline search */
.search .aa-dropdown-menu:not(.aa-modal-dropdown) {
  max-height: 320px !important;
}

@media (max-width: 768px) {
  .hero-subscribe-form .wpforms-field {
    flex: 1 1 100%;
  }
  .entry-content > .wp-block-cover:first-of-type {
    padding-block: 250px;
  }
}

.event-title {
  color: var(--theme-palette-color-1);
}




.clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* This makes the inner link fill the entire card */
.clickable-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}






/* Events Manager event title links */
.em.em-list .em-item .em-item-title a,
.em.em-list .em-item h3 a,
.em.em-list .em-item h2 a {
    color: #43A047 !important;
}

/* Hover colour */
.em.em-list .em-item .em-item-title a:hover,
.em.em-list .em-item h3 a:hover,
.em.em-list .em-item h2 a:hover {
    color: #F4B400 !important;
}

.fopq-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}



.fopq-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.fopq-event-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  border: 1px solid rgba(63,156,70,0.12);
}

.fopq-event-date {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef7ef;
  color: #3f9c46;
  font-size: 15px;
  font-weight: 700;
}

.fopq-event-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.fopq-event-card h3 a {
  text-decoration: none;
  color: #1d2b24;
}

.fopq-event-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #3f9c46;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.fopq-event-button:hover {
  background: #2f7f35;
  color: #fff;
}


/* Footer links */
footer a,
.ct-footer a,
.site-footer a {
  color: #ffffff !important;
  text-decoration: none;
}

/* Hover state */
footer a:hover,
.ct-footer a:hover,
.site-footer a:hover {
  color: #f4b400 !important;
}



/* Hide Events archive title/description for multiple events on one day in calendar */
.post-type-archive-tribe_events .page-title,
.post-type-archive-tribe_events .archive-title,
.post-type-archive-tribe_events .taxonomy-description,
.post-type-archive-tribe_events .archive-description,
.post-type-archive-event .page-title,
.post-type-archive-event .archive-title,
.post-type-archive-event .taxonomy-description,
.post-type-archive-event .archive-description,
.post-type-archive-tribe_events .hero-section,
.post-type-archive-event .hero-section {
  display: none !important;
}

/* Add top padding back */
.post-type-archive-tribe_events main,
.post-type-archive-event main {
  padding-top: 20pt !important;
}




/* Error page not found font fix */
.error404 h1,
.error404 .page-title,
.error404 .entry-title {
    font-size: 72px !important;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .error404 h1,
    .error404 .page-title,
    .error404 .entry-title {
        font-size: 42px !important;
    }
}


.wp-block-paragraph.newsletter-consent {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
    margin-top: 12px;
}





/* Newsletter section typography */
.wp-block-jetpack-subscriptions,
.wp-block-jetpack-subscriptions *,
.newsletter-consent {
  font-family: "Inter", sans-serif !important;
}

/* Stack email field and button vertically */
.wp-block-jetpack-subscriptions form {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 34px !important;
  max-width: 86vw !important;
  margin: 0 auto !important;
}

/* Hide Jetpack's default inline layout spacing */
.wp-block-jetpack-subscriptions .wp-block-jetpack-subscriptions__form-elements {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  gap: 34px !important;
}

/* Long elegant underline email input */
.wp-block-jetpack-subscriptions input[type="email"] {
  width: min(1180px, 86vw) !important;
  max-width: 1180px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid rgba(255,255,255,0.85) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  padding: 0 0 18px 0 !important;
  text-align: left !important;
}

/* Placeholder */
.wp-block-jetpack-subscriptions input[type="email"]::placeholder {
  color: rgba(255,255,255,0.9) !important;
  opacity: 1 !important;
}

/* Green outlined rounded subscribe button */
.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions input[type="submit"] {
  background: transparent !important;
  color: #fff !important;
  border: 4px solid #2f9e44 !important;
  border-radius: 28px !important;
  padding: 16px 50px !important;
  min-width: 360px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

/* Button hover */
.wp-block-jetpack-subscriptions button:hover,
.wp-block-jetpack-subscriptions input[type="submit"]:hover {
  background: #2f9e44 !important;
  color: #fff !important;
}

/* Consent text */
.newsletter-consent {
  font-size: 17px !important;
  line-height: 1.6 !important;
  opacity: 0.85 !important;
  text-align: center !important;
  max-width: 1100px !important;
  margin: 28px auto 0 auto !important;
}

.newsletter-consent a {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 768px) {
  .wp-block-jetpack-subscriptions input[type="email"] {
    width: 90vw !important;
    font-size: 18px !important;
  }

  .wp-block-jetpack-subscriptions button,
  .wp-block-jetpack-subscriptions input[type="submit"] {
    min-width: 220px !important;
    padding: 14px 42px !important;
    font-size: 18px !important;
    border-radius: 22px !important;
  }

  .newsletter-consent {
    font-size: 14px !important;
    padding: 0 20px !important;
  }
}