#hp-cards {

    width: 100%;
    max-width: 1418px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    /* ─── Card outer shell ─── */
    .card {
        border-radius: 12px;
        border: 1px solid #F3F3F3;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 0 1px rgba(0, 0, 0, 0.04);
        background: #fff;
        padding: 10px;
        cursor: pointer;

        /* Desktop: fixed total height */
        height: 327px;
        display: flex;
        flex-direction: column;
    }

    /* ─── Inner image area ─── */
    .card__image {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        background: #c8c8c8;
        flex: 1 1 auto;
        min-height: 0;
    }

    /* ─── Image (object-cover) ─── */
    .card__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.001);
        transform-origin: center;
        transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: transform;
    }

    /* Subtle zoom on card hover */
    .card:hover .card__image img {
        transform: scale(1.05);
    }

    /* Dark gradient overlay — bottom-heavy */
    .card__image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.06) 0%,
                rgba(0, 0, 0, 0.32) 100%);
        pointer-events: none;
        z-index: 1;
    }

    /* ─── Full-cover link ─── */
    .card__cover-link {
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    /* ─── Card content (inside image) ─── */
    .card__body {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 24px;
        pointer-events: none;
    }

    .card__title {
        font-size: 40px;
        font-weight: 700;
        color: #fff;
        line-height: 1.15;
        letter-spacing: -0.3px;
        margin-bottom: 24px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    /* ─── Tags row ─── */
    .card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        pointer-events: none;
    }

    .tag {
        display: inline-flex;
        align-items: center;
        height: 32px;
        padding: 0 18px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.95);
        color: #111;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }

    /* Tags that are links need pointer-events restored */
    a.tag {
        position: relative;
        z-index: 4;
        pointer-events: auto;
    }

    a.tag:hover {
        background: #2563eb;
        color: #fff;
    }

    /* ─── Arrow button ─── */
    .card__arrow {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 4;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(6px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: background 0.15s;
        pointer-events: none;
    }

    .card:hover .card__arrow {
        background: rgba(255, 255, 255, 0.32);
    }

    .card__arrow svg {
        width: 15px;
        height: 15px;
    }

    /* ─── Mobile: square image area (single column) ─── */
    @media (max-width: 1024px) {

        .grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .card {
            height: auto;
        }

        .card__image {
            aspect-ratio: 1 / 1;
            flex: none;
        }

        .card__title {
            font-size: 40px;
            margin-bottom: 24px;
            width: 66%;
        }

        .card__tags {
            gap: 8px;
        }
    }
}