/* =========================
   KNOWLEDGE BASE – HERO
========================= */

.kb-hero {
    position: relative;
    width: 1573px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
    overflow: hidden;
}

.kb-hero-bg {
    position: absolute;
    inset: 0;
    background:
        url("../images/control_room_4K.png") center / cover no-repeat;
    z-index: 0;
}

/* top fade — blends with header */
.kb-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(4,11,20,0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

/* bottom fade — blends into body gradient below */
.kb-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, #040b14, transparent);
    pointer-events: none;
    z-index: 1;
}

.kb-hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 120px;
}

.kb-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.kb-hero-content p {
    font-size: 17px;
    color: #b8cce0;
}

/* =========================
   ABOUT US – STANDALONE
========================= */

.kb-about {
    background: transparent;
    border-bottom: 1px solid rgba(11, 143, 255, 0.12);
}

.kb-about .kb-container {
    padding-top: 56px;
    padding-bottom: 56px;
}

.kb-about-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.kb-about .kb-text-block {
    margin-bottom: 0;
}

/* =========================
   MAIN SECTION
========================= */

.kb-section {
    background: transparent;
    padding-bottom: 0;
}

.kb-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* =========================
   TABS NAV
========================= */

.kb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid rgba(11, 143, 255, 0.18);
    padding-top: 32px;
    margin-bottom: 48px;
}

.kb-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #7a96b4;
    cursor: pointer;
    letter-spacing: 0.03em;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.kb-tab:hover {
    color: #d0e4f7;
}

.kb-tab.active {
    color: #0b8fff;
    border-bottom-color: #0b8fff;
}

/* =========================
   PANELS
========================= */

.kb-panel {
    display: none;
    animation: kb-fade-in 0.3s ease;
}

.kb-panel.active {
    display: block;
}

@keyframes kb-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   TEXT BLOCK
========================= */

.kb-text-block {
    margin-bottom: 48px;
}

.kb-text-block h2 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.kb-text-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #b8cce0;
    margin-bottom: 12px;
    /* max-width: 820px; */
}

/* List */
.kb-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    columns: 2;
    column-gap: 40px;
}

.kb-list li {
    font-size: 15px;
    color: #c4d8ef;
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid rgba(11, 143, 255, 0.08);
    break-inside: avoid;
}

.kb-list li::before {
    content: "› ";
    color: #0b8fff;
    font-weight: 700;
}

/* Inline protocol pills */
.kb-list--inline {
    columns: unset;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.kb-list--inline li {
    border: 1px solid rgba(11, 143, 255, 0.30);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #a8c8e8;
    background: rgba(11, 143, 255, 0.07);
    border-bottom: 1px solid rgba(11, 143, 255, 0.30);
}

.kb-list--inline li::before {
    content: none;
}

/* =========================
   ABOUT US CARDS
========================= */

.kb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.kb-card {
    background: rgba(11, 143, 255, 0.05);
    border: 1px solid rgba(11, 143, 255, 0.15);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.2s, background 0.2s;
}

.kb-card:hover {
    border-color: rgba(11, 143, 255, 0.40);
    background: rgba(11, 143, 255, 0.09);
}

.kb-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(11, 143, 255, 0.40);
    background: rgba(11, 143, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b8fff;
    margin-bottom: 16px;
}

.kb-card-icon svg {
    width: 20px;
    height: 20px;
}

.kb-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.kb-card p {
    font-size: 14px;
    color: #8eaac8;
    line-height: 1.6;
}

/* =========================
   LOGO SLIDER
========================= */

.kb-slider-wrap {
    position: relative;
    margin-top: 16px;
    overflow: hidden;
}

/* Left & right fade shadows */
.kb-slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.kb-slider-fade--left {
    left: 0;
    background: linear-gradient(to right, #08111d 0%, transparent 100%);
}

.kb-slider-fade--right {
    right: 0;
    background: linear-gradient(to left, #08111d 0%, transparent 100%);
}

.kb-slider {
    overflow: hidden;
    padding: 20px 0;
}

.kb-slider-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: kb-scroll 30s linear infinite;
}

.kb-slider-track:hover {
    animation-play-state: paused;
}

.kb-slider-track img {
    height: 80px;
    width: auto;
    /* max-width: 130px; */
    object-fit: contain;
    filter: brightness(0.7) grayscale(0.3);
    transition: filter 0.3s;
    flex-shrink: 0;
}

.kb-slider-track img:hover {
    filter: brightness(1) grayscale(0);
}

@keyframes kb-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================
   DISCLAIMER
========================= */

.kb-disclaimer {
    border-top: 1px solid rgba(11, 143, 255, 0.12);
    padding: 24px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.kb-disclaimer p {
    font-size: 12px;
    color: #4a6480;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
    /* text-align: center; */
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .kb-hero-content h1 { font-size: 36px; }

    .kb-tabs {
        gap: 2px;
    }

    .kb-tab {
        font-size: 13px;
        padding: 10px 14px;
    }

    .kb-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kb-list {
        columns: 1;
    }
}

@media (max-width: 600px) {
    .kb-hero-content h1 { font-size: 28px; }

    .kb-tab {
        font-size: 12px;
        padding: 8px 10px;
    }

    .kb-text-block h2 { font-size: 24px; }
}
/* =========================
   MOBILE EXTRA (KNOWLEDGE)
========================= */

@media (max-width:900px){

    .kb-hero {
        width: 100%;
        height: auto;
        min-height: 220px;
        padding-bottom: 32px;
    }

    .kb-hero-bg {
        background:
            url("../images/control_room_4K.png") center / cover repeat-y;
    }

    .kb-hero-content {
        width: 100%;
        padding: 100px 24px 0;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .kb-about .kb-container {
        padding: 36px 24px;
    }

    .kb-container {
        padding: 0 24px 40px;
    }
}
/* =========================
   KB-HERO MOBILE FIX
========================= */
@media (max-width: 900px) {
    .kb-hero {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding-bottom: 32px;
        padding-top: 0;
    }

    .kb-hero-content {
        padding-top: 110px;
        padding-left: 24px;
        padding-right: 24px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .kb-hero-content h1 {
        font-size: 32px;
    }

    .kb-hero-content p {
        font-size: 15px;
    }
    .kb-hero-bg{
        display: none;
    }
}