.elementor-52738 .elementor-element.elementor-element-6cbdd8b{--display:flex;--min-height:335px;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--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-2786ea5 img{width:150px;}.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%;--min-height:0px;--gap:016px 0px;--row-gap:016px;--column-gap:0px;--padding-top:020vw;--padding-bottom:020vw;--padding-left:0vw;--padding-right:0vw;}.elementor-52738 .elementor-element.elementor-element-2786ea5 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-52738 .elementor-element.elementor-element-ad69ad0 > .elementor-widget-container{margin:0px 0px 0px 0px;}.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 *//* Divider */
.divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0 !important;
}


/* === Layout === */
.project-layout {
  display: grid;
  grid-template-columns: 3fr 1fr; /* left 2/3, right 1/3 */
  gap: 2rem;
  font-family: 'lato';
  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;
  border: solid 1px #EEEEEE;
  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://dev.nazarene.org/wp-content/uploads/2025/09/Search-Icon.svg') no-repeat 12px center;
    background-size: 16px;
    padding-left: 38px;
}

/* Breadcrumbs and Sort */
.breadcrumbs-sort {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 1rem;
    align-items: center;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 6px;
}
.breadcrumbs-mobile {
    display: none;
}
.bread-link,
.bread-link-active {
    margin: 0;
}
.bread-link a {
    color: #7D7E81;
    margin: 0;
}
.bread-link a:hover {
    color: #4A4B4C;
}
.bread-link-active {
    color: #f47b20;
    font-weight: 600;
    margin: 0;
    pointer-events: none;
}

/* Back Button */
.back-btn {
    display: none;
}

/*--- Sort Filter ---*/
.filter-sort {
  max-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.filter-sort label{
    width: 4rem;
    display: block;
}
.filter-sort select {
    font-size: 16px;
    width: 8rem;
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url(https://dev.nazarene.org/wp-content/uploads/2025/10/arrow-down.svg) no-repeat right 10px center / 12px auto;
    padding: 6px 10px !important;
    border-radius: 8px;
    border: solid 1px #EEEEEE;
    background-color: #F7F7F7;
    
}

/* --- Checkbox Filter Groups --- */
#filter-region-wrapper .filter-option input[type="checkbox"],
#filter-featured-wrapper .filter-option input[type="checkbox"],
#filter-team-rv-wrapper .filter-option input[type="checkbox"]
{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #CCC;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

/* checkmark (custom icon via pseudo-element) */
#filter-region-wrapper .filter-option input[type="checkbox"]:checked,
#filter-featured-wrapper .filter-option input[type="checkbox"]:checked,
#filter-team-rv-wrapper .filter-option input[type="checkbox"]:checked
{
  background-color: #F89626;
  border-color: #F89626;
}
#filter-region-wrapper .filter-option input[type="checkbox"]:checked::after, 
#filter-featured-wrapper .filter-option input[type="checkbox"]:checked::after,
#filter-team-rv-wrapper .filter-option input[type="checkbox"]:checked::after
{
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

/* --- Others Filter Group --- */
.filter-others {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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


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


/* --- 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: 1px 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;
}



/* === 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; }

/* Tags */
.tags {
    margin-bottom: 0.5rem;
}

/* Featured tag */
.featured-tag,
.rv-tag {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
}
.featured-tag img,
.rv-tag img {
    height: 10px;
    width: 10px;
}
.featured-tag img path {
    fill: #123;
}
.featured-tag p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    background-clip: text !important;
    color: transparent;
    background: linear-gradient(135deg, rgba(251, 176, 66, 1) 0%, rgba(239, 66, 55, 1) 100%);
}

/* RV Tag */
.rv-tag p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #40996E;
}

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

/* Project title */
.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    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 shimmer effect */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Skeleton base styles */
.skeleton-thumb,
.skeleton-line {
  background: #e0e0e0;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Skeleton layout */
.skeleton-thumb {
  width: 100%;
  height: 240px;
  border-radius: 0 0 8px 8px;
  margin-bottom: 10px;
}

.skeleton-line.full {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-line.medium {
  height: 14px;
  width: 70%;
  margin-bottom: 8px;
}

.skeleton-line.short {
  height: 14px;
  width: 40%;
}

/* Fade transition between skeleton and real content */
.project-card.skeleton-loading {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.project-card.loaded {
  opacity: 1;
}

.project-card.skeleton-fade-out {
  opacity: 0;
}






/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    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;
}





/* Mobile */
@media (max-width: 640px) {
    .project-layout {
        gap: 1.5rem;
    }
    .project-cards {
        grid-template-columns: 1fr !important;
    }
    .filter-sort {
        min-width: 80%;
    }
    .filter-sort select {
        min-width: auto;
    }
}

/* Laptop */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }
    .project-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-summary {
        
        
    }
    .project-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
        position: relative;
        top: 0;
    }
    .breadcrumbs-sort {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .breadcrumbs {
        display: none;
    }
    .bread-sidebar {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }
    .breadcrumbs-mobile {
        display: flex;
        flex-wrap: wrap;
    }
    .bread-link,
    .bread-link-active {
        white-space: nowrap;
    }
}

/* 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;
}



/* Collapse Function */
.filter-group.collapsible .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-group.collapsible .filter-content {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height 0.3s ease-in-out;
}

.filter-group.collapsible .collapse-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    transition: transform 0.3s ease;
    transform: rotate(0deg); 
}

.filter-group.collapsible:not(.collapsed) .collapse-icon {
    transform: rotate(180deg); 
}

.filter-group.collapsible:not(.collapsed) .filter-content {
    max-height: 1000px;
}


.filter-group.collapsible.collapsed .filter-content {
    max-height: 0 !important;
}/* End custom CSS */