
.categories-hero {
    min-height: calc(100vh - 0px);
    background-image: url("{% static 'background/osr_background.png' %}");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.categories-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}
.categories-inner {
    position: relative;
    padding: 2.25rem 0 2.5rem;
}


/* Card button look */
.cat-card {
    display: block;
    text-decoration: none;
    background: var(--color-border-default);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transition: transform 350ms ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -webkit-transition: transform 350ms ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -moz-transition: transform 350ms ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -ms-transition: transform 350ms ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -o-transition: transform 350ms ease, box-shadow 0.12s ease, border-color 0.12s ease;
    height: 100%;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.cat-card:hover {
    border: 2px solid var(--color-border-hover);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    /* box-shadow: 0 10px 22px rgba(0,0,0,0.45); */
    /* border-color: rgba(255,255,255,0.18); */
    transform: translateY(-25px);
    -webkit-transform: translateY(-25px);
    -moz-transform: translateY(-25px);
    -ms-transform: translateY(-25px);
    -o-transform: translateY(-25px);
}

.cat-card-body {
    padding: 0.75rem 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Icon area */
.cat-icon {
    /* background: var(--color-bg); Consider removing */
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;  /* keeps the top square icon area */
    width: 100%;
    overflow: hidden;
}
.cat-icon img {
    /*border: 1px solid var(--color-bg);
    */width: 84%;
    height: 84%;
    /*filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
    *//*-webkit-filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
    */object-fit: contain;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

/* Label area (all caps like screenshot) */
.cat-label {
    margin-top: 0.55rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make the grid feel tighter on desktop */
@media (min-width: 992px) {
.categories-inner {
    padding: 2.75rem 0 3.25rem;
}
}

.card-bg {
    /*background: rgba(17,17,17,0.92);*/
    background: var(--color-bg-highlight);
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}