h1,h2,h3{
  color: #020B1C;
}
p,a,span{
  color: #4A4E52;
}
a:hover{
  color: #008B51 !important;
  text-decoration: none;
}

/* -------------------------Ratio------------------------- */
.image-box {
  position: relative;
  overflow: hidden;
}
.image-box::before {
  content: "";
  display: block;
  padding-top: 100%; /* initial ratio of 1:1*/
}
.image-box .image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  background-size: cover;
  background-position: center;
}
.image-box.ratio-1-1::before {
  padding-top: 100%;
}
.image-box.ratio-2-1::before {
  padding-top: 50%;
}
.image-box.ratio-1-2::before {
  padding-top: 200%;
}
.image-box.ratio-3-4:before {
  padding-top: 150%;
}
.image-box.ratio-4-3:before {
  padding-top: 75%;
}
.image-box.ratio-5-3:before {
  padding-top: 60%;
}
.image-box.ratio-16-9:before {
  padding-top: 56.25%;
}
/* -------------------------Close ratio------------------------- */


.cl1{
  color: #008B51 !important;
}
.cl2{
  color: #EFD186 !important;
}
.hov1:hover{
  color: #008B51 !important;
}
.hov2:hover{
  color: #EFD186 !important;
}
.hov3:hover{
  box-shadow: 0px 0px 9px 1px #a2a0a0;
}
.bg1{
  background: #008B51 !important
}
.bg2{
  background: #EFD186 !important;
}
.btn1{
  background: #008B51;
  color: white;
  border-radius: 0;
}
.btn1:hover{
  background: #267b58;
  color: white;
}
.tt1{
  border-left: 4px solid #008B51;
  padding-left: 15px;
}
.header-index{
  height: 330px;
  background: url('../images/bg-header.png') no-repeat left bottom #008B51;
  border-bottom: 4px solid #EFD186;
}
.header-content{
  padding-top: 30px;
  background: #008B51;
  border-bottom: 4px solid #EFD186;
}
.form-search-header ::placeholder {
  color: #ebebeb;
}
.breadcrumb-header .breadcrumb-item, .breadcrumb-header .breadcrumb-item a{
  color: white;
}
.breadcrumb-header .breadcrumb-item+.breadcrumb-item::before{
  color: white;
}
.card-deck.card-deck-custom .card{
  margin-right: 6px;
  margin-left: 6px;
}
.book-tt{
  display: block;
  max-height: 38px;
  overflow: hidden;
  font-size: 13px;
}
.noBookCover .author{
  width: 100%;
  padding: 5px 8px;
  position: absolute;
  bottom: 0;
  right: 0;
  text-align: right;
  font-size: 12px;
  background: #92D4B9;
}
.noBookCover .book-tt-noCover{
  display: block;
  text-align: right;
  font-size: 15px;
  color: white;
  max-height: 141px;
  overflow: hidden;
  width: 100%;
  font-weight: bold;
  padding: 8px;
}
.dk-filter{
  position: relative;
  padding: 30px 15px;
}
.tt-dk-filter{
  position: absolute;
  top: -20px;
  left: 10px;
  padding: 6px 15px;
}

.box-items .noBookCover .book-tt-noCover {
  font-size: 18px;
  max-height: 175px;
  margin-top: 30px;
}

.view-item .nav-link{
  background: #ebebeb;
}
.view-item .nav-link.active{
  background: #008B51;
  color: white;
}
.view-item .nav-link.active:hover{
  color: white !important;
}

