/*
Theme Name: NPAP-2025
Author: IvyCat
Author URI: 
Theme URI: 
Tags: full-site-editing, editor-style, block-styles, block-patterns
Text Domain: npap-2025
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.3
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}


.sidebar{ background: var(--wp--preset--color--primary); border-radius: 4px;}
.wp-site-blocks{
padding: 0;
}
main {
padding: 0 !important;
margin-top: 0 !important;
}
.post-container{
border-radius: 15px;
}
.card-news{
height: auto;       
  align-self: stretch;
border-radius: 15px;
width: 100%;
}
.card-news-image img{
border-radius: 19px;
}
.card-buttons{
gap: 0.5rem;
}
.button-full-width{
width: -webkit-fill-available;
}
.home-block{
padding: 0;
overflow: visible;
min-height: 550px !important;
max-height: 850px;
aspect-ratio: unset !important;
}
.custom-cover img,
  .custom-cover .cover-text {
    transition: opacity 0.5s ease;
  }
.custom-cover .cover-text{
margin-top: auto;
margin-bottom: auto;
}
.custom-cover .wp-block-cover__inner-container{
min-height: 550px;
max-height: 850px;
display: flex;
}
.navbar-row {
        transition: background-color 0.3s ease;
position: sticky;
top: 0;
z-index: 9999;
height: 80px;
      }
.navbar-row.white-bg {
        background-color: white;
box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.3);
      }

.logo-container{
position: relative;
width: 15%;
height: 80px;
z-index: 1500;
}
.logo-white {
  position: relative;
  top: 5px;
  right: 0;
  width: 150px;
height: auto;
  transition: opacity 0.5s ease;
z-index: 1500;
}
.logo-red img {
  position: relative;
  top: -49px;
transform: translateY(-50%);
  right: 0;
  width: 150px !important;
height: auto !important;
  transition: opacity 0.5s ease;
z-index: 1500;
}
.logo-red{
width: 150px;
height: auto;
}
.logo-white.current {
  opacity: 1;
}
.logo-white.current.hide {
  opacity: 0;
}
.logo-red.next {
  opacity: 0;
}
.logo-red.next.show {
  opacity: 1;
}
.cover-text{
max-width: 1000px;
}
.mega-sub-menu li{
margin-top: 15px;
margin-bottom: 15px;
}
.mega-sub-menu a{
color: rgb(0, 0, 0);
font-size: 16px;
font-weight: 600;
line-height: 20px;
letter-spacing: 0%;
text-align: left;
text-decoration: none;
}
.mega-sub-menu a:hover{
color: rgb(200, 16, 46);
font-size: 16px;
font-weight: 600;
line-height: 20px;
letter-spacing: 0%;
text-align: left;
text-decoration-line: underline;
}
.megamenu-section{
color: rgb(0, 0, 0);
font-size: 28px;
font-weight: 600;
line-height: 34px;
letter-spacing: -2%;
text-align: left;
}
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link-hover.mega-menu-link-hover {
         color: rgb(58, 58, 60);
      }

/* Reset only the Dashicons arrow */
#mega-menu-wrap-max_mega_menu_1 
#mega-menu-max_mega_menu_1 
li.mega-menu-item-has-children 
> a.mega-menu-link 
> span.mega-indicator:after {
    display: none !important;
}
/* Your custom arrow */
#mega-menu-max_mega_menu_1 
li.mega-menu-item-has-children 
> a.mega-menu-link 
> span.mega-indicator::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    margin-left: 6px;
margin-top: -5px;
}

#mega-menu-max_mega_menu_1 
li.mega-menu-item-has-children.mega-toggle-on 
> a.mega-menu-link 
> span.mega-indicator::before {
    transform: rotate(225deg);
}
/* Make the indicator behave like an inline-flex box */
#mega-menu-max_mega_menu_1 
li.mega-menu-item-has-children 
> a.mega-menu-link 
> span.mega-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    height: auto !important;
    vertical-align: middle !important;
    position: relative;
    top: 0 !important; /* force reset */
}
.hero-group{
margin-top: -80px !important;
margin-right: 0 !important;
margin-left: 0 !important;
}
.utility-navbar{
height: 50px;
}
.utility-search-bar input{
height: 40px;
}
.cover-group{
position: absolute;
left: 10%
}
footer {
margin-top: 0 !important;

} /* default arrow */
#mega-menu-max_mega_menu_1
li.mega-menu-item-has-children
> a.mega-menu-link
> span.mega-indicator::before {
  border-color: currentColor;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
  color: inherit !important;
}


