/*
Theme Name:   Manasseh Childrens Home
Description:  Modern child theme for Manasseh Childrens Home.
Template:     savior
Version:      1.1.1
Text Domain:  savior-child
*/


:root {
  --progress-foreground: linear-gradient(180deg, #ff5528 0%, #ff5528 100%), linear-gradient(180deg, #fff 0%, #ccc 100%);
  --progressbar-foreground: #28a745;
}
.give-progress-bar {
    background-color: #e0e0e0 !important;
    border-radius: 4px;
    overflow: hidden;
}

#content>.content-wrap {
  display: block !important;
}

.donation-sticky {
    position: sticky;
    top: 30px;
    align-self: flex-start;
}


/* Contact Form 7 Custom Layout */
/* Contact Form 7 - Professional Two-Column Layout */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Two-column grid for Name & Email */
.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Single column for Subject & Message */
.wpcf7-form > p:not(:has(.form-row)) {
  grid-column: 1 / -1;
}

/* Labels */
.wpcf7-form label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.25rem;
}

/* Inputs & Textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #073E9B;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Textarea */
.wpcf7-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
  width: 100%;
  background-color: #073E9B;
  color: white;
  font-weight: 700;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpcf7-form input[type="submit"]:hover {
  background: rgba(7, 62, 155, 0.7) !important;
}

/* Remove default p margins */
.wpcf7-form p {
  margin: 0 !important;
}


/* Error Message Styling */

/* Invalid Input Fields */
.wpcf7-form input[type="text"].wpcf7-not-valid,
.wpcf7-form input[type="email"].wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

