/* ============================================================
   CULT INDIA — CATEGORY GRID
   ============================================================ */

.cult-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}


/* Card */
.cult-category-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 560px;
    text-decoration: none;
    background: #161616;
}


/* Image */
.cult-category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}


/* Dark overlay */
.cult-category-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.05) 45%,
            rgba(0, 0, 0, 0.55) 100%
        );

    pointer-events: none;
}


/* Category title */
.cult-category-title {
    position: absolute;
    z-index: 2;

    left: 20px;
    right: 20px;
    bottom: 26px;

    text-align: center;

    font-family: "Fraunces", serif;
    font-size: clamp(26px, 2vw, 40px);
    font-weight: 500;
    line-height: 1.1;

    color: #fff;

    pointer-events: none;
}


/* Number */
.cult-category-index {
    position: absolute;
    z-index: 2;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    color: #fff;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;

    pointer-events: none;
}


/* Hover */
@media (hover: hover) {

    .cult-category-card:hover img {
        transform: scale(1.04);
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

    .cult-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cult-category-card {
        min-height: 500px;
    }

}


/* ============================================================
   MOBILE — HORIZONTAL SCROLL + SNAP
   ============================================================ */

@media (max-width: 767px) {

    .cult-category-grid {
        display: flex;
        grid-template-columns: none;

        overflow-x: auto;
        overflow-y: hidden;

        gap: 12px;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;

        -webkit-overflow-scrolling: touch;

        /*
         * Hide scrollbar
         */
        scrollbar-width: none;

        /*
         * Allow final card to have breathing room.
         */
        padding: 0 16px 6px 16px;

        /*
         * Useful when Elementor container already
         * has 16px mobile padding.
         */
        margin-left: -16px;
        margin-right: -16px;
    }


    .cult-category-grid::-webkit-scrollbar {
        display: none;
    }


    .cult-category-card {
        flex: 0 0 82%;
        width: 82%;

        min-height: 500px;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }


    .cult-category-title {
        left: 16px;
        right: 16px;
        bottom: 24px;

        font-size: 30px;
    }


    .cult-category-index {
        width: 40px;
        height: 40px;

        top: 20px;
    }

}