/* Category Archive Layout */
.bh-category-archive-page {
    background: #f7f7f7;
    padding-bottom: 60px;
}
.bh-cat-header-wrap {
    padding: 15px 0;
    margin-bottom: 25px;
    background: transparent;
    border-bottom: 2px solid #000; /* Bold underline like typical news sites */
}
.bh-cat-breadcrumbs {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}
.bh-cat-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bh-cat-breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #ccc;
}
.bh-cat-breadcrumbs a {
    color: var(--primary, #e60000);
    text-decoration: none;
}
.bh-cat-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.bh-cat-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #111;
    text-transform: capitalize;
}
.bh-cat-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0 0;
    max-width: 800px;
}
.bh-cat-meta {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Layout Grid */
.bh-cat-layout {
    display: flex;
    gap: 30px;
}
.bh-cat-main {
    flex: 1 1 auto;
    min-width: 0;
}
.bh-cat-sidebar {
    flex: 0 0 320px;
    display: none;
}

/* Hero Article */
.bh-cat-hero-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.bh-cat-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.bh-cat-hero-img {
    position: relative;
    aspect-ratio: 16/9;
    background: #eee;
}
.bh-cat-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bh-cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary, #e60000);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}
.bh-cat-hero-content {
    padding: 25px;
}
.bh-cat-hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px;
    color: #111;
}
.bh-cat-hero-excerpt {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 15px;
}
.bh-cat-hero-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 15px;
}

/* Filters */
.bh-cat-filters {
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
}
.bh-cat-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}
.bh-filter-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.bh-filter-btn:hover {
    color: #111;
}
.bh-filter-btn.active {
    color: var(--primary, #e60000);
}
.bh-filter-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary, #e60000);
}

/* Grid */
.bh-cat-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.bh-cat-grid-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bh-cat-grid-card:hover {
    transform: translateY(-3px);
}
.bh-cat-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.bh-cat-card-img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
}
.bh-cat-card-img img,
.bh-cat-card-img .bh-nc-no-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bh-cat-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bh-cat-card-badge {
    font-size: 11px;
    color: var(--primary, #e60000);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.bh-cat-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bh-cat-card-meta {
    margin-top: auto;
    font-size: 12px;
    color: #999;
}

/* Load More */
.bh-cat-load-more-wrap {
    text-align: center;
    margin: 40px 0;
}
.bh-btn-load-more {
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}
.bh-btn-load-more:hover {
    background: #f9f9f9;
    border-color: #999;
}
.bh-cat-loader {
    font-size: 14px;
    color: #666;
    padding: 10px;
}

/* Sidebar Styling */
.bh-sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.bh-widget-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.bh-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bh-trending-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.bh-trend-num {
    font-size: 24px;
    font-weight: 900;
    color: #ddd;
    line-height: 1;
}
.bh-trending-list a {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}
.bh-trending-list a:hover {
    color: var(--primary, #e60000);
}

/* Responsive */
@media (min-width: 768px) {
    .bh-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .bh-cat-sidebar {
        display: block;
    }
    .bh-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================================================
   DARK MODE
   ================================================== */
body.dark-mode .bh-category-archive-page {
    background: #111;
}
body.dark-mode .bh-cat-header-wrap {
    background: transparent;
    border-bottom-color: #333;
}
body.dark-mode .bh-cat-title {
    color: #f1f1f1;
}
body.dark-mode .bh-cat-description {
    color: #ccc;
}
body.dark-mode .bh-cat-breadcrumbs a {
    color: #e60000;
}
body.dark-mode .bh-cat-breadcrumbs li:not(:last-child)::after {
    color: #555;
}
body.dark-mode .bh-cat-grid-card,
body.dark-mode .bh-cat-hero-card,
body.dark-mode .bh-sidebar-widget {
    background: #1a1a1a;
    box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
body.dark-mode .bh-cat-card-title,
body.dark-mode .bh-cat-hero-title,
body.dark-mode .bh-widget-title,
body.dark-mode .bh-trending-list a {
    color: #f1f1f1;
}
body.dark-mode .bh-cat-card-img,
body.dark-mode .bh-cat-hero-img {
    background: #222;
}
body.dark-mode .bh-filter-btn {
    color: #999;
}
body.dark-mode .bh-filter-btn:hover,
body.dark-mode .bh-filter-btn.active {
    color: #f1f1f1;
}
body.dark-mode .bh-cat-filters {
    border-bottom-color: #333;
}
body.dark-mode .bh-widget-title {
    border-bottom-color: #333;
}
body.dark-mode .bh-btn-load-more {
    background: #1a1a1a;
    color: #f1f1f1;
    border-color: #444;
}
body.dark-mode .bh-btn-load-more:hover {
    background: #222;
    border-color: #666;
}
body.dark-mode .bh-trend-num {
    color: #333;
}
