﻿.knowledge-header-bar {
    background-color: #B0170C;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    margin: 20px 0 15px 0;
    border-radius: 4px;
}

.knowledge-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.knowledge-tab-btn {
    flex: 1 1 calc(11% - 10px);
    min-width: 110px;
    background-color: #fff;
    color: #B0170C;
    border: 2px solid #B0170C;
    padding: 5px;
    font-size: 100%;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.knowledge-tab-btn:hover {
    background-color: #f9d8d6;
    color: #9b1108;
    border-color: #9b1108;
}

.knowledge-tab-btn.active {
    background-color: #B0170C;
    color: #fff;
    border-color: #B0170C;
}

.knowledge-tab-btn:focus {
    outline: none !important;
    border: 2px solid #ed3024 !important;
    box-shadow: 0 0 0 2px rgba(237, 48, 36, 0.5);
}

.knowledge-content-section {
    background-color: #fff;
    padding: 15px 0;
    width: 100%;
}

.knowledge-text-panel {
    font-size: 110%;
    line-height: 1.8;
    color: #333;
    width: 100%;
}

.knowledge-tab-panel {
    display: none;
}

.knowledge-tab-panel.active {
    display: block;
}

.nav-list-knowledge {
    list-style-type: none;
    padding-left: 0;
    margin-top: 15px;
}

.nav-list-knowledge li {
    margin-bottom: 8px;
    font-size: 105%;
}

.nav-list-knowledge a {
    color: #0252CA;
    text-decoration: underline;
    cursor: pointer;
}

.nav-list-knowledge a:hover {
    color: #d42216;
}

/* Comparison Table Styles (based on global .table) */
.comparison-table-title {
    font-size: 150%;
    font-weight: bold;
    color: #333;
    border-bottom: 3px solid #B0170C;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table th {
    text-align: center;
}

.table td.category {
    font-weight: bold;
    background-color: #f7f7f7;
    text-align: center;
    width: 150px;
    color: #222;
}

.table td.category.lefted {
    text-align: left;
}

.table td.centered {
    text-align: center;
}

.table td.lefted {
    text-align: left;
}

.table td.merged {
    background-color: #fafafa;
    text-align: center;
}

/* Standardized Section Layout with Speak Button */
.speak-section-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 25px;
}

.speak-btn-wrapper {
    width: 40px;
    flex-shrink: 0;
    margin-top: 5px;
}

.speak-content-wrapper {
    flex-grow: 1;
    width: 100%;
}

.source-footer {
    text-align: center;
    font-size: 95%;
    color: #666;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Force bold style on strong tags */
strong {
    font-weight: bold !important;
}

/* Bullet list style for panel-3 */
.bullet-list-knowledge {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 15px;
}

.bullet-list-knowledge li {
    margin-bottom: 12px;
    font-size: 100%;
    line-height: 1.8;
}

.bullet-list-knowledge li::marker {
    font-size: 1.3em;
    color: #000;
}

@media (max-width: 768px) {
    .knowledge-tabs-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .knowledge-tab-btn {
        flex: unset;
        min-width: unset;
    }
    .speak-section-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .speak-btn-wrapper {
        width: auto;
        margin-top: 0;
    }
}