/* 2. Arrow: border color always equals current text color,
      in ALL states (normal, hover, current, ancestor, etc.) */
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator::before,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children > a.mega-menu-link:hover > span.mega-indicator::before,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children.mega-current-menu-item > a.mega-menu-link > span.mega-indicator::before,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children.mega-current-menu-ancestor > a.mega-menu-link > span.mega-indicator::before,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children.mega-current_page_item > a.mega-menu-link > span.mega-indicator::before,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1
li.mega-menu-item-has-children.mega-current_page_ancestor > a.mega-menu-link > span.mega-indicator::before {
  border-color: currentColor !important;
}

.hero-buttons{    
width: 85%
}
h1{
text-shadow: 1px 1px 3px #000;
}
.wp-block-post-excerpt__more-text {
    margin-top: 10px;
}
.facetwp-facet-archive_facet{
    
display: flex;
    flex-direction: row;
    margin: 0 !important;
    width: -webkit-fill-available;
max-width: 100% !important;
justify-content: space-between;
}
.facetwp-display-value, .facetwp-radio{
font-size: 16px !important;
font-family: 'EB Garamond';
}
.facetwp-counter{
display: none;
}
.facetwp-radio{
background: none !important;
padding-left: 0 !important;
align-content: center;
}
.facetwp-radio.checked{
padding: 5px 10px 5px 10px !important;
background: #ff4d00 !important;
border-radius: 4px;
color: white;
}
#mega-menu-item-14986 a span::before, #mega-menu-item-15281 a span::before{
display: none !important;
}
.team-card .team-card__bio {
  display: none;
}
.team-card__title, .team-card__location{
font-size: large;
}

.hero-group.no-hero{
margin-top: -104px !important;
}
.cover-subtext{
text-shadow: 1px 1px 7px #000;
}
.footer-col a{
text-decoration: none;
}
.results-title{
max-width: 500px;
}
.donate-button a{
text-wrap: nowrap;
}
@media only screen and (max-width: 556px){
.mobile-utility-button a{
 font-size: 10px !important;
padding: 6px 4px 6px 6px !important;
text-wrap: nowrap;
}}
@media only screen and (max-width: 458px){
.donate-button a{
 font-size: 12px !important;
padding: 5px 10px 5px 10px !important;
text-wrap: nowrap;
}}
.donate-div{
margin-right: 50px !important;
}
@media only screen and (max-width: 1050px){
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator{
float: none !important;
}
.mega-menu-link{
text-align: center !important;
}
}
.wp-block-group.alignfull.has-global-padding {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
@media only screen and (max-width: 412px){
.donate-div {
    margin-right: 10px !important;
}
.mobile-navbar-row{
gap: 0.5rem;
}
}
.headshot img{
object-position: top;
}
.headshot{
aspect-ratio: 1 / 1 !important;
}
@media (max-width: 940px) { /* adjust breakpoint as needed */
  .facetwp-facet-archive_facet.facetwp-type-radio {
    display: grid;
    grid-auto-flow: column;          /* fill rows first, then new columns */
    grid-template-rows: repeat(2, auto);  /* <-- exactly TWO rows */
    column-gap: 0.75rem;
    row-gap: 0.5rem;
  }
.facetwp-facet-archive_facet.facetwp-type-radio .facetwp-radio {
    white-space: nowrap;                    /* avoid breaking labels into 2 lines */
  }
.facetwp-display-value{
font-size: 14px !important;
}
}
@media (max-width: 700px) {
  .facetwp-facet-archive_facet.facetwp-type-radio {
    grid-template-rows: repeat(4, auto);    /* now 3 rows instead of 2 */
  }
.facetwp-display-value{
font-size: 12px !important;
}
}
#mega-menu-item-14986 a, #mega-menu-item-15736 a{
line-height: 1.4 !important;
}
@media (max-width: 500px){
.wp-block-search__input{
width: 150px;
}}
@media (max-width: 400px){
.wp-block-search__input{
width: 100px;
}}
@media (max-width: 781px){
.home-title{
justify-items: center;
}
.footer-col p{
text-align: center;
}
}
#gform_fields_2{
display: flex;
}
#input_2_1{
width: 100%;
}
#gform_submit_button_2{
padding: 9px;
    background: #1A0046;
    color: white;
    border-radius: 8px;

}
@media (max-width: 781px){
#gform_wrapper_2, .social-icons, .gold-standard, .copyright-div{
display: flex;
    justify-content: center;
}
#gform_fields_2 #field_submit{
width: -webkit-fill-available;
}
.footer-logo{
    display: flex;
    justify-content: center;
    max-width: 100%;
}
.footer-logo picture{
  display: flex;
  justify-content: center;
}
}
.footer-left-column .gform_wrapper{
margin-top: 0;
}
.home-icon-group{
 border-radius: 50%;
  background: #eee;
}
.exerpt a{
background: #ff4d00;
    padding: 14px;
    border-radius: 5px;
color: white;
text-decoration: none;
margin-top: 10px;
}
.text-decoration, .text-decoration a{
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 60px;
}
.navbar-row{
background: #1A0046CC;
}
#gform_submit_button_1{
background-color: var(--wp--preset--color--contrast);
    border-top-color: #ffffff00;
    border-top-style: solid;
    border-right-color: #ffffff00;
    border-right-style: solid;
    border-bottom-color: #ffffff00;
    border-bottom-style: solid;
    border-left-color: #ffffff00;
    border-left-style: solid;
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--small);
    padding: 10px;
    border-radius: 4px;
}
.taxonomy-category a{
pointer-events: none;
text-decoration: none;
}
.single-event .event-meta-block__location{
color: var(--wp--preset--color--contrast);
font-family: var(--wp--preset--font-family--inter);
pointer-events: none;
    text-decoration: none;
font-size: var(--wp--preset--font-size--extra-small);
}
.single-event .event-meta-block__date{
font-size: var(--wp--preset--font-size--extra-small);
font-family: var(--wp--preset--font-family--eb-garamond) !important;
color: var(--wp--preset--color--black) !important;
}
/* Base grid layout */
.dynamic-two-cols {
  display: grid;
  gap: var(--wp--style--block-gap, 1.5rem);
}

