/*
Theme Name: TechConnect
Text Domain: TechConnect
Version: 1.0
Description: Search Page Styles
Author: KB
*/

.search-page .spacer {
    width: 100%;
    height: 102px;
}

.search-page .input-field {
    margin: auto;
    width: 60%;
    text-align: left;
}

.search-page .input-field p {
    color: #A1A6AA;
}

.search-page-main-body {
    position: relative;
    height: calc(100dvh - 102px);
    width: 100%;
    padding: 53px 80px 100px 80px;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-page-bg-image {
    position: fixed;
    bottom: 58px;
    right: -20px;
    width: 458px;
    height: 452px;
    z-index: -1;
}

.no-match-image {
    height: 196.83px;
    width: 187.72px;
}

.no-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #21212152;
}

.no-result-container p {
    width: 25%;
}

.search-results-container {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.search-result-item:first {
    padding-top: 0px;
}
.search-result-item {
    display: flex;
    gap: 16px;
    cursor: pointer;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #21212129;
}

.search-result-item .image-container {
    flex-shrink: 0;
}

.search-result-item .image-container img {
    position: relative;
    height: 128px;
    width: 128px;
    overflow: hidden;
    border-radius: 4px;
    object-position: center;
    object-fit: cover;
    z-index: -1;
}

.search-result-item .text-container {
    color: #212121;
    text-align: left;
}

.search-result-item .text-container .title {
    font-size: 1.125rem;
    font-weight: 600;
}

.search-result-item .text-container .parent {
    font-size: 0.75rem;
}

.search-result-item .text-container .description {
    color: #212121B8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

@media screen and (max-width: 1023px) {
    .search-page-main-body {
        padding: 50px 16px 50px 16px;
        text-align: center;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .search-page .input-field {
        width: 100%;
    }

    .search-results-container {
        width: 100%;
    }

    .search-result-item .text-container .title {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-result-item .text-container .description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-page-bg-image {
        bottom: -20px;
        right: -10px;
        width: 249px;
        height: 246px;
        z-index: -1;
    }

    .no-result-container p {
        width: 80%;
    }
}


