/* ══════════════════════════════════════
   BANGU KWETU — Final Color System
   ══════════════════════════════════════
   Steel Blue  #2E6DA4  — header, footer, accents
   Ice Blue    #EBF1F5  — card bg, shujaa section
   White       #FFFFFF  — canvas, "Bangu"
   Charcoal    #2B2D42  — all body text
   Orange      #E87722  — breaking/latest badge only
   ══════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #2B2D42;
    background: #ffffff;
    overflow-x: hidden;
}

.bk-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════
   HEADER BLOCK — one unified steel blue
   ══════════════════════════════════════ */
.bk-header-block {
    background: #2E6DA4;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 3px 16px rgba(46,109,164,0.3);
}

/* Main header row */
.bk-header {
    width: 100%;
}
.bk-header .bk-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    height: 64px;
    position: relative;
}

/* Logo */
.bk-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.bk-logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif;
    white-space: nowrap;
    line-height: 1;
}
.bk-logo-white { color: #ffffff; }
.bk-logo-ice   { color: #E87722; }
.bk-logo-sub {
    font-size: 7px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Hamburger */
.bk-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    flex-shrink: 0;
}
.bk-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.bk-hamburger span:last-child { width: 14px; }
.bk-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bk-hamburger.open span:nth-child(2) { opacity: 0; }
.bk-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Desktop nav */
.bk-nav {
    display: none;
}

/* Header actions */
.bk-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.bk-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 10px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    z-index: 101;
    transition: color 0.2s;
}
.bk-search-btn:hover { color: #fff; }

/* ══════════════════════════════════════
   CATEGORY NAV — same blue, no shade change
   ══════════════════════════════════════ */
#bk-cat-nav {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 64px;
    z-index: 90;
    background: #2E6DA4;
    border-top: 1px solid rgba(255,255,255,0.1);
}
#bk-cat-nav-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    height: 38px;
    gap: 0;
    justify-content: strech;
}
#bk-cat-nav-inner::-webkit-scrollbar { display: none; }
.bk-cat-link {
    font-family: 'Oswald', sans-serif;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 14px;
    height: 38px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    flex: 1;
    justify-content: center;
}
.bk-cat-link:hover { color: rgba(255,255,255,0.85); }
.bk-cat-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    font-weight: 700;
}

/* Bottom accent line under entire header block */
.bk-header-block::after {
    content: '';
    display: block;
    height: 3px;
    background: #1a4f7a;
}

/* ══════════════════════════════════════
   SEARCH BOX
   ══════════════════════════════════════ */
#bk-search-box {
    display: none;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    z-index: 102;
    background: #1a4f7a;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 4px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
#bk-search-box.open { display: flex; }
#bk-search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid #EBF1F5;
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    font-family: 'IBM Plex Sans', sans-serif;
    min-width: 160px;
}
#bk-search-input::placeholder { color: rgba(255,255,255,0.4); }
#bk-search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    padding: 4px;
    transition: color 0.2s;
}
#bk-search-close:hover { color: #fff; }

/* ══════════════════════════════════════
   SHUJAA WA SIKU
   ══════════════════════════════════════ */
#bk-shujaa-section {
    background: #EBF1F5;
    padding: 14px 0;
    border-bottom: 1px solid #d0dce8;
}
#bk-shujaa-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-left: 4px solid #2E6DA4;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(46,109,164,0.1);
    transition: box-shadow 0.2s;
}
#bk-shujaa-card:hover {
    box-shadow: 0 4px 16px rgba(46,109,164,0.15);
}
#bk-shujaa-badge {
    background: #2E6DA4;
    color: #E87722;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Oswald', sans-serif;
}
#bk-shujaa-avatar {
    width: 90px;
    min-height: 90px;
    background: linear-gradient(135deg, #2E6DA4 0%, #1a4f7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}
#bk-shujaa-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
#bk-shujaa-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2E6DA4;
    display: block;
}
#bk-shujaa-name {
    font-size: 17px;
    font-weight: 700;
    color: #2B2D42;
    line-height: 1.25;
    font-family: 'Oswald', sans-serif;
}
#bk-shujaa-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
#bk-shujaa-link {
    font-size: 12px;
    font-weight: 700;
    color: #2E6DA4;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
    transition: opacity 0.2s;
}
#bk-shujaa-link:hover { opacity: 0.7; }

