/* Projects Grid */
#projects-grid-container .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#projects-grid-container .projects-grid-item {
    width: 100%;
}

#projects-grid-container .projects-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

#projects-grid-container .projects-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

#projects-grid-container .projects-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#projects-grid-container .projects-card-body {
    padding: 16px 0;
}

#projects-grid-container .projects-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

#projects-grid-container .projects-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #777;
    margin: 0;
}

#projects-sector-select{
	padding: 5px;
    min-width: 200px;
}

.projects-filter-controls{
    color: #000;
	font-family: 'Chakra Petch';
    font-size: 18px;
	display: flex;
    gap: 30px;
}

.projects-filter-checkboxes{
	align-items: center;
	display: flex;
    gap: 15px;
}

/* 1. Hide the default browser checkbox but keep it functional */
.projects-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 2. Style the UNSELECTED state */
.projects-checkbox-custom {
    display: inline-block;
    width: 24px;                  /* Size of your checkbox */
    height: 24px;                 /* Size of your checkbox */
    background-color: #ffffff;    /* White background */
    border: 1px solid #000000;    /* Black border */
    border-radius: 0;             /* Removes any rounded corners */
    margin-right: 8px;            /* Space between box and text */
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;       /* Ensures padding/borders don't alter size */
}

/* 3. Style the SELECTED state (Keeps white bg and black border) */
.projects-checkbox-label input:checked ~ .projects-checkbox-custom {
    background-color: #ffffff;    
    border-color: #000000;
}

/* 4. Create the checkmark icon (Hidden by default) */
.projects-checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    
    /* Position the checkmark inside the box */
    left: 8px;
    top: 4px;
    
    /* Dimensions of the checkmark lines */
    width: 6px;
    height: 12px;
    
    /* Make the checkmark BLACK */
    border: solid #000000;
    border-width: 0 3px 3px 0;
    
    /* Rotate the borders into a checkmark shape */
    transform: rotate(45deg);
}

/* 5. Reveal the black checkmark when selected */
.projects-checkbox-label input:checked ~ .projects-checkbox-custom::after {
    display: block;
}

/* Optional: Clean alignment for the label text */
.projects-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 20px;
    font-size: 16px; 
    user-select: none; /* Prevents text highlighting on double click */
}
/* Responsive */
@media (max-width: 900px) {
    #projects-grid-container .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    #projects-grid-container .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ── FA SVG Spinner ────────────────────────────────────────── */
.projects-fa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    width: 100%;
}

.projects-spin-icon {
    width: 48px;
    height: 48px;
    fill: #333;
    animation: projects-fa-spin 1s linear infinite;
}

@keyframes projects-fa-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}