/* =============================================================
   kolaborator.css
   Design system berdasarkan example.html (Kolaborator)
   Digunakan oleh: index, category, article, search
   ============================================================= */

/* ── CSS VARIABLES ── */
:root {
    --bg-green: #5d7434;
    --bg-green-dark: #4a5e28;
    --bg-green-light: #6e8a3d;
    --dark-card: #0a0a0a;
    --dark-card-2: #111111;
    --accent-orange: #f37021;
    --accent-orange-dark: #d45f10;
    --accent-yellow: #ffc107;
    --navy-blue: #0b2239;
    --navy-light: #0d2d4a;
    --white: #ffffff;
    --text-white: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.5);
    --radius: 10px;
    --radius-lg: 15px;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'Barlow', sans-serif;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.kb-portal {
    margin: 0;
    background-color: var(--bg-green);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── HEADER (TRAPEZOID) ── */
.kb-header {
    position: relative;
    height: 140px;
    background-color: var(--bg-green);
    margin-bottom: 0;
    flex-shrink: 0;
}

.kb-header-white-box {
    background-color: var(--white);
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    z-index: 2;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    border-bottom: 8px solid var(--accent-orange);
}

.kb-logo-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.kb-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.kb-logo-circle i {
    font-size: 2.2rem;
    color: var(--white);
}

.kb-brand-name {
    line-height: 1;
}

.kb-brand-name h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    color: var(--bg-green);
    letter-spacing: -2px;
}

.kb-brand-name h1 span {
    color: var(--navy-blue);
}

.kb-brand-name p {
    color: #444;
    font-style: italic;
    font-size: 0.95rem;
    margin: 4px 0 0;
}

.kb-header-decor {
    position: absolute;
    right: 32%;
    top: 5%;
    z-index: 3;
    color: var(--bg-green);
    opacity: 0.5;
}

.kb-header-icon {
    position: absolute;
    right: 0;
    top: 0;
    padding: 20px 30px;
    opacity: 0.15;
}

/* ── TICKER BAR ── */
.kb-ticker-bar {
    background: var(--navy-blue);
    padding: 8px 0;
    overflow: hidden;
    flex-shrink: 0;
}

.kb-ticker-label {
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
}

.kb-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: kbTicker 35s linear infinite;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.kb-ticker-track span {
    padding: 0 28px;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

@keyframes kbTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── LAYOUT WRAPPER ── */
.kb-layout {
    display: flex;
    min-height: calc(100vh - 140px);
}

/* ── SIDEBAR NAV ── */
.kb-sidebar-nav {
    width: 220px;
    flex-shrink: 0;
    padding: 24px 16px;
    background: rgba(0, 0, 0, .1);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.kb-nav-link {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 11px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, .12);
    transition: background .25s, color .25s;
    border: none;
}

.kb-nav-link:hover,
.kb-nav-link.active {
    background: var(--accent-orange);
    color: var(--white);
}

.kb-nav-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* ── MAIN CONTENT AREA ── */
.kb-main {
    flex: 1;
    padding: 28px 28px 40px;
    min-width: 0;
}

/* ── CARD BASE ── */
.kb-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.kb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

/* ── CARD TAG BAR ── */
.kb-card-tag {
    background: var(--accent-orange);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    text-transform: uppercase;
}

.kb-card-tag a {
    color: var(--white);
    text-decoration: none;
}

.kb-card-tag--navy {
    background: var(--navy-blue);
}

.kb-card-tag--dark {
    background: #c0430d;
}

/* ── CARD IMAGE BOX ── */
.kb-img-box {
    background-size: cover;
    background-position: center;
    background-color: #222;
    overflow: hidden;
    position: relative;
}

.kb-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.kb-card:hover .kb-img-box img {
    transform: scale(1.05);
}

.kb-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .1);
    font-size: 3rem;
}

/* ── CARD TITLE ── */
.kb-card-title {
    color: var(--accent-yellow);
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    transition: color .2s;
}

.kb-card:hover .kb-card-title {
    color: var(--white);
}

.kb-card-title-sm {
    color: var(--accent-yellow);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    line-height: 1.25;
    margin: 0;
    transition: color .2s;
}

.kb-card:hover .kb-card-title-sm {
    color: var(--white);
}

.kb-card-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
    font-style: italic;
}

/* ── QUOTE / KATA INSPIRASI ── */
.kb-quote-box {
    background: var(--accent-orange);
    border-radius: 50px 50px 0 0;
    padding: 36px 32px;
    color: var(--navy-blue);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.kb-quote-box::before {
    content: '\201C';
    font-size: 10rem;
    line-height: 1;
    font-family: Georgia, serif;
    position: absolute;
    left: 16px;
    top: -10px;
    opacity: .08;
    color: var(--navy-blue);
}

.kb-quote-badge {
    display: inline-block;
    background: var(--navy-blue);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.kb-quote-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--navy-blue);
    line-height: 1.4;
    margin: 0 0 14px;
}

