/* Modern project catalogue */

.page-content {
    background: #f6f9fc;
    padding: 0 5% 76px;
}

.page-hero {
    min-height: 300px;
    height: 300px;
    background:
        linear-gradient(115deg, rgba(4, 47, 82, .94), rgba(7, 89, 165, .72)),
        url("../images/projects/gis.jpg") center / cover;
}

.page-hero > div {
    max-width: 760px;
    padding: 24px;
}

.projects-hero-kicker,
.section-kicker {
    display: inline-block;
    color: #a9e6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.page-hero h2 {
    margin-top: 12px;
    font-size: 32px;
    letter-spacing: 1px;
}

.page-hero p {
    max-width: 590px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.65;
}

.projects-intro {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 0 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.projects-intro-copy {
    max-width: 650px;
}

.projects-intro .section-kicker {
    color: #0877bd;
}

.projects-intro h1 {
    margin: 10px 0 12px;
    color: #102f49;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.15;
}

.projects-intro p {
    margin: 0;
    color: #64778a;
    font-size: 15px;
    line-height: 1.75;
}

.projects-stats {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.projects-stats div {
    min-width: 105px;
    padding: 16px 14px;
    border: 1px solid #dfeaf3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 73, 110, .07);
}

.projects-stats strong,
.projects-stats span {
    display: block;
}

.projects-stats strong {
    color: #0877bd;
    font-size: 25px;
    line-height: 1;
}

.projects-stats span {
    margin-top: 7px;
    color: #718096;
    font-size: 11px;
    line-height: 1.35;
}

.projects-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    min-height: 285px;
    padding: 26px 25px 24px;
    overflow: hidden;
    border: 1px solid #e1eaf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 73, 110, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0877bd, #24b5c8);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #b9d9ed;
    box-shadow: 0 18px 36px rgba(21, 73, 110, .13);
}

.project-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.project-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #0877bd;
    background: #eaf6fd;
    font-size: 18px;
}

.project-category {
    color: #0877bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.35;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 0 0 14px;
    color: #153a58;
    font-size: 20px;
    line-height: 1.3;
}

.project-card p {
    margin: 0 0 13px;
    color: #66798b;
    font-size: 13px;
    line-height: 1.65;
}

.project-card p:last-child {
    margin-bottom: 0;
    padding-top: 13px;
    border-top: 1px solid #edf2f5;
    color: #788998;
}

.project-card strong {
    color: #3a566c;
    font-weight: 700;
}

/* Keep the project page footer compact without sacrificing readability. */
footer {
    padding-top: 0;
}

footer .footer-grid {
    padding: 28px 5% 20px;
    gap: 24px;
}

footer .f-col h5 {
    margin-bottom: 10px;
    font-size: 15px;
}

footer .f-col p {
    margin-bottom: 6px;
    font-size: 11.5px;
    line-height: 1.5;
}

footer .f-col li {
    margin-bottom: 4px;
}

footer .f-col li a {
    font-size: 11.5px;
}

footer .copyright {
    padding: 12px 5%;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-intro {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 0 4% 50px;
    }

    .page-hero {
        min-height: 245px;
        height: 245px;
    }

    .page-hero p {
        font-size: 13px;
    }

    .projects-intro {
        padding: 30px 0 24px;
        gap: 25px;
    }

    .projects-stats {
        width: 100%;
    }

    .projects-stats div {
        min-width: 0;
        flex: 1;
        padding: 14px 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 0;
    }

    footer .footer-grid {
        padding-top: 24px;
        padding-bottom: 16px;
    }
}
