
/* NAV FIX FOR PAGES THAT DONT USE NEW TEMPALTE - USES SAME WIDTH AS NEW NAV	*/
body.donate-stuff:not(.page-template-template-website-refresh) .site-header .storefront-primary-navigation .col-med {
    max-width: 1690px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important; 
}





/*start of fix menu responsive when viewing pages without new template*/

/* ==========================================================================
   STAGE 1: SMALLER/TIGHTER DESKTOP MENU (1400px down to 1171px)
   Keeps the desktop menu alive but makes it more compact
   ========================================================================== */
@media (max-width: 1650px) and (min-width: 1171px) {
    /* 1. Apply your preferred 18px font and tighten padding */
    body.donate-stuff:not(.page-template-template-website-refresh) .main-navigation ul.menu li a {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 18px !important;
    }

    /* 2. THE EMERGENCY SQUEEZE: Triggers at 1400px to stop the 1382px jump */
    @media (max-width: 1400px) {
        body.donate-stuff:not(.page-template-template-website-refresh) .main-navigation ul.menu li a {
            font-size: 15px !important; /* Drops just enough to save the line */
            padding-left: 4px !important;
            padding-right: 4px !important;
        }
        body.donate-stuff:not(.page-template-template-website-refresh) .site-header .button {
            min-width: 140px !important; /* Slimmer buttons for the tight squeeze */
            font-size: 11px !important;
            padding: 10px 12px !important;
        }
    }

    /* 3. Minimize all gaps in the header container */
    body.donate-stuff:not(.page-template-template-website-refresh) .site-header .col-med {
        gap: 8px !important;
    }
}

/* ==========================================================================
   STAGE 2: MOBILE MENU SWITCH (1170px and below)
   Stacks the logo and menu button vertically and centers both
   ========================================================================== */
@media (max-width: 1170px) {
    /* 1. Hide the desktop menu items */
    body.donate-stuff:not(.page-template-template-website-refresh) .main-navigation ul.menu,
    body.donate-stuff:not(.page-template-template-website-refresh) .secondary-navigation {
        display: none !important;
        font-size: 13px !important;
    }

    /* 2. Force the header container to stack vertically */
    body.donate-stuff:not(.page-template-template-website-refresh) .site-header .col-med {
        display: flex !important;
        flex-direction: column !important; /* This forces the stacked look */
        align-items: center !important;    /* Centers everything horizontally */
        gap: 0 !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* 3. Style the Logo for Mobile */
    body.donate-stuff:not(.page-template-template-website-refresh) .site-branding {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 20px !important; /* Space between logo and menu button */
        padding: 0 !important;
        width: 100% !important;
    }

    /* 4. Center the "Menu" Button */
    body.donate-stuff:not(.page-template-template-website-refresh) .menu-toggle {
        display: inline-block !important;
        margin: 0 auto !important;
        float: none !important; /* Removes legacy floats that cause offset */
    }

    /* 5. Header padding adjustment */
    body.donate-stuff:not(.page-template-template-website-refresh) #masthead {
        padding: 0 !important;
    }

    body.donate-stuff:not(.page-template-template-website-refresh) .site-header .storefront-primary-navigation .main-navigation {
      text-align: center !important;
    }
}

/*end of fix menu responsive when viewing pages without new template*/






/* SCHEDULE DONATION PAGE ZIP CODE ELEMENT FIX - TARGETS ONLY THAT PAGE	*/
.page-id-266250 #ds-fe__order-form #ds-fe__lead-wrapper {
  justify-content: center !important;
}

/* GLOBAL RESIZE FIX (Paired with bayli.js) - Stops the mobile menu from flashing when dragging the window size */
.no-transitions * {
  transition: none !important;
}

/* Removes padding from #masthead ONLY on pages NOT using the refresh template */
body.donate-stuff:not(.page-template-template-website-refresh) #masthead {
    padding: 0 !important;
}

/**************************************************************************************************/
/*!		GLOBAL DEFS	*/
/**************************************************************************************************/

:root {


  /**************************************************************************************************/
  /*!		BLACKS	*/
  /**************************************************************************************************/

  --ds-black-op05:			rgba(0, 0, 0, 0.05);
  --ds-black-op08:			rgba(0, 0, 0, 0.08);
  --ds-black-op10:			rgba(0, 0, 0, 0.10);


  /**************************************************************************************************/
  /*!		WHITES	*/
  /**************************************************************************************************/
  --ds-white:					#ffffff;


  /**************************************************************************************************/
  /*!		GRAYS	*/
  /**************************************************************************************************/
  --ds-gray:					#94a3b8;
  --ds-gray-blue-dark:		#6a7282;
  --ds-x:						#4a5568;
  --ds-x:						#475569;


  /**************************************************************************************************/
  /*!		BLUES	*/
  /**************************************************************************************************/
  --ds-blue:					#015dab;
  --ds-blue-light:			#90d5f9;

  /**************************************************************************************************/
  /*!		GREENS	*/
  /**************************************************************************************************/
  --ds-green:					#02a950;
  --ds-green-op70:			rgba(1, 169, 79, 0.7);
  --ds-green-op30: 			rgba(2, 169, 80, 0.3);
  --ds-peppermint: 			#d1f2e1;



  --ds-2: #f0f7ff;
  --ds-4: #f4f7fa;
  --ds-x: #f7fafc;

  --ds-x: #e2e8f0;
  --ds-x: #f3f4f6;
  --ds-x: #f1f5f9;
  --ds-x: #d1d5dc;
  --ds-x: #f0f0f0;
  --ds-x: #cbd5e0;



  --ds-navy: #1a2b3c;
  --ds-navy: #1e293b;

  --ds-x: #111827;
  --ds-x: #101828;

  --ds-x: rgba(1, 93, 171, 0.3);
  --ds-x: rgba(1, 93, 171, 0.12);
  --ds-x: rgba(1, 93, 171, 0.15);




}

/**************************************************************************************************/
/*!		NORMALIZE BUTTONS	*/
/**************************************************************************************************/

footer button,
button[id^="ds-fe_"],
a.wp-block-button__link {

  border-radius: 30px !important;

  font-family: "filson-pro", sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 14px !important;
  letter-spacing: 1.2px !important;
  transition: all 0.3s ease !important;
}

a.wp-block-button__link .uagb-button__link {
  font-family: "filson-pro", sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 14px !important;
  letter-spacing: 1.2px !important;
  transition: all 0.3s ease !important;
}


/**************************************************************************************************/
/*!		FOOTER	*/
/**************************************************************************************************/

/* --- 1. Footer Background & Swoosh (High-Power Overlap) --- */
.refresh-footer {
  /* Kill the white background here so the swoosh is truly transparent */
  background-color: transparent !important;
  padding: 0 !important;
  position: relative !important;
  margin-top: -50px !important; /* Pulls the curve up over the blog cards */
  z-index: 100 !important;
}

