.category-wall {
    margin: 40px 0;
    color: #26374c;
}

.category-wall__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-wall__item {
    min-width: 0;
}

.category-wall__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    overflow-wrap: anywhere;
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 4px;
    color: #26374c;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.category-wall__card:hover,
.category-wall__card:focus {
    border-color: #415774;
    color: #26374c;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(38, 55, 76, 0.12);
}

.category-wall__card:focus-visible {
    outline: 3px solid #415774;
    outline-offset: 3px;
}

.category-wall__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    background: #f5f8fc;
    border-radius: 2px;
    overflow: hidden;
}

.category-wall__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.category-wall__placeholder {
    color: #8a9bb1;
    font-size: 54px;
}

.category-wall__name {
    margin: 0 0 20px;
    color: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.category-wall__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #b51211;
    font-size: 13px;
    font-weight: 700;
}

.category-wall__action .fa {
    font-size: 21px;
}

@media (max-width: 991px) {
    .category-wall__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .category-wall__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-wall__card {
        transition: none;
    }
}
