
/*
Theme custom styles for quick changes.
Add any CSS here to affect the whole site without rebuilding block assets.
*/

/* Example: Change bullet color for all lists */
ul li::marker, ol li::marker {
  color: var(--wp--preset--color--yellow);
}

ul {
	padding-inline-start: 1em;
}

.z-1 {
  z-index: 1;
}

.disable-list-style ul {
    list-style: none;
    padding-left: 0;
}


@media (max-width: 990px) {
  .grid-container {

  }
  .grid-item-a { order: 2; }
  .grid-item-b { order: 1; }

  .mobile-hide {
    display: none;
  }

}




/* Homepage Cards */

/* Container */
.grant-card-wrapper {
    border: 1px solid #B1B2B5;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    display: flex; /* Ensures cells sit side-by-side */
}

/* The Image */
.grant-card-wrapper > div:first-child {
    flex: 1;
    min-height: 350px;
    z-index: 1; /* Sit below the curve */
}

/* The Text */
.grant-card-wrapper > div:last-child {
    position: relative;
    margin-left: -60px; /* Pulls the text under the curve */
    z-index: 1;
    overflow: visible !important; /* CRITICAL: Allows the curve to 'leak' out the left side */
}

/* The Curve  */
.grant-card-wrapper > div:last-child::after {
    content: "";
    position: absolute;
    top: -315px;
    left: -25%; /* Pulls the curve out to the LEFT over the image */
    width: 900px; /* Wider width makes for a smoother, shallower curve */
    height: 900px;
    background: #fff;
    /* Mirror the radius: Rounded on the left, flat on the right */
    border-radius: 200%;
    z-index: -1; /* Ensures it sits on top of the image cell */
    margin-left:70px;
}

@media (min-width: 1044px) {
   /* image */
  .grant-card-wrapper:nth-child(4n+1) > div:first-child, .grant-card-wrapper:nth-child(4n+2) > div:first-child {
    order: 2;
    z-index: 1;
  }
  
  /* text */
  .grant-card-wrapper:nth-child(4n+1) > div:last-child, .grant-card-wrapper:nth-child(4n+2) > div:last-child  {
    order: 1;
    z-index: 2;
    margin-left:0px;
    margin-right: -60px;
    text-align: left;
  }

  /* circle */ 
.grant-card-wrapper:nth-child(4n+1) > div:last-child::after, .grant-card-wrapper:nth-child(4n+2) > div:last-child::after {
    margin-left:-530px    
  }
.grant-card-wrapper:nth-child(2n+1) > div, .grant-card-wrapper:nth-child(2n+2) > div {
    align-items: flex-end !important;
    text-align: right !important;
  }

.grant-card-wrapper:nth-child(4n+1) > div, .grant-card-wrapper:nth-child(4n+2) > div  {
    text-align: left !important;
    align-items: flex-start !important;  
  }

}


@media (max-width: 1044px) {
.grant-card-wrapper > div {
    align-items: flex-end !important;
    text-align: right !important;
  }
}

@media (max-width: 480px) {
.grant-card-wrapper > div:last-child {
    margin-left: -100px;
  }
}


/* cards for pages */

.gc-card-container {
      overflow: hidden;
      background-position: right center !important;
      background-size:  auto 100% !important;
}

.gc-card-text {
    clip-path: ellipse(100% 120% at 0% 50%);
    min-height: 300px;
    display: absolute;
    top:0;
    background-color: #fff;
    text-align: left !important;
    align-items: flex-start !important;
    margin-right: -60px !important;
    padding-right: 60px !important;
  }

.gc-card-container-reverse {
      overflow: hidden;
      background-position: right center !important;
}

.gc-card-text-reverse {
    clip-path: ellipse(100% 110% at 100% 80%);
    min-height: 300px;
    display: absolute;
    top:0;
    background-color: #fff;
    text-align: right !important;
    align-items: flex-end !important;
    margin-left: -60px !important;
  }

@media (max-width: 768px) {
  .gc-card-container {
    grid-template-columns: 1fr;
    background-position: center top !important;
  }
  .gc-card-text  {
    margin-right: 0px !important;
    padding-right: var(--wp--preset--spacing--50) !important;
    clip-path:none !important;

  }

  .gc-card-space {
    height: 200px;
    clip-path: ellipse(160% 100% at 50% 100%) !important;
  }
}

/* The Utility Class to flip the curve horizontally */
.is-flipped-curve {
    clip-path: ellipse(100% 100% at 0% 50%) !important;
    min-height: 300px;
}

/* Mobile fix: Ensure it still curves at the top when stacked */
@media (max-width: 781px) {
    .is-flipped-curve {
        clip-path: ellipse(100% 100% at 50% 100%) !important;
            order:2;
    }
}



/* Contact Form 7 Custom Styles */

.wpcf7-form input[type="text"], 
.wpcf7-form input[type="email"], 
.wpcf7-form input[type="url"], 
.wpcf7-form input[type="password"], 
.wpcf7-form input[type="search"], 
.wpcf7-form input[type="number"], 
.wpcf7-form input[type="tel"], 
.wpcf7-form textarea {
    box-sizing: border-box;
    color: #1f252b;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top:5px;
    font-size: 18px;
    font-family: "Source Sans 3", sans-serif;
}

.wpcf7-form fieldset {
    border:none;

}

.wpcf7-form p {
    margin: 0 0 28px;
}

.wpcf7-form input[type="text"]:focus, .wpcf7-form input[type="email"]:focus, .wpcf7-textarea:focus {
    outline: 1px solid #ccc;  
    outline-offset: 0;
}

div.wpcf7-mail-sent-ok {
    border: 0;
    background: #5471de;
    color: #fff;
    padding: 18px;
}

div.wpcf7-acceptance-missing,
div.wpcf7-validation-errors {
    border: 0;
    background: #f9443b;
    color: #fff;
    padding: 18px;
    display: inline-block;
}

span.wpcf7-not-valid-tip {
    color: #f9443b;
    display: inline-block;
    margin-top:5px;
}

/* 
** Button Styles 
*/

.wpcf7-form .wpcf7-submit {
    background-color: var(--wp--preset--color--teal);
    border: 0;
    text-align: center;
    margin-bottom: 15px;
    width: auto;
    padding-bottom: 14px;
    padding-left: 26px;
    padding-right: 26px;
    padding-top :14px;
    border-radius: 50px;
    cursor: pointer;
    color:#fff;
    font-size: inherit;
}

.max-homepage-hero {
  max-width: 50vw;
}

:root :where(.wp-element-button, .wp-block-button__link):hover {
  margin-top: 1px;
  margin-bottom: -1px;
}

html {
	scroll-behavior: smooth;
}

.textDecoration--none {
	text-decoration: none;
}