/* =========================================================
   TVO VIDENBANK
========================================================= */


/* =========================================================
   INTRO / NOTE
========================================================= */

.kb-intro-section {
    padding-bottom: 2.2rem !important;
}

.kb-intro-section p {
    max-width: none;
}

.kb-intro-section>p:first-child {
    margin-bottom: 1.2rem;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
}

.kb-intro-section>p:first-child a {
    color: inherit;
    border-bottom-color: rgba(0, 0, 0, 0.25);
}

.kb-intro-section h2 {
    margin-bottom: 1rem;
}

.kb-intro-section p:last-child {
    margin-bottom: 0;
}

.kb-note {
    margin-top: 1.25rem;
    font-size: 0.92rem !important;
    color: rgba(0, 0, 0, 0.55) !important;
}


/* =========================================================
   SEARCH
========================================================= */

.kb-search-form {
    display: flex;
    gap: 0.85rem;
    max-width: 760px;
    margin: 1.9rem 0 1.2rem 0;
    padding-top: 0.25rem;
}

.kb-search-form input[type="search"] {
    flex: 1;
}

.kb-search-form .button {
    margin: 0;
    white-space: nowrap;
}


/* =========================================================
   LIST SECTIONS
========================================================= */

.kb-list-section {
    padding-top: 2.8rem !important;
    padding-bottom: 2.8rem !important;
}

.kb-list-section h3 {
    margin-bottom: 1.2rem;
}


/* =========================================================
   GRID / CATEGORY CARDS
========================================================= */

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.kb-card {
    display: flex;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(204, 0, 0, 0.18);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.kb-card:hover {
    transform: translateY(-3px);
    border-color: rgba(204, 0, 0, 0.38);
    box-shadow: 0 14px 34px rgba(204, 0, 0, 0.08);
}

.kb-card h3 {
    margin-bottom: 0.55rem;
    color: #111827;
    font-size: 1.05rem;
}

.kb-card p {
    margin: 0;
    color: rgba(0, 0, 0, 0.68);
    line-height: 1.65;
    font-size: 0.95rem;
}

.kb-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(204, 0, 0, 0.10);
    color: #cc0000;
    font-size: 1.15rem;
}


/* =========================================================
   QUESTIONS / ARTICLE LIST
========================================================= */

.kb-question-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kb-question {
    display: block;
    padding: 1.4rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(204, 0, 0, 0.16);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.kb-question:hover {
    transform: translateY(-2px);
    border-color: rgba(204, 0, 0, 0.38);
    box-shadow: 0 14px 34px rgba(204, 0, 0, 0.08);
}

.kb-question h3 {
    margin: 0.7rem 0;
    color: #111827;
    font-size: 1.15rem;
}

.kb-question p {
    margin: 0;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}

.kb-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.8rem;
    font-weight: 600;
}


/* =========================================================
   META
========================================================= */

.kb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.82rem;
}

.kb-meta span {
    display: inline-flex;
    align-items: center;
}


/* =========================================================
   ARTICLE LAYOUT
========================================================= */

.kb-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.kb-article-layout--plain {
    padding-top: 0 !important;
}

.kb-article-content {
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(204, 0, 0, 0.14);
    box-shadow: none;
}

.kb-article-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
}

.kb-article-content h2:first-child {
    margin-top: 0;
}

.kb-article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
    font-size: 1.08rem;
}

.kb-article-content p {
    margin-bottom: 1.15rem;
    color: rgba(0, 0, 0, 0.72);
    line-height: 1.8;
}

.kb-article-content ul,
.kb-article-content ol {
    margin-bottom: 1.25rem;
}

.kb-article-content li {
    margin-bottom: 0.4rem;
    color: rgba(0, 0, 0, 0.72);
}


/* =========================================================
   ARTICLE SIDEBAR
========================================================= */

.kb-article-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.kb-side-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(204, 0, 0, 0.14);
    box-shadow: none;
}

.kb-side-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.kb-law-list,
.kb-source-list {
    margin: 0;
    padding-left: 1.1rem;
}

.kb-law-list li,
.kb-source-list li {
    margin-bottom: 0.55rem;
    padding-left: 0.25rem;
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.kb-source-list a {
    font-weight: 700;
}

.kb-source-list span {
    display: block;
    margin-top: 0.2rem;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.82rem;
}

.kb-disclaimer {
    background: rgba(0, 0, 0, 0.025);
}

.kb-disclaimer p {
    margin: 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.kb-empty {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(204, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.6);
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 980px) {

    .kb-article-layout {
        grid-template-columns: 1fr;
    }

    .kb-article-side {
        position: static;
    }
}

@media screen and (max-width: 736px) {

    .kb-search-form {
        flex-direction: column;
        margin-top: 1.4rem;
    }

    .kb-search-form .button {
        width: 100%;
    }

    .kb-grid {
        grid-template-columns: 1fr;
    }

    .kb-card {
        padding: 1.1rem;
    }

    .kb-question {
        padding: 1.15rem;
    }

    .kb-article-content {
        padding: 1.25rem;
    }
}