.kb-quote-author {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    color: var(--navy-blue);
    margin: 0;
}

/* ── SECTION HEADING ── */
.kb-section-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    border-left: 4px solid var(--accent-orange);
    padding-left: 12px;
    margin: 28px 0 16px;
    line-height: 1;
    text-transform: uppercase;
}

/* ── CATEGORY BANNER ── */
.kb-cat-banner {
    background: rgba(0, 0, 0, .25);
    border-left: 6px solid var(--accent-orange);
    padding: 20px 24px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin-bottom: 24px;
}

.kb-breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

.kb-breadcrumb a {
    color: rgba(255, 255, 255, .6);
    transition: color .2s;
}

.kb-breadcrumb a:hover {
    color: var(--accent-orange);
}

.kb-breadcrumb li+li::before {
    content: '/';
    margin-right: 8px;
    opacity: .4;
}

.kb-breadcrumb .active {
    color: rgba(255, 255, 255, .9);
    font-weight: 700;
}

.kb-cat-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    margin: 0 0 8px;
    line-height: 1;
}

.kb-cat-banner-line {
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Active in sidebar nav */
.kb-nav-link--catactive {
    background: var(--accent-orange) !important;
}

/* ── ARTICLE PAGE ── */
.kb-article-meta-bar {
    background: rgba(0, 0, 0, .25);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.kb-article-meta-bar i {
    margin-right: 5px;
    color: var(--accent-orange);
}

.kb-article-meta-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .2);
}

.kb-article-cat-badge {
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 14px;
}

.kb-article-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.5px;
    color: var(--accent-yellow);
    line-height: 1.15;
    margin: 0 0 20px;
}

.kb-article-hero-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    border: 3px solid rgba(255, 255, 255, .08);
}

.kb-article-img-caption {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    font-style: italic;
    margin-bottom: 24px;
}

.kb-article-intro {
    background: rgba(0, 0, 0, .25);
    border-left: 4px solid var(--accent-orange);
    padding: 14px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    font-style: italic;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.kb-article-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .85);
}

.kb-article-body p {
    margin: 0 0 1.4em;
}

.kb-article-body h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin: 1.8em 0 .8em;
    border-left: 4px solid var(--accent-orange);
    padding-left: 12px;
}

.kb-article-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 1.5em 0 .7em;
}

.kb-article-body ul,
.kb-article-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}

.kb-article-body li {
    margin-bottom: .5em;
}

.kb-article-body blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent-orange);
    background: rgba(0, 0, 0, .25);
    font-style: italic;
    color: rgba(255, 255, 255, .7);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.kb-article-body a {
    color: var(--accent-orange);
}

.kb-article-body img {
    border-radius: var(--radius);
    margin: 1em 0;
}

.kb-article-body strong {
    color: var(--white);
}

/* Share bar */
.kb-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.kb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity .2s;
}

.kb-share-btn:hover {
    opacity: .8;
    color: var(--white);
}

.kb-share-btn--fb {
    background: #1877f2;
}

.kb-share-btn--tw {
    background: #1da1f2;
}

.kb-share-btn--wa {
    background: #25d366;
}

/* Tags */
.kb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.kb-tag {
    font-size: 12px;
    padding: 5px 14px;
    background: rgba(0, 0, 0, .3);
    color: rgba(255, 255, 255, .65);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .2s, color .2s;
}

.kb-tag:hover {
    background: var(--accent-orange);
    color: var(--white);
    border-color: transparent;
}

/* ── SEARCH BANNER ── */
.kb-search-banner {
    background: rgba(0, 0, 0, .3);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    margin-bottom: 28px;
    border-left: 6px solid var(--accent-orange);
}

.kb-search-banner-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kb-search-banner-query {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.1;
}

.kb-search-banner-query span {
    color: var(--accent-yellow);
}

.kb-search-bar-wrap {
    position: relative;
    max-width: 560px;
}

.kb-search-bar {
    width: 100%;
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .2);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 15px;
    padding: 12px 52px 12px 18px;
    border-radius: var(--radius);
    outline: none;
    transition: border-color .2s;
}

.kb-search-bar::placeholder {
    color: rgba(255, 255, 255, .35);
}

.kb-search-bar:focus {
    border-color: var(--accent-orange);
}

.kb-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: var(--accent-orange);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background .2s;
}

.kb-search-submit:hover {
    background: var(--accent-orange-dark);
}

.kb-search-count {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin-top: 14px;
}

.kb-search-count strong {
    color: var(--accent-yellow);
}

/* Search result */
.kb-result-item {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    gap: 0;
    transition: transform .3s, box-shadow .3s;
    border-bottom: 3px solid transparent;
}

