/*
 * Category Hub — Tropical Air of Central Florida
 *
 * Development: Nuts and Bolts Business Coaching
 * Created: November 10, 2026
 * Last Modified: November 18, 2026
 *
 * Description: Styles the blog category directory, nested categories,
 * optional descriptions, post counts, and sorting controls.
 *
 * Shortcode: [nbbc_category_hub]
 * Layout: Three columns on desktop, two on tablets, one on phones.
 */

/* Directory typography */
.nbbc-category-hub {
    color: #222222;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Remove inherited list spacing and bullets */
.nbbc-category-hub ul,
.nbbc-category-hub li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nbbc-category-hub li::before {
    content: none !important;
}

/* Three columns on desktop */
.nbbc-category-hub .nbbc-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 40px;
    margin: 0 !important;
    padding: 0 !important;
}

.nbbc-category-hub .nbbc-group {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main category links */
.nbbc-category-hub .nbbc-parent-link {
    display: inline-block;
    margin-bottom: 8px;
    color: #203B50;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

/* Nested category lists */
.nbbc-category-hub .nbbc-children {
    margin: 4px 0 0 16px !important;
    padding: 0 !important;
}

.nbbc-category-hub .nbbc-child {
    margin: 0 0 6px !important;
    padding: 0 !important;
}

.nbbc-category-hub .nbbc-child-link {
    display: inline-block;
    padding: 4px 0;
    color: #203B50;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.nbbc-category-hub .nbbc-children .nbbc-children {
    margin: 4px 0 8px 16px !important;
}

/* Optional category descriptions */
.nbbc-category-hub .nbbc-desc {
    margin: 0 0 10px;
    color: #222222;
    font-size: 16px;
}

/* Optional post counts */
.nbbc-category-hub .nbbc-count {
    display: inline;
    margin-left: 4px;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
}

/* Optional sorting controls */
.nbbc-category-hub .nbbc-sort {
    margin-bottom: 28px;
    font-size: 16px;
}

.nbbc-category-hub .nbbc-sort-link {
    display: inline-block;
    padding: 4px 0;
    color: #203B50;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nbbc-category-hub .nbbc-sort-link.is-active {
    font-weight: 700;
}

.nbbc-category-hub .nbbc-sort-sep {
    margin: 0 10px;
}

/* Link interaction */
.nbbc-category-hub a:hover {
    color: #B22222;
}

.nbbc-category-hub a:focus-visible {
    outline: 2px solid #203B50;
    outline-offset: 4px;
}

/* Two columns on tablets */
@media (max-width: 980px) {
    .nbbc-category-hub .nbbc-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

/* One column on phones */
@media (max-width: 600px) {
    .nbbc-category-hub .nbbc-cats {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}