.term-layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 20px;
    margin-top: 15px;
}

.sidebar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section.content .related-terms, .section.content .related-articles, .section.content .other-categories {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.related-terms a, .other-categories a, .related-articles a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

article {
    font-size: 17px;
    line-height: 7mm;
}

.term-header {
    /* border-bottom: 1px solid #eee; */
    /* padding-bottom: 20px; */
    /* margin-bottom: 20px; */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.term-title-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.term-title {
    font-size: 26px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
}

.term-mkb-container {
    text-align: right;
    line-height: 1.2;
}

.section.content .term-code-mkb {
    margin-bottom: 0;
}

.term-code-mkb .tooltip-text {
    visibility: hidden;
    background-color: #fff;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    border: 1px solid #ddd;
}

.term-code-mkb .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.term-code-mkb {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px !important;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.term-article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #122b9a;
}

.info-box, .warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box .box-icon, .warning-box .box-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.section.content h4 {
    margin-top: 0 !important;
}

.section.content .info-box h4, .warning-box h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.warning-box {
    background-color: #fff1f0;
    border: 1px solid #ff7875;
    color: #8e0c15; 
}

.note-blue {
    border-left-color: #007bff !important;
}

.note-green {
    border-left-color: #28a745 !important;
}

.note-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-left: 5px solid;
}

@media( max-width:768px  )
{
    .term-layout {
        grid-template-columns: initial;
    }
}