 /* HIDE UNWANTED ELEMENTS ON TEAM VIEWS */
.team_page_wrap_info_over {
    display: none;
}
#jp-relatedposts {
    display: none!important;
}
.jp-relatedposts {
    display: none!important;
}

/* CHANGE TEAM MEMBER DETAIL PAGE TITLE AND ROLE TO THEME BLUE */
.team_member_title,
.team_member_position {
  color: #2968A1 !important;
}

/* Fix scroll issue conflict between ThemeRex and GF */
body .gform_wrapper .gform_body .gform_fields .gfield .gchoice {
    position: relative !important;
}

/* Gravity Forms button and body copy overrides */
.gform_wrapper,
.gform_wrapper p,
.gform_wrapper .gfield_description,
.gform_wrapper .gsection_description {
    color: var(--e-global-color-text);
}
.gform_confirmation_wrapper,
.gform_confirmation_message,
.gform_confirmation_message * {
  color: #000 !important;
}
/* Field Labels */
.gform_wrapper .gfield_label {
    color: var(--e-global-color-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}
/* Gravity Forms Submit Button styled like ThemeREX */
.gform_wrapper .gform_footer .gform_button {
    background: var(--e-global-color-primary);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all .3s ease;
}

/* Hover effect: no color change, just a text underline as the affordance */
.gform_wrapper .gform_footer .gform_button:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* When PayPal Checkout buttons render, hide the standard GF submit button */
.gform_wrapper form:has(.gform_paypal_checkout_buttons) .gform_footer .gform_button,
.gform_wrapper form:has(.gform_paypal_buttons) .gform_footer .gform_button,
.gform_wrapper form:has(.paypal-buttons) .gform_footer .gform_button {
  display: none !important;
}
.gform_wrapper .gform_footer .gform_button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Make the PayPal button group breathe */
.gform_wrapper .gform_paypal_checkout_buttons,
.gform_wrapper .gform_paypal_buttons {
  margin-top: 12px;
}
.gform_wrapper form.gf-has-paypal-buttons .gform_footer .gform_button {
  display: none !important;
}

/* Force full-outline inputs for Gravity Forms */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper select,
.gform_wrapper textarea {
  border: 1px solid rgba(0,0,0,.18) !important;
  border-bottom: 1px solid rgba(0,0,0,.18) !important; /* override underline themes */
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  box-shadow: none !important;
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
  border-color: var(--e-global-color-primary) !important;
  outline: none;
}

/* ===== Donation Form (Form ID 1) - Total styling ===== */

/* Remove the outline / border */
#gform_wrapper_1 .gfield_total input.ginput_total,
#gform_wrapper_1 .ginput_container_total input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Style the dollar amount */
#gform_wrapper_1 .gfield_total input.ginput_total,
#gform_wrapper_1 .ginput_container_total input {
  color: #2968A1 !important;
  font-weight: 800 !important;
  font-size: 2rem !important;   /* ~2x larger */
  padding: 0 !important;
}

/* Force the Mission paragraph widget to blue */
.elementor-element.elementor-element-33d679d,
.elementor-element.elementor-element-33d679d * {
  color: #2968A1 !important;
}
/* Force ONLY that widget's text to blue */
.elementor-element-33d679d .elementor-widget-container,
.elementor-element-33d679d .elementor-widget-container * {
  color: #2968A1 !important;
}

/* Donate card hacks */
.sc_price_item_title span {
    color: #2968A1;
}
.sc_price_item_subtitle span {
    font-weight: 700;
    color: #000;
}

.sc_price.sc_price_light .sc_price_item_details {
    padding-top: 0;
    border-top: none;
}

.sc_price.sc_price_light .sc_price_item_details h5 {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
}

/* Force equal DONATE card heights */
.sc_price_light .sc_price_columns_wrap .sc_price_item {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.sc_price_light .sc_price_item_inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.sc_price_light .sc_price_item_info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sc_price_light .sc_price_item_link {
    margin-top: auto;
}
.sc_price_light .sc_price_columns_wrap .sc_price_item_inner {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sc_price_light .sc_price_columns_wrap .sc_price_item_info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sc_price_light .sc_price_columns_wrap .sc_price_item_link {
    margin-top: auto !important;
}

/*Fix the text button wrapping in donate cards */
.sc_price_item_link.sc_button {
  white-space: normal !important;
  text-align: center !important;
  word-wrap: break-word !important;
  height: auto !important;
  min-height: 51px !important;
}

.sc_price_item_link.sc_button .sc_button_text,
.sc_price_item_link.sc_button .sc_button_title {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}
.sc_price_item_link.sc_button {
  justify-content: center !important;
}

/* Get rid of the truncated footer menu in mobile views */
@media (max-width: 1023px) {
  .sc_layouts_menu.sc_layouts_menu_dir_horizontal .sc_layouts_menu_nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  .sc_layouts_menu_nav > li {
    width: auto !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sc_layouts_menu_nav li.menu-collapse {
    display: block !important;
    width: auto !important;
    position: static !important;
  }

  .sc_layouts_menu_nav > li ul:not(.sc_item_filters_tabs) {
    position: static !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    text-align: center !important;
  }

  .sc_layouts_menu_nav > li ul:not(.sc_item_filters_tabs) li {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sc_layouts_menu_nav > li.menu-collapse > ul {
    left: auto !important;
    right: auto !important;
  }

  .sc_layouts_menu_nav li.menu-collapse > a.sf-with-ul {
    display: none !important;
  }

  .sc_layouts_menu_nav a {
    text-align: center !important;
    display: inline-block !important;
  }

  .sc_layouts_menu #blob {
    display: none !important;
  }
}

/* Improve contrast: footer menu links and copyright text - applies at all breakpoints */
[class*="scheme_"].sc_layouts_item a:not(.sc_button):not([class*="button"]),
[class*="scheme_"].footer_wrap a,
.footer_wrap .sc_layouts_menu_nav a,
.footer_wrap .sc_layouts_menu_nav > li > a,
.footer_wrap p {
  color: #ffffff !important;
}

.footer_wrap .sc_layouts_menu_nav a:hover {
  color: #ffffff !important;
  opacity: 1;
}