.sub-category__content-box:hover .sub-category__content-info {
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.sub-category-overlay {
    align-items: flex-end;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border-radius: 0 0 20px 20px;
    border-radius: 20px;
    padding: 30px 20px 50px 30px;
    text-align: center;
    justify-content: space-between;
}

.sub-category-overlay h3 {
    font-size: 24px;
    color: var(--white-color);
    line-height: 1.5;
}

.sub-category-overlay span {
    font-size: 16px;
    font-weight: 600;
    color: var(--turquoise-color);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    font-family: var(--font-heading);
}

.sub-category__content-box:hover .sub-category-overlay {
    transform: scale(0);
}

.sub-category__content-img {
    min-width: 100%;
    height: 350px;
    overflow: hidden;
}

.sub-category__content-img {
    min-width: 100%;
    height: 350px;
    overflow: hidden;
}

.sub-category__content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.sub-category__content-info {
    position: absolute;
    bottom: 0;
    opacity: 0;
    width: 100%;
    background: rgba(255, 255, 255, .5);
    height: 0;
    border-radius: 20px;
    visibility: hidden;
}

.sub-category-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 30px;
}

.sub-category-text .sub-category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--main-color);
}

.sub-category-para {
    height: 90px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sub-category-text p {
    font-size: 16px;
    color: var(--main-color);
    line-height: 1.5;
    text-align: center;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}