.kb-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
    border-bottom-color: var(--accent-orange);
}

.kb-result-thumb {
    width: 180px;
    min-height: 130px;
    flex-shrink: 0;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .1);
    font-size: 2.5rem;
}

.kb-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.kb-result-item:hover .kb-result-thumb img {
    transform: scale(1.05);
}

.kb-result-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.kb-result-cat {
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 2px;
    display: inline-block;
    text-transform: uppercase;
}

.kb-result-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-yellow);
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.kb-result-item:hover .kb-result-title {
    color: var(--white);
}

.kb-result-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-result-date {
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
}

/* Highlight */
mark.kb-hl {
    background: rgba(243, 112, 33, .35);
    color: var(--accent-yellow);
    font-weight: 700;
    border-radius: 2px;
    padding: 0 2px;
}

/* Pagination */
.kb-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
}

.kb-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    padding: 0 10px;
    transition: background .2s, color .2s;
}

.kb-page-btn:hover,
.kb-page-btn.active {
    background: var(--accent-orange);
    color: var(--white);
    border-color: transparent;
}

/* ── EMPTY STATE ── */
.kb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, .45);
}

.kb-empty-state i {
    font-size: 4rem;
    opacity: .3;
}

.kb-empty-state p {
    font-size: 15px;
    margin: 0;
}

.kb-btn-back {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: opacity .2s;
}

.kb-btn-back:hover {
    opacity: .85;
    color: var(--white);
}

/* ── FOOTER ── */
.kb-footer {
    background: var(--navy-blue);
    padding: 32px 0;
    margin-top: 0;
}

.kb-footer-inner {
    max-width: 100%;
    padding: 0 28px;
}

.kb-footer a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin: 0 14px;
    font-weight: 500;
    transition: color .2s;
}

.kb-footer a:hover {
    color: var(--accent-orange);
}

.kb-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.kb-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
    text-align: center;
    margin: 0;
}

/* ── SIDEBAR WIDGET (artikel terbaru di samping) ── */
.kb-widget {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.kb-widget-title {
    background: var(--navy-blue);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 16px;
    text-transform: uppercase;
    border-left: 4px solid var(--accent-orange);
}

.kb-widget-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s;
}

.kb-widget-item:last-child {
    border-bottom: none;
}

.kb-widget-item:hover {
    background: rgba(255, 255, 255, .04);
}

.kb-widget-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #222;
}

.kb-widget-thumb-placeholder {
    width: 64px;
    height: 48px;
    background: #1a1a1a;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .1);
    font-size: 1.2rem;
}

.kb-widget-item-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-yellow);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.kb-widget-item:hover .kb-widget-item-title {
    color: var(--white);
}

.kb-widget-item-date {
    font-size: 11px;
    color: rgba(255, 255, 255, .3);
    margin-top: 5px;
}

/* ── SCROLL TOP ── */
.kb-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.kb-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.kb-scroll-top:hover {
    transform: translateY(-3px);
    color: var(--white);
}

/* ── SEARCH OVERLAY ── */
.kb-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, .96);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.kb-search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kb-search-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 22px;
    cursor: pointer;
    transition: color .2s;
}

.kb-search-close:hover {
    color: var(--white);
}

.kb-search-overlay-form {
    width: 100%;
    max-width: 620px;
    padding: 0 20px;
}

.kb-search-overlay-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 0;
    outline: none;
    transition: border-color .2s;
}

.kb-search-overlay-input::placeholder {
    color: rgba(255, 255, 255, .25);
}

.kb-search-overlay-input:focus {
    border-bottom-color: var(--accent-orange);
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .kb-header-white-box {
        width: 70%;
    }

    .kb-brand-name h1 {
        font-size: 2.2rem;
    }

    .kb-sidebar-nav {
        width: 180px;
    }

    .kb-main {
        padding: 20px 16px 32px;
    }
}

@media (max-width: 767.98px) {
    .kb-header {
        height: 110px;
    }

    .kb-header-white-box {
        width: 85%;
        padding: 14px 20px;
    }

    .kb-brand-name h1 {
        font-size: 1.8rem;
    }

    .kb-brand-name p {
        font-size: 0.8rem;
    }

    .kb-logo-circle {
        width: 58px;
        height: 58px;
    }

    .kb-layout {
        flex-direction: column;
    }

    .kb-sidebar-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .kb-nav-link {
        margin-bottom: 0;
        font-size: 11px;
        padding: 8px 12px;
    }

    .kb-result-thumb {
        width: 110px;
    }

    .kb-article-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .kb-result-item {
        flex-direction: column;
    }

    .kb-result-thumb {
        width: 100%;
        height: 180px;
    }

    .kb-result-body {
        padding: 14px;
    }

    .kb-header-white-box {
        width: 100%;
        clip-path: none;
        border-bottom: 6px solid var(--accent-orange);
    }
}