/* -------------------------------------------------------
   Hero category cards — used in home tab panes
   ------------------------------------------------------- */

.category-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 35, 77, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 24px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 35, 77, 0.14);
}

/* Image */
.category-image {
    position: absolute;
    inset: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.07);
}

/* Gradient overlay */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 60%, transparent 100%);
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 35, 77, 0.65) 0%, rgba(0, 0, 0, 0.12) 60%, transparent 100%);
}

/* Text content */
.category-content {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
}

.category-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Mobile */
@media (max-width: 767.98px) {
    .category-card {
        height: 150px;
        margin-bottom: 16px;
    }

    .category-name {
        font-size: 13px;
    }
}

@media (hover: none) {
    .category-card:hover {
        transform: none;
        box-shadow: 0 4px 18px rgba(0, 35, 77, 0.08);
    }

    .category-card:hover .category-image img {
        transform: none;
    }
}
