/* ========================================
   WRAPPER (STABIL BASE)
======================================== */

.mrhost-kb-wrapper {
    width: 100%;
    margin: 0 auto;
    display: block;
	isolation: isolate;
}

/* ========================================
   SEARCH INPUT (100% STABIL)
======================================== */

#mrhost-kb-search {
    display: block;
	width: 600px;
    max-width: 600px;
    margin: 0 auto 35px auto;
    padding: 18px 24px;
    border-radius: 10px;
    border: 1px solid #D5DFFF;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

#mrhost-kb-search:hover,
#mrhost-kb-search:focus {
    border-color: #7253ED;
    outline: none;
}

#mrhost-kb-search:hover,
#mrhost-kb-search:focus {
    border-color: #7253ED;
}

@media (max-width: 768px) {
@media (max-width: 768px) {
    #mrhost-kb-search {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
}

/* ========================================
   GRID (ISOLERAD FRÅN WRAPPER)
======================================== */

.mrhost-kb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    width: 100%;

    align-items: stretch;
    align-content: start;

    position: relative;

    transition: opacity 0.25s ease;
}

@media (max-width: 1024px) {
    .mrhost-kb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mrhost-kb-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HIDE STATE
======================================== */

.mrhost-kb-item.is-hidden {
    display: none !important;
}

/* ========================================
   CARD
======================================== */

.mrhost-kb-item {
    background: #F4F5FF6B;
    border: 1px solid #D5DFFF;
    border-radius: 14px;

    padding: 28px;
    text-decoration: none;

    transition: 0.3s ease;

    display: flex;
    flex-direction: column;

    min-height: 240px;

    font-family: "DM Sans", sans-serif;
}

.mrhost-kb-item:hover {
    background: #F4F5FF;
    border-color: #7253ED;
    transform: translateY(-2px);
}

/* ========================================
   ICON
======================================== */

.mrhost-kb-icon {
    width: 58px;
    height: 58px;

    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #D5DFFF;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;
    transition: 0.3s ease;
}

.mrhost-kb-icon i {
    color: #7253ED;
    font-size: 28px;
}

.mrhost-kb-item:hover .mrhost-kb-icon {
    border-color: #7253ED;
}

/* ========================================
   TEXT
======================================== */

.mrhost-kb-item h3 {
    color: #000;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3em;
    margin: 0 0 12px 0;
}

.mrhost-kb-item p {
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6em;
    margin: 0;
}

.mrhost-kb-item h3,
.mrhost-kb-item p {
    word-break: break-word;
}

/* ========================================
   NO RESULTS (IMPORTANT: OUT OF FLOW FEEL)
======================================== */

.mrhost-kb-no-results {
    margin-top: 30px;
    text-align: center;
    font-size: 15px;
    font-family: "DM Sans", sans-serif;
    color: #000;
}

/* ========================================
   LOADING
======================================== */

.mrhost-kb-grid.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

.mrhost-kb-grid.is-loading::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid #D5DFFF;
    border-top-color: #7253ED;
    border-radius: 50%;
    animation: mrhostSpin 0.7s linear infinite;
}

@keyframes mrhostSpin {
    to {
        transform: rotate(360deg);
    }
}