body.page-id-1025 .wrap.box  {
    /* max-width:1920px;margin:0 auto;padding:110px 0px; background: #002855 !important; border-radius: 12px; */
background: none !important;
  box-shadow: none;
}

.single-project .wrap.box{max-width:1140px;margin:0 auto;padding:110px 0px;}
.single-project .wordpress-content{ margin:auto 1.5rem}
.box-docs {max-width:1742px;margin:0 auto;padding:110px 0px; background: #EDF3F7 !important; border-radius: 13px;}

/* body.page-id-1025 .guts.wordpress-styles{max-width:1920px;margin:0 auto;} */

.documents-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}
.documents-grid .icon-file{ width: 100%;}
.documents-grid .icon-file img{
    max-width: 141px;
    max-height: 183px;
}

/* Project Grid variables - cleaned and optimized */
:root{
    --pg-accent: #00A9E0;
    --pg-accent-hover: #42D0FF;
    --pg-radius: 12px;
    --pg-overlay: rgba(0,40,85,0.65);
    --pg-max-width: 81.25rem;
    --pg-gradient-color: #002855;
    --pg-gradient-height: 16rem;
}
.loadmore{margin: 0 auto;  width: 100%;}
.compliance {padding-top: 25px;}
.compliance button.submit-compliance{
    font-size: 1.144rem !important;
  width: auto !important;
  float: right ;
/*  margin-top: -34px !important;*/
  border-radius: 12px !important;
}

.compliance .wpforms-field-medium {
background-color: #EDF3F7 !important;
font-size: 1.344rem !important;
  padding: 2.4rem 1.9rem !important;
  border:none;
}

.wordpress-styles .wpforms-container.compliance  textarea.wpforms-field-medium{
    height: 21rem !important;
    /* max-height: 40rem; */
    resize: vertical; /* allow user to expand vertically */
    overflow: auto;
    box-sizing: border-box;
    padding: 1rem;
}

.compliance .wpforms-field-medium::placeholder{
    color:#434D56 !important;
    opacity: 1;
    font-size: 1.344rem !important;

} 
/* Filter UI removed: project grid loads by date only */

.project-grid{
    position: relative; /* needed for the overlay pseudo-element */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 21.063rem));
    gap: 10px;
    justify-content: center; /* center items when the row isn't full */
    max-width: var(--pg-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 5rem) !important;
}

/* Gradient overlay at bottom of grid */
  /* .project-grid::after{
  content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -160px;
    height: var(--pg-gradient-height);
    background: linear-gradient(to top, var(--pg-gradient-color) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; */
    /* z-index: 20; sits above inner elements */
/* } */

/* Enforce minimum of 4 columns when there's enough viewport space. */
@media (min-width: calc(4 * 21.063rem + 3 * 10px)) {
    .project-grid{
        grid-template-columns: repeat(4, 17.463rem);
    max-width: calc(4 * 17.463rem + 3 * 10px);
    justify-content: center;
    }
}

/* On medium screens allow 4 flexible columns that can shrink to fit */
@media (min-width: 64rem) and (max-width: calc(4 * 21.063rem + 3 * 10px - 1px)){
    .project-grid{
        grid-template-columns: repeat(4, minmax(16rem, 1fr));
        justify-content: center;
    }
}

.project-item{
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--pg-radius);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    max-width: 21.063rem; /* cap the visual size of an item */
    width: 100%; /* fill its grid cell but do not exceed max-width */
    margin-left: auto;
    margin-right: auto; /* centers item inside the grid track */
}

.project-item::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pg-overlay);
    border-radius: inherit;
}

.project-title{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.25rem);
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
    text-align: center;
    padding: 0 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.project-meta{
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    color: #fff;
}

/* Documents grid: left-aligned items with max-width 13rem */
.documents-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 13rem));
/*    gap: 10px;*/ 
    justify-content: start; /* left align when row isn't full */
    align-items: start;
    width: 100%;
    margin: 0 auto;
}
.document-item{
    max-width: 13rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    text-align: left;
}
.document-item .icon-file{ display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.document-item .document-title{ font-size: clamp(1rem, 1.6vw, 1.05rem); margin: 0; text-transform: uppercase;line-height: 1.4rem;text-align: center;width: 100%;}
.document-item .document-descriptor{  font-size:1.075rem;
    color: #434D56; text-align: center; width: 100%;
 }

#project-load-more{
    margin: 30px auto;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    border: none;
    background: transparent; /* no background */
    color: #fff; /* white text */
    cursor: pointer;
    transition: color .18s ease, transform .12s ease;
    box-shadow: none;
    width: auto;
}
#project-load-more:hover{
    color: #e6f7fb;
    transform: translateY(-1px);
}

/* Utility: center the loader in the viewport when needed (apply the class to the element) */
.project-load-more--centered{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
} 


@media (max-width: 800px){
    /* body.page-id-1025 .wrap.box {margin-bottom: 3rem;} */

}

@media (max-width: 640px){
    .project-grid{
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        gap: 10px;
    }
    .project-item{
        max-width: none; /* allow items to fill their 1fr cell on mobile */
    }
}