/* ===== Trang Thu vien tai lieu (mau demo/tai_lieu_ky_thuat) =====
   Pham vi .library-sample, nap sau library.css. Icon: Lucide SVG (assets/icons/library/)
   dung lam mask nen mau do CSS quyet dinh (currentColor). */
.library-sample [hidden] {
    display: none !important
}

.library-sample .ico {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
    vertical-align: -.16em
}

/* Hero */
.library-sample .library-hero {
    min-height: 300px;
    background: linear-gradient(90deg, #eef7fd 0%, #eef7fdee 46%, #eef7fd14 76%), url('../images/solution-measure.jpg') right center / cover no-repeat
}

.library-sample .library-breadcrumb a {
    color: inherit
}

.library-sample .library-hero h1 {
    margin: 8px 0 12px;
    color: #063054;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px
}

.library-sample .library-hero p {
    color: #3a566f;
    font-size: 18px
}

.library-sample .library-search {
    align-items: center;
    height: 56px;
    margin-top: 22px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(6, 48, 84, .08)
}

.library-sample .library-search__icon {
    margin: 0 8px 0 16px;
    padding: 0;
    color: #063054;
    font-size: 24px
}

.library-sample .library-search input[type=search] {
    height: 100%;
    padding: 0 8px;
    background: transparent;
    color: #063054;
    font-size: 16px
}

.library-sample .library-search button {
    padding: 0 30px;
    font-size: 16px
}

/* Khung loc */
.library-sample .library-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 26px
}

.library-sample .library-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 6px
}

.library-sample .library-filter__head h2 {
    margin: 0;
    color: #063054;
    font-size: 22px;
    font-weight: 800
}

.library-sample .library-filter__head button {
    padding: 0;
    border: 0;
    background: none;
    color: #ff7827;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer
}

.library-sample #libraryFilters {
    padding-bottom: 8px
}

.library-sample .library-filter fieldset {
    margin: 0;
    padding: 6px 20px 8px;
    border: 0;
    border-top: 1px solid #e8eff4
}

.library-sample .library-filter fieldset:first-of-type {
    border-top: 0
}

.library-sample .library-filter legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0 8px;
    color: #063054;
    font-size: 16px;
    font-weight: 700
}

.library-sample .library-filter legend .ico {
    color: #063054;
    font-size: 18px
}

.library-sample .library-filter label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    color: #3f566b;
    font-size: 15px;
    cursor: pointer
}

.library-sample .library-filter input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #b9c8d5;
    border-radius: 4px;
    background: #fff;
    cursor: pointer
}

.library-sample .library-filter input[type=checkbox]:checked {
    border-color: #ff7827;
    background: #ff7827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat
}

.library-sample .library-help {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 18px;
    border-radius: 6px;
    background: #e8f3fc
}

.library-sample .library-help>b.ico {
    width: 38px;
    height: 38px;
    color: #063054;
    font-weight: 400
}

.library-sample .library-help h3 {
    margin: 0 0 4px;
    color: #063054;
    font-size: 16px;
    font-weight: 800
}

.library-sample .library-help p {
    margin: 0 0 10px;
    color: #4f6579;
    font-size: 14px;
    line-height: 1.45
}

.library-sample .library-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff7827;
    font-size: 14px;
    font-weight: 700
}

.library-sample .library-more .ico {
    font-size: 17px
}

/* Danh sach */
.library-sample .library-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px
}

.library-sample .library-results__head h2 {
    margin: 0;
    color: #063054;
    font-size: 28px;
    font-weight: 800
}

.library-sample .library-results__tools {
    display: flex;
    align-items: center;
    gap: 18px
}

.library-sample .library-results__note {
    color: #8394a4;
    font-size: 12px
}

.library-sample .library-results__tools label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3f566b;
    font-size: 15px
}

.library-sample .library-results__tools select {
    height: 42px;
    min-width: 130px;
    padding: 0 12px;
    border: 1px solid #cfdbe5;
    border-radius: 4px;
    background: #fff;
    color: #063054;
    font-family: inherit;
    font-size: 15px
}

.library-sample .library-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px
}

