@font-face {
    font-family: 'Avantgarde';
    src: url('../fonts/ITCAvantGardeStd-Md.otf');
}

@font-face {
    font-family: 'Avantgarde bold';
    src: url('../fonts/ITC Avant Garde Gothic Bold.otf');
}

@font-face {
    font-family: 'Avantgarde medium';
    src: url('../fonts/ITC Avant Garde Gothic Medium.otf');
}

@font-face {
    font-family: 'Avantgarde light';
    src: url('../fonts/AvantGardeLT-ExtraLight.otf');
}

body {
    font-family: "Avantgarde";
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 10;
    border-bottom: #ccc 1px solid;
}

.logo {
    max-height: 50px;
}

@media (min-width: 992px) {
    .logo {
        max-height: 75px;
    }
}

a {
    color: #333;
}

a:hover {
    text-decoration: none;
}

#mainMenu .navbar-nav .nav-item a {
    margin-right: 35px;
    font-family: "Avantgarde medium";
}

.banner-wrap {
    background: #000 url('../images/background-header.jpg') no-repeat scroll center;
    background-size: cover;
    padding: calc(123px + 6rem) 2rem 9rem 2rem;
}

@media (min-width: 345px) {
    .banner-wrap {
        padding-bottom: 6rem;
    }
}

@media (min-width: 992px) {
    .banner-wrap {
        padding: calc(148px + 6rem) 2rem 6rem 2rem;
    }
}

.page-title {
    font-family: "Avantgarde bold";
}

.btn {
    border-radius: 0;
    font-size: 80%;
}

.btn-danger {
    background-color: #731d13;
    border-color: #731d13;
}

.btn-warning {
    background-color: #c8ae79;
    border-color: #c8ae79;
    color: #fff;
}

.btn-warning:hover {
    color: #fff;
}

.btn-default {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-default:hover {
    background-color: #ccc;
}

.text-warning {
    color: #c7ad79 !important;
}

.text-danger {
    color: #731d13 !important;
}

.error {
    color: #ef4605;
}

input[type=radio],
input[type=checkbox] {
    width: 16px;
    height: 16px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    text-shadow: none;
    border: 1px solid #741d13;
    background: #fff;
}

input[type="radio"] {
    background: #fff;
    border: 1px solid #741d13;
    border-radius: 8px;
}

input[type=radio]:after {
    content: "";
    display: block;
    border-radius: 8px;
    box-sizing: border-box;
}

input[type="radio"]:checked:after {
    width: 14px;
    height: 14px;
    background: #741d13;
    border: 2px solid #fff;
}

input[type=checkbox]:checked:after {
    display: block;
    content: " ";
}

input[type=checkbox]:after {
    position: relative;
    top: -9px;
    left: 6px;
    width: 9px;
    height: 18px;
    border: solid #741d13;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.tesminal {
    padding: 3rem 2rem;
    color: #fff;
    background: #000 url('../images/tesminal.jpg') no-repeat scroll center;
    background-size: cover;
}

.first-section {
    background: #fff url('../images/home-background1.png') no-repeat scroll top;
    background-size: contain;
}

.second-section {
    background-color: #fbfaf6;
}

.third-section {
    background-color: #eff5f6;
}

.curriculum .third-section,
.search .third-section,
.contact-us .third-section,
.about-us .third-section {
    background-color: #fff;
}

.curriculum input[type="text"] {
    border: solid #ad7771 1px;
    max-width: 70px;
    padding: .1rem .75rem;
}

.curriculum input[type="text"]:focus-visible {
    outline: none;
}

.icon-button a {
    position: relative;
    border: none;
    padding-left: calc(37px + .75rem);
    width: 195px;
}

.icon-button a:focus,
.icon-button a:focus:active {
    box-shadow: none !important;
}

.icon-button span {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    height: 100%;
}

.icon-button .btn-danger span {
    background-color: #c8ae79;
}

.icon-button .btn-danger:hover span {
    background-color: #e0a800;
}

.icon-button .btn-warning span {
    background-color: #741d13;
}

.icon-button .btn-warning:hover span {
    background-color: #c82333;
}

.icon-button span img {
    height: 100%;
}

footer {
    background-color: #c8ae79;
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    padding: 0.25rem 0;
}

footer ul a {
    color: #fff;
}

footer ul a:hover {
    color: #e6e6e6;
}

#main-search-form {
    position: relative;
    width: 100%;
    padding-top: 26px;
}

