/*
  Theme Name: NCRA
  Theme URI: https://bushwickdesign.com
  Version: 1.0.6
  Template: Divi
  Author: Bushwick Design
  Author URI: https://bushwickdesign.com
  Text Domain: ncra
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --black: #1f2a32;
  --dblue: #4b5e6f;
  --teal: #7591a9;
  --lblue: #b2c2cf;
  --gray: #e6ebef;
  --brown: #3b2513;
  --mbrown: #5b452b;
  --lbrown: #b2a182;
}

.ncra-mesh-gradient-section {
  background-color: hsla(203,29%,15%,1);
  background-image: 
    radial-gradient(at 99% 98%, hsla(205,23%,75%,0) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(207,23%,56%,1) 0px, transparent 50%),
    radial-gradient(at 100% 13%, hsla(208,19%,36%,1) 0px, transparent 50%);
  position: relative; /* Ensure positioning context for pseudo-element */
  z-index: 0; /* Ensure pseudo-element can be layered correctly */
}

.ncra-light-mesh-gradient-section {
  background-color: hsla(204, 23%, 95.5%, 1);
  background-image:
    radial-gradient(at 80% 100%, hsla(204, 27%, 77.5%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(205, 23%, 67.5%, 1) 0px, transparent 50%);
  position: relative; /* Ensure positioning context for pseudo-element */
  z-index: 0; /* Ensure pseudo-element can be layered correctly */
}

.ncra-brown-mesh-gradient-section {
  background-color: hsla(27,51%,15%,1);
  background-image:
    radial-gradient(at 0% 100%, hsla(25,37%,36%,1) 0px, transparent 50%),
    radial-gradient(at 100% 13%, hsla(37,20%,60%,0.37) 0px, transparent 50%);
  position: relative; /* Ensure positioning context for pseudo-element */
  z-index: 0; /* Ensure pseudo-element can be layered correctly */
}

.ncra-mesh-gradient-section::after, 
.ncra-light-mesh-gradient-section::after,
.ncra-brown-mesh-gradient-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.15; /* Adjust for desired noise intensity, was 0.07 */
  pointer-events: none; /* Make sure it doesn't interfere with clicks */
  z-index: 1; /* Place noise on top of the gradient */
}

.ncra-brown-mesh-gradient-section::after {
  opacity: 0.15;
}

.et-fixed-header #top-menu .join-button a {
  color: #1C2A33 !important;
}

.et_pb_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.et_pb_button::after {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
 }

 button[data-action="stop"] {
  display: none;
}

.ncra-tiny-slider, .ncra-tiny-slider-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ncra_tiny_slider_item {
  margin-bottom: 0 !important;
}

.et_pb_tabs_controls.clearfix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7.5px !important;
  border-radius: 10px;
}

.et_pb_tabs_controls > * {
  flex: 1;
  text-align: center;
  border-radius: 10px;
}

.et_pb_tabs_controls li {
  border-right: 0 !important;
}

body.et_pb_button_helper_class .et_pb_button, body.et_pb_button_helper_class .et_pb_module.et_pb_button {
  color: #ffffff;

}
.ncra-policy-position-item .ncra-download-button, .ncra-policy-position-item .ncra-read-more-button {
  display: inline-block;

  padding: 8px 15px;

  text-decoration: none;

  border: 1px solid transparent;

  border-radius: 3px;

}
.et_button_icon_visible .et_pb_button {
  padding-right: 2em;

  padding-left: .7em;

}

body .et_pb_button.ncra-download-button {
  border: 1px solid var(--dblue) !important;
  background-color: transparent !important;
  color: var(--dblue) !important;
  border-width: 1px !important;
}

body .et_pb_button.ncra-download-button::after {
  rotate: 90deg !important;
}

body .et_pb_button.ncra-download-button:hover, body .et_pb_button.ncra-read-more-button:hover {
  color: #fff !important;
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  padding: 8px 15px !important;
}

.ncra-policy-position-item .ncra-policy-position-tags a {
  background-color: var(--dblue) !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 5px 10px !important;
  border-radius: 25px !important;
  transition: background-color 0.3s ease !important;
}

.ncra-policy-position-item .ncra-policy-position-tags a:hover {
    text-decoration: none !important;
    background-color: var(--teal) !important;
}

.ncra-policy-position-date {
  font-weight: 500;
}