.footer-swoosh {
  width: 100% !important;
  line-height: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.footer-swoosh img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* This is where the white background actually starts (below the curve) */
.footer-main-container {
  background-color: var(--ds-white) !important;
  max-width: 100% !important; /* Ensures the white stretches edge-to-edge */
  margin: 0 !important;
  padding: 60px 0 40px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* --- 2. Newsletter Overlap Card --- */
.footer-newsletter-card {
  max-width: 1100px !important;
  /* Adjusted margin to sit perfectly on top of the curved swoosh */
  margin: -140px auto 0 !important;
  background: var(--ds-2) !important;
  border-radius: 24px !important;
  padding: 40px 60px !important;
  box-shadow: 0 25px 60px rgba(1, 93, 171, 0.12) !important;
  position: relative !important;
  z-index: 100 !important; /* This forces it to the absolute front */
}

/**************************************************************************************************/
/*!		NEWSLETTER	*/
/**************************************************************************************************/

/* 1. The Parent Container */
.newsletter-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
    width: 100% !important;
}

/* 2. The Left Side (The Text) - Force to 50% */
.newsletter-intro {
    flex: 1 1 50% !important; /* Takes exactly half the space */
    width: 50% !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* 3. The Right Side (The Form) - Force to 50% */
.newsletter-form-wrapper {
    flex: 1 1 50% !important; /* Takes exactly half the space */
    width: 50% !important;
    max-width: none !important; /* Remove the 500px/650px limit */
}

/* 4. The White Pill (Inside the Form side) */
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields {
    max-width: 100% !important; /* Fills the right 50% of the card */
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
}

/* 5. Ensure the Input box stretches inside that pill */
.newsletter-form-wrapper .gfield.gfield--type-email {
    flex-grow: 1 !important;
}

.newsletter-form-wrapper input[type=email] {
    width: 100% !important;
}

.newsletter-intro {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.newsletter-icon img {
  width: 60px !important;
  height: auto !important;
}

.newsletter-title h3 {
  font-size: 25px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--ds-navy) !important;
}

.newsletter-title h3 span {
  color: var(--ds-blue) !important;
}

.newsletter-title p {
  font-size: 14px !important;
  color: var(--ds-gray) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.newsletter-form {
  display: flex !important;
  background: #f8fafc !important;
  border-radius: 50px !important;
  padding: 6px 6px 6px 25px !important;
  width: 100% !important;
  max-width: 500px !important;
  border: 1px solid #e2e8f0 !important;
}

.input-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-grow: 1 !important;
}

/* .input-wrapper i {
  color: var(--ds-gray) !important;
}

.newsletter-form input {
  border: none !important;
  background: transparent !important;
  font-size: 15px !important;
  outline: none !important;
}

.newsletter-form input[type=email] {
  box-shadow: none;
}

.newsletter-form button {
  background: var(--ds-blue) !important;
  color: var(--ds-white) !important;
  border: none !important;
  padding: 14px 30px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: 0.3s !important;
}

.newsletter-form button:hover {
  background: var(--ds-green) !important;
} */


/**************************************************************************************************/
/*!		GRAVITY FORMS NEWSLETTER STYLING	*/
/**************************************************************************************************/

/* 1. The White Pill Container - Cleaned & Widened */
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important; /* Pushes input left, button right */
    background: #f8fafc !important;
    border-radius: 50px !important;
    padding: 6px 6px 6px 25px !important;
    width: 100% !important;
    max-width: 600px !important; /* Set this to your preferred width */
    border: 1px solid #e2e8f0 !important;
    align-items: center !important;
    grid-template-columns: none !important; /* Kill the grid conflict */
}

/* Remove default list styling and margins */
.newsletter-form-wrapper .gform_wrapper ul.gform_fields, 
.newsletter-form-wrapper .gform_wrapper .gform_fields {
    margin: 0 !important;
    list-style: none !important;
}

/* 2. The Email Field - Force it to stretch and eat the empty space */
.newsletter-form-wrapper .gfield.gfield--type-email {
    flex-grow: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* 3. The Actual Text Input */
.newsletter-form-wrapper input[type=email] {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    color: var(--ds-navy) !important;
}

/* 4. The Button Wrapper - Prevents the button from being pushed/stretched */
.newsletter-form-wrapper .gfield.gfield--type-submit {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. THE GHOST KILLER - Completely nuke the hidden anti-spam field space */
.newsletter-form-wrapper .gform_validation_container,
.newsletter-form-wrapper .gfield_visibility_hidden {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 1. The Main Button State */
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields .gfield.gfield--type-submit input[type="submit"],
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields .gfield.gfield--type-submit button[type="submit"] {
    background-color: var(--ds-blue) !important;
    color: var(--ds-white) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 1.2px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* 2. The Hover State - Flip to Green */
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields .gfield.gfield--type-submit input[type="submit"]:hover,
.newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields .gfield.gfield--type-submit button[type="submit"]:hover {
    background-color: var(--ds-green) !important;
}

/* 5. Handling the Envelope Icon */
/* Since Gravity Forms doesn't natively include the <i> tag, 
   we can add the envelope icon using a pseudo-element on the field li */
/* .newsletter-form-wrapper .gfield {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-grow: 1 !important;
    margin: 0 !important;
}

.newsletter-form-wrapper .gfield::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    color: var(--ds-gray) !important;
} */

/* Hide labels and descriptions for that clean look */
.newsletter-form-wrapper .gfield_label,
.newsletter-form-wrapper .gfield_description,
.newsletter-form-wrapper .gform_validation_container {
    display: none !important;
}

 .newsletter-form-wrapper .gform_footer {
      display: none !important;
     }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .newsletter-form-wrapper .gform_wrapper.gravity-theme .gform_fields {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 15px !important;
        display: flex !important;
    }
    
    /* 1. Reset all fields (Removes the accidental white pill from the submit button wrapper) */
    .newsletter-form-wrapper .gfield,
    .newsletter-form-wrapper .gform_footer {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* 2. Apply the white pill specifically to the FIRST field (the email input) */
    .newsletter-form-wrapper .gfield:first-child {
        background: var(--ds-white) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 50px !important;
        padding: 15px 25px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Add the Envelope Icon back to the email field */
    .newsletter-form-wrapper .gfield:first-child::before {
        content: "\f0e0";
        font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
        font-weight: 400 !important;
        color: var(--ds-gray) !important;
        margin-right: 12px !important;
        font-size: 16px !important;
        display: inline-block !important;
    }

    /* 4. Ensure the input text area fills the rest of the white pill */
    .newsletter-form-wrapper input[type=email] {
        width: 310px !important;
        flex-grow: 1 !important;
        background: white!important;
        border: none !important;
        padding: 20px 20px !important;
        border-radius: 15px;
        margin-bottom: 20px !important;
        box-shadow: none !important;
    }

    /* 5. Make the Submit button full width and match the input's height */
    .newsletter-form-wrapper input[type=submit],
    .newsletter-form-wrapper button[type=submit] {
        width: 310px !important;
        padding: 18px 30px !important; /* Thickens the button to match the email field */
    }
}

/* --- 3. 5-Column Grid --- */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.5fr !important;
  gap: 50px !important;
  max-width: 1800px !important; /* Design constraint */
  margin: 0 auto !important;
  padding: 0 40px 60px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.footer-col h4 {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 30px !important;
  color: #101828 !important;
}

.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin-left: 0px;
}

.footer-col ul li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important; /* Space between chevron and text */
}

/* The Light Green Chevron */
.footer-col ul li::before {
  content: "\f054" !important; /* FontAwesome Chevron-Right */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  color: var(--ds-peppermint) !important; /* Light green from your design */
  display: inline-block !important;
  transition: all .3s ease;
}

/* icon gets a hover flourish if the link is hovered */
.footer-col ul li:has(> a:hover)::before {
  color: #6ec488 !important;
}

.footer-col ul li a {
  color: #6a7282 !important; /* Exact hex requested */
  text-decoration: none !important;
  font-size: 15px !important; /* Exact size requested */
  font-weight: 500 !important; /* Bold */
  transition: all 0.3s ease !important;
  line-height: 1 !important;
}

.footer-col ul li a:hover {
  color: var(--ds-blue) !important;
}

/* --- 4. Brand & Phone Styling --- */
.brand-col .footer-logo img {
  max-width: 250px !important;
  margin-bottom: 25px !important;
  /* margin: 0 auto 25px auto !important; */
}

@media (max-width: 768px)  {
  .brand-col .footer-logo img {
     margin: 0 auto 25px auto !important;
  }
}

.footer-serving-text {
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
}

.footer-social-icons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 30px !important;
}

.social-circle {
  width: 44px !important;
  height: 44px !important;
  background: var(--ds-green-op70) !important;
  color: var(--ds-green) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: 0.3s !important;
}

.social-circle:hover {
  background: var(--ds-green) !important;
  color: var(--ds-white) !important;
  transform: translateY(-3px) !important;
}

.phone-block {
  margin-bottom: 18px !important;
}

.phone-block strong {
  display: block !important;
  font-size: 14px !important;
  color: #101828 !important;
  margin-bottom: 2px !important;
}

.phone-block a {
  position: relative;
  top: -2px;
  display: inline-block;
  color: #6a7282 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  }

/* The Light Green Phone Icon */
.phone-block a::before {
  position: relative;
  top: 2px;
  content: "\f095" !important; /* FontAwesome Phone Icon */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  color: var(--ds-peppermint) !important; /* Light green from your design */
  display: inline-block !important;
  padding-right: 8px;
  transition: all 0.3s ease;
}

.phone-block a:hover::before {
  color: #6ec488 !important;
}

.phone-block a:hover {
  color: var(--ds-blue) !important;
}

/* --- 5. Bottom Bar --- */
.footer-bottom-bar {
  display: flex !important;
  justify-content: space-between !important;
  padding-top: 35px !important;
  font-size: 13px !important;
  color: var(--ds-gray) !important;
  margin-left: 145px;
  margin-right: 40px;
  padding-left: 40px;
  padding-right: 40px;
}

.footer-legal-links a {
  margin-left: 20px !important;
  color: var(--ds-gray) !important;
  text-decoration: none !important;
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 1200px) {
  .footer-grid {
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 40px !important;
  }
}

@media (max-width: 768px) {
  .footer-swoosh {
    top: 20px !important;
  }
  .footer-grid {
  grid-template-columns: 1fr !important;
  text-align: center !important;
  }
  .footer-social-icons {
  justify-content: center !important;
  }
  .newsletter-inner {
  flex-direction: column !important;
  text-align: center !important;
  }
  .footer-newsletter-card {
  padding: 30px !important;
  margin-top: -140px !important;
  margin: 25px !important; 
  }
}
/* --- Global Background Reset --- */

body.donate-stuff
  .wp-block-uagb-advanced-heading.uagb-block-74c2fffd.wp-block-uagb-advanced-heading {
  margin-right: 0px;
}

/* Forces the entire site container and content area to be white */
body,
#page,
#content,
.site-content,
#primary {
  background-color: var(--ds-white) !important;
}

/* Removes any specific grey background from the refresh template */
.page-template-template-website-refresh #content {
  background-color: var(--ds-white) !important;
}

.entry-taxonomy {
  display: none !important;
}

#masthead {
  border: none;
  padding: 55px 0;
}

/* --- Layout Grid --- */
.header-grid-container {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center !important;
  align-content: center !important;
  gap: 40px;
}

.site-branding {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.site-branding a {
  display: flex;
  align-items: center;
}

.site-branding img {
  margin: 0 !important;
  display: block;
}

/* ==========================================================================
   DESKTOP DROPDOWN STYLING
   ========================================================================== */
@media (min-width: 1025px) {
  /* 1. Set the parent as the anchor */
  .baylis-menu-grid-container ul li {
    position: relative;
  }

  /* 2. Add a tiny chevron to parent items (Using WP default class) */
  .baylis-menu-grid-container ul li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    margin-left: 8px;
    color: var(--ds-green);
    transition: transform 0.3s ease;
    display: inline-block;
  }

  /* Flip chevron on hover */
  .baylis-menu-grid-container ul li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
  }

  /* 3. The Dropdown Card */
  .baylis-menu-grid-container ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); 
    min-width: 240px;
    background: var(--ds-white);
    border-radius: 16px;
    padding: 15px 0;
    margin: 0;
    box-shadow: 0 20px 40px rgba(1, 93, 171, 0.12);
    border: 1px solid #f1f5f9;
    
    /* Animation defaults */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Override top-level flex settings */
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
  }

  /* Invisible hover bridge (prevents dropdown from disappearing when moving mouse down) */
  .baylis-menu-grid-container ul li ul.sub-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
  }

  /* 4. Trigger the Dropdown */
  .baylis-menu-grid-container ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); 
  }

  /* 5. Dropdown Link Styling */
  .baylis-menu-grid-container ul li ul.sub-menu li {
    width: 100%;
    display: block;
  }

  .baylis-menu-grid-container ul li ul.sub-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    text-transform: none; 
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #475569; 
    text-align: left;
    min-width: auto;
    height: auto;
    border-radius: 0; 
  }

  /* Dropdown Link Hover */
  .baylis-menu-grid-container ul li ul.sub-menu li a:hover {
    color: var(--ds-blue);
    background-color: #f8fafc; 
    padding-left: 32px; 
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DROPDOWN STYLING
   ========================================================================== */
@media (max-width: 1024px) {
  /* 1. Add a chevron to mobile parent items */
  .baylis-menu-grid-container ul li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    float: right;
    color: #cbd5e0;
    margin-top: 2px;
    transition: transform 0.3s ease; /* Added for smooth animation */
  }

  /* 2. Container for nested items - CLOSED BY DEFAULT */
  .baylis-menu-grid-container ul li ul.sub-menu {
    display: none; /* Changed from flex to none so it starts closed */
    flex-direction: column;
    /* background: #f8fafc;  */
    border-radius: 12px;
    margin: 5px 0 15px 0;
    padding: 10px 0;
    width: 100%;
    /* border-left: 3px solid var(--ds-green); */
  }

  /* 3. Nested items styling */
  .baylis-menu-grid-container ul li ul.sub-menu li {
    border-bottom: none;
  }

  .baylis-menu-grid-container ul li ul.sub-menu li a {
    padding: 12px 20px 12px 20px; 
    font-size: 14px;
    text-transform: none;
    font-weight: 600;
    color: #4a5568;
    height: auto;
    margin: 0;
    justify-content: left !important;
  }

  .baylis-menu-grid-container ul li ul.sub-menu li a:hover,
  .baylis-menu-grid-container ul li ul.sub-menu li a:active {
    color: var(--ds-blue);
    background-color: rgba(1, 93, 171, 0.05);
  }

  /* 4. ACTIVE STATE: Applied via JavaScript to open the menu */
  .baylis-menu-grid-container ul li.is-dropdown-open ul.sub-menu {
    display: flex; 
  }

  /* Flip the chevron upside down when the menu is open */
  .baylis-menu-grid-container ul li.menu-item-has-children.is-dropdown-open > a::after {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   MOBILE UI/UX FIXES 
   ========================================================================== */

/* 1. Remove the default blue tap-highlight box on mobile devices */
.baylis-menu-grid-container ul li a,
.baylis-menu-grid-container ul li.menu-item-has-children > a,
.menu-toggle,
.menu-close {
    /* Makes the default mobile tap flash completely invisible */
    -webkit-tap-highlight-color: transparent !important; 
    
    /* Removes the rigid default browser focus outline */
    outline: none !important; 
}

/* 2. Add a very subtle background color change on active tap for better UX */
.baylis-menu-grid-container ul li a:active {
    background-color: rgba(1, 93, 171, 0.05) !important;
}


/* --- Navigation Container --- */
.baylis-menu-grid-container {
  display: flex !important;
  justify-content: flex-end;
  align-items: center !important;
}

.baylis-menu-grid-container ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.baylis-menu-grid-container ul li a {
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  letter-spacing: 1.3px;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Restored Hover for Links */
.baylis-menu-grid-container ul li a:hover {
  color: var(--ds-blue);
}

/* --- Button Styles --- */
.baylis-menu-grid-container ul li:nth-last-child(2) a,
.baylis-menu-grid-container ul li:last-child a {
  text-align: center;
  line-height: 1;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 210px;
  height: 58px;
}

/**************************************************************************************************/
/*!		MENU BUTTONS, GENERALLY	*/
/**************************************************************************************************/
.ds-menu-btn > a {
  padding: 0 20px;
  gap: 12px;
  border: 2px solid var(--ds-blue);
}

/**************************************************************************************************/
/*!		"MY PICKUPS" MENU BUTTON	*/
/**************************************************************************************************/

/* truck Icon tucked in before the text */
.ds-menu-btn.ds-menu-btn-my-pickups > a::before {
  content: "\f0d1";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.ds-menu-btn.ds-menu-btn-my-pickups > a {
  color: var(--ds-blue);
  background-color: transparent;
  margin-left: 40px;
}

/* Restored Hover for "MY PICKUPS" */
.ds-menu-btn.ds-menu-btn-my-pickups > a:hover {
  color: var(--ds-white) !important;
  background-color: var(--ds-blue);
}

/**************************************************************************************************/
/*!		"SCHEDULE PICKUP" MENU BUTTON	*/
/**************************************************************************************************/

/* "SCHEDULE PICKUP" - Solid Blue */
.ds-menu-btn.ds-menu-btn-schedule-pickup > a {
  color: var(--ds-white) !important;
  background-color: var(--ds-blue);
}

/* Restored Hover for "SCHEDULE PICKUP" */
.ds-menu-btn.ds-menu-btn-schedule-pickup > a:hover {
  border-color: var(--ds-green);
  background-color: var(--ds-green);
}

/* --- MOBILE RESPONSIVE VERSION (SCOPED TO NEW TEMPLATE ONLY) --- */

/* Hide custom menu elements on desktop, ONLY on the new template */
.page-template-template-website-refresh .menu-toggle,
.page-template-template-website-refresh .menu-close,
.page-template-template-website-refresh .mobile-drawer-logo,
.page-template-template-website-refresh .menu-overlay {
  display: none;
}

@media (max-width: 1375px) {
  .page-template-template-website-refresh #masthead {
    padding: 20px 0;
  }

  .page-template-template-website-refresh .header-grid-container {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    gap: 0;
  }

  /* Logo Sizing */
  .page-template-template-website-refresh .site-branding img,
  .page-template-template-website-refresh .mobile-drawer-logo img {
    width: 133px !important;
    height: 36px !important;
    object-fit: contain;
  }

  /* Safely style the new toggle without squishing the old one */
  .page-template-template-website-refresh .menu-toggle,
  .page-template-template-website-refresh .menu-close {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  /* The 3 hamburger bars */
  .page-template-template-website-refresh .menu-toggle span {
    width: 28px;
    height: 3px;
    background: #111827 !important;
    border-radius: 2px;
    display: block !important;
    margin: 0 auto;
    position: relative !important;
  }

  /* Mobile Drawer Container */
  .page-template-template-website-refresh .baylis-menu-grid-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--ds-white);
    z-index: 9999;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 40px 25px !important;
    transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -5px 0 15px var(--ds-black-op10);
  }

  /* Open States */
  .page-template-template-website-refresh.menu-open .baylis-menu-grid-container {
    right: 0;
  }

  .page-template-template-website-refresh .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 1;
    visibility: hidden;
    transition: 0.3s;
  }

  .menu-open .page-template-template-website-refresh .menu-overlay {
    opacity: 1;
    visibility: visible;
  }

  .page-template-template-website-refresh .mobile-drawer-logo {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
  }

  .page-template-template-website-refresh .menu-close {
    position: absolute;
    top: 35px;
    right: 20px;
    font-size: 45px;
    color: #111827 !important;
    line-height: 1;
    cursor: pointer;
  }

  .page-template-template-website-refresh .baylis-menu-grid-container ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .page-template-template-website-refresh .baylis-menu-grid-container ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .page-template-template-website-refresh .baylis-menu-grid-container ul li a {
    display: block;
    padding: 15px 0;
    font-size: 15px;
    letter-spacing: 1px;
    text-align: left;
  }

  /* .page-template-template-website-refresh .baylis-menu-grid-container ul li:nth-last-child(2) a,
  .page-template-template-website-refresh .baylis-menu-grid-container ul li:last-child a {
    width: 100%;
    min-width: 100%;
    margin-left: 0;
    height: 52px;
    margin-top: 15px;
  } */

/* --- CENTER MOBILE MENU BUTTONS --- */
  /* Added '>' to ensure we ONLY target the top-level main menu items, not sub-menus */
  .page-template-template-website-refresh .baylis-menu-grid-container > ul > li:nth-last-child(2) > a,
  .page-template-template-website-refresh .baylis-menu-grid-container > ul > li:last-child > a {
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    text-align: center !important;
    padding: 0 !important;
    gap: 12px !important; 
  }

  /* Remove the desktop left-margin on My Pickups so it is perfectly dead-center on mobile */
  .page-template-template-website-refresh .ds-menu-btn.ds-menu-btn-my-pickups > a,
  .page-template-template-website-refresh .ds-menu-btn-schedule-pickup > a  {
    margin-left: 0 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
}

/* --- Hero & Transparent Header Logic --- */

/* 1. Base Header Reset */
.page-template-template-website-refresh #masthead {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: none !important;
  z-index: 10000 !important;
  background: var(--ds-white);
  border: none !important;
  padding: 23px 0 !important;
  transition:
  padding 0.3s ease,
  background-color 0.3s ease !important;
}

/* 2. Inner Grid Alignment - Desktop Stays Centered */
.page-template-template-website-refresh .header-grid-container {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center !important;
  width: 100% !important;
  max-width: 1800px !important; /* Keep desktop contained */
  margin: 0 auto !important;
  padding: 0 40px !important;
}

/* --- MOBILE ONLY OVERRIDE --- */
@media (max-width: 1375px) {
  /* Force the container to fill the screen on mobile to kill the gap */
  .page-template-template-website-refresh .header-grid-container {
  max-width: 100% !important;
  display: flex !important; /* Switch to flex for easier edge alignment */
  justify-content: space-between !important;
  padding: 0 20px !important; /* Slimmer side gutters for mobile */
  }

  /* Ensure the header itself has no margins causing shifts */
  .page-template-template-website-refresh #masthead.is-sticky {
  left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  }
}

