/* ================= HEADER + NAV ================== */

/* Force header + nav background to stay brown */
#masthead,
#masthead.site-header,
#masthead .header-nav-box,
.site-header,
.site-header.sticky-header {
  background-color: #e09b67 !important;
  transition: none !important;  /* stop fade to white */
  box-shadow: none !important;
  border: none !important;
}

/* Make sure text is readable */
#masthead .site-title a,
#masthead .site-description,
#masthead .header-nav-box a {
  color: #000 !important; /* black text */
}

/* Spread menu links equally across header */
#masthead .header-nav-box .row.py-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo container */
#masthead .header-nav-box .row.py-3 > div:first-child {
  flex: 0 0 auto; /* keep natural width */
}

/* Menu container */
#masthead .header-nav-box .row.py-3 > div:last-child {
  flex: 1; 
  display: flex;
  justify-content: space-evenly; /* spread links equally */
  align-items: center;
  gap: 20px;
}

/* Menu links */
#masthead .header-nav-box a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  text-decoration: none;
  color: #000 !important;
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
  #masthead .header-nav-box .row.py-3 {
    flex-direction: column;
  }
  #masthead .header-nav-box .row.py-3 > div:last-child {
    flex-direction: column;
    width: 100%;
  }
  #masthead .header-nav-box a {
    flex: none;
    width: 100%;
  }
}

/* Increase spacing between each link (desktop only) */
#menu-ngo_main_primary-menu > li {
  margin: 0 30px;
}

/* ================= LEARN MORE BUTTONS ================== */

/* Force-correct Learn More button in cause boxes */
div.cause_btn a,
div.cause_btn a.px-3,
.cause_btn .px-3.py-2 {
  background: #e6caa5 !important;
  background-image: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
  display: inline-block !important;
  padding: 10px 18px !important;
  border-radius: 20px !important;
}

/* Remove any pseudo-element overlays that can hide text */
div.cause_btn a::before,
div.cause_btn a::after,
.cause_btn::before,
.cause_btn::after,
.cause_outer_btn a::before,
.cause_outer_btn a::after {
  display: none !important;
  content: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Hover state for the button */
div.cause_btn a:hover,
div.cause_btn a.px-3:hover,
.cause_btn .px-3.py-2:hover {
  background: #89a5bf !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Ensure '(more...)' link is plain text and not picking up button hover background */
.entry-content a.more-link,
.more-link,
a.more-link {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

.more-link {
  display: none;
}

/* ================= EQUAL HEIGHT CARDS ================== */

#our_causes .row > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

#our_causes .causes-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#our_causes .cause-inner-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.our-causes-content .cause-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.our-causes-content .cause-inner-main,
.our-causes-content .inner-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Stick button at bottom + center it */
.our-causes-content .cause_btn {
  margin-top: auto !important;
  align-self: center;
  text-align: center;
}

/* Force hamburger menu to stick at top-left of screen */
.toggle-nav.mobile-menu {
    position: fixed !important;  /* Sticks it to viewport */
    top: 15px;                   /* Distance from top */
    left: 15px;                  /* Distance from left */
    margin: 0 !important;
    z-index: 9999;               /* Keep above everything */
    text-align: left !important;
}

/* Ensure header is the positioning container */
header#masthead {
    position: relative; 
}

/* 1) Make the full-width top bar the positioning parent */
#nav-box.header-nav-box {          /* this is the colored header band in your HTML */
  position: relative !important;
}

/* 2) Stop closer ancestors from capturing the absolute positioning */
#nav-box .container,
#nav-box .row,
#nav-box .header-nav,
#nav-box .innermenubox {
  position: static !important;
}

/* 3) Put the hamburger in the top-left of the header band */
#nav-box .toggle-nav.mobile-menu {
  position: absolute !important;
  top: 8px;        /* tweak to taste */
  left: 8px;       /* tweak to taste */
  margin: 0 !important;
  text-align: left !important;
  z-index: 9999;
}

/* Optional: icon look */
#nav-box .toggle-nav.mobile-menu i {
  font-size: 28px;
  color: #fff;     /* adjust if your header is light */
  cursor: pointer;
}

/* Optional: hide on desktop if you only want it on mobile */
/*
@media (min-width: 992px) {
  #nav-box .toggle-nav.mobile-menu { display: none; }
}
*/

/* Volunteer Form Redesign */
form.wpcf7-form {
  background: #fff8f0;              /* warm soft background */
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 30px auto;
  font-family: "Poppins", Arial, sans-serif;
  color: #444;
}

/* Headline inside the form area */
form.wpcf7-form h2,
form.wpcf7-form h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #d77b3e;   /* warm orange tone */
  font-weight: 600;
}

/* Labels */
form.wpcf7-form p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