.ncra-policy-position-item {
  border: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 15px;
}

.ncra-policy-positions-grid-wrapper {
  gap: 40px !important;
}
.et_pb_tab {
  padding: 0 !important;
}

.et_pb_tab .et_pb_section {
  background-color: transparent !important;
  padding: 0 !important;
}

.ncra-policy-position-item {
  background-color: #fff !important;
}

#directors-secretariat .et_pb_tabs_controls.clearfix, #resources-tabs .et_pb_tabs_controls {
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  background-color: #fff;
}

#directors-secretariat .et_pb_all_tab, #resources-tabs .et_pb_all_tab {
  padding-top: 1em;
}

#directors-secretariat, #resources-tabs {
  overflow: initial;
}

#directors-secretariat .et_pb_tab_content .et_pb_row, #resources-tabs .et_pb_tab_content .et_pb_row {
  max-width: 100% !important;
  width: 100% !important;
  padding-top: 40px !Important;
}

.ncra-resources-viewing-info {
  font-size: 1.125em !important;
}

.ncra-resource-item {
  background-color: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border: none !important;
}

.ncra-resources-grid-wrapper {
  gap: 30px !important;
}

.ncra-resource-meta {
  border-top: none !important;
}

.ncra-no-resources-found {
  text-align: left !important;
  padding: 0 !important;
  padding-bottom: 0px !important;
  font-weight: 600 !important;
}

.ncra-resource-item {
  overflow: hidden;
}

/* .ncra-tiny-slider-item img {
  max-width: 200px;
} */

.ncra-tiny-slider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.et_pb_button:hover {
  filter: brightness(1.1);
}
 
.et_pb_button{
  transition: filter 0.3s ease;
}

#about-mission-row .et_pb_toggle_open {
  border-left-color: var(--teal);
}

#about-mission-row .et_pb_toggle {
  transition: border-left-color 0.3s ease;
}

#about-mission-row .et_pb_toggle::before {
  content:"";
  position: relative;
  background-image: url(https://ncra:8890/wp-content/themes/ncra/img/check.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 27px;
  height: 27px;
  float: left;
  margin-right: 20px;
}

#about-mission-row .et_pb_toggle_open::before {
  content:"";
  background-image: url(https://ncra:8890/wp-content/themes/ncra/img/check-blue.svg);
}

#about-mission-row .et_pb_toggle_content {
  margin-left: 47px;
}

#about-mission-row .et_pb_toggle_title::before {
  display: none !important;
}

#about-whycdr-cards-row .et_pb_module {
  height: 100% !important;
}

.select2-container--default .select2-selection--single {
  border: none;
  font-size: 1.125em;
}

.select2 {
  min-width: 200px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border-radius: 15px;
  font-weight: 500;
}


.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 5px 10px !important;
}