.library-sample .library-tabs a {
    padding: 10px 26px;
    border: 1px solid #d3dfe8;
    border-radius: 4px;
    background: #fff;
    color: #063054;
    font-size: 15px;
    font-weight: 600
}

.library-sample .library-tabs a.is-active {
    border-color: #ff7827;
    background: #ff7827;
    color: #fff
}

.library-sample .library-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
}

.library-sample .library-doc {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dfe9ef;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(6, 48, 84, .04)
}

.library-sample .library-doc__icon {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 58px;
    height: 68px;
    border: 1px solid #e4eaf0;
    border-radius: 6px;
    background: #fff;
    color: #f26522
}

.library-sample .library-doc__icon .ico {
    font-size: 32px
}

.library-sample .library-doc__icon b {
    font-size: 11px;
    font-weight: 800
}

.library-sample .library-doc__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0
}

.library-sample .library-doc small {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 2px;
    background: #e6f1fb;
    color: #0b3a6a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase
}

.library-sample .library-doc small:empty {
    display: none
}

.library-sample .library-doc em {
    margin-top: 6px;
    color: #5d7185;
    font-size: 13px;
    font-style: normal;
    text-transform: uppercase
}

.library-sample .library-doc em:empty {
    display: none
}

.library-sample .library-doc h3 {
    margin: 6px 0;
    color: #063054;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25
}

.library-sample .library-doc p {
    min-height: 42px;
    margin: 0 0 10px;
    color: #566b80;
    font-size: 15px;
    line-height: 1.45
}

.library-sample .library-doc__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #6b7e90;
    font-size: 14px
}

.library-sample .library-doc__meta i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #6b7e90
}

.library-sample .library-doc footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto
}

.library-sample .library-doc footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1.5px solid #063054;
    border-radius: 3px;
    background: #fff;
    color: #063054;
    font-size: 15px;
    font-weight: 700
}

.library-sample .library-doc footer a.library-download {
    border-color: #ff7827;
    background: #ff7827;
    color: #fff
}

.library-sample .library-doc footer .ico {
    font-size: 18px
}

.library-sample .library-doc-grid__empty {
    padding: 28px;
    border: 1px dashed #cfdbe5;
    border-radius: 6px;
    color: #5d7185;
    text-align: center
}

/* Phan trang */
.library-sample .library-pagination {
    display: flex;
    justify-content: center;
    margin-top: 22px
}

.library-sample .library-pagination ul,
.library-sample .library-pagination .pagination {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none
}

.library-sample .library-pagination li {
    list-style: none
}

.library-sample .library-pagination a,
.library-sample .library-pagination span,
.library-sample .library-pagination li>* {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #cfdbe5;
    border-radius: 4px;
    background: #fff;
    color: #063054;
    font-size: 15px;
    font-weight: 600
}

.library-sample .library-pagination .active>*,
.library-sample .library-pagination a.active,
.library-sample .library-pagination li.active a,
.library-sample .library-pagination li.active span {
    border-color: #ff7827;
    background: #ff7827;
    color: #fff
}

/* Yeu cau tai lieu */
.library-sample .library-request {
    padding: 44px 0;
    background: #e8f3fc
}

.library-sample .library-request__grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 44px;
    align-items: start
}

.library-sample .library-request h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    color: #063054;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15
}

.library-sample .library-request__icon {
    width: 40px;
    height: 40px;
    color: #ff7827
}

.library-sample .library-request__grid>div>p {
    margin: 0 0 22px;
    color: #4a6379;
    font-size: 18px
}

.library-sample .library-request ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step
}

.library-sample .library-request ol li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 54px;
    counter-increment: step
}

.library-sample .library-request ol li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff7827;
    color: #fff;
    font-size: 17px;
    font-weight: 800
}

.library-sample .library-request ol b {
    display: block;
    color: #063054;
    font-size: 18px
}

.library-sample .library-request ol span {
    color: #566b80;
    font-size: 16px
}

.library-sample .library-request__form {
    padding: 24px;
    border-radius: 6px;
    background: #fff
}

.library-sample .library-request__form h2 {
    margin: 0 0 14px;
    font-size: 24px
}

.library-sample .library-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.library-sample .library-form-grid label {
    display: block;
    color: #063054;
    font-size: 14px;
    font-weight: 700
}

