.container-boxed {
    max-width: 1505px;
    margin: 0 auto; 
    box-sizing: border-box; 
    padding: 0 10px;
}
.container-fullwidth {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto; 
}

.title-home{
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    padding: 20px 0; 
}

.container-boxed-banner {
    text-align: center;
    width: 1505px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    color: white;
    background: linear-gradient(rgba(30, 0, 174, 0.8), rgba(30, 0, 174, 0.8)), url(http://localhost/techbook/wp-content/uploads/2024/09/Banner-2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: Ford Antenna;
    font-size: 36px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 0.015em;
}
.container-boxed-form {
    max-width: 1505px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #F5F5F5;
    padding: 30px;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
}
.input-field {
    display: flex;
    flex-direction: column;
}
.search-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
label {
    margin-bottom: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
    color: #2C2C2C;

}

.input-field input[type="text"],
.input-field  input[type="number"], select {
    padding: 12px;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    margin-bottom: 20px;

}
.year-selection {
    display: flex;
    gap: 20px;
}
.table-3-radio label{
    font-weight: 300;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-refresh {
    width: 48%;
    border-radius: 8px;
    color: #fff;
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.btn-refresh.disabled {
    background-color: #d9d9d9; 
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-refresh.enabled {
    background-color: #d9d9d9; 
    color: #2C2C2C;
    cursor: pointer;
    opacity: 1;
}
.sort-container {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.sort-by select, .sort-newest select {
    padding: 5px;
    font-size: 14px;
    width: auto;
    border: none;
}

.sort-by {
    display: flex;
}
.sort-by span {
    margin-right: 5px; 
    white-space: nowrap; 
}
.container-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 40px;
    border-bottom: 1px solid #EDEDED;
    flex-direction: column;
}
.container-title p{
font-family: Ford Antenna;
font-size: 20px;
font-weight: 600;
line-height: 36px;
text-align: left;
}

.container-title span{
    color: #1E00AE;
}
.sort-by p {
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    display: flex;
    align-items: center;
    margin-top: -5px;
}


/* phần dưới */

.document-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 0px;
}
.hidden-document {
    opacity: 0;
    max-height: 0;
    overflow: hidden; 
    transition: all 0.5s ease; 
}

.hidden-document.show {
    opacity: 1;
    max-height: 1000px; 
}




input[type="radio"] {
    display: none;
}

.custom-radio {
    display: inline-block;
    width: 18px; 
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2); 
    background-color: white; 
    position: relative;
    margin-right: 10px;
    transition: border-color 0.3s ease; 
}

.custom-radio:hover {
    border-color: rgba(0, 0, 0, 0.4); 
}

.custom-radio::after {
    content: '';
    width: 10px; 
    height: 10px; 
    background-color: blue; 
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; 
}


input[type="radio"]:checked + .custom-radio {
    border-color: blue; 
}

input[type="radio"]:checked + .custom-radio::after {
    display: block;
}

.table-3-radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px; 
}


.table-3-radio {
    display: flex;
    gap: 30px;
    margin: 10px 0 26px 0px;
}
#keyword-search {
    width: 100%;
    height: 136px;
    resize: none;
    overflow-wrap: break-word;
    padding: 10px;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    margin-bottom: 45px;
}




button.btn-search {
    background-color: #1E00AE;
    width: 48%;
    border-radius: 8px;
    color: #fff;
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.search-table-1 ,.search-table-2 {
    border-right: 1px solid #E8E8E8;
    padding-right: 20px;
}

#select-ics {
    margin: 0;
}
#select-lang {
    margin: 0;
}

.year-selection {
    display: flex;
}


/* Đặt chiều rộng cho hộp Select2 */
.select2-selection {
    padding: 10px !important;
    border: 1px solid #EDEDED !important;
    border-radius: 8px !important;
    font-family: 'Ford Antenna' !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 19.6px !important;
    text-align: left !important;
    margin-bottom: 20px !important;
    height: 46px !important;
    width: 100% !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 8px;
    padding-right: 20px;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 30px;
    white-space: normal !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    margin: -5px;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none;
}

