html,
body {
    /* overflow-y: auto;
    height: 100%;
    min-height: 100%;
    width: 100%; */
    overflow-x: hidden;
}

/* main {
    min-height: 69.2%;
} */
.btn-more {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: 2px var(--bs-secondary) !important;
}

.modal-open {
    overflow: auto;
}

.text-article {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-header-avatar {
    width: 100px;
    height: 100px;
    -webkit-border-radius: 60px;
    -webkit-background-clip: padding-box;
    -moz-border-radius: 60px;
    -moz-background-clip: padding;
    border-radius: 60px;
    background-clip: padding-box;
    margin: 7px 0 0 5px;
    float: left;
    background-size: cover;
    background-position: center;
}

.company-header-avatar-article-list {
    width: 60px;
    height: 60px;
    -webkit-border-radius: 60px;
    -webkit-background-clip: padding-box;
    -moz-border-radius: 60px;
    -moz-background-clip: padding;
    border-radius: 60px;
    background-clip: padding-box;
    margin: 7px 0 0 5px;
    float: left;
    background-size: cover;
    background-position: center center;
}

.user-icon {
    color: black;
}

.banner {
    height: 32px;
    color: white;
    width: 100%;
    background-color: var(--bs-primary);
    padding-top: 5px;
    text-align: center;
}

.banner a {
    color: white;
    text-decoration: underline;
}

.text-line {
    font-family: "Kanit", sans-serif;
    font-style: italic;
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #efefef;
    line-height: 0.1em;
    margin: 20px 0 25px;
    color: #7d8399;
}

.text-line .new {
    background-color: #f9fafc;
    padding: 0 10px;
}

.text-line span {
    background: #fff;
    padding: 0 10px;
}

/* .title {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 3rem;
    font-family: var(--bs-font-primary);
    font-weight: bold;
    margin: auto;
    color: var(--bs-dark);
} */

.underline-header {
    margin-top: -50px;
    --color: var(--bs-secondary) !important;
    --position: center bottom;
    --width: 50px;
    --height: 5px;
    background: linear-gradient(var(--color), var(--color)) var(--position) /
        var(--width) var(--height) no-repeat;
}

.media-type-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.media-type-content label {
    font-weight: 600;
    font-size: 20px;
    display: block;
    color: #3a4056;
}

.media-type-content a {
    margin-top: 50px;
    text-decoration: none;
    transition: transform 0.2s;
}

.media-type-content a:hover {
    transform: scale(1.2);
}

.media-type {
    padding-bottom: 70px;
    padding-top: 50px;
}

.card-book {
    margin: 0 30px 30px 30px;
    /* background-color: #f9fafc; */
    border: none;
    text-align: center;
    display: grid;
    grid-template-rows: auto 48px;
}

.card-body {
    padding: 10px 0px 0px 0px;
}

.card-body a {
    color: #000;
}

.title-book {
    height: 48px;
}

.img-book {
    display: flex;
    align-items: flex-end;
}

.slick-track {
    display: flex !important;
}

.slick-slide {
    height: inherit !important;
    margin: 10px 10px;
}

.footer-news {
    background-color: white;
    border-top: 0px;
}

a:link {
    text-decoration: none;
}

.font-20 {
    font-size: 0.9vw;
}

.dropdown-item:hover {
    color: black;
}

.icon_more {
    position: relative;
    top: 3px;
    font-size: 16px;
}

.icon_view {
    position: relative;
    top: 1px;
    font-size: 16px;
}
/*
|--------------------------------------------------------------------------
| SECTION SEARCH
|--------------------------------------------------------------------------
*/
.bg-search {
    background: var(--bs-gradient-1);
}

.search-group {
    width: 600px;
}
.form-control.form_search {
    width: 100%;
    box-sizing: border-box;
    border: unset;
    border-radius: 4px;
    font-size: 16px;
    background: url(../img/goodkit/search-g.svg);
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding: 10px 20px 10px 40px;
    background-color: #ffffff;
    border-radius: 25px !important;
}
.btn_search {
    border-radius: 25px;
    font-size: 1.2rem;
}
#search_section {
    gap: 10px;
}
.input-group-append {
    z-index: 100;
    position: absolute;
    right: 0;
}
#frm_home_search .input-group-append {
    margin-top: 0;
    width: 25%;
}
#frm_home_search .input-group-append > .btn {
    width: 100%;
}

.search-select {
    border-radius: 5px 0px 0px 5px;
    width: auto;
}

.search-btn {
    border-radius: 0px 5px 5px 0px;
    border: 2px #fff solid !important;
}
/*
|--------------------------------------------------------------------------
| SECTION LIBRARIAN
|--------------------------------------------------------------------------
*/
.img-header {
    max-width: 300px;
}
.section-lib {
    background-color: #DFE4F3;
}
#lib-slide .owl-stage-outer {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-lib {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 10px;
    /* width: 300px; */
    /* background: #dd4444; */
    position: relative;
    border: 0;
    height: 200px;
    border-radius: 15px;
    padding: 0 30px;
}
.card-lib-img {
    display: flex;
    justify-content: center;
    /* width: 200px; */
}
.lib-img {
    width: 150px !important;
    position: absolute;
    top: -20%;
    border-radius: 15px;
}
.card-lib-content {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-align: start;
}
.lib-type {
    border-bottom: 1px solid #e7eaee4d;
}