.select2-container .select2-selection--single {
  height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 20px;
  transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__arrow::before {
  content:"";
  background-image: url(https://ncra:8890/wp-content/themes/ncra/img/arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 10px;
  display: block;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

.select2-dropdown {
  border: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

/* === NCRA Button Arrow Icon === */
.et_pb_button::after {
  /* These existing rules are important for Divi's button icon spacing and alignment */
  /* position: relative !important; */ /* Already set by Divi or other custom CSS */
  /* top: 0 !important; */ /* Reset or ensure base positioning */
  /* left: 0 !important; */ /* Reset or ensure base positioning */
  /* transform: none !important; */ /* Reset transforms if any were previously applied */
  /* margin-left: 0 !important; */ /* Reset margins if any */
  /* margin-right: 0 !important; */
  /* margin-top: 0 !important; */
  /* margin-bottom: 0 !important; */

  /* New rules for SVG mask */
  content: "" !important; /* Crucial: Ensures the pseudo-element is generated */
  display: inline-block; /* Allows width, height, and proper flow with text */
  width: 16px; /* SVG width */
  height: 15px; /* SVG height */
  background-color: currentColor; /* Takes the button's text color */
  -webkit-mask-image: url('img/arrow.svg');
  mask-image: url('img/arrow.svg');
  -webkit-mask-size: contain; /* Scale mask to fit within element */
  mask-size: contain;
  -webkit-mask-repeat: no-repeat; /* Prevent tiling */
  mask-repeat: no-repeat;
  -webkit-mask-position: center; /* Center the mask */
  mask-position: center;
  vertical-align: middle; /* Better alignment with button text */
  /* Adjust margin-left if it's not automatically handled by the gap in .et_pb_button */
  /* If .et_pb_button has display:flex and gap, this margin might not be needed */
  /* margin-left: 8px; /* Add some space between text and icon */
}

/* Ensure Divi's default icon (if any) is hidden if we're overriding it */
.et_pb_button.et_pb_custom_button_icon[data-icon]::after {
    /* This selector targets buttons where Divi might add its own icon via data-icon */
    /* We are already styling .et_pb_button::after, so this might be redundant */
    /* If Divi's icon still appears, we might need to hide it more forcefully: */
    /* e.g., font-size: 0 !important; or similar for Divi's specific icon implementation */
}

/* Special case for ncra-download-button if it needs to maintain its rotation */
body .et_pb_button.ncra-download-button::after {
  /* The rotate: 90deg !important; is already defined above and should still apply */
  /* If the mask makes it look odd when rotated, adjustments might be needed here */
  /* For example, ensuring its transform-origin is center if not by default */
}

/* Arrow for #latest-news-blog .more-link */
#latest-news-blog .more-link::after {
  content: "" !important;
  display: inline-block;
  width: 16px; /* SVG width */
  height: 15px; /* SVG height */
  background-color: currentColor; /* Takes the link's text color */
  -webkit-mask-image: url('img/arrow.svg');
  mask-image: url('img/arrow.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(-45deg);
  vertical-align: middle; /* Adjust as needed for alignment */
  margin-left: 5px; /* Add some space between link text and icon */
  transition: transform 0.3s ease-in-out; /* Added for smooth hover effect */
}

/* Hover effect for .more-link arrow */
#latest-news-blog .more-link:hover::after {
  transform: translateX(5px) rotate(-45deg); /* Move right and maintain rotation */
}

/* Capitalize first letter of .more-link */
#latest-news-blog .more-link::first-letter {
  text-transform: uppercase;
}



.select2-container .select2-selection--single {
  border-radius: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #000;
}

.ncra-members-filter-item {
  flex: initial !important;
}

.select2-selection__clear {
  display: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 5px 30px 5px 10px !important;
}

.entry-content table:not(.variations) {
  border: none;
  background-color: #fff;
  margin-bottom: 0 !important;
}

body .et_pb_button.ncra-download-button::after {
  display: none;
}

.ncra-policy-position-item .ncra-policy-position-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.ncra-tag-flag-image {
  max-height: 1.25em;
}

.page-id-327 .et_pb_tab_content > p:first-child {
  display: none;
}

.page-id-327 .et_pb_tab_content {
  padding-top: 20px;
}

.mobile_menu_bar::before {
  color: #fff !important;
}

.et_mobile_menu li a {
  padding: 5px 0 !important;
}

#mobile_menu .join-button {
  margin-top: 5px;
  width: auto;
  display: inline-flex;
}

#mobile_menu {
  padding: 0 25px 25px;
}

#about-discover-image1 {
  width: 100% !important;
}

#about-discover-image1 img {
  height: auto;
  aspect-ratio: 1;
  width: 100%;
}

@media (max-width:1166px) {
  .container.et_menu_container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 25px;
    padding-right: 25px;
  }
  
}

@media (max-width:990px) {
  #main-header #logo {
    object-fit: contain;
    max-width: 100%;
  }
  #hero-section .et_pb_image_wrap img {
    height: 50vw;
  }
.et_pb_menu_0_tb_footer {
  padding-left: 0 !important;
}
.et-l--footer .mobile_menu_bar {
  display: none;
}
.et-l--footer .et_mobile_menu {
  position: relative;
}
.et-l--footer .et_pb_menu .et_mobile_nav_menu {
  width: 100%;
}
.et-l--footer .mobile_nav, .et-l--footer .et_mobile_menu {
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.et-l--footer .et_mobile_nav_menu {
  margin: 0 !important;
}
.et-l--footer .et_pb_row {
  width: 100% !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.et-l--footer .et_pb_menu .et_mobile_menu {
  top: 0 !important;
}
.et-l--footer .et_mobile_menu {
  display: block !important;
}
}

@media only screen and (max-width: 980px) {
  body #page-container .et_pb_section .et_pb_button::after {
    opacity: 1 !important;
  }
}