/* Error Tip (Below Input) */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Validation Errors Container */
.wpcf7-form .wpcf7-response-output {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Error Message */
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-form .wpcf7-response-output.wpcf7-aborted {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Success Message */
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}

/* Spam Message */
.wpcf7-form .wpcf7-response-output.wpcf7-spam {
  background-color: #fef3c7;
  border: 1px solid #fde047;
  color: #b45309;
}

/* Focus state on invalid inputs */
.wpcf7-form input[type="text"].wpcf7-not-valid:focus,
.wpcf7-form input[type="email"].wpcf7-not-valid:focus,
.wpcf7-form textarea.wpcf7-not-valid:focus {
  outline: none;
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


/* Validation Error Message (General) */
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors {
  background-color: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 0.75rem;
  color: #dc2626;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Error Icon (Pseudo-element) */
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors::before {
  content: "⚠";
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Error Message List (if CF7 outputs a list) */
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors ul {
  margin: 0.75rem 0 0 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors li {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors li::before {
  content: "✗ ";
  color: #ef4444;
  font-weight: bold;
  margin-right: 0.5rem;
}






/* ===== GiveWP Customization ===== */
.givewp-fields-amount__levels-container {
  display: flex !important;
  gap: 1rem !important;
  width: 100% !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

.givewp-fields-amount__level-container {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.givewp-fields-amount__level {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background-color: #fff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Selected/Active Button */
.givewp-fields-amount__level.givewp-fields-amount__level--selected {
  background-color: rgb(88 175 97 / 36%) !important;
  color: #000 !important;
  border-color: #58af61 !important;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0) !important;
}

/* Hover State */
.givewp-fields-amount__level:hover:not(.givewp-fields-amount__level--selected) {
  border-color: #58af61 !important;
  background-color: #f8fafc !important;
}

/* Focus State */
.givewp-fields-amount__level:focus {
  outline: none !important;
  border-color: #58af61 !important;
  box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.0) !important;
}

/* Active Focus State */
.givewp-fields-amount__level.givewp-fields-amount__level--selected:focus {
  box-shadow: 0 0 0 0px rgba(7, 62, 155, 0.0), 0 0px 0px rgba(0, 0, 0, 0.0) !important;
}


.givewp-fields-amount__levels-container {
  display: flex !important;
  gap: 1rem !important;
  width: 100% !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

.givewp-fields-amount__level-container {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.givewp-fields-amount__level {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background-color: #fff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* All inputs within form fields */
.givewp-fields-amount__input-container input, 
.givewp-groups-name input,
.givewp-fields-email-email input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color 0.2s !important;
  margin-top: 0;
}

.givewp-fields-amount__input-container input:focus, 
.givewp-groups-name-name input:focus,
.givewp-fields-email-email input:focus {
  outline: none !important;
  border-color: #073E9B !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Donate Button - Match CF7 submit button */
.givewp-donation-form__steps-button-next, .givewp-donation-form button[type=submit] {
  width: 100% !important;
  background-color: #073E9B !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 0.875rem 1rem !important;
  border: none !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.givewp-donation-form__steps-button-next:hover {
  background-color: rgba(7, 62, 155, 0.9) !important;
}

.givewp-fields__label-text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.2rem
}

/* ===== DONATION SUMMARY ===== */
.givewp-elements-donationSummary {
  background-color: #fff !important;
  border: 1px solid #8c8c8c !important;
  border-radius: 0.5rem !important;
  padding: 1.25rem !important;
}

.givewp-elements-donationSummary__header {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin: 0 0 1rem 0 !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #8c8c8c !important;
}

.givewp-elements-donationSummary__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0.2rem;
}

.givewp-elements-donationSummary__list__item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.4rem 0 !important;
  border-bottom: 1px solid #cccccc !important;
}

.givewp-elements-donationSummary__list__item:last-child {
  border-bottom: none !important;
}

.givewp-elements-donationSummary__list__item__label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.givewp-elements-donationSummary__list__item__value {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

/* Total row styling */
.givewp-elements-donationSummary__list__item--total {
  padding-top: 1rem !important;
  padding-bottom: 0 !important;
  border-top: 2px solid #8c8c8c !important;
  border-bottom: none !important;
  font-weight: 700 !important;
}

.givewp-elements-donationSummary__list__item--total .givewp-elements-donationSummary__list__item__label {
  color: #334155 !important;
  font-weight: 700 !important;
}

.givewp-elements-donationSummary__list__item--total .givewp-elements-donationSummary__list__item__value {
  color: #000 !important;
  font-size: 1rem !important;
}

/* ===== PAYMENT GATEWAYS ===== */
.givewp-fields-gateways {
  
}

.givewp-test-mode-notice {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  background-color: #fef3c7 !important;
  border: 1px solid #fcd34d !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
  margin-bottom: 1.1rem !important;
}

.givewp-test-mode-notice svg {
  flex-shrink: 0 !important;
}

.givewp-test-mode-notice p {
  font-size: 0.875rem !important;
  color: #92400e !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.givewp-fields-gateways__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.givewp-fields-gateways__gateway label {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem !important;
  cursor: pointer !important;
  background-color: #fff !important;
  border-radius: 0.5rem;
}

.givewp-fields-gateways__gateway.givewp-fields-gateways__gateway--active label {
  background-color: #f0f7ff !important;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0rem;
  border-bottom-left-radius: 0rem
}

.givewp-fields-gateways__gateway input[type="radio"] {
  cursor: pointer !important;
  accent-color: #073E9B !important;
}

.givewp-fields-gateways__gateway__label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin: 0 !important;
  flex: 1 !important;
}

.givewp-fields-gateways__gateway.givewp-fields-gateways__gateway--active .givewp-fields-gateways__gateway__label {
  color: #073E9B !important;
}

.givewp-fields-gateways__gateway__icon {
  color: #cbd5e1 !important;
  font-size: 1.25rem !important;
}

.givewp-fields-gateways__gateway.givewp-fields-gateways__gateway--active .givewp-fields-gateways__gateway__icon {
  color: #073E9B !important;
}

.givewp-fields-gateways__gateway__fields {
  padding: 1rem !important;
  background-color: #f8fafc !important;
  border-radius: 0.5rem;
}

.givewp-fields-gateways__gateway.givewp-fields-gateways__gateway--active .givewp-fields-gateways__gateway__fields {
  border-top-left-radius: 0rem;
  border-top-right-radius: 0rem;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

/* Gateway content styling */
.givewp-fields-gateways__gateway__fields p {
  font-size: 0.875rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0.5rem 0 !important;
}

.givewp-fields-gateways__gateway__fields p strong {
  color: #334155 !important;
}

/* ===== DONATION BIRTHDAY FIELD ===== */
.givewp-fields-badger {
  margin-bottom: 1rem !important;
}

.givewp-fields-badger .givewp-fields__label-text {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
}

.givewp-fields-badger input[type="text"] {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color 0.2s !important;
}

.givewp-fields-badger input[type="text"]:focus {
  outline: none !important;
  border-color: #073E9B !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.givewp-browser-sticky-steps {
    display: none;
    position: fixed;
    z-index: 999999;
    background: #fff;
    box-sizing: border-box;
    padding: 0;
}



@media (max-width: 480px) {
  .givewp-donation-form {
    padding: 0px !important;
  }

  .givewp-donation-form__steps-body .givewp-layouts-multiStepForm {
    padding: 0.5rem 0 0 !important;
  }
  .givewp-fields-amount__level {
    padding: 0.75rem 0.1rem !important;
  }
  .givewp-donation-form__steps {
    border: none !important;
  }
}






#masthead .mobile-header .mobile-logo {
  margin: 0;
  width: 100%;
  justify-content: center;
}

/* ========================================================================
   Modern visual system — Manasseh Childrens Home
   ======================================================================== */
:root {
  --mch-navy: #102a43;
  --mch-blue: #073e9b;
  --mch-blue-deep: #062e73;
  --mch-orange: #ff6b35;
  --mch-gold: #ffb547;
  --mch-ink: #1b2b3a;
  --mch-muted: #64748b;
  --mch-surface: #ffffff;
  --mch-canvas: #f5f8fc;
  --mch-line: #e2e8f0;
  --mch-radius-sm: 0.6rem;
  --mch-radius: 1rem;
  --mch-radius-lg: 1.35rem;
  --mch-shadow: 0 12px 32px rgba(16, 42, 67, 0.08);
  --mch-shadow-hover: 0 20px 48px rgba(16, 42, 67, 0.14);
  --mch-transition: 180ms ease;
}

body.ui-light {
  --primary-color-default: var(--mch-blue);
  --primary-color-emphasis: var(--mch-blue-deep);
  --primary-color-tertiary: #2b64bd;
  --secondary-color-default: var(--mch-gold);
  --secondary-color-emphasis: #ed9c26;
  --secondary-color-tertiary: #ffd18c;
  --text-color-default: #526274;
  --text-color-emphasis: var(--mch-ink);
  --text-color-tertiary: #7b8b9c;
  --link-color-default: var(--mch-blue);
  --link-color-hover: var(--mch-blue-deep);
  --background-color-default: var(--mch-surface);
  --background-color-emphasis: #eaf0f8;
  --background-color-tertiary: var(--mch-canvas);
  --border-color-default: var(--mch-line);
  --border-color-emphasis: #c7d2e0;
  --border-color-tertiary: #edf1f6;
  --background-color-field-default: #fff;
  --border-color-field-default: #d6dfeb;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  color: var(--text-color-default, #526274);
  background: var(--background-color-default, #fff);
  font-size: clamp(1rem, 0.96rem + 0.12vw, 1.075rem);
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color-emphasis, var(--mch-ink));
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.65rem + 2.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.3vw, 3rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2.1rem); }
h4 { font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.55rem); }

p,
li {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
  transition: color var(--mch-transition), background-color var(--mch-transition), border-color var(--mch-transition);
}

a:hover {
  color: var(--link-color-hover, var(--mch-blue-deep));
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

::selection {
  color: #fff;
  background: var(--mch-blue);
}

/* Header and navigation */
#masthead {
  position: relative;
  z-index: 60;
}

#masthead .main-header:not([class*="template-"]) {
  padding-inline: clamp(1rem, 4vw, 3.75rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 22px rgba(16, 42, 67, 0.045);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
}

#masthead .main-header .header-wrap {
  width: 100%;
  max-width: 1440px;
  height: clamp(72px, 7vw, 92px);
  margin-inline: auto;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

#masthead .main-header .site-logo {
  max-width: min(32vw, 320px);
  min-width: 0;
  align-items: center;
}

#masthead .main-header .site-logo a,
#masthead .mobile-header .site-logo a {
  text-decoration: none;
}

#masthead .main-header .site-logo img,
#masthead .mobile-header .site-logo img,
#colophon .site-logo img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

#masthead .main-header .site-navigation {
  min-width: 0;
  margin-inline-start: auto;
}

#masthead .main-header .site-search {
  margin-inline-start: 0.4rem;
}

#masthead .main-header .site-search .search-toggle {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--mch-blue);
  background: #edf4ff;
  font-size: 1.15rem;
}

#masthead .main-header .site-search .search-toggle:hover {
  color: #fff;
  background: var(--mch-blue);
}

#masthead .nav-menu.inline-menu > ul,
#masthead .nav-menu.inline-menu > ul.menu {
  align-items: center;
  gap: 0.15rem;
}

