/**
Theme Name: astra-child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

:root {
    --f_blue: #003478;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'League Spartan', Sans-serif !important;
}

h2 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

body {
    font-family: 'Helvetica', sans-serif !important;
}

body p {
    margin-bottom: 1.1em;
}

#wp-admin-bar-elementor_edit_page {
    display: none
}

.ast-container,
.ast-container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px !important;
    padding-right: 0px !important;
}


/* language switcher */
body .trp-language-switcher {
    height: auto;
    width: auto;
}

body .elementor-shortcode .trp-language-switcher>div {
    width: 35px !important;
    border: none;
    padding: 0px;
    background-position: center right;
    background-color: #fff;
}

body .elementor-shortcode .trp-language-switcher>div.trp-ls-shortcode-current-language {
    background-color: initial;
}

.trp-language-switcher>div>a:hover {
    background: none;
}

body .trp-language-switcher>div>a {
    padding: 0px;
    font-size: 14px;
}

.trp-language-switcher:focus .trp-ls-shortcode-language,
.trp-language-switcher:hover .trp-ls-shortcode-language {
    visibility: visible;
    max-height: 250px;
    padding: 0px 10px;
    height: auto;
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block !important;
    min-height: auto;
    width: 45px !important;
    border: 1px solid #e7e7e7;
    top: 2px;
    left: -10px;
}




/* Contact Form */
body .frm_style_formidable-style.with_frm_style .form-field {
    margin-bottom: 5px;
}

.site-primary-footer-wrap {
    padding-bottom: 0px;
}

body .frm_style_formidable-style.with_frm_style .frm_submit button {
    background: none;
    border: none;
    box-shadow: none;
    text-transform: uppercase;
    color: #000;
    font-weight: 600;
    border-radius: 0px;
}

body .frm_style_formidable-style.with_frm_style .frm_submit button:hover {
    background: black;
    color: #fff;

}

body .with_frm_style .frm_submit.frm_flex {
    justify-content: end;
}

.with_frm_style .frm_inside_container>input,
.with_frm_style .frm_inside_container>select,
.with_frm_style .frm_inside_container>textarea {
    border-radius: 0px;
}



/* Projects */
.alphabetical-navigation {
    display: flex;
    justify-content: space-between;
    width: 90%;
	align-content:center;
	margin-left: 5%;
}

.alphabetical-navigation a {
    color: #0A97D9;
}

/* google map */
/* Style for the info window content */

.gm-style .gm-style-iw {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.marker-info {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    text-align: center;
    min-width: 20px;
}

.marker-info-window {
    position: relative;
    padding: 0px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

/* Padding for main content below the heading */
.marker-info-window p {
    padding-top: 2px;
    margin: 0;
    font-size: 14px;
    color: #333;
}

.marker-info-window .popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marker-info-window .popup-footer .category-name {
    font-size: 0.9em;
}

/* Overflow content handling inside the scrollable container */
.gm-style-iw-d {
    max-height: 200px;
    overflow-y: auto;
    padding-top: 15px;
}

/* Close button adjustment */
.gm-style-iw-chr {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 99;
}

.marker-info-window ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0px;
}

.marker-info-window li {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 10px;
    margin-top: 8px;
}

.marker-info-window li:not(:last-of-type) {
    border-bottom: 1px solid #d7d7d7;
}

.marker-info-window strong {
    flex-grow: 1;
    font-weight: 600;
}

.marker-info-window a {
    display: inline-block;
    background: none;
    padding: 0;
    color: #000;
}

.marker-info-window a:hover {
    color: #003478
}

.marker-info-window .project-info a:last-of-type::after {
    content: '→';
    font-size: 1.2em;
    color: #333;
}

.marker-info-window .project-info a:last-of-type::after:hover {
    color: #003478
}

.acf-map-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    margin-top: -50px;
}

.acf-map {
    width: 100%;
    height: 100%;
    transition: width 0.3s ease;
    float: right;
    display: none;
    height: 75vh !important;
}

.acf-map.map-with-sidebar {
    width: calc(100% - 300px);
}

.acf-map.map-full-width {
    width: 100%;
}

gmp-internal-camera-control {
    display: none;
}

.side-panel {
    position: absolute;
    left: 0;
    top: 40px;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #ccc;
    padding: 0px 20px 20px 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 9;
    display: none;
}

@media (min-width: 1350px) {
    .side-panel {
        width: 450px;
    }
}

.side-panel h3 {
    margin-top: 0;
    line-height: 1em;
    font-size: 1.5em;
}

.side-panel a {
    color: #003478;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.3em;
}

.side-panel-content {
    margin-top: 20px;
}

.side-panel-content ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

.side-panel-content>h3 {
    margin-bottom: 5px
}

.nice-select ul {
    margin: 0px;
}