.pagination-sd .page-link{
  border: none;
  color: #4A4E52;
}
.pagination-sd .page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.pagination-sd .page-item:last-child .page-link{
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.page-item.active .page-link {
  color: #fff !important;
  background-color: #008B51;
  border-color: #008B51;
}
.form-control:focus::placeholder {
  opacity: 0;
}
.card-deck-custom .card{
  max-width: 123px;
}

.panel-group {
  margin-bottom: 0;
}
.panel-group .panel {
  border-radius: 0;
  box-shadow: none;
}
.panel-group .panel .panel-heading {
  padding: 0;
}
.panel-group .panel .panel-heading h4 a {
  background: #f8f8f8;
  display: block;
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  text-decoration: none;
  transition: 0.15s all ease-in-out;
}
.panel-group .panel .panel-heading h4 a:hover, .panel-group .panel .panel-heading h4 a:not(.collapsed) {
  background: #fff;
  transition: 0.15s all ease-in-out;
}
.panel-group .panel .panel-heading h4 a:not(.collapsed) i:before {
  content: "";
}
.panel-group .panel .panel-heading h4 a i {
  color: #999;
}
.panel-group .panel .panel-body {
  padding-top: 0;
}
.panel-group .panel .panel-heading + .panel-collapse > .list-group,
.panel-group .panel .panel-heading + .panel-collapse > .panel-body {
  border-top: none;
}
.panel-group .panel + .panel {
  border-top: none;
  margin-top: 0;
}
.icon-ps-info{
  position: absolute;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  background: rgba(0, 0, 0, 0.36);
  top: 0;
  left: 0;
  color: #b9b9b9;
  z-index: 100;
}

.dropdown-ps{
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}
.dropdown-ps .dropdown-menu{
  min-width: 7rem;
}
.dropdown-ps .btn{
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  background: rgba(0, 0, 0, 0.36);
  color: #b9b9b9;
}
.dropdown-ps .dropdown-toggle::after{
  display: none;
}



footer{
  background: #008B51;
  border-top: 4px solid #EFD186;
}

@media (max-width: 992px) {
  .header-index {
    height: 200px;
    background: url(../img/bg-header.png) no-repeat top left #008B51;
    background-size: 310px;
  }
  .left-sidebar{
    width: 100% !important;
  }
  .dt-content{
    width: 100% !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  
}


@media (min-width: 1600px) {
  
}



@media only screen and (max-width: 767.98px) {
  .header-index {
    height: auto;
    background: #008B51;
    padding: 15px 0;
  }
  .header-index h6{
    font-size: 12px;
  }
  .form-search-header .custom-select{
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
  }
  .card-deck{
    flex-direction: row;
  }
  .book-tt {
    font-size: 10px;
    line-height: 13px;
  }
  .card-deck.card-deck-custom .card {
    margin-right: 3px;
    margin-left: 3px;
    width: 123px;
  }
  .card-title.font-weight-bolder{
    margin-bottom: 0;
  }
  .noBookCover .book-tt-noCover {
    font-size: 10px;
    max-height: 72px;
    padding: 8px 4px;
    line-height: 13px;
  }
  .noBookCover .author {
    padding: 4px 2px;
    font-size: 9px;
  }
  footer .nav-link {
    display: block;
    padding: .3rem .6rem;
  }
  .left-sidebar{
    width: 100% !important;
  }
  .dt-content{
    width: 100% !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .form-filter{
    width: 100%;
  }
  .card-deck .card {
    margin-bottom: 15px;
    margin-left: 3px;
    margin-right: 3px;
  }
  .img-detail-book{
    width: 130px !important;
  }

  .box-items-list .image-box.ratio-3-4{
    width: 90px !important;
  }
  .box-items-list .media-body h5{
    line-height: 18px;
  }
  .box-items-list .media-body h5>a{
    font-size: 1rem;
    max-height: 75px;
    overflow: hidden;
    display: block;
  }
  .box-items-list .media-body p{
    font-size: 12px;
  }

  .img-detail-book .book-tt-noCover{
    font-size: 16px!important;
    max-height: 168px !important;
    line-height: 20px;
    padding: 8px 10px;
  }
  .img-detail-book.noBookCover .author{
    font-size: 12px;
  }
  .media-detail-book .media-body h4{
    line-height: 22px;
  }
  .media-detail-book .media-body h4 a{
    font-size: 1.2rem;
    max-height: 92px;
    overflow: hidden;
    display: block;
  }
  .media-detail-book .media-body p{
    font-size: 12px;
  }

  .input-group>.custom-select{
    width: 100%;
  }

  .modal-dialog{
    width: 100%;
  }

}