#masthead .nav-menu.inline-menu > ul > li > a,
#masthead .nav-menu.inline-menu > ul.menu > li > a {
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  color: var(--mch-ink);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.2;
}

#masthead .nav-menu.inline-menu > ul > li > a:hover,
#masthead .nav-menu.inline-menu > ul.menu > li > a:hover,
#masthead .nav-menu.inline-menu > ul > li.current-menu-item > a,
#masthead .nav-menu.inline-menu > ul.menu > li.current-menu-item > a,
#masthead .nav-menu.inline-menu > ul > li.current-menu-ancestor > a,
#masthead .nav-menu.inline-menu > ul.menu > li.current-menu-ancestor > a {
  color: var(--mch-blue);
  background: #edf4ff;
}

#masthead .nav-menu ul.submenu,
#masthead .nav-menu .dropdown {
  border: 1px solid var(--mch-line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.13);
}

#masthead .mobile-header {
  min-height: 68px;
  height: auto;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--mch-line);
}

#masthead .mobile-header .mobile-logo {
  width: auto;
  max-width: calc(100% - 4.5rem);
  justify-content: flex-start;
  margin: 0 auto 0 0;
}

#masthead .mobile-header .mobile-logo img {
  max-height: 48px;
}

#masthead .mobile-header .navigation-toggle {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.75rem;
  color: var(--mch-blue);
  background: #edf4ff;
}