/* 3. Sticky State - Mobile & Desktop Fix */
.page-template-template-website-refresh #masthead.is-sticky {
  position: fixed !important;
  background-color: var(--ds-white) !important;
  box-shadow: 0 4px 15px var(--ds-black-op08) !important;
  padding: 15px 0 !important;
  z-index: 10001 !important;
}

/* 4. Fix Hamburger Bars & Kill Blue Streaks - MOBILE ONLY */
@media (max-width: 1375px) {
  /* Targets BOTH states: standard and sticky so bars always stack */
  .page-template-template-website-refresh #masthead .menu-toggle,
  .page-template-template-website-refresh #masthead.is-sticky .menu-toggle {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  }

  /* Styles the 3 spans for a clean black hamburger on both states */
  .page-template-template-website-refresh #masthead .menu-toggle span,
  .page-template-template-website-refresh
  #masthead.is-sticky
  .menu-toggle
  span {
  background-color: #111827 !important;
  display: block !important;
  width: 28px !important;
  height: 3px !important;
  border-radius: 2px !important;
  margin: 0 !important;
  position: relative !important;
  left: auto !important;
  }

  /* Kills the extra horizontal "junk" lines */
  .page-template-template-website-refresh #masthead .menu-toggle::before,
  .page-template-template-website-refresh #masthead .menu-toggle::after,
  .page-template-template-website-refresh #masthead .menu-toggle span::before,
  .page-template-template-website-refresh #masthead .menu-toggle span::after,
  .page-template-template-website-refresh
  #masthead.is-sticky
  .menu-toggle::before,
  .page-template-template-website-refresh
  #masthead.is-sticky
  .menu-toggle::after,
  .page-template-template-website-refresh
  #masthead.is-sticky
  .menu-toggle
  span::before,
  .page-template-template-website-refresh
  #masthead.is-sticky
  .menu-toggle
  span::after {
  display: none !important;
  content: none !important;
  }
}

