.elementor-52738 .elementor-element.elementor-element-6cbdd8b{--display:flex;--min-height:335px;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:center;--align-items:center;--margin-top:0vw;--margin-bottom:02vw;--margin-left:0vw;--margin-right:0vw;}.elementor-52738 .elementor-element.elementor-element-6cbdd8b:not(.elementor-motion-effects-element-type-background), .elementor-52738 .elementor-element.elementor-element-6cbdd8b > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:transparent;background-image:linear-gradient(19deg, #FBB042 0%, #EF4237 100%);}.elementor-52738 .elementor-element.elementor-element-ad69ad0 .elementor-heading-title{font-family:var( --e-global-typography-aa88610-font-family ), Sans-serif;font-size:var( --e-global-typography-aa88610-font-size );font-weight:var( --e-global-typography-aa88610-font-weight );line-height:var( --e-global-typography-aa88610-line-height );color:var( --e-global-color-13c64e8 );}.elementor-52738 .elementor-element.elementor-element-1345c2a{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0rem;--margin-bottom:04rem;--margin-left:0rem;--margin-right:0rem;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-52738 .elementor-element.elementor-element-b82d73e > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}:root{--page-title-display:none;}@media(max-width:1024px) and (min-width:729px){.elementor-52738 .elementor-element.elementor-element-1345c2a{--content-width:90%;}}@media(max-width:1440px){.elementor-52738 .elementor-element.elementor-element-ad69ad0 .elementor-heading-title{font-size:var( --e-global-typography-aa88610-font-size );line-height:var( --e-global-typography-aa88610-line-height );}}@media(max-width:1024px){.elementor-52738 .elementor-element.elementor-element-ad69ad0 .elementor-heading-title{font-size:var( --e-global-typography-aa88610-font-size );line-height:var( --e-global-typography-aa88610-line-height );}}@media(max-width:728px){.elementor-52738 .elementor-element.elementor-element-6cbdd8b{--content-width:90%;}.elementor-52738 .elementor-element.elementor-element-ad69ad0{text-align:center;}.elementor-52738 .elementor-element.elementor-element-ad69ad0 .elementor-heading-title{font-size:var( --e-global-typography-aa88610-font-size );line-height:var( --e-global-typography-aa88610-line-height );}.elementor-52738 .elementor-element.elementor-element-1345c2a{--content-width:90%;}}@media(max-width:1440px) and (min-width:729px){.elementor-52738 .elementor-element.elementor-element-1345c2a{--content-width:90%;}}@media(min-width:2400px){.elementor-52738 .elementor-element.elementor-element-ad69ad0 .elementor-heading-title{font-size:var( --e-global-typography-aa88610-font-size );line-height:var( --e-global-typography-aa88610-line-height );}}/* Start custom CSS for shortcode, class: .elementor-element-b82d73e *//* === Layout === */
.project-layout {
  display: grid;
  grid-template-columns: 3fr 1fr; /* left 2/3, right 1/3 */
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* Left main (cards) */
.project-main {
  width: 100%;
}

/* Right sidebar */
.project-sidebar {
  top: 172px;
  position: sticky;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 1rem;
}

/* --- Filters Container --- */
#project-db-filters {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* --- Search Bar --- */
.filter-search {
    width: 100%;
    background: white;
    border-radius: 8px;
}
.filter-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #EEEEEE;
}
#filter-search {
    background: url('https://nazarene.org/wp-content/uploads/2025/09/Search-Icon.svg') no-repeat 12px center;
    background-size: 16px;
    padding-left: 38px;
}

/*--- Sort Filter ---*/
.filter-sort {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
  gap: 8px;
}
.filter-sort label{
    width: 50%;
}

/* --- Radio Filter Groups --- */
.filter-radio-groups {
    flex: 1;
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}


/* --- Single Filter Group --- */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filter-title {
    font-weight: 600;
    font-size: 20px;
    color: #414042;
    margin-bottom: 2px;
}
.filter-group.region {
    margin-bottom: 16px;
}