#masthead .mobile-header .navigation-toggle:hover {
  color: #fff;
  background: var(--mch-blue);
}

/* Text branding is a reliable fallback when the site has not set a logo. */
.site-logo.site-logo-text a::before,
.site-logo.site-logo-text a::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.site-logo.site-logo-text a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--mch-navy);
  text-decoration: none;
}

.site-logo-text-label {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  font-family: var(--headings-font-family, "DM Sans", sans-serif);
  font-size: clamp(1.05rem, 0.8rem + 0.75vw, 1.45rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Page title area */
#page-header {
  position: relative;
  overflow: hidden;
  background-color: #edf4ff;
  background-image: linear-gradient(120deg, rgba(7, 62, 155, 0.07), rgba(255, 181, 71, 0.08));
  border-bottom: 1px solid #e2eaf5;
}

#page-header .header-wrap {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
  padding-block: clamp(2.6rem, 5.5vw, 5rem);
}

#page-header .page-heading {
  max-width: 18ch;
  margin: 0 auto 0.65rem 0;
  color: var(--mch-navy);
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.8rem);
  font-weight: 800;
}

#page-header .page-description {
  max-width: 68ch;
  color: #52677f;
  font-size: clamp(1rem, 0.93rem + 0.35vw, 1.2rem);
}

#page-header .page-trails {
  margin-top: 1rem;
  color: var(--mch-muted);
  font-size: 0.9rem;
}

/* Buttons and links that act as calls to action */
.btn,
.button,
button:not(.ui-unstyled):not(.navigation-toggle),
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.give-btn,
.give-submit,
.give-submit-button,
.wpcf7-submit {
  border-radius: 0.75rem;
  font-weight: 750;
  transition: color var(--mch-transition), background-color var(--mch-transition), border-color var(--mch-transition), box-shadow var(--mch-transition), transform var(--mch-transition);
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.give-btn:hover,
.give-submit:hover,
.give-submit-button:hover,
.wpcf7-submit:hover {
  transform: translateY(-1px);
}

/* Inputs: one consistent, accessible field system */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea,
.form-control {
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  color: var(--mch-ink);
  background-color: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 0.7rem;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.025);
  font: inherit;
  line-height: 1.45;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8b9aad;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover,
.form-control:hover {
  border-color: #b8c8dc;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: 0;
  border-color: var(--mch-blue);
  box-shadow: 0 0 0 3px rgba(7, 62, 155, 0.14);
}

/* Content surfaces and cards */
.post-item .post-inner,
.give_forms-item .give-form-inner,
.wp-block-group.has-background,
.wp-block-media-text,
.wp-block-quote,
blockquote {
  border-radius: var(--mch-radius);
}

.post-item .post-inner,
.give_forms-item .give-form-inner {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(214, 223, 235, 0.85);
  box-shadow: 0 5px 18px rgba(16, 42, 67, 0.04);
  transition: box-shadow var(--mch-transition), transform var(--mch-transition), border-color var(--mch-transition);
}

.post-item:hover .post-inner,
.give_forms-item:hover .give-form-inner {
  border-color: #d2deec;
  box-shadow: var(--mch-shadow);
  transform: translateY(-3px);
}

.post-item .post-thumbnail img,
.give_forms-item .give-form-thumbnail img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.post-item .post-title a,
.give_forms-item .give-form-title a {
  color: var(--mch-ink);
  text-decoration: none;
}

.post-item .post-title a:hover,
.give_forms-item .give-form-title a:hover {
  color: var(--mch-blue);
}

.wp-block-image img,
.wp-block-gallery img,
.wp-block-cover,
.wp-block-media-text__media img {
  border-radius: var(--mch-radius-sm);
}

.wp-block-button__link {
  padding: 0.85rem 1.35rem;
}

blockquote,
.wp-block-quote {
  padding: 1.35rem 1.5rem;
  color: #40546a;
  background: #f3f7fc;
  border-inline-start: 4px solid var(--mch-orange);
}

/* Donation forms: clarity, spacing, and keyboard accessibility */
.give-progress-bar {
  height: 0.65rem;
  background: #e7edf5 !important;
  border-radius: 999px;
  overflow: hidden;
}

.give-progress-bar > span,
.give-progress-bar .give-progress-bar-progress {
  border-radius: inherit;
}

.givewp-donation-form,
.give-form-wrap,
.give-form,
.give-form-content-wrap {
  border-radius: var(--mch-radius-lg);
}

.givewp-donation-form,
.give-form-wrap {
  box-shadow: 0 10px 35px rgba(16, 42, 67, 0.07);
}

.givewp-donation-form button,
.givewp-donation-form input[type="submit"],
.give-form .give-submit,
.give-form input[type="submit"] {
  min-height: 48px;
  font-weight: 800;
}

.givewp-donation-form__steps,
.givewp-donation-form__steps-body,
.givewp-donation-form__steps-footer {
  border-radius: var(--mch-radius);
}

.givewp-fields-amount__level {
  border-radius: 0.65rem !important;
}

.donation-sticky {
  top: 1.5rem;
}

/* Contact Form 7 */
.wpcf7 form {
  gap: 1.15rem;
}

.wpcf7-form .form-row {
  align-items: start;
  gap: 1rem;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
}

.wpcf7-form input[type="submit"] {
  width: auto;
  min-width: 10rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  color: #fff;
  background: var(--mch-blue);
  box-shadow: 0 8px 18px rgba(7, 62, 155, 0.16);
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--mch-blue-deep) !important;
  box-shadow: 0 10px 24px rgba(7, 62, 155, 0.22);
}

