
.card-categories {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.card-categories:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary);
}

.category-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 12.5rem;
    background: var(--bs-light);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: var(--bs-light);
}

.card-categories:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    padding: 1rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

[data-bs-theme="dark"] .category-title {
    color: var(--bs-gray-200);
}

@media (max-width: 768px) {
    .category-hero {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-icon-wrapper {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .category-icon-wrapper i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .category-image-container {
        min-height: 7rem;
        aspect-ratio: 14 / 9;
    }

    .category-image {
        object-position: center;
    }

    .category-content {
        padding: 0.6rem;
    }

    .category-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }
}