/* Background Container */
.cat-bg {
    background-color: #ffffff !important; 
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cat-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0);
    z-index: 1;
}

/* Headings & Descriptions */
.category-heading {
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
}

.category-description {
    color: #000;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: bold;
    z-index: 2;
}

/* Main Grid: 6 columns on large, 4 on medium, 3 on smaller, etc. */
.brand-div-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    justify-items: center;
}

/* Medium screens: 4 columns */
@media (max-width: 1199px) {
    .brand-div-wrap {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small screens: 4 columns */
@media (max-width: 768px) {
    .brand-div-wrap {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra small screens: 3 columns */
@media (max-width: 576px) {
    .brand-div-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual Category Item (container for circle and label) */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

/* Circle Container for Image */
.brand-div {
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Default size for large screens */
    width: 120px;  
    height: 120px;
}

/* Medium screens (below 1199px) */
@media (max-width: 1199px) {
    .brand-div {
        width: 100px;
        height: 100px;
    }
    .category-name {
        font-size: 0.7rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .brand-div {
        width: 80px;
        height: 80px;
    }
    .category-name {
        font-size: 0.8rem;
    }
}

/* Extra small screens (below 576px) */
@media (max-width: 576px) {
    .brand-div {
        width: 60px;
        height: 60px;
    }
    .category-name {
        font-size: 0.7rem;
    }
}

/* Category Icon: fills the circle */
.category-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effect on Icon */
.brand-div:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Category Name (label below the icon) */
.category-name {
    color: #000;
    font-weight: 600;
    font-family: Arial, sans-serif; /* Changed font */
    font-size: 1rem;
    transition: color 0.3s ease;
    margin-top: 8px;
    text-align: center;
    width: 100%;
    max-width: 120px;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Hover Effect on Text */
.brand-div:hover + .category-name {
    color: #000;
}