/* --- Radio Options --- */
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #414042;
    cursor: pointer;
}
.filter-option input[type="radio"] {
  appearance: none;       /* removes default OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;
  height: 18px;
  border: 2px solid #CCC;
  border-radius: 4px;     /* ← make it square (set 50% for circle) */
  background: white;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  background: #F89626;
  border-radius: 2px;
}
    
    
    
}
.filter-option input:disabled + label {
  color: #aaa;
  cursor: not-allowed;
}

/* --- Reset Button --- */
#filter-reset {
  background: #4A4B4C;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s;
}
#filter-reset:hover {
  background: black;
}





/* === Loading Spinner === */
.project-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #0073e6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
    display: none; /* Hidden by default */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




/* === Project Cards === */
.project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                opacity 0.3s ease, transform 0.3 ease;
    overflow: hidden;
    transform: translateY(10px);
}
.project-card.not-loaded {
  opacity: 0;
  transform: translateY(10px);
}
.project-card.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover effect */
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Thumbnail wrapper */
.project-thumbnail {
    position: relative;
}

.project-thumbnail img.project-photo {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Region tag overlay */
.region-tag {
    position: absolute;
    top: 16px;
    padding: 6px 10px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase !important;
    color: #fff;
    background-color: #6b7280; /* default */
}

/* Region color variations */
.region-africa { background-color: #E8BE1F; }
.region-asia-pacific { background-color: #836AA3; }
.region-eurasia { background-color: #40996E; }
.region-usa-canada { background-color: #F47B20; }
.region-south-america { background-color: #C72D26; }
.region-mesoamerica { background-color: #53819A; }

/* Content wrapper */
.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
    border-radius: 0 0 12px 12px;
}

/* Project title */
.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.project-title a {
    color: #414042;
    text-decoration: none;
}
.project-title a:hover {
    color: #F47C21;
}

/* Summary truncated, reserve space even if empty */
.project-summary {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
}

/* Project meta pinned at bottom */
.project-meta {
    list-style: none;
    padding: 0;
    margin-top: auto; /* pushes meta to bottom */
    font-size: 0.85rem;
    color: #555;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

.project-category .category-icon {
    flex-shrink: 0;
}

.project-category .category-icon img {
    width: 16px;
    height: 16px;
    display: block;
}


/* ==Skeleton Animation== */
@keyframes pulse {
  0% { background-color: #f3f3f3; }
  50% { background-color: #e0e0e0; }
  100% { background-color: #f3f3f3; }
}

.skeleton-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: pulse 1.5s infinite ease-in-out;
}

/* Thumbnail placeholder */
.skeleton-thumb {
  width: 100%;
  height: 180px; /* closer to your project thumbnails */
  border-radius: 8px;
  margin-bottom: 12px;
  background: #e0e0e0;
}

/* Text lines */
.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: #e0e0e0;
  margin-bottom: 8px;
}

.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full   { width: 100%; }





/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 24px;
}

.pagination-btn {
    border: none;
    background: none;
    color: #4A4B4C;
    border-radius: 8px;
    font-weight: 400;
    padding: 12px 16px;
}

.pagination-btn.current-page {
    background: #5DBF8B;
    color: white;
}

.pagination-btn:hover {
    color: #5DBF8B;
    background: none;
}





/* Tablet */
@media (max-width: 640px) {
    .project-cards {
        grid-template-columns: 1fr !important;
    }
    .project-summary {
        
        
    }
}

/* Laptop */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
    }
    .project-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-summary {
        
        
    }
    .project-sidebar {
        margin-bottom: 1.5rem;
        position: relative;
        top: 0;
    }
}

/* Widescreen/Desktop */
@media (min-width: 1440px) {
    .project-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* ==No Results== */
.no-results {
    color: #555;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 350px;
    gap: 12px
}

.no-results-icon {
    height: 40px !important;
    width: 100%;
}

.no-results p {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.no-results .reset-btn {
  width: fit-content;
  background: #4A4B4C;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.no-results .reset-btn:hover {
  background: black;
}





/* Button hover */
#filter-button:hover {
  background: #1d4ed8;
}/* End custom CSS */