#main-search-form #main-search-box {
    position: absolute;
    width: 100%;
    top: -26px;
    z-index: 6;
}

#main-search-form #main-search-box input[type="text"],
#bottom-sticky-bar input[type="text"] {
    height: 52px;
    padding: 6px 30px 6px 50px;
}

#main-search-form input[type="text"]:focus {
    outline: none;
    border-color: #ced4da;
}

#main-search-form .button-group {
    display: flex;
    position: absolute;
    right: 0;
    top: -15px;
    width: 40%;
    justify-content: space-between;
}

#main-search-form .button-group .wsite-button {
    margin-top: 6px;
}

#main-search-form .tutorial-button {
    width: 60px;
}

#main-search-form .tutorial-button img {
    max-width: 100%;
}

.search-icon {
    position: absolute;
    top: 14px;
    left: 14px;
}

.search-clear {
    position: absolute;
    top: 16px;
    right: 11px;
    padding: 5px 6px;
    background-color: #dedede;
    border-radius: 10px;
    line-height: .9;
    font-size: 10px;
    color: #868686;
}

.book-box {
    padding: 10px 80px;
    border: 1px solid #ced4da;
}
.book-box .book-item {
    display: flex;
}

.book-box .book-item .col-lg-6:first-child {
    padding: 10px 20px 10px 0;
}

.book-box .book-item .col-lg-6:nth-child(2) {
    padding: 10px 0 10px 20px;
}

.book-box .book-item .form-check {
    padding-bottom: 20px;
    border-bottom: 1px solid #ced4da;
}

.book-box .book-item:last-child .form-check {
    padding-bottom: 0;
    border-bottom: none;
}

.book-box .search-result-item {
    padding-bottom: 20px;
}

.book-box .search-result-item .book-title {
    padding: 10px 0 20px 0;
    border-bottom: 1px solid #ced4da;
    display: flex;
    justify-content: space-between;
}

.book-box .search-result-item .book-title a {
    color: #666666;
}

.book-box .search-result-item .book-title a:hover {
    color: #C8AE79;
}

.book-box .search-result-item .book-content {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #ced4da;
}

.book-box .search-result-item:last-child .book-content {
    border-bottom: none;
}

.book-box .search-result-item .book-content .highlight {
    color: white;
    background-color: #ff0b00;
    padding: 3px;
}

.book-box .search-result-item .book-content .image {
    text-align: right;
    padding-right: 0;
}

.book-box .search-result-item .book-content .image img {
    margin-top: 25px;
}

#bottom-sticky-bar {
    display: block;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #741d13;
    z-index: 1;
}

#bottom-sticky-bar input[type="text"]:focus {
    outline: none;
    border-color: #ced4da;
    box-shadow: none;
}

#bottom-sticky-bar .search-button span {
    padding: 16px 55px;
    background: #B39964;
    color: white !important;
    border: none;
    -webkit-transition: background-color 400ms ease-in;
    -moz-transition: background-color 400ms ease-in;
    -ms-transition: background-color 400ms ease-in;
    -o-transition: background-color 400ms ease-in;
    transition: background-color 400ms ease-in;
}

#bottom-sticky-bar .search-button:hover span {
    background: #926f29;
}

#bottom-sticky-bar input[type="radio"] {
    background: #741d13;
    border: 1px solid #fff;
}

#bottom-sticky-bar input[type="radio"]:checked:after {
    background: #fff;
    border: 2px solid #741d13;
}

#bottom-sticky-bar .search-open {
    display: none;
}

