/**
 * NukeViet Content Management System
 * @version 4.x
 * @author Văn Lang <Công an tỉnh Lai Châu>
 * @copyright (C) 2009-2021 Văn Lang. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */

/* --- Trang tìm kiếm nội bộ --- */
.page-tim-kiem .seek-page {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    padding: 1.35rem 1.5rem 2rem;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 48%);
    border: 1px solid #e4ebf1;
    box-sizing: border-box;
}

.page-tim-kiem .seek-hero {
    margin-bottom: 1.25rem;
}

.page-tim-kiem .seek-title {
    margin: 0 0 0.45rem;
    font-size: 28px;
    font-weight: 700;
    color: #123a5c;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.page-tim-kiem .seek-note {
    margin: 0;
    color: #5a6f82;
    font-size: 18px;
    line-height: 1.55;
}

.page-tim-kiem .seek-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.page-tim-kiem .seek-field-q {
    flex: 1 1 auto;
}

.page-tim-kiem .seek-field-submit {
    flex: 0 0 auto;
}

.page-tim-kiem .seek-input,
.page-tim-kiem .seek-select {
    height: 54px;
    font-size: 18px;
    border-radius: 2px;
    border-color: #c9d6e2;
    box-shadow: none;
}

.page-tim-kiem .seek-input:focus,
.page-tim-kiem .seek-select:focus {
    border-color: #1a5276;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.12);
}

.page-tim-kiem .seek-submit {
    height: 54px;
    min-width: 140px;
    padding: 0 1.5rem;
    border-radius: 2px;
    background: #1a5276;
    border-color: #1a5276;
    font-size: 18px;
    font-weight: 600;
}

.page-tim-kiem .seek-submit:hover,
.page-tim-kiem .seek-submit:focus {
    background: #143d59;
    border-color: #143d59;
}

.page-tim-kiem .seek-logic {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 0.85rem;
    color: #5a6f82;
    font-size: 17px;
}

.page-tim-kiem .seek-logic-item {
    font-weight: 400;
    cursor: pointer;
}

.page-tim-kiem .seek-results {
    margin-top: 1.5rem;
}

.page-tim-kiem .seek-block {
    margin-bottom: 1.5rem;
}

.page-tim-kiem .seek-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #1a5276;
}

.page-tim-kiem .seek-block-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #123a5c;
}

.page-tim-kiem .seek-block-title span {
    color: #1a5276;
}

.page-tim-kiem .seek-block-count {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: #e8f1f7;
    color: #1a5276;
    font-size: 16px;
    font-weight: 600;
}

.page-tim-kiem .seek-block-more {
    margin-left: auto;
    font-size: 17px;
    color: #1a5276;
}

.page-tim-kiem .seek-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8eef3;
}

.page-tim-kiem .seek-item:last-child {
    border-bottom: 0;
}

.page-tim-kiem .seek-item-thumb {
    flex: 0 0 130px;
    width: 130px;
    height: 90px;
    overflow: hidden;
    background: #eef3f7;
    border: 1px solid #e1e8ef;
}

.page-tim-kiem .seek-item-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.page-tim-kiem .seek-item-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.05rem;
}

.page-tim-kiem .seek-item-title {
    margin: 0 0 0.4rem;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
}

.page-tim-kiem .seek-item-title a {
    color: #123a5c;
}

.page-tim-kiem .seek-item-title a:hover {
    color: #0b6e4f;
    text-decoration: underline;
}

.page-tim-kiem .seek-item-snippet {
    color: #445566;
    font-size: 18px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-tim-kiem .seek-item-snippet .keyword {
    background: #fff3bf;
    color: #5c4800;
    padding: 0 0.15em;
    font-weight: 600;
}

@media (max-width: 767px) {
    .page-tim-kiem .seek-item {
        gap: 0.65rem;
        padding: 0.65rem 0;
    }

    .page-tim-kiem .seek-item-thumb {
        flex: 0 0 100px;
        width: 100px;
        height: 72px;
    }

    .page-tim-kiem .seek-item-title {
        font-size: 18px;
    }

    .page-tim-kiem .seek-item-snippet {
        -webkit-line-clamp: 3;
        font-size: 16px;
    }

    .page-tim-kiem .seek-title {
        font-size: 24px;
    }

    .page-tim-kiem .seek-note {
        font-size: 16px;
    }
}

.page-tim-kiem .seek-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #f8fafc;
    border: 1px dashed #c9d6e2;
}

.page-tim-kiem .seek-empty-icon {
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: #7a91a5;
}

.page-tim-kiem .seek-empty-title {
    margin: 0 0 0.5rem;
    font-size: 22px;
    color: #123a5c;
}

.page-tim-kiem .seek-empty-hint {
    margin: 0;
    color: #5a6f82;
    font-size: 18px;
}

.page-tim-kiem .seek-paging {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .page-tim-kiem .seek-page {
        padding: 1rem;
    }

    .page-tim-kiem .seek-field-submit {
        flex: 1 1 100%;
    }

    .page-tim-kiem .seek-submit {
        width: 100%;
    }

    .page-tim-kiem .seek-block-more {
        margin-left: 0;
        width: 100%;
    }
}