/* Only 1 post → single big column */
.dynamic-two-cols:not(:has(> li:nth-child(2))) {
  grid-template-columns: 1fr;
}

/* 2 or more posts → 2 columns */
.dynamic-two-cols:has(> li:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-card__title, .team-card__location{
font-size: medium;
}
html.pum-open.pum-open-overlay.pum-open-scrollable body>:not([aria-modal=true]){
padding-right: 0 !important;
}
@media (max-width: 781px){
.footer-row-2{
justify-content: center !important;
}
#gform_fields_2{
flex-direction: column;
}
#gform_fields_2 .gform-body{
margin-top: 15px;
}
#gform_fields_2 #field_submit{
justify-content: center;
}
#gform_wrapper_2 .gform-body{
margin-top: 15px;
}
.custom-cover .wp-block-spacer{
height: 200px !important;
}
}
*:has(> .card-news) {
  display: flex;
  align-items: stretch;
}
figcaption {
font-size: 15px;
font-style: italic;
}
@media (max-width: 781px){
h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 90px;
}
}
.header-background{
	position: absolute;
	top: 0;
  bottom: 0;
	background: #1A0046CC
}

.header-background h1, .header-background p{
	padding-right: 20px;
	padding-left: 20px;
}

.mobile-donate-row{
display: none !important;
}


@media screen and (max-width: 799px) {
	.header-background{
		left: 0;
	}
  h1{
    font-size: 40px !important;
  }
  .mobile-h1-group{
    bottom: 20px !important;
    padding-right: 10% !important;
  }
}
.search h1 {
	text-shadow: none;
}