.lib-author {
    font-weight: 300;
}
#lib-slide .owl-nav {
    display: flex;
    justify-content: space-between;
}
#lib-slide .owl-nav button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: var(--bs-secondary);
    border-radius: 5px;
    width: 25px;
    height: 25px;
}

#lib-slide .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    left: -1%;
}
#lib-slide .owl-nav button.owl-next {
    position: absolute;
    right: -1%;
    top: 50%;
}

/*
|--------------------------------------------------------------------------
| SECTION NEW ARIVALS
|--------------------------------------------------------------------------
*/
.btn-arrivals {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: 1px var(--bs-secondary) !important;
}

.btn-outline-arrivals {
    background-color: transparent !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-white) !important;
}
.new-arivals {
    background-image: url("../img/goodkit/home/bg-arrivals.png");
    background-size: cover;
}
.new-arivals-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 1200px) {
    .new-arivals-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .media-type-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .new-arivals-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .font-20 {
        font-size: 15px;
    }

    .search-btn {
        margin-top: 10px !important;
        border-radius: 5px!important;
        border: 0px !important;
    }
    .search-input {
        border-radius: 5px!important;
        border: 0px !important;
    }
    .search-select {
        padding: 5px !important;
        margin-bottom: 10px !important;
        border-radius: 5px!important;
        border: 0px !important;
    }
}

@media (max-width: 767px) {
    .media-type-content {
        grid-template-columns: 1fr 1fr;
    }
    .new-arivals-content {
        grid-template-columns: 1fr 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| SECTION Popular
|--------------------------------------------------------------------------
*/

.section-popular {
    position: relative;
    background-color: #BDC6E3;
}
.popular-bg {
    height: 200px;
    width: 100%;
    background: var(--bs-gradient-4);
    position: absolute;
    z-index: 1;
    top: 50%;
}

.section-article {
    background-color: #DFE4F3;
}

#popular-slide .owl-stage-outer {
    height: 415px;
}

.card-knowledgehub {
    padding: 20px 15px;
    border-radius: 10px;
    background: var(--bs-gradient-1);
    max-width: 250px;
    color: #fff;
    margin-top: 5px;
}
.img-knowledgehub {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-knowledgehub img {
    width: 80% !important;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 15px;
    object-position: 0% 90%;
}

.img-knowledgehub img.watch {
    width: 95% !important;
    height: 150px;
}

.card-knowledgehub-body .type {
    border-bottom: 1px solid #e7eaee4d;
    margin-bottom: 5px;
}

.card-knowledgehub .ribon {
    position: absolute;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -2%;
    left: 3%;
    padding-top: 5px;
}
.card-knowledgehub .ribon img {
    width: 100%;
    height: 55px;
}
.card-knowledgehub .ribon .number {
    position: absolute;
    font-size: 1.3rem;
    font-weight: 500;
}
/* @media (max-width: 500px) {
    #popular-slide .owl-stage-outer .owl-stage .owl-item {
        display: flex;
        justify-content: center;
    }
} */

#popular-slide .owl-nav {
    display: flex;
    justify-content: space-between;
}
#popular-slide .owl-nav button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: var(--bs-secondary);
    border-radius: 5px;
    width: 25px;
    height: 25px;
}

#popular-slide .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    left: -1%;
}
#popular-slide .owl-nav button.owl-next {
    position: absolute;
    right: -1%;
    top: 50%;
}

/*
|--------------------------------------------------------------------------
| SECTION ARTICLE
|--------------------------------------------------------------------------
*/
.card-article {
    border: 0;
    border-radius: 15px;
    color: #fff;
}
.card-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    object-position: 50% 0%;
}
.card-body.article {
    background-color: #1f3a8b;
    height: 150px;
    border-radius: 0 0 15px 15px;
}

.card-body.article .title {
    border-bottom: 1px solid #e7eaee4d;
    margin-bottom: 5px;
    height: 75px;
}

.card-body.article .stats {
    font-size: 0.8rem;
}

/*
|--------------------------------------------------------------------------
| Optimize for all devices
|--------------------------------------------------------------------------
*/

/*--- Extra large devices (large desktops, 1200px and up) ---*/
@media (max-width: 1200px) {
}

/*--- Large devices (desktops, 992px and up) ---*/
@media (max-width: 992px) {
}

/*--- Medium devices (tablets, 768px and up) ---*/
@media (max-width: 768px) {
    #frm_home_search .input-group-append {
        margin-top: 0;
        width: 20%;
    }
    #frm_home_search .input-group-append > .btn {
        width: 100%;
    }
}

/*--- Small devices (landscape phones, 576px and up) ---*/
@media (max-width: 576px) {
    #frm_home_search .input-group-append {
        margin-top: 10px;
        width: 100%;
        position: relative;
    }
    #frm_home_search .input-group-append > .btn {
        width: 100%;
    }
}
@media (max-width: 320px) {
    #frm_home_search .input-group-append {
        margin-top: 10px;
        width: 100%;
    }
    #frm_home_search .input-group-append > .btn {
        width: 100%;
    }
}

.a-link:hover {
    text-decoration: underline !important;
}
