/* ===========================
   CATEGORY SECTION (GLOBAL)
   =========================== */
.categories {
    padding: 0px 0px;
    margin-top: 8px;
    /* Hero ke baad kam gap */
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.25), rgba(250, 208, 196, 0.25), rgba(161, 196, 253, 0.25), rgba(194, 233, 251, 0.25)), #f8fafc;
}

.categories .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    font-family: "Inter", sans-serif;
}

/* ===========================
   GRID SYSTEM
   =========================== */
.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Mobile default */
    gap: 14px;
    justify-items: center;
}

/* ===========================
   FORCE REMOVE UNDERLINE
   =========================== */
/* Remove underline & fix link color */
.category-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block;   /* pura card clickable */
}

.category-card span {
    background: #f4f4f6;
    font-size: 14px;
    /* readable on mobile */
    font-weight: 600;
    /* semi-bold for premium look */
    color: #1e293b;
    /* dark slate (not pure black) */
    line-height: 1.3;
    text-align: center;
    margin-top: 6px;
    display: block;
    letter-spacing: 0.2px;
    /* subtle spacing */
    text-overflow: ellipsis;
    /* ... for long names */
    overflow: hidden;
    white-space: nowrap;
    /* keep in one line */
    transition: color 0.3s ease;
    /* smooth hover effect */
}

.category-card:hover span {
    color: #2563eb;
    /* premium blue on hover */
}

@media (min-width: 992px) {
    .categories-wrapper {
        grid-template-columns: repeat(10, 1fr);
        /* Desktop */
        gap: 20px;
    }
}

/* ===========================
   CATEGORY CARD
   =========================== */
.category-card {
    width: 100%;
    max-width: 95px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 18px;
    padding: 8px 2px;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* ===========================
   IMAGE WRAPPER
   =========================== */
.category-card .image-box {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f5f6f8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover .image-box {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.category-card img {
    width: 75%; //65%
    height: 75%; //65% before
    object-fit: contain;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.15);
}

/* ===========================
   CATEGORY NAME
   =========================== */
.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.25;
    display: block;
    font-family: "Inter", sans-serif;
    max-width: 90px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================
   MOBILE TWEAKS
   =========================== */
@media (max-width: 480px) {
    .category-card {
        max-width: 70px;
        padding: 6px 0;
    }

    .category-card .image-box {
        width: 60px;
        height: 60px;
    }

    .category-card span {
        font-size: 12px;
        font-weight: 500;
    }
}