/* =========================================================
   Category Page Styles - PIBM Blog Portal
   Layout: Left sidebar (categories + search) / Right results grid
   ========================================================= */

.cat-page-area {
    background: #f6f8fb;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.cat-sidebar {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 4px 20px rgba(32, 22, 84, 0.04);
    position: sticky;
    top: 95px;
}

.cat-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid #fab012;
}

.cat-sidebar-head h5 {
    font-size: 17px;
    font-weight: 800;
    font-family: 'Barlow Semi Condensed', 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #201654;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-sidebar-head h5 i {
    color: #006493;
    font-size: 14px;
}

.cat-topic-count {
    font-size: 12px;
    font-weight: 700;
    color: #8a92ab;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Search box */
.cat-search-box {
    position: relative;
    margin-bottom: 16px;
}

.cat-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a3aabf;
    font-size: 13px;
    pointer-events: none;
}

.cat-search-box input {
    width: 100%;
    height: 42px;
    border: 1px solid #e4e8f0;
    border-radius: 30px;
    background: #fbfcfe;
    padding: 0 15px 0 38px;
    font-size: 13px;
    color: #201654;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cat-search-box input::placeholder {
    color: #a3aabf;
}

.cat-search-box input:focus {
    border-color: #fab012;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(250, 176, 18, 0.12);
}

/* Category list */
.cat-filter-list {
    list-style: none;
    margin: 0;
    padding: 0 6px 0 0;
    max-height: 430px;
    overflow-y: auto;
    /* slim scrollbar (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: #c9d0e0 #f1f3f8;
}

/* slim scrollbar (Chrome / Edge / Safari) */
.cat-filter-list::-webkit-scrollbar {
    width: 4px;
}

.cat-filter-list::-webkit-scrollbar-track {
    background: #f1f3f8;
    border-radius: 10px;
}

.cat-filter-list::-webkit-scrollbar-thumb {
    background: #c9d0e0;
    border-radius: 10px;
}

.cat-filter-list::-webkit-scrollbar-thumb:hover {
    background: #fab012;
}

.cat-filter-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.25s ease;
    user-select: none;
}

.cat-filter-item:hover {
    background: #f4f7fb;
}

.cat-item-icon {
    width: 20px;
    color: #201654;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.25s ease;
}

.cat-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #201654;
    line-height: 1.35;
    flex-grow: 1;
    transition: color 0.25s ease;
}

.cat-item-count {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef1f6;
    color: #55618a;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 6px;
    transition: all 0.25s ease;
}

/* Active category */
.cat-filter-item.active {
    background: #fff4e3;
}

.cat-filter-item.active .cat-item-icon {
    color: #e8890c;
}

.cat-filter-item.active .cat-item-name {
    color: #e8890c;
}

.cat-filter-item.active .cat-item-count {
    background: #fab012;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(250, 176, 18, 0.35);
}

/* ---------------------------------------------------------
   RESULTS HEADER BAR
   --------------------------------------------------------- */
.cat-results-head {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 18px 24px;
    box-shadow: 0 4px 20px rgba(32, 22, 84, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cat-results-title {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Barlow Semi Condensed', 'Raleway', sans-serif;
    color: #201654;
    margin: 0;
}

.cat-results-title .count {
    color: #201654;
}

.cat-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1dc;
    border: 1px solid #ffd9a0;
    color: #e8890c;
    font-size: 12.5px;
    font-weight: 800;
    font-family: inherit;
    padding: 7px 16px;
    border-radius: 30px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cat-active-chip i {
    font-size: 11px;
}

.cat-active-chip:hover {
    background: #ffe9c7;
    border-color: #fab012;
    color: #e8890c;
    text-decoration: none;
}

/* ---------------------------------------------------------
   BLOG CARDS
   Card design comes from css/all-blogs.css (.trending-blog-card)
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */
.cat-empty-state {
    background: #ffffff;
    border: 1px dashed #d8deea;
    border-radius: 14px;
    text-align: center;
    padding: 60px 30px;
}

.cat-empty-state i {
    font-size: 34px;
    color: #c9d0e0;
    margin-bottom: 15px;
    display: inline-block;
}

.cat-empty-state h5 {
    font-size: 18px;
    font-weight: 800;
    color: #201654;
    margin-bottom: 6px;
    font-family: 'Barlow Semi Condensed', 'Raleway', sans-serif;
}

.cat-empty-state p {
    font-size: 13.5px;
    color: #8a92ab;
    margin: 0;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .cat-sidebar-col,
    .cat-sidebar {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .cat-page-area {
        padding-top: 25px;
    }

    .cat-results-head {
        padding: 15px 18px;
    }

    .cat-results-title {
        font-size: 17px;
    }
}
