.project-home-section {
    padding: 40px 0;
    background-color: #ffffff;
    font-family: var(--theme-font-family, Arial, sans-serif);
    font-size: var(--theme-font-size, 14px);
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.project-home-header {
    margin-bottom: 5rem;
}

.project-home-subtitle {
    color: var(--theme-primary-color, #1b4332);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 1rem;
}

.project-home-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .project-home-title-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.project-home-title {
    font-size: 3rem;
    font-weight: 900;
    color: color-mix(in srgb, var(--theme-primary-color, #1b4332) 80%, black);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .project-home-title {
        font-size: 4.5rem;
    }
}

.project-home-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-home-filter-btn {
    background-color: #ffffff;
    color: var(--theme-primary-color, #1b4332);
    padding: 0.5rem 1.5rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.project-home-filter-btn:hover {
    background-color: var(--theme-primary-color, #1b4332);
    color: #ffffff;
}

.project-home-filter-btn.active {
    background-color: var(--theme-primary-color, #1b4332);
    color: #ffffff;
}

.project-home-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.project-home-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

#project-home-ajax-wrapper.project-home-loading {
    position: relative;
    min-height: 200px;
}

#project-home-ajax-wrapper.project-home-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--theme-primary-color, #1b4332);
    border-top-color: transparent;
    border-radius: 50%;
    animation: project-home-spin 0.8s linear infinite;
}

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

.project-home-card {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 4px solid var(--theme-primary-color, #1b4332);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-bottom-width 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
}

.project-home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom-width: 12px;
}

@media (min-width: 768px) {
    .project-home-card {
        width: calc((100% - 3rem) / 2);
    }
}

@media (min-width: 992px) {
    .project-home-card {
        width: calc((100% - 6rem) / 3);
    }
}

.project-home-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.project-home-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(27, 67, 50, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.project-home-card:hover .project-home-image-wrapper::before {
    opacity: 1;
}

.project-home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* filter: grayscale(100%); */
    transition: all 0.5s ease;
    transform: scale(1);
}

.project-home-card:hover .project-home-image {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.project-home-card-content {
    padding: 2rem;
    transition: padding 0.3s ease;
}

.project-home-card:hover .project-home-card-content {
    padding-top: 1.75rem;
}

.project-home-location {
    color: var(--theme-primary-color, #1b4332);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.project-home-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: color-mix(in srgb, var(--theme-primary-color, #1b4332) 80%, black);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-home-card:hover .project-home-card-title {
    color: var(--theme-primary-color, #1b4332);
}

.project-home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-primary-color, #1b4332);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.project-home-card:hover .project-home-link {
    gap: 1rem;
    color: color-mix(in srgb, var(--theme-primary-color, #1b4332) 120%, black);
}

.project-home-link .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.project-home-card:hover .project-home-link .material-symbols-outlined {
    transform: translateX(4px);
}

.project-home-empty {
    text-align: center;
    padding: 3rem 0;
    color: color-mix(in srgb, var(--theme-primary-color, #1b4332) 60%, black);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .project-home-section {
        padding: 40px 0;
    }
    
    .project-home-header {
        margin-bottom: 3rem;
    }
    
    .project-home-title {
        font-size: 2.5rem;
    }
    
    .project-home-grid {
        gap: 2rem;
    }
    
    .project-home-card-content {
        padding: 1.5rem;
    }
}