/* 5. Mobile & Desktop Sticky Padding Adjustments */
@media (max-width: 1375px) {
  /* Force the container to fill the screen on mobile to kill the gap */
  .page-template-template-website-refresh .header-grid-container {
  max-width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  }

  .page-template-template-website-refresh #masthead {
  padding: 20px 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  }

  .page-template-template-website-refresh #masthead.is-sticky {
  padding: 10px 0 !important;
  }
}

/* 6. Reset Desktop Nav Visibility on Scroll */
@media (min-width: 1376px) {
  .page-template-template-website-refresh .baylis-menu-grid-container {
  display: flex !important;
  position: relative !important;
  right: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  }
}

/* --- Hero Section & Full Width Pattern --- */
.hero-color {
  color: var(--ds-green);
}

.hero-pattern-group {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-top: 180px !important;
  padding-bottom: 80px !important;
  /* background-repeat: repeat !important;
  background-size: auto !important; */
  background-repeat: no-repeat !important; /* Stop the double pattern */
  background-size: cover !important; /* Stretch to fill the tall mobile space */
  background-position: center bottom !important; /* Keep the wave at the bottom */
}

.hero-pattern-group > .wp-block-group__inner-container,
.hero-pattern-group > div:first-child {
  max-width: 1550px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

/* ==========================================================================
   HERO SECTION TABLET/MOBILE FIX
   Hides the image and makes text full-width below 1313px
   ========================================================================== */
@media (max-width: 1313px) {
    /* 1. Stop WordPress from trying to force a flex grid */
    .hero-responsive-fix {
        display: block !important;
    }

    /* 2. Force the Left Column (Text & Zip) to take up the full screen width */
    .hero-responsive-fix > .wp-block-column:nth-child(1) {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* 3. Completely hide the Right Column (Image) */
    .hero-responsive-fix > .wp-block-column:nth-child(2) {
        display: none !important;
    }
}

/* ==========================================================================
   HOW IT WORKS SECTION TABLET FIX
   Forces the columns to stack before the text gets crushed into a single line
   ========================================================================== */
@media (max-width: 1024px) {
    
    /* 1. Break the native WordPress side-by-side grid */
    .how-it-works-fix {
        display: block !important;
    }

    /* 2. Force both columns to take up the full screen width */
    .how-it-works-fix > .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 50px !important; /* Adds breathing room between the image and text once stacked */
    }

    /* 3. Center the image nicely when it stacks on top */
    .how-it-works-fix > .wp-block-column:nth-child(1) {
        display: none !important;
    }
    
    .how-it-works-fix > .wp-block-column:nth-child(1) img {
        margin: 0 auto !important;
        display: inline-block !important;
    }
}

/* --- Hero Mobile Responsiveness --- */
@media (max-width: 768px) {
  .hero-pattern-group > .wp-block-group__inner-container,
  .hero-pattern-group > div:first-child {
  /* Reduce padding so text has more room on small screens */
  padding: 0 20px !important;

  /* Ensure the container stacks or scales correctly */
  max-width: 100% !important;
  }
  .hero-pattern-group {
  padding-top: 130px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
  }
  .hero-description {
  margin-right: 0px !important;
  font-size: 20px !important;
  }
  #ds-fe__zipcode {
  box-shadow: none !important;
  }
}

