/* Resources page: card grid */
.resources-hub {
    max-width: 1280px;
    padding: 72px 6% 88px;
}

.resources-hub .resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 0;
    counter-reset: guide;
}

.resources-hub .resource-grid > a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 34px 32px 28px;
    background: #fff;
    border: 1px solid #dfe3dc;
    border-top: 4px solid #32b44a;
    border-radius: 6px;
    color: #202020;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Brand colour rhythm across the cards */
.resources-hub .resource-grid > a:nth-child(3n + 2) {
    border-top-color: #f3b817;
}

.resources-hub .resource-grid > a:nth-child(3n + 3) {
    border-top-color: #ed1c24;
}

/* Auto numbering: 01, 02, 03 ... */
.resources-hub .resource-grid > a::before {
    counter-increment: guide;
    content: counter(guide, decimal-leading-zero);
    display: block;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8a8f88;
}

.resources-hub .resource-grid > a:hover {
    transform: translateY(-4px);
    border-color: #c9d3c5;
    background: #fff;
    box-shadow: 0 14px 34px rgba(32, 32, 32, 0.08);
}

.resources-hub .resource-grid > a:focus-visible {
    outline: 3px solid #b47c00;
    outline-offset: 4px;
}

.resources-hub .resource-grid h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.resources-hub .resource-grid p {
    margin: 0 0 28px;
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #555c55;
}

/* "Explore" footer row pinned to the bottom of each card */
.resources-hub .resource-grid > a > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e6e9e3;
    font-size: 16px;
    font-weight: 700;
    color: #174b32;
    transition: color 0.2s;
}

.resources-hub .resource-grid > a:hover > span {
    color: #32b44a;
}

/* Call to action below the grid */
.resources-hub .article-cta {
    margin-top: 64px;
    padding: 40px 44px;
    border-radius: 6px;
}

.resources-hub .article-cta h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.resources-hub .article-cta p {
    margin: 0 0 26px;
}

/* Tablet */
@media (max-width: 1050px) {
    .resources-hub .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .resources-hub .resource-grid > a {
        min-height: 280px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .resources-hub {
        padding: 44px 6% 64px;
    }

    .resources-hub .resource-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .resources-hub .resource-grid > a {
        min-height: 0;
        padding: 26px 22px 22px;
    }

    .resources-hub .resource-grid > a::before {
        margin-bottom: 16px;
    }

    .resources-hub .resource-grid h2 {
        font-size: 23px;
    }

    .resources-hub .resource-grid p {
        margin-bottom: 22px;
        font-size: 16px !important;
    }

    .resources-hub .resource-grid > a > span {
        padding-top: 16px;
    }

    .resources-hub .article-cta {
        margin-top: 44px;
        padding: 28px 22px;
    }

    .resources-hub .article-cta h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resources-hub .resource-grid > a,
    .resources-hub .resource-grid > a > span {
        transition: none;
    }

    .resources-hub .resource-grid > a:hover {
        transform: none;
    }
}