@media (max-width: 992px) {
    #main-search-form .button-group {
        width: 27%;
    }

    #bottom-sticky-bar .container > .d-flex:first-child {
        display: block!important;
    }

    .book-box .book-item {
        display: block;
    }

    .book-box .book-item .col-lg-6:first-child, .book-box .book-item .col-lg-6:nth-child(2) {
        padding: 10px 0;
    }

    .book-box .book-item:last-child .col-lg-6:not(:nth-child(2)) .form-check {
        padding-bottom: 20px;
        border-bottom: 1px solid #ced4da;
    }

    .book-box .search-result-item .book-content {
        display: block;
    }

    .book-box .search-result-item .book-content .paragraph {
        padding-top: 15px!important;
        padding-right: 0;
        padding-left: 0;
    }

    .book-box .search-result-item .book-content .image {
        text-align: left;
        padding-left: 0;
    }

    #bottom-sticky-bar .container .col-lg-2 {
        margin-top: 0;
        line-height: 0;
    }

    #bottom-sticky-bar .container .search-button {
        width: 100%;
    }

    #bottom-sticky-bar .container .search-button span {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        letter-spacing: 1.3px;
    }

    #bottom-sticky-bar .search-type {
        position: absolute;
        top: 100px;
        justify-content: space-around;
        width: calc(100% - 3em);
    }

    #bottom-sticky-bar.show-keyword-error .search-type {
        margin-top: 33px !important;
    }

    #bottom-sticky-bar .search-open {
        display: block;
        padding: 10px 13px;
        background: #741d13;
        border-radius: 20px;
        color: white;
        position: absolute;
        top: -24px;
        left: calc(50% - 20px);
        line-height: 1.3;
    }

    #bottom-sticky-bar .search-open i {
        font-size: 27px;
    }

    #bottom-sticky-bar .search-open .fa-angle-up {
        display: block;
    }

    #bottom-sticky-bar .search-open .fa-angle-down {
        display: none;
    }

    #bottom-sticky-bar .container .col-lg-10, #bottom-sticky-bar .search-type {
        display: none!important;
    }

    #bottom-sticky-bar.opened {
        /*height: 238px;*/
    }

    #bottom-sticky-bar.opened .container .col-lg-10 {
        display: block!important;
    }

    #bottom-sticky-bar.opened .container .col-lg-2 {
        margin-top: 75px;
    }

    #bottom-sticky-bar.opened .search-type {
        display: flex!important;
    }

    #bottom-sticky-bar.opened .search-open .fa-angle-up {
        display: none;
    }

    #bottom-sticky-bar.opened .search-open .fa-angle-down {
        display: block;
    }
}

@media (max-width: 767px) {
    #main-search-form .search-type {
        display: block!important;
        text-align: right;
    }

    #main-search-form .search-type > label {
        display: block;
        text-align: left;
    }

    #main-search-form .search-type .form-check {
        text-align: center;
    }

    #main-search-form .search-type .form-check:nth-child(2) {
        margin-top: 20px;
    }

    #main-search-form .button-group {
        width: 60%;
    }

    .book-box {
        padding-left: 35px;
        padding-right: 35px;
    }

    .form-check-input {
        margin-top: .3rem;
    }

    #bottom-sticky-bar .search-type {
        width: calc(100% - 4em);
    }
}

@media (max-width: 576px) {
    .book-box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .book-box .search-result-item .book-title {
        display: block;
    }

    .book-box .search-result-item .book-title span {
        display: block;
        width: 100%;
        text-align: right;
    }

    #bottom-sticky-bar.opened {
        /*height: 303px;*/
    }

    #bottom-sticky-bar.opened .search-type {
        margin-top: 0!important;
        display: block!important;
        text-align: center;
    }

    #bottom-sticky-bar.opened .search-type > label {
        text-align: left;
        display: block;
    }

    #bottom-sticky-bar.opened .container .col-lg-2 {
        margin-top: 140px;
    }

    #bottom-sticky-bar.show-keyword-error .search-type {
        margin-top: 15px !important;
    }
}
