:root {
    --knowledgeBase-search-placeholder-tc: #666;
    --knowledgeBase-search-icon-tc: #009c86;
    --knowledgeBase-search-focus-bc: #009c86;
    --knowledgeBase-search-sc: rgba(0, 156, 134, .25);
    --knowledgeBase-categoryTitle-tc: #009c86;
    --knowledgeBase-categoryContainer-bg: rgba(138, 138, 138, 0.1);
    --knowledgeBase-categoryItem-bg: #fff;
    --knowledgeBase-categoryItem-bc: #dbdbdb;
    --knowledgeBase-categoryItem-sc: rgba(0, 0, 0, 0.1);
    --knowledgeBase-categoryItem-hover-sc: rgba(0, 0, 0, 0.22);
    --knowledgeBase-categoryItem-title-tc: #009c86;
    --knowledgeBase-categoryItem-desc-tc: #111111;
    --knowledgeBase-categoryItem-sublist-before-tc: #009c86;
    --knowledgeBase-categoryItem-sublist-link-bc: #009c86;
    --knowledgeBase-categoryItem-sublist-link-tc: #4c4747;
    --knowledgeBase-categoryItem-shape-bg: #009c86;
    --knowledgeBase-categoryItem-shape-tc: #FFF;
    --knowledgeBase-subItem-contentImage-bc: #dbdbdb;
    --knowledgeBase-subItem-contentImage-sc: rgba(0, 0, 0, 0.1);
    --knowledgeBase-subItem-title-tc: #009c86;
    --knowledgeBase-subItem-before-tc: #009c86;
}

:root[data-bs-theme="dark"] {
    --knowledgeBase-categoryItem-bg: #3c3c3c;
    --knowledgeBase-categoryItem-bc: #504c4c;
    --knowledgeBase-categoryItem-desc-tc: #fff;
    --knowledgeBase-categoryItem-sublist-link-tc: #dbdbdb;
}

#knowledgeBase {
    font-size: 20px;
    line-height: 28px;
}

#knowledgeBase ul.list-style-square li {
    padding: .5rem .5rem;
    color: var(--knowledgeBase-categoryItem-sublist-link-tc);
}

#knowledgeBase .search-wrapper {
    position: relative;
}

#knowledgeBase .search-wrapper input {
    padding: 1rem 2.5rem;
}

#knowledgeBase .search-wrapper input::placeholder {
    color: var(--knowledgeBase-search-placeholder-tc);
    opacity: .7;
}

#knowledgeBase .search-wrapper .searchInputIcon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--knowledgeBase-search-icon-tc);
    font-size: 1.5rem;
    pointer-events: none;
}

#knowledgeBase .search-wrapper .searchInputIcon.icon-rotation {
    animation: infinite-rotate 3s linear infinite;
}

#knowledgeBase .search-wrapper input:focus {
    border-color: var(--knowledgeBase-search-focus-bc);
    box-shadow: 0 0 0 .25rem var(--knowledgeBase-search-sc);
}

#knowledgeBase .categoryTitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--knowledgeBase-categoryTitle-tc);
}

#knowledgeBase .knowledgeCategoryContainer {
    background-color: var(--knowledgeBase-categoryContainer-bg);
    border-radius: 8px;
    padding-top: 1rem;
}

#knowledgeBase .categoryItem {
    position: relative;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--knowledgeBase-categoryItem-bg);
    border: 1px solid var(--knowledgeBase-categoryItem-bc);
    box-shadow: 0 10px 15px -3px var(--knowledgeBase-categoryItem-sc);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    height: 100%;
}

#knowledgeBase .categoryItem:hover {
    box-shadow: 0 14px 28px var(--knowledgeBase-categoryItem-hover-sc), 0 10px 10px var(--knowledgeBase-categoryItem-hover-sc);
}

#knowledgeBase .categoryItem-imageContainer {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: auto;
}

#knowledgeBase .categoryItem-imageContainer img {
    border-radius: 50%;
    margin: 0 auto 0 0;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    vertical-align: middle;
}

#knowledgeBase .categoryItem h2 {
    font-size: 1.5rem;
    color: var(--knowledgeBase-categoryItem-title-tc);
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#knowledgeBase .categoryItem h2 a {
    text-decoration: none;
    color: inherit;
}

#knowledgeBase .categoryItem .categoryItem-content {
    color: var(--knowledgeBase-categoryItem-desc-tc);
}

#knowledgeBase ul.list-style-square li::before {
    color: var(--knowledgeBase-categoryItem-sublist-before-tc);
}

#knowledgeBase ul.list-style-square a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

#knowledgeBase ul.list-style-square a:hover {
    border-color: var(--knowledgeBase-categoryItem-sublist-link-bc);
}

#knowledgeBase .categoryItem .link-shape {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 8px 12px;
    border-radius: 0 0 2px 0;
    overflow: hidden;
    margin: 0 -2px -2px 0;
    z-index: 2;
}

#knowledgeBase .categoryItem .link-shape::before {
    content: '';
    width: 0;
    height: 0;
    border-bottom: 60px solid var(--knowledgeBase-categoryItem-shape-bg);
    border-left: 60px solid transparent;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    border-bottom-right-radius: 8px;
}

#knowledgeBase .categoryItem .link-shape i {
    position: relative;
    z-index: 15;
    color: var(--knowledgeBase-categoryItem-shape-tc);
}

#knowledgeBase #no-results {
    width: 100%;
    text-align: center;
    padding-bottom: 1rem;
    font-size: 3rem;
}

#knowledgeBaseOne h2 {
    color: var(--knowledgeBase-subItem-title-tc);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

#knowledgeBaseOne .contentImgContainer {
    width: 100%;
    overflow: hidden;
    position: relative;
    gap: 2rem;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#knowledgeBaseOne .contentImgContainer .contentImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--knowledgeBase-subItem-contentImage-bc);
    box-shadow: 0 10px 15px -3px var(--knowledgeBase-subItem-contentImage-sc);
    max-height: 400px;
}

#knowledgeBaseOne ul.list-style-square {
    padding-left: 2rem;
}

#knowledgeBaseOne ul.list-style-square li::before {
    color: var(--knowledgeBase-subItem-before-tc);
}

#knowledgeBaseOne .contentDesc {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #knowledgeBaseOne .contentImg,
    #knowledgeBaseOne .contentDesc {
        margin-bottom: 2rem;
    }
}

@keyframes infinite-rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.card {
    --bs-card-color: inherit;
}

.testimonial-card-item {
    width: clamp(280px, 25vw, 400px);
    flex-shrink: 0;
}

.testimonial-card-item .card {
    border-left: 3px solid #009C86 !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.testimonial-card-item .card-body {
    position: relative;
    padding-top: 1.8rem;
}

.testimonial-card-item .card-text {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
}

.testimonial-initials {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 0.4rem;
}

.testimonial-section-title {
    color: var(--services-heading-tc);
    margin-right: 0.4rem;
}

.text-warning {
    text-align: right;
}