.wpcf7 form .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  line-height: 1.55;
}

.wpcf7 form .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  font-size: 0.83rem;
}

/* Footer */
#colophon {
  padding-inline: clamp(1rem, 4vw, 3.75rem);
  background: var(--background-color-footer, var(--mch-navy));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#colophon .footer-wrap {
  width: 100%;
  max-width: 1440px;
  min-height: 108px;
  height: auto;
  margin-inline: auto;
  padding-block: 1.25rem;
  gap: 1rem;
}

#colophon .footer-info {
  color: #c4d0df;
  font-size: 0.875rem;
}

#colophon .footer-navigation ul {
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

#colophon .footer-navigation ul a {
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  color: #e4ecf5;
  font-size: 0.9rem;
}

#colophon .footer-navigation ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#colophon .site-logo.site-logo-text a {
  color: #fff;
}

/* Accessibility, focus rings, and layout resilience */
:focus-visible {
  outline: 3px solid rgba(255, 181, 71, 0.95);
  outline-offset: 3px;
}

.skip-link:focus,
.screen-reader-text:focus {
  z-index: 100000;
  left: 1rem;
  top: 1rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  background: var(--mch-navy);
  border-radius: 0.65rem;
  clip: auto !important;
  width: auto;
  height: auto;
}

#content,
#page,
.site-content,
.main-area,
.main-wrap {
  min-width: 0;
}

hr {
  border-color: var(--mch-line);
}

@media (max-width: 1024px) {
  #masthead .main-header:not([class*="template-"]) {
    padding-inline: 1.25rem;
  }

  #masthead .main-header .header-wrap {
    height: 78px;
  }

  #masthead .main-header .site-navigation {
    margin-inline-start: 0.5rem;
  }

  #masthead .nav-menu.inline-menu > ul > li > a,
  #masthead .nav-menu.inline-menu > ul.menu > li > a {
    padding-inline: 0.55rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  #page-header .header-wrap {
    width: min(100% - 2rem, 1240px);
    padding-block: 2.5rem;
  }

  #page-header .page-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .wpcf7-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
  }

  #colophon .footer-wrap {
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  #colophon .footer-info,
  #colophon .footer-navigation {
    width: 100%;
    justify-content: center;
  }

  #colophon .footer-navigation ul {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #masthead .mobile-header {
    min-height: 62px;
    padding-inline: 0.85rem;
  }

  #masthead .mobile-header .site-logo-text-label {
    font-size: 1.05rem;
  }

  .givewp-donation-form,
  .give-form-wrap {
    border-radius: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