/* Inputs and textarea */
form.wpcf7-form input[type="text"],
form.wpcf7-form input[type="email"],
form.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #f1c8a9;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

form.wpcf7-form input[type="text"]:focus,
form.wpcf7-form input[type="email"]:focus,
form.wpcf7-form textarea:focus {
  border-color: #d77b3e;
  outline: none;
  box-shadow: 0 0 5px rgba(215,123,62,0.4);
}

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

/* Submit button */
form.wpcf7-form input[type="submit"] {
  background: #d77b3e;          /* warm orange */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
}

form.wpcf7-form input[type="submit"]:hover {
  background: #b65f24;
  transform: translateY(-2px);
}

/* Error/validation messages */
.wpcf7-not-valid-tip {
  color: #d9534f;
  font-size: 0.9rem;
}

.wpcf7-response-output {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
}

/* Success message */
.wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Error message */
.wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 0) Kill clearfix pseudo-elements that become grid items */
.woocommerce ul.products:before,
.woocommerce ul.products:after,
.woocommerce-page ul.products:before,
.woocommerce-page ul.products:after {
  content: none !important;
  display: none !important;
}

/* 1) Real 3-column grid (no gaps, no offset) */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  grid-auto-flow: row;
}

/* 2) Neutralize floats/inline widths/row markers that break rows */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Kill WooCommerce's "first/last" & nth-child row hacks */
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce ul.products.columns-3 li.product:nth-child(3n),
.woocommerce ul.products.columns-3 li.product:nth-child(3n+1),
.woocommerce ul.products li.product:nth-child(3n),
.woocommerce ul.products li.product:nth-child(3n+1) {
  clear: none !important;
  margin-right: 0 !important;
}

/* 3) Warm, subtle card styling (no shrinking) */
.woocommerce ul.products li.product {
  background: #f7fbff;
  border: 1px solid #e6eef7;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Hide all preset donation buttons (Donate 50, 100, 200) on ALL devices */
.woocommerce div.product form.cart button[alt="Donate 50"],
.woocommerce div.product form.cart button[alt="Donate 100"],
.woocommerce div.product form.cart button[alt="Donate 200"] {
  display: none !important;
}

/* Hide entire extra forms that may hold preset buttons */
.woocommerce div.product form.cart + form.cart,
.woocommerce div.product form.cart + form.cart + form.cart,
.woocommerce div.product form.cart + form.cart + form.cart + form.cart {
  display: none !important;
}

/* Hide the quantity input everywhere */
.woocommerce div.product form.cart .quantity {
  display: none !important;
}

/* Style the remaining Donate button with a warm gradient */
form.cart:first-of-type button.single_add_to_cart_button.button.alt {
  background: linear-gradient(135deg, #f9b37d, #f77f61) !important; /* peach → coral */
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;  /* fully rounded pill shape */
  border: none !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 24px auto !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(247, 127, 97, 0.3) !important; /* soft glow */
  transition: all 0.3s ease !important;
}

/* Hover effect: brighter + slight lift */
form.cart:first-of-type button.single_add_to_cart_button.button.alt:hover {
  background: linear-gradient(135deg, #ff9966, #ff5e62) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 6px 14px rgba(247, 127, 97, 0.45) !important;
}

/* Contact form styled like Screenshot 1 Volunteer Box */
#contact-box .wpcf7,
#contact-box .contact-section-form,
#contact-box form.wpcf7-form {
  background: #fffaf5 !important;   /* soft peachy background */
  border-radius: 20px !important;   /* smooth rounded corners */
  padding: 30px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
  border: none !important;
  max-width: 600px; /* optional: keep it neat */
}

/* Input fields */
#contact-box .wpcf7 input[type="text"],
#contact-box .wpcf7 input[type="email"],
#contact-box .wpcf7 input[type="tel"],
#contact-box .wpcf7 input[type="date"],
#contact-box .wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #e6b68c;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: border 0.3s ease;
}

#contact-box .wpcf7 input:focus,
#contact-box .wpcf7 textarea:focus {
  border-color: #d48442;
  outline: none;
}

/* Submit button */
#contact-box .wpcf7 input[type="submit"] {
  background: #d48442;   /* warm orange like in Screenshot 1 */
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
  margin: 0 auto; /* center button */
}

#contact-box .wpcf7 input[type="submit"]:hover {
  background: #b96a2f;
}

/* Default state */
.abt-join-btn {
  background-color: #e6cba8 !important; /* soft beige */
  color: #000 !important;              /* dark text for readability */
  border-radius: 6px;                  /* optional: slightly rounded corners */
  transition: all 0.3s ease-in-out;    /* smooth hover effect */
}

/* Hover state */
.abt-join-btn:hover {
  background-color: #89a5bf !important; /* soft blue-gray */
  color: #fff !important;               /* white text */
}

