/* ── Project Archive ─────────────────────────────────────── */

/* Breathing room between the hero (or filter tabs) and the project grid —
   matches the blog archive's row padding so archives feel consistent. */
.project-archive .page-content {
    padding-top: 4rem;
}

/* ── Grid ─────────────────────────────────────────────────── */
.project-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .project-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .project-archive__grid { grid-template-columns: 1fr; }
}

/* ── Card ─────────────────────────────────────────────────── */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: box-shadow .3s ease, transform .3s ease;
}
.project-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    transform: translateY(-3px);
}
.project-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── Card image ───────────────────────────────────────────── */
.project-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}
.project-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--wp--preset--color--secondary, #0B2169);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .project-card__img {
    transform: scale(1.06);
}
.project-card__badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .3rem .65rem;
    border-radius: 4px;
    z-index: 1;
}

/* ── Card body ────────────────────────────────────────────── */
.project-card__body {
    padding: 1rem 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}
.project-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
    line-height: 1.3;
    margin: 0;
}
.project-card__location {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .8125rem;
    color: var(--wp--preset--color--primary, #B00000);
    font-weight: 600;
    margin: 0;
}
.project-card__excerpt {
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(0,0,0,.6);
    margin: 0;
    flex: 1;
}
.project-card__cta {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #B00000);
    margin-top: .375rem;
}

/* ── Pagination ───────────────────────────────────────────── */
.archive-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1rem 0 2rem;
}
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    border-radius: 5px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    background: #f4f4f4;
    color: var(--wp--preset--color--secondary, #0B2169);
    transition: background .2s, color .2s;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
}