@media (max-width: 480px) {
  .hero-pattern-group > .wp-block-group__inner-container,
  .hero-pattern-group > div:first-child {
  padding: 0 15px !important;
  }
}

.page-template-template-website-refresh #primary {
  float: none !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1550px !important;
}

/* --- Zip Code Design: Specific to .donate-stuff pages --- */

body.donate-stuff #ds-fe__order-form #ds-fe__lead-wrapper {
  justify-content: left;
}

body.donate-stuff .ds-fe__zipcode-container {
  display: flex !important;
  background: var(--ds-white) !important;
  border-radius: 15px !important;
  border: 1px solid #f3f4f6 !important;
  padding: 14px 25px !important;
  box-shadow: 0 32px 64px -16px var(--ds-black-op10) !important;
  max-width: 654px !important;
  width: 100% !important;
  height: 92px !important;
  align-items: center !important;
  position: relative;
}

/* Icon - only on .donate-stuff pages */
body.donate-stuff .ds-fe__zipcode-container:before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  color: #d1d5dc;
  margin-right: 15px;
}

body.donate-stuff #ds-fe__zipcode {
  flex-grow: 1 !important;
  border: none !important;
  font-size: 24px !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none;
}

body.donate-stuff #ds-fe__zip-btn {
  background-color: var(--ds-green) !important;
  color: var(--ds-white) !important;
  border-radius: 50px !important;
  padding: 0 30px !important;
  height: 64px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border: none !important;
  margin-left: 15px !important;
  transition: background-color 0.3s ease;
  /* --- NEW FIXES TO PREVENT SQUISHING --- */
  flex-shrink: 0 !important;      /* Forces the button to keep its full width */
  white-space: nowrap !important; /* Prevents text from stacking vertically */
}

