/* =========================
   SEARCH PAGE
========================= */

.search-page {
    padding: 24px 0 40px;
}

.search-page .breadcrumb {
    font-size: 12px;
    margin-bottom: 14px;
    color: #666;
}

.search-page .breadcrumb a {
    color: #111;
    text-decoration: none;
}

.search-page .search-header {
    margin-bottom: 18px;
}

.search-page .search-header h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.search-page .search-header .result-count {
    font-size: 15px;
    color: #444;
    margin: 0;
}

.search-page .search-form-wrap {
    margin-bottom: 18px;
}

.search-page .search-form {
    display: flex;
    gap: 10px;
}

.search-page .search-form .search-input {
    flex: 1;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.search-page .search-form .search-input:focus {
    border-color: #999;
}

.search-page .search-form .search-button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 3px;
    background: #2f3640;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: .2s ease;
}

.search-page .search-form .search-button:hover {
    opacity: .9;
}

.search-main-col {
    min-width: 0;
}

.search-sidebar-col {
    min-width: 0;
}

.search-results-list {
    width: 100%;
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #ececec;
}

.search-result-item:first-child {
    border-top: 1px solid #ececec;
}

.search-result-item .item-image {
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.search-result-item .item-image img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.search-result-item .item-body {
    flex: 1;
    min-width: 0;
}

.search-result-item .item-category {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #777;
    margin-bottom: 6px;
}

.search-result-item .item-title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    text-decoration: none;
}

.search-result-item .item-title:hover {
    color: #c00;
}

.search-result-item .item-desc {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}

.search-result-item > a {
    display: flex;
    gap: 16px;
    width: 100%;
    text-decoration: none;
}

.search-load-more {
    margin-top: 18px;
    text-align: left;
}

.search-load-more button {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    height: 42px;
    padding: 0 18px;
    border-radius: 3px;
    cursor: pointer;
    transition: .2s ease;
}

.search-load-more button:hover {
    background: #f7f7f7;
}

.search-load-more button:disabled {
    opacity: .65;
    cursor: default;
}

.search-sidebar-box {
    border: 1px solid #ededed;
    border-radius: 4px;
    background: #fff;
    padding: 16px 16px 10px;
    margin-bottom: 18px;
}

.search-sidebar-box .box-title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    position: relative;
    padding-left: 14px;
}

.search-sidebar-box .box-title:before {
    content: "";
    width: 7px;
    height: 7px;
    background: #d40000;
    position: absolute;
    left: 0;
    top: 6px;
}

.search-sidebar-list {
    margin: 0;
    padding-left: 18px;
}

.search-sidebar-list li {
    margin-bottom: 10px;
    color: #111;
}

.search-sidebar-list li a {
    color: #111;
    text-decoration: none;
    line-height: 1.5;
    font-size: 14px;
}

.search-sidebar-list li a:hover {
    color: #c00;
}

.search-empty {
    border: 1px solid #eee;
    background: #fff;
    padding: 18px;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
}

/* Ajax item compatibility */
.post-list-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #ececec;
}

.post-list-item > a {
    display: flex;
    gap: 16px;
    width: 100%;
    text-decoration: none;
}

.post-list-item .item-image {
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.post-list-item .item-image img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.post-list-item .item-body {
    flex: 1;
    min-width: 0;
}

.post-list-item .title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.post-list-item .description {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}

.post-list-item .info {
    display: block;
    margin-bottom: 6px;
}

.post-list-item .category {
    display: inline-block;
    font-size: 11px;
    color: #777;
}

/* Responsive */
@media (max-width: 991.98px) {
    .search-sidebar-col {
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .search-page {
        padding: 18px 0 30px;
    }

    .search-page .search-header h1 {
        font-size: 24px;
    }

    .search-page .search-form {
        flex-direction: column;
    }

    .search-page .search-form .search-button {
        width: 100%;
    }

    .search-result-item,
    .post-list-item,
    .search-result-item > a,
    .post-list-item > a {
        display: block;
    }

    .search-result-item .item-image,
    .post-list-item .item-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .search-result-item .item-image img,
    .post-list-item .item-image img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}