/* ══════════════════════════════════════
   WHITE CANVAS — all sections
   ══════════════════════════════════════ */
.bk-canvas {
    background: #ffffff;
}

.bk-section {
    padding: 44px 0;
    border-bottom: 1px solid #eaecef;
}
.bk-section:last-child { border-bottom: none; }

/* Section header */
.bk-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecef;
    position: relative;
}
.bk-section-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 52px;
    height: 2px;
    background: #2E6DA4;
}
.bk-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2B2D42;
}
.bk-see-all {
    font-size: 11px;
    font-weight: 700;
    color: #2E6DA4;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.bk-see-all:hover { opacity: 0.7; }

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.bk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bk-card {
    background: #ffffff;
    border: 1px solid #dde5ed;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.bk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(46,109,164,0.1);
}
.bk-card-image {
    width: 100%;
    height: 200px;
    background: #EBF1F5;
    overflow: hidden;
    display: block;
}
.bk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bk-card-body {
    padding: 16px;
}
.bk-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2E6DA4;
    display: block;
    margin-bottom: 8px;
}
.bk-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2B2D42;
    line-height: 1.45;
    font-family: 'IBM Plex Sans', sans-serif;
}
.bk-card-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
    display: block;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.bk-footer {
    background: #1a4f7a;
    color: rgba(255,255,255,0.55);
    padding: 52px 0 0;
    border-top: 3px solid #1a4f7a;
}
.bk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bk-footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.04em;
}
.bk-footer-logo span { color: #E87722; }
.bk-footer-about {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}
.bk-footer-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bk-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.bk-footer-links li {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.bk-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.bk-footer-links a:hover { color: #ffffff; }
.bk-social-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.bk-social {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.bk-social:hover { color: #ffffff; }
.bk-footer-bottom {
    background: #1a4f7a;
    padding: 14px 0;
}
.bk-footer-bottom p {
    font-size: 11.5px;
    color: rgba(255,255,255,0.25);
    text-align: center;
}
/* ══════════════════════════════════════
   HOME GROUPS
   ══════════════════════════════════════ */
.bk-home-group {
    margin-bottom: 44px;
}
#bk-main-grid .bk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */
@media (max-width: 768px) {

    .bk-topbar-social { display: none; }

    .bk-header .bk-container {
        flex-wrap: nowrap !important;
    }
    .bk-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }
    .bk-hamburger {
        display: flex !important;
    }
    .bk-nav {
        display: none;
        position: fixed;
        top: 102px;
        left: 0;
        width: 80%;
        max-width: 280px;
        height: calc(100vh - 102px);
        background: #1a4f7a;
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0,0,0,0.4);
        overflow-y: auto;
    }
    .bk-nav.active {
        display: flex !important;
    }
    .bk-nav a {
        padding: 14px 24px;
        font-size: 14px;
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        transition: color 0.2s, padding-left 0.2s;
    }
    .bk-nav a:hover {
        color: #fff;
        padding-left: 32px;
    }

    #bk-cat-nav-inner {
        justify-content: flex-start;
    }

    #bk-search-box {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid #EBF1F5;
        background: #1a4f7a;
        padding: 8px 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        z-index: 150;
    }

    #bk-shujaa-avatar {
        width: 72px;
        font-size: 28px;
    }

    .bk-card-grid {
        grid-template-columns: 1fr;
    }
    .bk-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .bk-container {
        padding: 0 16px !important;
        width: 100% !important;
    }
    .bk-home-group .bk-card-grid {
        grid-template-columns: 1fr !important;
    }
}