body.donate-stuff #ds-fe__zip-btn:hover {
  background-color: var(--ds-blue) !important;
}

/* Mobile Zip Stack - only on .donate-stuff pages */
@media (max-width: 600px) {
  body.donate-stuff .ds-fe__zipcode-container {
  flex-direction: column !important;
  height: auto !important;
  padding: 20px !important;
  }
  body.donate-stuff #ds-fe__zip-btn {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 10px;
  }
  body.donate-stuff .ds-fe__zipcode-container:before {
  display: none !important;
  }
}

/* --- Impact Cards Section --- */
.impact-card {
  /* Layout & Centering */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

/* FLUID DESIGN DIMENSIONS (Fixes the overlap!) */
  width: 100% !important;        /* Fill the column */
  max-width: 400px !important;   /* Never get too big */
  height: 330px !important;

  /* Spacing & Style */
  margin: 0 auto !important;
  padding: 30px !important;
  background: var(--ds-white) !important;
  box-sizing: border-box !important;
  border-radius: 20px !important; /* Added to match design */
}

/* Fix Icon Centering - The "Auto" margin fix */
.impact-card .wp-block-image,
.impact-card figure,
.impact-card img {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
  display: block !important;
}

/* --- Specific Card Glows --- */

/**************************************************************************************************/
/*!		SPECIFIC CARD GLOWS	*/
/**************************************************************************************************/

/* 1. Raised for Charities - Blue (var(--ds-blue)) */
.card-blue {
  border: 2px solid var(--ds-blue) !important;
  box-shadow: 0 32px 80px -16px rgba(1, 93, 171, 0.3) !important;
}

/* 2. Lives Improved - Green  */
.card-green {
  border: 2px solid var(--ds-green) !important;
  /* box-shadow: 0 32px 80px -16px rgba(2, 169, 80, 0.3) !important; */
  box-shadow: 0 32px 80px -16px var(--ds-green-op30) !important;
}

/* 3. Donations Picked Up - Light Blue */
.card-cyan {
  border: 2px solid var(--ds-blue-light) !important;
  box-shadow: 0 32px 80px -16px rgba(144, 213, 249, 0.3) !important;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .impact-card {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  min-height: 330px !important;
  margin-bottom: 30px !important;
  }
}

/* --- How It Works Section --- */

.how-it-works-section {
  background-color: var(--ds-4) !important;

  /* The Breakout Trick: Forces the block to span the full viewport width */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;

  /* Internal Spacing */
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  box-sizing: border-box !important;
}

/* Ensure the content inside stays centered and aligned with the header */
.how-it-works-section .wp-block-columns {
  max-width: 1630px !important; /* Matches your design grid */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Slimmer padding for mobile screens */
@media (max-width: 768px) {
  .how-it-works-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  }
  .tax-description {
  margin-left: 0px !important;
  margin-right: 0px !important;
  }
  .how-steps {
    text-align: center;
    padding-bottom: 40px !important;
  }
  .how-steps-text {
    text-align: center;
  }
  .how-steps-img {
    display: block;
    margin: auto;
    width: 60%;
  }
}

/* ==========================================================================
   TAX RECEIPT BOX FIX
   Forces the container to stack items vertically instead of crushing them
   ========================================================================== */
.tax-receipt-fix {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;   
    text-align: center !important;    
    gap: 15px !important;             
}

.tax-receipt-fix .wp-block-button__link,
.tax-receipt-fix a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* --- Our Impact Section -- */
.impact-cta1 {
  color: var(--ds-blue-light);
}

.impact-cta2 {
  color: var(--ds-green);
}

.impact-cta-bg-2 {
  box-shadow: 0 20px 25px -5px var(--ds-black-op10) !important;
}

.impact-cta-bg-1 {
  box-shadow: 0 20px 25px -5px var(--ds-black-op10) !important;
}

.impact-divider {
  height: 0.25px !important;
}