.home-link {
    text-decoration: none !important;
    color: #2C2C2C;
}
.search-box h2 {
    font-size: 24px !important;
    font-family: Ford Antenna;
}

.icon1{
    font-size: 20px;
}
.icon1.disabled{
    color: #fff;
}

.icon1.enabled{
    filter: invert(1);
}



/* reponsive */
@media screen and (max-width: 1510px) {
    .container-boxed-banner {
        width: 99%;
    }
    .title-home {
        padding: 20px 10px;
    }
    .product-list {
        gap: 10px;
    }
    .container-title {
        padding: 10px;
    }
    .standard-topic , .topic-start{
        margin-left: 10px;
    }

}

@media screen and (max-width: 1100px) {
    .icon1 , .icon2 {
        height: 20px;
    }
    .btn-refresh ,.btn-search {
        font-size: 12px;
    }
    .action-buttons {
        gap: 10px;
    }
    .table-3-radio label {
        font-size: 12px;
    }
}

@media screen and (max-width: 767px) {
    .search-box h2 {
        font-size: 20px !important;
        font-family: Ford Antenna;
    }
    .search-panel {
        display: grid;
        grid-template-columns: none;
        gap: 20px;
    }
    .container-title p {
        font-size: 16px;
    }
    .titile-banner {
        font-size: 24px;
    }
    .sort-by select, .sort-newest select {
        font-size: 12px;
    }
    .sort-by p {
        font-size: 12px !important;
    }
    .sort-container {
        gap: 5px;
    }
    .search-table-1, .search-table-2 {
        border-right: none;
        padding-right: 0;
    }
}
@media screen and (max-width: 370px) {
.year-selection {
    display: flex;
    flex-direction: column;
}
}

@media screen and (max-width: 500px) {
    .container-title {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .sort-container {
        display: flex;
        align-items: flex-end;
        gap: 5px;
        flex-direction: column;
    }
}




.custom-pagination {
    display: flex;
    justify-content: center; 
    margin: 20px;
}

.custom-pagination .btn-page,  .custom-pagination span{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #EDEDED;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 8px;
}
.custom-pagination span , .custom-pagination a{
    width: 42px;
  }

.custom-pagination .current {
    background-color: #2C2C2C;
    color: #fff;
    border-color: #2C2C2C;
}

.custom-pagination .btn-page {
    background-color: #fff;
    color: #000;
}

.custom-pagination .btn-page:hover {
    background-color: #f0f0f0;
}

.custom-pagination .prev,
.custom-pagination .next {
    width: auto;
    padding: 0 10px;
}

.custom-pagination .dots {
    background-color: transparent;
    border: none;
    pointer-events: none;
    width: auto;
}
.btn-page.active {
    background: #000;
    color: #fff;
}

/* CSS để đưa loading ra giữa */
#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); 
    z-index: 9999; 
  }
  
  #loading-container i {
    font-size: 80px; 
    color: #1e00ae; 
    animation: spin 1s linear infinite; 
  }
  
  @keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
  }





  .document-item {
    display: flex !important;
    justify-content: space-between;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 99%;
    margin: 0 auto;
    color: #2c2c2c;
    text-decoration: none !important;
}
.document-item:nth-child(odd) {
    background-color: #f8f9fa; 
}


.document-item:nth-child(even) {
    background-color: #ffffff; 
}
.document-info {
    flex: 1;
}

.document-item:hover{
        cursor: pointer;
    box-shadow: 0px 0px 15px 0px #00000026;
    }