@media only screen and (max-width: 516px){
.navbar-row{
background: #1A0046;
}
.header-background h1{
margin-top: 10px;
}


.mobile-icon{
display: flex !important;
}
.mobile-donate-row{
display: flex !important;
}
.mobile-donate a{
padding: 2px !important;
}
.mobile-donate{
width: 200px !important;
}
.cover-background .wp-block-cover__inner-container{
top: 0 !important;
}
.hero-group{
margin-top: 0 !important
}

.utility-navbar, .mobile-none{
display: none !important;
}
.header-background h1{
font-size: 28px !important;
}
.header-background p, .header-background a{
font-size: 14px !important;
}

   .cover-background .wp-block-cover__inner-container{
  width: 100% !important;
min-height: 180px !important;
max-height: 200px !important;
}




.header-background .wp-block-buttons{
margin-top: 15px !important;
justify-content: center;
}
.header-background a{
padding: 2px !important;
}


.header-background h1, .header-background p{
text-align: center;
}

.cover-background img{
object-position: 70% 100% !important;
}
.hero-spacer{
display: none;
}
.cover-background{
min-height: 90vh;
}
 
	.header-background{
		width: 100% !important;
height: 100% !important
	}


}




		@media only screen and (min-width: 517px) and (max-width: 781px) {
.navbar-row{
background: #1A0046;
}
.mobile-icon{
display: flex !important;
}
.mobile-donate-row{
display: flex !important;
}
.mobile-donate a{
padding: 2px !important;
}
.mobile-donate{
width: 200px !important;
}
.cover-background .wp-block-cover__inner-container{
top: 0 !important;
}
.hero-group{
margin-top: 0 !important
}

.utility-navbar, .mobile-none{
display: none !important;
}
.header-background .wp-block-buttons{
margin-top: 15px !important;
justify-content: center;
}
.header-background a{
padding: 2px !important;
}
.header-background h1{
margin-top: 10px;
}


.header-background h1, .header-background p{
text-align: center;
}

.cover-background img{
object-position: 70% 100% !important;
}
.hero-spacer{
display: none;
}
.cover-background{
min-height: 90vh;
}
    .cover-background .wp-block-cover__inner-container{
  width: 100% !important;
min-height: 220px !important;
max-height: 250px !important;
}
	.header-background{
		width: 100% !important;
height: 100% !important
	}
}
	@media only screen and (min-width: 782px) and (max-width: 1200px) {
	.header-background{
		width: 400px;
	}
.header-background h1{
		font-size: 1.6em;
	}
.header-background p{
		font-size: 16px !important;
	}
.header-background a{
		font-size: 14px !important;
padding-right: 5px !important;
padding-left: 5px !important;
	}
}
@media only screen and (min-width: 1201px) and (max-width: 1400px) {
	.header-background{
		width: 500px;
	}
}
@media only screen and (min-width: 1401px) {
	.header-background{
		width: 600px;
	}
}
.cover-background .wp-block-cover__inner-container {
    top: 79px;
    height: 100%;
min-height: 550px;
    max-height: 850px;
    display: flex;
    position: relative;
    width: 100%;
}

.mobile-icon{
display: none;
}
.mobile-icon img{
transition: filter .2s ease, opacity .2s ease;
}
.navbar-row.white-bg .mobile-icon img{
  filter: brightness(0);  /* white -> black */
}

.navbar-row.white-bg .mega-toggle-animated-box{
filter: brightness(0);
}

.navbar-icons,
.mobile-icon {
  position: relative;
}

/* your existing button reset (if you already have it, keep one copy) */
.nav-icon-btn{
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

/* dropdown panel */
#nav-search-panel.nav-search-panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 90vw);
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 99999;
}

/* input styling */
#nav-search-panel input[type="search"],
#nav-search-panel input[name="s"]{
  width: 100%;
  box-sizing: border-box;
}

.search-form-mobile{
display: flex;
gap: 10px;
align-items: center;
}
.search-form-mobile label{
width: 100%;
}
.search-form-mobile label input{
height: 30px;
}
.mobile-search-submit{
background: #ff4d00;
    padding: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    margin-top: 0px;
border: none;
}

@media only screen and (min-width: 1401px) and (max-width: 1850px){
.cover-background, .cover-background .wp-block-cover__inner-container{
min-height: 700px !important;
}
.hero-spacer{
height: 120px !important;
}
}
@media only screen and (min-width: 1851px) {
.cover-background, .cover-background .wp-block-cover__inner-container{
min-height: 800px !important;
}
.hero-spacer{
height: 150px !important;
}
}
.mobile-icon a{
display: flex;
}

.charity-navigator {
width: 100px;
}
.footer-logo img{
  max-width: 60%;
}

.card-news-image picture{
  display: flex;
  }
  .card-news-image img{
  object-fit: cover;
  }