/* Category Section Styles - 100% Custom Match for Provided Snippet */
.category-section {
    padding: 60px 0;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 46px;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.category-item {
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

/* The Main Card Container */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #eee;
}

/* Dark Gradient Overlay (Bottom) */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.3s;
    z-index: 2;
}

.category-item:hover .category-card::before {
    opacity: 1;
}

/* Mask Wrapper with Padding (p-5) */
.mask-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* p-5 */
    z-index: 1;
}

/* The Mask using User's classes with Green Gradient */
.category-card .masked-image.shield {
    position: absolute;
    inset: 20px;
    background: linear-gradient(to bottom, var(--stz-secondary-green), transparent);
    width: auto;
    height: auto;
}

/* Image Scaling */
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
    display: block;
}

.category-item:hover img {
    transform: scale(1.05);
}

/* Category Title at Bottom */
.category-content {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 16px;
    z-index: 3;
}

.category-name {
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .category-name {
        font-size: 28px;
    }
}