.document-item:hover .document-action{
  background-color: #1E00AE;
}
.document-item:hover .icon-card{
  filter: invert(1);
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.document-description {
    font-size: 14px;
    margin-bottom: 10px;
}

.document-meta span {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.document-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.status-label1 {
    color: #2C2C2C !important;
    background: #D9F9F3;
    padding: 5px;
    border: 1px solid #18BEA0;
    border-radius: 32px;
    font-family: "Ford Antenna", sans-serif;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 22px;
}

.status-label.withdrawn {
    background-color: #FFDDD9;
    color: #2C2C2C !important;
    padding: 5px;
    border: 1px solid #FF7160;
    border-radius: 32px;
    font-family: "Ford Antenna", sans-serif;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 22px;
}

.document-action img {
    width: 17px;
    height: 17px;
}

.document-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.status-label {
    color: #2C2C2C !important;
    background: #D9F9F3;
    padding: 5px;
    border: 1px solid #18BEA0;
    border-radius: 32px;
    font-family: "Ford Antenna", sans-serif;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 22px;
}


@media screen and (max-width: 440px){
    .document-title {
        font-size: 14px;
    }
    .document-description {
    font-size: 12px;
}
.document-meta span  {
    font-size: 11px !important;
}
}

#page-size-select-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
    padding-right: 10px;
}

#page-size-select {
  
    width: 100px;
}


.product-item-search {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.product-image-search {
    width: 160px;
    height: auto;
    margin-right: 20px;
}

.info-search {
    flex-grow: 1;
    width: 75%;
}

.product-title-search {
    font-size: 18px;
    color: #1E00AE;
    margin: 0;
    font-family: Ford Antenna;
    font-weight: 600;
}

.product-group-search {
    font-size: 14px;
    color: #2c2c2c;
    margin: 5px 0;
    font-family: Ford Antenna;
}

.product-category-search {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

.product-price-search {
    font-size: 16px;
    color: #c00;
    font-weight: bold;
    margin: 5px 0;
}

.button-search {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}
img.product-image {
    width: 200px;
    height: auto;
    margin-right: 30px;
}
.button-cart-search, .button-wishlist-search {
    background-color: transparent;
    border: 1px solid;
    cursor: pointer;
    margin-top: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    width: 100px;
    font-family: Ford Antenna;
}
.button-cart-search img,
.button-wishlist-search img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.button-cart-search ,.button-wishlist-search {
    color: #2c2c2c;
    font-family: Ford Antenna;
    font-weight: 500;
}
button.btn-search:hover{
    background-color: #007bff;
}


.link-search {
    margin-right: 20px;
}
@media (max-width: 1400px) {
    .info-search {
        width: 60%;
    }
}
@media (max-width: 768px) {
    .product-item-search {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-image-search {
        width: 160px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .button-search {
        align-items: flex-start;
        margin-top: 10px;
    }

    .product-title-search {
        font-size: 16px;
    }

    .product-price-search {
        font-size: 14px;
    }
    .info-search {
        flex-grow: 1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-item-search {
        padding: 10px;
    }

    .product-image-search {
        width: 160px;
    }

    .product-title-search {
        font-size: 14px;
    }

    .product-group-search,
    .product-category-search,
    .product-price-search {
        font-size: 12px;
    }

    .button-cart-search,
    .button-wishlist-search {
        font-size: 12px;
    }
}



.alphabet-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.char {
    font-size: 22px;
    font-weight: 600;
    font-family: Ford Antenna;
    color: #2c2c2c; 
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.char:hover {
    background-color: #1E00AE; 
    color: #fff; 
    cursor: pointer;
}
.standard-topic , .topic-start{
    font-size: 20px ;
    font-family: Ford Antenna;
}

.char.active {
    background-color: #1E00AE; 
    color: #fff; 
}

#results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 400px; 
    overflow-y: auto;
}

.result-item {
    width: calc(33.33% - 10px); 
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Ford Antenna';
}

.no-data {
    text-align: center;
    color: red;
    font-size: 18px;
    font-weight: bold;
}

#lua-chon-topic {
    margin-left: 10px;
    color: #1E00AE;
    font-weight: bold;
}

.result-item:hover {
    background-color: #fff;
    border: 1px solid #1E00AE ;
    color:#1E00AE;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; 
}




@media (max-width: 768px) {
    .standard-topic , .topic-start{
        font-size: 16px;
    }

    .char {
        font-size: 18px;
    }

    .result-item {
        width: calc(50% - 10px); 
    }

}