/* Global option */
#project-type-filter~.nice-select .list li[data-value="global"],
#project-type-filter~.nice-select .list li[data-value="global"]:hover {
    background-color: #DDA63A !important;
    color: #fff !important;
}
/* Regional */
#project-type-filter~.nice-select .list li[data-value="regional"],
#project-type-filter~.nice-select .list li[data-value="regional"]:hover {
    background-color: #357E44 !important;
    color: #fff !important;
}

/* National option */
#project-type-filter~.nice-select .list li[data-value="national"],
#project-type-filter~.nice-select .list li[data-value="national"]:hover {
    background-color: #003478 !important;
    color: #fff !important;
}


/* Style the currently selected option in the main box */
#project-type-filter~.nice-select .current {
    color: #000;
}

/* Project category label */
.project-category {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 2px;
    margin-top: 3px;
    font-style: italic;
}

/* Layout for the project item in the sidebar */
.marker-info-window li {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Sidebar styles */
.project-hero-image {
    width: 100px;
    object-fit: cover;
    margin-right: 10px;
    float: left;
}

/* Title */
.marker-info-window strong {
    font-size: 1.1em;
    flex-grow: 1;
    margin-bottom: 10px;
}

.marker-info-window p {
    clear: both;
    font-size: 0.9em;
}

#side-panel .project-item {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    padding-bottom: 15px;
}

.marker-info-window div.project-item:not(:last-of-type) {
    border-bottom: 1px solid #d7d7d7;
}

#side-panel .project-image a {
    min-width: 100%;
}

#side-panel .project-image a img {
    min-width: 100%;
    aspect-ratio: 3.5 / 1;
    object-fit: cover;
}

#close-sidebar {
    padding: 5px 9px;
    font-size: 0.6em;
    position: absolute;
    right: 0px;
    background: black;
    top: 0px;
    border-radius: 0px;
}

/* Spinner styles */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #003478;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: var(--content-width);
    margin: 0 auto;
    margin-top: 60px;
    gap: 30px;
    padding: 0px 20px;
    min-width: 100%;
}

.project-grid>p {
    width: 100%;
    text-align: center;
}

.project-grid .project-item {
    flex: 0 0 calc(25% - 23px);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;

}

@media (max-width: 768px) {
    .project-grid .project-item {
        flex: 0 0 100%;
        /* 1 item per row */
    }
}

.project-grid .project-item a {
    text-decoration: none;
    color: white;
}

.project-grid .project-item .background {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    position: relative;
}

.project-grid .project-item .background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(4deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.project-grid .project-item h6 {
    margin: 0;
    color: white;
    z-index: 2;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px #000000d4;
}

.project-grid .project-item h3 {
    margin: 0;
    color: white;
    z-index: 2;
    font-size: 1em;
    line-height: 1.1em;
    font-size: 1.1em;
    font-weight: 400;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 0;
    margin: 0 auto;
    margin-bottom: -35px;
    margin-top: 30px;
    text-align: center;
    align-items: center;
}


.filter label {
    margin-right: 10px;
    font-weight: bold;
}

.filter select {
    padding: 5px 10px;
    width: 200px;
}

.project-type-container {
    display: block;
    text-align: left;
}

.project-type-container label {
    display: block;
    font-size: 14px;
    cursor: pointer;
}

#project-type-global {
    accent-color: #DDA63A;
}

#project-type-national {
    accent-color: #003478;
}
#project-type-regional {
    accent-color: #357E44;
}

.global-checkbox {
    color: #357E44;
}

.national-checkbox {
    color: #003478;
}

/* Spinner Container */
.filter-spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* New Spinner Styling */
.filter-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Reset Filters Button Container */
.filter-reset-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        margin-bottom: -80px;
    }

    .filter-spinner-container {
        margin-top: -13px;
        margin-bottom: 20px;
    }

    .filter-reset-container {
        position: absolute;
        margin-top: -300px;
        right: 4px;
    }
}

/* Hidden Class to Hide Elements While Retaining Space */
.hidden {
    visibility: hidden;
}

/* Visible Class to Show Elements */
.visible {
    visibility: visible;
}

/* Reset Filters Button Styling */
.reset-filters-button {
    padding: 7px 10px;
    background-color: #003478;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.reset-filters-button:hover {
    opacity: 0.9;
}

.tutorial_link {
    display: none;
}

.project-status-line {     
    font-size: 0.8em;
    margin-top: 5px; 
}

.project-status {
    color:#000;
}

.map-notice{
    margin-top: 40px;
    margin-bottom: -42px;
    font-style: italic;
}

/* Override the default SearchWP spinner */
.spinner {
    width: 40px !important;
    height: 40px !important;
    position: relative;
    display: block !important;
    background: transparent !important;
    animation: none !important;
    left: 50% !important;
    top: 35% !important;
}

.spinner>* {
    display: none !important;
    animation: none !important;
    background: transparent !important;
}

.spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
    background: white;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Facetwp */
body .facetwp-facet {
    margin-bottom: 0px;
}

body .facetwp-checkbox {
    margin-bottom: 15px;
    padding-left: 25px;
    line-height: 18px;
    font-size: 0.95em;
    letter-spacing: -0.5px;
}

.facetwp-checkbox.checked {
    filter: invert(31%) sepia(94%) saturate(1856%) hue-rotate(191deg) brightness(95%) contrast(108%);
}

.facetwp-checkbox.checked span {
    filter: none;
}

body .facetwp-selections ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

body .facetwp-selections ul>li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: none;
    padding: 0;
}

body .facetwp-selections .facetwp-selection-label {
    display: none
}

body .facetwp-selections .facetwp-selection-value {
    display: inline-flex;
    align-items: center;
    background: #0a97d9;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

body .facetwp-selections .facetwp-selection-value::after {
    content: " ×";
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
}

body .facetwp-type-reset {
    margin-top: 10px;
}

/* Adds shadow only when filters are active */
body .filters-active {
    padding: 20px;
    box-shadow: 1px 1px 10px 4px rgba(0, 0, 0, 0.1);
}

.filters-container.filter-loading {
    pointer-events: none;
    opacity: 0.7;
    filter: blur(0.5px);
    cursor: not-allowed;
}

body .selections-label {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: block;
}

/* Add line between loop grid items */
body .elementor-loop-container:not(#home-loop .elementor-loop-container) .e-loop-item:not(:last-of-type) {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
}

.resource-tags-list {
    font-weight: 400;
    font-style: italic;
    color: #959595
}

.resource-tags-list strong {
    font-weight: 600;
    font-style: normal;
    color: #000
}

.external-link-icon {
    width: 13px;
    display: inline-block;
    color: #003478;
}

.facetwp-type-sort select {
    font-size: 0.9em;
    padding: 5px;
}

.e-loop-item .ae-acf-repeater-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    justify-content: center;
}

.e-loop-item .ae-acf-repeater-item {
    min-width: 120px;
}

.e-loop-item .elementor-button {
    white-space: nowrap;
    text-align: center;
    padding: 10px 16px;
}

body .facetwp-slider-reset {
    display: none;
}

body .slider-years {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1em;
}

body .facetwp-type-slider .facetwp-slider-label {
    display: none;
}

body .facetwp-flyout-open {
    background: #0a97d9;
    width: 100%;
}

body .facetwp-flyout .name-sort_results,
body .facetwp-flyout .name-selected_facets>h3 {
    display: none;
}

body .facetwp-flyout .flyout-row {
    padding: 20px;
}



.elementor-widget-heading h2.elementor-heading-title,
body .elementor-widget-container h2 {
    color: #4a4a4a !important;
}

.grecaptcha-logo {
    opacity: 0;
}

/* Wrapper */
.faq-accordion-wrapper {
    margin-bottom: 2em;
}
@media (min-width: 1025px) {
    .faq-accordion-wrapper {
        margin-top: -15px;
    } 
}

/* Expand/Collapse Controls */
.faq-accordion-controls {
    text-align: right;    
    font-size: 0.8rem;
    cursor: pointer;
}

/* Accordion Item */
.faq-accordion-item {
    /* border-bottom: 1px solid #ddd; */
    padding: 0.1em 0;
    margin-bottom: 1em;
}

/* Accordion Header (the clickable title row) */
.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    background: #f7f9fb;
    padding: 15px 30px;
}

/* Icon (plus/minus) */
.faq-accordion-icon {
    margin-left: 1em;
}

.faq-accordion-icon.plus-icon::before {
    content: "+";
}

.faq-accordion-icon.minus-icon::before {
    content: "-";
}

/* Hidden content by default (shown via JS) */
.faq-accordion-content {
    display: none;
    padding: 10px 50px 0px;
}
@media (max-width: 786px) {
    .faq-accordion-content {
        padding: 10px 20px 0px;
    } 
}

#project-resources-container {
    padding: 0px 60px;
}

#newsletter-iframe {
    transition: height 0.3s ease;
}

#map-legend {
  position: absolute;
  top: 50px;
  left: 10px;
  background: rgba(173, 216, 230, 0.85); /* light blue */
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #000;
  z-index: 8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#map-legend div {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.legend-dot.global {
  background-color: #DDA63A; /* mustard */
}

.legend-dot.national {
  background-color: #003478; /* navy */
}

.legend-dot.regional {
  background-color: #357E44; /* green */
}

.symbol {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    background: #fff;
    line-height: 18px;
}

#pwbox-9328 {
	padding-bottom:20px!important;
}

body .with_frm_style .frm_message, .frm_success_style {
    background-color: #ffffff;
    color: #000000;
}
body .with_frm_style .frm_message p {
    margin-bottom: 5px;
    color: #000000;
}

