/* JNXPC Limited - CSS Module: Category Boxes */
/* ========================================== */

.category-boxes {
    width: 100%;
    max-width: min(95%, var(--section-max-width));
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.category-box-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 18px;
}

.category-item {
    position: relative;
    border-radius: 18px;
    height: 225px;
    width: 25%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.5);
}

.category-boxes .image-wrapper {
    width: 100%;
    height: 100%;
}

.category-boxes .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.category-boxes .item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    padding: 0;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-boxes .text-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 12px;
}

.category-boxes .text-block::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    height: 3px;
    width: 0;
    background-color: var(--accent-color, #FF5722);
    transform: translateX(-50%);
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.category-boxes .category-item:hover .text-block::before {
    width: 80%;
    opacity: 1;
}

.category-boxes .category-item h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1);
    text-align: center;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.65);
}

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

.category-boxes .category-item:hover .item-content {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

@media screen and (max-width: 1400px) {
    .category-box-container {
        gap: 12px;
        padding: 12px;
        max-width: min(100%, var(--section-max-width));
        margin: 0 auto;
    }

    .category-item {
        width: 25%;
        height: 200px;
    }

    .category-boxes .category-item h3 {
        font-size: 20px;
    }

    .category-boxes .text-block {
        padding-left: 0;
    }
}

@media screen and (max-width: 992px) {
    .category-boxes {
        max-width: min(100%, var(--section-max-width));
        margin: 0 auto;
    }

    .category-box-container {
        width: 100%;
        margin: 0;
        gap: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 0;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
    }

    .category-item {
        height: 180px;
        margin: 0;
        width: 100%;
        border-radius: 0;
        transition: all 0.3s ease-in-out;
    }

    .category-boxes .category-item h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media screen and (max-width: 768px) {
    .category-boxes .category-item h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
}

@media screen and (max-width: 480px) {
    .category-item {
        height: 120px;
    }

    .category-boxes .category-item h3 {
        font-size: 13px;
        margin-bottom: 0;
        padding: 10px;
    }
}