.impact-cta-3 {
  padding: 80px !important;
}



@media (max-width: 1068px) {
  .impact-cta-mobile {
    padding: 20px !important;
  }
}

@media (max-width: 768px) {
  .impact-cta-3 {
    padding: 20px !important;
  }
  .impact-cta-mobile {
    flex-wrap: inherit !important;
    padding: 30px !important;
  }
  .impact-divider {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
  }
}

/* --- What can I donate Section --- */
.what-donate {
  color: var(--ds-blue);
}

.what-donate-card {
  box-shadow: 0 20px 25px -5px var(--ds-black-op10) !important;
  padding: 20px !important;
}

/* =========================================
   SVG Icon Fix for "What can I donate" Section
   ========================================= */

.what-donate-svg {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 15px auto !important;
    width: 100% !important; 
}

/* 2. Force the actual SVG image to render using STRICT pixel values */
.what-donate-svg img {
    width: 65px !important;      
    height: 65px !important;     
    min-width: 65px !important;   
    min-height: 65px !important;  
    display: inline-block !important;
    object-fit: contain !important; 
}

/* ==========================================================================
   "WHAT CAN I DONATE" GRID FIX
   Prevents the 7 columns from squishing into text towers on tablets
   ========================================================================== */
@media (max-width: 1250px) {
    
    /* 1. Break the rigid single-row layout and allow wrapping */
    .what-donate-wrap-fix {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important; /* Adds clean spacing between the wrapping rows */
    }

    /* 2. Give each card a comfortable minimum size so it never squishes */
    .what-donate-wrap-fix > .wp-block-column {
        flex: 1 1 140px !important;  /* Allows the card to naturally grow/shrink around 140px */
        max-width: 160px !important; /* Stops cards on the bottom row from stretching too wide */
        margin-left: 0 !important;   /* Kills WordPress's native spacing */
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    .donate-card-title p{
        font-size: 13px !important;       /* Shrinks the font just enough to fit the container */
        letter-spacing: -0.2px !important; /* Pulls the letters slightly closer together */
        padding-left: 5px !important;      /* Reclaims some internal padding for extra room */
        padding-right: 5px !important;
        line-height: 1.4 !important;
    }
}


@media (max-width: 768px) {
 .what-donate-text {
  text-align: center !important;
 }
}


/* --- Nonprofits/Charities Section --- */
.nonprofit-steps-section {
  padding: 80px !important;
  position: relative !important;
  overflow: visible !important; /* Critical: allows the seal to overlap the edge */
  box-shadow: 0 20px 25px -5px var(--ds-black-op10);
}

@media (max-width: 768px) {
 .nonprofit-steps-section {
  padding: 60px 40px !important;
 }
}

.non-profits-heading {
  color: var(--ds-green);
  text-transform: uppercase;
  font-weight: 800;
}

.seal-container {
  margin: 0px !important;
}

.floating-seal {
  position: absolute !important;
  top: 45px !important;
  right: 45px !important; /* Distance from the right edge */
  width: 170px !important; /* Adjust size to match the design scale */
  z-index: 10 !important; /* Keeps it on top of all other blocks */
  margin: 0 !important;
}


@media (max-width: 1650px) {
    .floating-seal {
        top: 25px !important;   
        right: 20px !important;  
        width: 140px !important;
    }
}


@media (max-width: 1350px) {
    .floating-seal {
        top: 15px !important;
        right: 20px !important;
        width: 120px !important;
    }
}

@media (max-width: 768px) {
  .floating-seal {
  top: 10px !important;
  right: 15px !important;
  width: 80px !important;
  }
}

.donors-heading {
  color: var(--ds-blue);
  text-transform: uppercase;
  font-weight: 800;
}

.donors-big-section {
  padding: 80px 80px !important;
  margin-bottom: 50px;
  box-shadow: 0 20px 25px -5px var(--ds-black-op10);
}
@media (max-width: 768px) {
.donors-big-section {
  padding: 60px 40px !important;
 }
}

.donors-cards {
  padding: 50px !important;
}


/* ==========================================================================
   DONORS SECTION RESPONSIVE FIX (V2 - 1250px Breakpoint)
   Forces early stacking to prevent "Million Dollar" number wrap
   ========================================================================== */

/* 1. Force the numbers to stay on one line and scale down slightly */
.donors-num-heading {
    white-space: nowrap !important;
    font-size: 36px !important; /* Starts a bit smaller so it fits longer */
    display: block !important;
}

/* 2. Force the stack at 1250px (before the squishing starts) */
@media (max-width: 1250px) {
    .donors-columns-fix {
        display: block !important;
    }
    
    .donors-columns-fix > .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 500px !important;         /* Keeps the cards from getting too wide */
        margin: 0 auto 30px auto !important; /* Centers them and adds bottom spacing */
    }
}

/* 3. Scale numbers down more for smaller mobile devices */
@media (max-width: 480px) {
    .donors-num-heading {
        font-size: 28px !important;
    }
}

/* ---  TESTIMONIALS INTRO  --- */

@media (max-width: 768px) {
  .testimonial-intro-text {
    text-align: center !important;
  }
}

/* --- 1. The Slider Window (Stationary Frame) --- */
.review-slider-window {
  overflow: visible !important; /* * Changed from hidden to show the overlap */
  width: 100% !important;
  max-width: 950px !important;
  margin: 0 auto !important;
  position: relative !important;
  padding-top: 30px;
}

/* --- 2. The Slider Track (The moving train) --- */
.review-slider-track,
.review-slider-track > .wp-block-group__inner-container {
  display: flex !important;
  flex-wrap: nowrap !important; /* Keeps slides in a single horizontal line */
  gap: 0 !important; /* Set to 0 to match the 100% movement in JS */
  width: 100% !important;
  transition: transform 0.5s ease !important;
}

.review-slider-track {
  overflow: hidden !important;
  border-radius: 20px !important; /* Match your slide corners */
}