@media (max-width:768px) {
  .ncra-resource-item img {
    width: 100%;
  }
  .ncra-members-table-outer-wrapper .ncra-members-table-wrapper .ncra-members-table {
    width: auto;
    max-width: initial;
    overflow-x: auto;
    font-size: 1em;
  }
  .ncra-members-table-outer-wrapper .ncra-members-table-wrapper .ncra-members-table th, .ncra-members-table-outer-wrapper .ncra-members-table-wrapper .ncra-members-table td {
    padding: 10px;
  }
  #hero-section .et_pb_image_wrap img {
    max-height: 250px;
    width: 100% !important;
  }
  #about-mission-row .et_pb_toggle::before {
    float: none;
    display: block;
    margin-bottom: 10px;
  }
  #about-mission-row .et_pb_toggle_content {
    margin-left: 0;
  }
  .et_pb_section > .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
  }
  .et_pb_tabs_controls.clearfix {
    flex-direction: column;
  }
  .et_pb_tabs_controls > li {
    width: 100% !important;
    max-width: 100% !Important;
    text-align: center;
    justify-content: center;
    display: flex;
    border: 0 !important;
  }
}


.et-fixed-header #top-menu li.current-menu-ancestor.join-button>a, .et-fixed-header #top-menu li.current-menu-item.join-button>a, .et-fixed-header #top-menu li.current_page_item.join-button>a {
  color: rgb(28, 42, 51) !important;
}

.et_pb_section.popup {
  padding: 30px;
}

.ncra-tiny-slider-item img {
  max-width: 175px;
  max-height: 100px;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.et_pb_all_tabs .et_pb_image:not(:first-child) {
  clear: both;
  margin-top: 20px;
  display: block;
  padding-top: 20px;
  max-width: 150px;
  max-height: 100px;
}

.et_pb_all_tabs .et_pb_image * {
  width: 100%;
}

.ncra-resource-item .et_pb_image_container img {
  max-height: 200px;
  object-fit: cover;
}

.ncra-resource-item h3 {
  min-height: 47px;
}

.member-featured-image.wp-post-image {
  max-width: 75px;
  margin-right: 10px;
  object-fit: contain;
}

.filter-flag {
  width: 15px !important;
  height: 12px !important;
  object-fit: cover;
}

#membership-wg-section .et_pb_blurb_container {
  padding-bottom: 0 !important;
}

#directors-secretariat .et_pb_text {
  clear: none !important;
  float: left !important;
}

#et-boc .area-outer-wrap.popup_outer_wrap, .et_pb_section.popup {
  border-radius: 25px;
  overflow: hidden !important;
  box-shadow: none !important;
  max-width: 1320px;
}

.et_pb_section.popup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.5; /* Adjust for desired noise intensity */
  pointer-events: none; /* Make sure it doesn't interfere with clicks */
  z-index: 1; /* Place noise on top of the background */
}

#et-boc .area-outer-wrap[data-da-color="light"] .da-close {
  background-color: transparent;
  right: .5em;
  top: .5em;
  border-radius: 50%;
}

/* Add noise texture to all sections that are NOT mesh gradients */
.et_pb_section:not(.ncra-mesh-gradient-section):not(.ncra-light-mesh-gradient-section):not(.ncra-brown-mesh-gradient-section) {
  position: relative; /* Ensure positioning context for pseudo-element */
}

.et_pb_section:not(.ncra-mesh-gradient-section):not(.ncra-light-mesh-gradient-section):not(.ncra-brown-mesh-gradient-section)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.08; /* Lower opacity for non-gradient sections */
  pointer-events: none; /* Make sure it doesn't interfere with clicks */
  z-index: 1; /* Place noise on top of the background but below content */
}

/* Apply SVG mask to home hero section image */
.home #hero-section .et_pb_image img {
  -webkit-mask: url('./img/mask.svg') no-repeat center center;
  -webkit-mask-size: cover;
  mask: url('./img/mask.svg') no-repeat center center;
  mask-size: contain;
}

#membership-benefits-row img, #membership-benefits-row .et_pb_image_wrap {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  object-fit: contain;
}

#directors-secretariat .et_pb_tab_content .et_pb_text {
  clear: none !important;
  float: left !important;
}

#left-area .post-meta {
  display: none !important;
}