/*============================================================================================
   Start Category Area
=============================================================================================*/
.category.style-5 .category-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category.style-5 .category-card {
    display: block;
    text-align: center;
    border-radius: 12px;
}
.category.style-5 .category-img {
	position: relative;
	transition: all 0.4s ease;
	overflow: hidden;
	border-radius: 8px;
}
.category.style-5 .category-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(25, 219, 204, 0) 12.4%,
        #00000091 100%
    );
    border-radius: 8px;
    z-index: 1;
}
.category.style-5 .category-card img {
    object-fit: contain;
    width: 100%;
    border-radius: 8px;
    transition: all 0.4s ease;
}
.category.style-5 .category-card:hover img {
    transform: scale(1.04);
}
.category.style-5 .category-info {
    background-color: hsla(0, 0%, 100%, 0.95);
    margin: -15% auto 0;
    max-width: 85%;
    padding: 15px 20px;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    text-align: center;
}

.category.style-5 .category-card h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 120%;
    text-transform: uppercase;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    color: var(--title-color);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}
.category.style-5 .category-card:hover h4 {
    color: var(--primary-color);
}
.category.style-5 .category-card p {
    color: var(--primary-color);
    font-size: 14px;
    display: block;
    line-height: 120%;
    margin: 0;
    text-align: center;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .category.style-5 .category-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (max-width: 767px) {
    .category.style-5 .category-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category.style-5 .category-card p {
        font-size: 12px;
    }
    .category.style-5 .category-card h4 {
        font-size: 14px;
    }
}
/*============================================================================================
   End Category Area
=============================================================================================*/