/* --- 3. The Individual Slide --- */
.review-slide {
  flex: 0 0 100% !important; /* Each slide takes exactly the full window width */
  min-width: 100% !important;
  background-color: var(--ds-peppermint) !important;
  border-radius: 20px !important;
  padding: 60px 80px !important;
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.review-slide::before {
  content: "" !important;
  position: absolute !important;
  top: 30px !important;
  left: 30px !important;
  width: 60px !important;
  height: 60px !important;
  /* background-image: url("https://stg-donatestuff200-staging.kinsta.cloud/wp-content/uploads/2026/03/quote-img.png") !important; */
  background-image: url("https://stg-donatestuff200-staging.kinsta.cloud/wp-content/uploads/2026/03/quote-img.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  z-index: 5 !important;
}

.review-slide p {
  font-size: 26px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: #1e2939 !important;
  margin-bottom: 20px !important;
}

.review-slide h4 {
  font-size: 30px !important;
  font-weight: 900 !important;
  color: #1e2939 !important;
  margin: 0 !important;
}

.testimonial-div {
  /* background: rgba(2, 169, 80, 0.31); */
  background: var(--ds-green-op30);
  height: 3px;
}

/* --- 4. Navigation Layout (Outside the Window) --- */
.slider-nav-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  margin-top: -30px !important;
  position: relative !important;
  z-index: 100 !important;
}

/* Circular Arrows */
.slider-arrow {
  background: var(--ds-white) !important;
  border: none !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 15px var(--ds-black-op10) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease !important;
}

.slider-arrow img {
  width: 20px !important; /* Ensures arrows don't explode in size */
  height: auto !important;
}

.slider-arrow:hover {
  transform: scale(1.1) !important;
}

/* Dots Navigation */
.slider-dots {
  display: flex !important;
  gap: 8px !important;
  background: var(--ds-white) !important;
  padding: 12px 24px !important;
  border-radius: 40px !important;
  box-shadow: 0 4px 20px var(--ds-black-op08) !important;
}

.dot {
  width: 12px !important;
  height: 12px !important;
  background: #e2e8f0 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.dot.active {
  background: var(--ds-green) !important;
  width: 30px !important;
  border-radius: 10px !important;
}


@media (max-width: 768px) {
 .review-slide {
    padding: 60px 30px !important;
 }
}


.lives-impacted-heart {
  position: relative !important;
  /* This creates the 'bottom' of the sandwich */
  transform-style: preserve-3d !important;
  z-index: 1 !important;

  /* Your existing styles */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid #f3f4f6;
  height: 100% !important;
  padding: 40px 20px !important;
  background-color: var(--ds-white) !important; /* Forces the card to stay white */
  border-radius: 24px !important;
}

/* This forces the Heart and Text to the absolute front */
.lives-impacted-heart > * {
  position: relative !important;
  z-index: 2 !important;
  transform: translateZ(1px); /* Extra insurance for modern browsers */
}

.lives-impacted-heart::after {
  content: "" !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(2, 169, 80, 0.2) !important; */
  background-color: var(--ds-green-op30) !important;
  border-radius: 24px !important;

  /* This pushes it behind the white card */
  z-index: -1 !important;
  transform: rotate(-6deg) translateZ(-1px) !important;
}

/* Let's add the blue one back while we're at it so it looks complete */
.lives-impacted-heart::before {
  content: "" !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 93, 171, 0.15) !important;
  border-radius: 24px !important;
  z-index: -2 !important;
  transform: rotate(6deg) translateZ(-2px) !important;
}

/* --- 1. The Full-Width Section Wrapper --- */
.heading-blog {
  color: var(--ds-green);
}

.blog-section {
  background-color: var(--ds-4) !important;
  /* The Breakout Trick: Exactly like your 'How It Works' section */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  box-sizing: border-box !important;
}

/* Constrain the inner grid to match your design grid */
.blog-section .wp-block-columns,
.blog-section .wp-block-query {
  max-width: 1550px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Grid layout for the cards */
.blog-section .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  /* padding: 0 60px !important; */
  margin-left: 0 !important;
}

/* --- 2. Individual Blog Card Styling --- */
.blog-card-container {
  background: var(--ds-white) !important;
  border-radius: 20px !important;
  padding: 40px !important;
  border: 2px solid var(--ds-blue) !important; /* Default Blue Border */
  box-shadow: 0 10px 30px var(--ds-black-op05) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: all 0.3s ease !important;
}

/* Alternate colors: Blue for 1 & 3, Green for 2nd card */
.wp-block-post:nth-child(even) .blog-card-container {
  border-color: var(--ds-green) !important;
}

.blog-card-container:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px var(--ds-black-op10) !important;
}

/* --- 3. Headline & Excerpt Typography --- */
.blog-headline a {
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #1a2b3c !important;
  text-decoration: none !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.blog-headline a:hover {
  color: var(--ds-green) !important;
}

.blog-excerpt {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #4a5568 !important;
  margin-bottom: 25px !important;
  /* Limits text to 4 lines for uniform height */
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 4. Date & Arrow Footer --- */
.blog-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: auto !important;
}

.blog-date {
  font-size: 13px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #cbd5e0 !important;
}

.blog-arrow-circle {
  width: 45px !important;
  height: 45px !important;
  background: #f7fafc !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ds-blue) !important;
  transition: 0.3s !important;
}

.blog-card-container:hover .blog-arrow-circle {
  background: var(--ds-blue) !important;
  color: var(--ds-white) !important;
}

/* --- 5. Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .blog-section .wp-block-post-template {
  grid-template-columns: 1fr !important; /* Stack cards on tablet/mobile */
  padding: 0 20px !important;
  }
}

@media (max-width: 768px) {
  .blog-section .wp-block-post-template {
  padding: 60px 0px !important;
  margin-left: 0px !important;
  }
}



/* ==========================================================================
   FOOTER MOBILE OPTIMIZATIONS (UPDATED FOR 2-COLUMN MOCKUP)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. The Main Footer Grid - 2 Columns Left Aligned! */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        text-align: left !important; /* Reverts the center alignment */
        padding: 0 20px 40px !important;
        gap: 40px 20px !important; /* 40px gap between rows, 20px between columns */
    }

    /* 2. Full-width rows for non-navigation columns */
    .brand-col,
    .instagram-col,
    .contact-col {
        grid-column: span 2 !important;
    }

    /* Keep the brand logo and socials centered, as they usually look best that way */
    .brand-col {
        text-align: center !important;
    }
    .brand-col .footer-social-icons {
        justify-content: center !important;
    }

    /* 3. The Navigation Lists - Ensure they stay left aligned */
    .footer-col ul li {
        justify-content: flex-start !important; 
    }

    /* 4. Phone Numbers Sub-Grid (2 Columns) */
    .contact-col {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 15px !important;
    }
    
    /* Make the "GIVE US A CALL" title span across both phone columns */
    .contact-col h4 {
        grid-column: span 2 !important;
        margin-bottom: 0 !important; /* We let the grid gap handle the spacing */
    }

    /* Remove bottom margin from phone blocks so they align perfectly in the grid */
    .phone-block {
        margin-bottom: 0 !important;
    }

    /* 5. Keep the bottom bar and newsletter stacked and centered */
    .footer-bottom-bar {
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 !important; /* Kills the 145px desktop margins */
        padding: 30px 20px 0 !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .footer-legal-links a {
        margin: 0 10px !important; 
    }
    .newsletter-intro {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .newsletter-title h3 {
      line-height: 1 !important;
      padding-bottom: 20px !important;
    }
}