.knowledge-base {
    padding-top: 30px !important;
}

.knowledge-hero {
    position: relative;
    width: 100%;
    height: 30vw;
    overflow: visible;
    background: #011321;
}

.knowledge-hero .bg-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url('../img/tudastar-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.knowledge-hero .main-title {
    color: #fff;
    margin-top: 6.15vw;
    margin-bottom: 2.15vw;
    font-size: 52px;
}

.knowledge-base-search {
    border-radius: 50px !important;
    padding: 20px 50px 20px 20px !important;
    height: 2.516vw;
    font-size: 0.9375vw;
    color: #000;
}

.knowledge-base-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn img {
    width: 18px;
    height: 18px;
}

ul.knowledge-categories {
    list-style-type: none;
    text-align: center;
}

ul.knowledge-article-categories {
    list-style-type: none;
}

ul.knowledge-categories li,
ul.knowledge-article-categories li {
    display: inline-block;
    border: 1px solid #5D3DFF;
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 8px;
    background-color: #000;
}

ul.knowledge-article-categories li {
    margin-top: 20px;
}

ul.knowledge-categories li:last-child,
ul.knowledge-article-categories li:last-child {
    margin-right: 0;
}

ul.knowledge-categories li a,
ul.knowledge-article-categories li {
    color: #d9d9d9;
    text-decoration: none;
}

ul.knowledge-categories li.active,
ul.knowledge-categories li.active a,
ul.knowledge-article-categories li.active {
    background-color: #5D3DFF;
}

.knowledge-base-container {
    width: 100%;
    max-width: 100% !important;
    padding-right: 30px !important;
    padding-left: 30px !important;
    margin-right: auto;
    margin-left: auto;
}

.knowledge-base-container #side-filters {
    border-radius: 30px;
    background-color: #0A051F;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.knowledge-base-container #side-filters h4 {
    font-weight: 300;
    font-size: 16px;
    font-style: normal;
    padding-left: 20px;
    padding-right: 20px;
}

.knowledge-base-container #side-filters h5 {
    margin-top: 20px;
    font-weight: normal;
    font-size: 16px;
    font-weight: 300;
    font-style: normal;
}

.knowledge-base-container #side-filters h4 svg {
    color: #fff;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 10px;
}

.knowledge-base-container #side-filters .filter-header {
    cursor: pointer;
    padding-left: 20px;
    padding-right: 20px;
}

.knowledge-base-container #side-filters .toggle-icon {
    transition: transform 0.2s ease-in-out;
    transform-origin: center;
}

.knowledge-base-container #side-filters .filter-content {
    margin-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-top: 1px solid #5D3DFF;
}

.knowledge-base-container #side-filters .filter-section.collapsed .filter-content {
    display: none;
}

.knowledge-base-container #side-filters .filter-section:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.knowledge-base-container #side-filters .form-check {
    padding-left: 0;
    margin-top: 20px;
    position: relative;
}

.knowledge-base-container #side-filters .filter-content .form-check:last-child {
    margin-bottom: 15px;
}

.knowledge-base-container #side-filters .filter-content .form-check-label {
    display: block;
    position: relative;
    padding-left: 0;
    padding-right: 0;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.knowledge-base-container #side-filters .filter-content .form-check-input {
    opacity: 0;
    position: relative;
    width: 20px;
    height: 20px;
}

.knowledge-base-container #side-filters .filter-content .form-check-label::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #5D3DFF;
    background-color: transparent;
    box-sizing: border-box;
}

.knowledge-base-container #side-filters .filter-content .form-check-label.checked::before {
    content: "";
    position: absolute;
    right: 3px;
    top: 6px;
    width: 14px;
    height: 13px;
    background-color: #fff;
    box-sizing: border-box;
}

.knowledge-base-container .row > [class*="col-"] {
    display: flex;
}

.knowledge-base-container .row > div.order-md-1 {
    display: block;
}

/*.knowledge-base-container .row > div.order-md-2 .col-md-6 {
    display: flex;
}*/

.knowledge-base-container article {
    border-radius: 30px;
    background: linear-gradient(to right, #0A051F, #2B1585);
    padding: 20px 30px;
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    width: 100%;
}

.knowledge-base-container article h2,
.knowledge-base-container article h2 a {
    font-size: 28px;
    color: #fff;
}

.knowledge-base-container article .text-muted {
    display: block;
    font-size: 14px;
    color: #8b8896;
}

.knowledge-base-container article p {
    font-size: 12px;
    color: #fff;
}

.knowledge-base-container-subpage article p {
    color: #000;
}

.knowledge-base-more {
    background: url('../img/tudastar-tovabb.png') no-repeat center / cover;
    display: block;
    width: 50px;
    height: 50px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.knowledge-base-container-subpage {
    max-width: 72.91vw !important;
}

.knowledge-base-container-subpage #articles-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.knowledge-base-container #articles-container .knowledge-base-row {
    flex: 1;
    min-width: 0;
}

.knowledge-base-container-subpage article {
    background: #fff;
    border: 1px solid #000;
    color: #0A051F;
    flex: 1;
}

.knowledge-base-container-subpage article h2 {
    font-size: 28px;
    color: #0A051F;
    text-align: left;
}

.knowledge-base-container-subpage article p {
    font-size: 0.9vw;
}

.knowledge-base-container-subpage .back-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.knowledge-base-container-subpage .back-link img {
    width: 38px;
    height: 38px;
}

.knowledge-base-container-subpage .authors ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.knowledge-base-container-subpage .author {
    font-size: 16px;
    color: #0A051F;
    display: inline-block;
}

.knowledge-base-container-subpage .authors ul li:not(:last-child)::after {
    content: ", ";
}

.knowledge-base-container-subpage .text-muted {
    margin-top: 5px;
}

.knowledge-base-container-subpage h3 {
    font-size: 16px;
    color: #0A051F;
}

.knowledge-base-container-subpage ul.knowledge-article-categories li.active {
    background-color: #0A051F;
}

.knowledge-base-container-subpage .knowledge-base-program-files {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.knowledge-base-container-subpage .program-file {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
}

.knowledge-base-container-subpage .program-file .program-file-image {
    width: 65px;
    border: 1px solid #0A051F;
    display: block;
    padding: 16px 8px;
    border-radius: 8.3px;
    font-size: 10px;
    color: #0A051F;
    margin: 0 auto;
}

.knowledge-base-container-subpage .program-file .program-file-image img {
    margin-bottom: 5px;
}

.knowledge-base-container-subpage a.program-file span.file-name {
    color: #0A051F;
    overflow: hidden;
    line-height: 1.4;
    max-height: calc(2 * 1.4em);
    word-break: break-word;
    font-size: 12px;
    margin-top: 15px;
}

@media only screen and (max-width: 640px) {
    .knowledge-base-container {
        max-width: 92vw !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .knowledge-base-container .order-1,
    .knowledge-base-container .order-2 {
        margin-left: auto;
        margin-right: auto;
    }

    .knowledge-hero {
        height: 288px;
    }

    .knowledge-hero .main-title {
        font-size: 28px;
    }

    .knowledge-base-container-subpage #articles-container {
        flex-direction: column;
    }

    .knowledge-base-search {
        font-size: 4vw;
    }
}