.library-sample .library-form-grid sup {
    color: #e53935
}

.library-sample .library-form-grid input,
.library-sample .library-form-grid select,
.library-sample .library-form-grid textarea {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid #d3dfe8;
    border-radius: 3px;
    background: #fff;
    color: #063054;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400
}

.library-sample .library-form-grid textarea {
    height: 76px;
    padding: 10px 12px;
    resize: vertical
}

.library-sample .library-form-grid__wide {
    grid-column: 1 / -1
}

.library-sample .library-captcha {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    align-items: center;
    margin: 14px 0
}

.library-sample .library-captcha input {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d3dfe8;
    border-radius: 3px;
    font-family: inherit
}

.library-sample .library-request__form button[type=submit] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 3px;
    background: #f47920;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer
}

/* Kien thuc ho tro */
.library-sample .library-insights {
    padding: 30px 0 34px
}

.library-sample .library-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px
}

.library-sample .library-heading h2 {
    margin: 0 0 4px;
    padding-left: 12px;
    border-left: 5px solid #ff7827;
    color: #063054;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15
}

.library-sample .library-heading p {
    margin: 0 0 0 17px;
    color: #5d7185;
    font-size: 15px
}

.library-sample .library-insights__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
}

.library-sample .library-insights__grid article {
    display: flex;
    gap: 18px;
    padding: 14px;
    border: 1px solid #dfe9ef;
    border-radius: 6px;
    background: #fff
}

.library-sample .library-insights__img {
    flex: none;
    width: 210px
}

.library-sample .library-insights__img img {
    display: block;
    width: 100%;
    height: 140px;
    border-radius: 4px;
    object-fit: cover
}

.library-sample .library-insights__grid h3 {
    margin: 4px 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3
}

.library-sample .library-insights__grid h3 a {
    color: #063054;
    font-size: inherit
}

.library-sample .library-insights__grid p {
    margin: 0 0 10px;
    color: #566b80;
    font-size: 14px;
    line-height: 1.5
}

@media(max-width:991px) {

    .library-sample .library-layout,
    .library-sample .library-request__grid {
        grid-template-columns: 1fr
    }

    .library-sample .library-hero h1 {
        font-size: 42px
    }
}

@media(max-width:767px) {

    .library-sample .library-doc-grid,
    .library-sample .library-insights__grid,
    .library-sample .library-form-grid {
        grid-template-columns: 1fr
    }

    .library-sample .library-results__head {
        flex-wrap: wrap
    }

    .library-sample .library-insights__grid article {
        flex-direction: column
    }

    .library-sample .library-insights__img {
        width: 100%
    }
}

@media(max-width:575px) {
    .library-sample .library-container {
        width: min(100% - 30px, 1320px)
    }

    .library-sample .library-hero {
        position: relative;
        min-height: 320px
    }

    .library-sample .library-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(238, 247, 253, .94), rgba(238, 247, 253, .8))
    }

    .library-sample .library-hero .library-container {
        position: relative
    }

    .library-sample .library-hero h1 {
        font-size: 34px
    }

    .library-sample .library-request h2 {
        font-size: 28px
    }

    .library-sample .library-doc {
        flex-direction: column
    }
}

/* Nut tim kiem keo gian het chieu cao o tim kiem */
.library-sample .library-search button {
    align-self: stretch
}

/* Phan trang: o nen xanh nhat, mui ten Lucide thay cho « » */
.library-sample .library-pagination li:not(.active) a,
.library-sample .library-pagination li:not(.active) span {
    border-color: #d6e6f3;
    background: #eaf4fc
}

.library-sample .library-pagination li.disabled a {
    opacity: .5
}

.library-sample .library-pagination li:first-child a,
.library-sample .library-pagination li:last-child a {
    position: relative;
    font-size: 0
}

.library-sample .library-pagination li:first-child a::before,
.library-sample .library-pagination li:last-child a::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #063054;
    -webkit-mask: var(--pg) center / contain no-repeat;
    mask: var(--pg) center / contain no-repeat
}

.library-sample .library-pagination li:first-child a {
    --pg: url('../icons/library/chevron-left.svg')
}

.library-sample .library-pagination li:last-child a {
    --pg: url('../icons/library/chevron-right.svg')
}
