/* Explore by Category — compact single-row icons on home */

#home-page .explore-categories-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

#home-page .explore-category-card {
    flex: 1 1 0;
    min-width: 72px;
    max-width: 110px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

#home-page .explore-category-card:hover {
    color: inherit;
    text-decoration: none;
}

#home-page .explore-category-card:hover .explore-category-name {
    color: #303F9F;
}

#home-page .explore-category-image-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.4rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #f1f3f5;
}

#home-page .explore-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#home-page .explore-category-name {
    font-family: Montserrat, "Open Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.25;
    margin-bottom: 0.1rem;
}

#home-page .explore-category-count {
    font-family: "Open Sans", Roboto, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: #6b7280;
}

@media (max-width: 767.98px) {
    #home-page .explore-category-card {
        flex: 0 0 78px;
        max-width: 78px;
    }

    #home-page .explore-category-image-wrap {
        width: 56px;
        height: 56px;
    }
}

/* All categories page keeps a fuller grid */
#all-categories-page .explore-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
}

@media (min-width: 576px) {
    #all-categories-page .explore-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    #all-categories-page .explore-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem 1.15rem;
    }
}

#all-categories-page .explore-category-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

#all-categories-page .explore-category-image-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f3f5;
    margin-bottom: 0.65rem;
}

#all-categories-page .explore-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#all-categories-page .explore-category-name {
    font-family: Montserrat, "Open Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f1f1f;
}

#all-categories-page .explore-category-count {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Card detail layout */
.lc-card-details-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.lc-card-details-wrap .lc-card-details-body {
    max-width: 100%;
}

.lc-card-details-wrap .lc-card-article {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.lc-card-nav {
    max-width: 960px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lc-card-nav .btn {
    width: auto;
    min-width: 120px;
    max-width: 160px;
}
