@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');
/* @import url('https://library.bu.ac.th/wp-content/themes/university/fonts/Karnvayla/stylesheet.css'); */

@font-face {
  font-family: Karnvayla;
  src: url(/punsarn/opac/fonts/karnvaylaregular-webfont.woff);
}

:root {
  --purple-1: #A88DD1;
  --purple-2: #9776C8;
  --purple-3: #855FBF;
  --purple-4: #7448B6;
  --purple-5: #6331AD;
  --purple-6: #521ba4;
  --purple-6: #491893;
  --purple-8: #411583;
  --purple-9: #391272;
  --purple-10: #311062;

  --purple: #6f42c1;


  --dark: #1B2432;
  --light-dark: #333333;

  --orange: #FD6A16;
  --dark-orange: #C2331A;
  --white: #F8F8F8F8;
  --light-white: #EEEEF0;
  --black: #1B2432;
  --gray: #6c757d;
  --light-gray: #B8BCC0;
  --dark-gray: #494F5B;
}


body {
  background-color: var(--light-white);
  font-family: Karnvayla;
  color: var(--white);
  line-height: 21px;
  font-weight: 700;
  font-size: 20px;
}

.row {
  margin-left: unset;
  margin-right: unset;
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

a,
.navbar-light .navbar-nav .nav-link,
.nav-link {
  color: var(--white);
  text-decoration: none;
}

a:hover,
.navbar-light .navbar-nav .nav-link:hover,
.nav-link:hover {
  color: var(--gray);
}

.container-fluid {
  padding: 0px 60px;
}

.header {
  background-color: var(--dark);
}

.header .navbar {
  padding: 0 60px;
}

.header .logo img {
  width: 300px;
}

.section-search .section-block {
  background-color: #0f0f107B;
  border-radius: 8x;
}

.section-search .nav-tabs {
  border-bottom: unset;
  padding: 5px 10px;
}

.section-search .nav .nav-item {
  background-color: var(--gray);
  margin: 0px 3px;
  border: none;
  border-radius: 8px;
}

.section-search .nav .nav-item:hover {
  opacity: 0.8;
}

.section-search .nav .nav-item a:hover {
  color: var(--white);
  border-radius: 8px;
}

.section-search .nav .nav-link {
  height: 100%;
}

.section-search .nav .nav-link.active {
  background-color: var(--orange);
  color: var(--white);
  border-radius: 8px;
}

.section-search .tab-content {
  padding: 100px 20px;
  text-align: center;
}

.section-search .search-block {
  padding: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 90px;
}

.section-search form select {
  border-radius: 90px;
  height: 6vh;
  border: unset;
  background-color: var(--white);
  margin-right: 10px;
  font-size: 17px;
  padding: 0px 20px;
  color: var(--dark);
}

.section-search form .search-input {
  width: 75%;
  height: 6vh;
  border: 1px solid #BDBBBE;
  border-radius: 8px;
  font-size: 23px;
  padding: 0px 20px;
}

.section-search form .search-button {
  font-family: 'Karnvayla';
  background-color: var(--orange);
  color: var(--white);
  padding-left: 30px;
  padding-right: 30px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 25px;
  font-weight: bold;
  height: 6vh;
}


.section-search .feature-search {
  text-align: center;
  margin-top: 10px;
}

.section-search .feature-search a {
  padding: 20px;
  font-weight: bold;
  color: var(--white);
}

.section-1 {
  background-image: url('../img/bu-banner.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px 4px 4px 0px var(--black) inset;
  padding: 80px 0px;
  height: 530px;
  background-repeat: no-repeat;
  background-size: 100%;
  box-shadow: inset 0 0 0 2000px rgba(1, 1, 1, 0.3);
  animation: zoom 60s infinite;
  -webkit-animation: zoom 60s infinite;
}

.section-1 .search-section {
  padding: 20px;
  border-radius: 16px;
  background-color: var(--white)
}

.section-2 {
  padding-bottom: 100px;
  background-color: var(--light-gray);
}

.section-2 .nav .nav-item {
  background-color: var(--gray);
  border-right: 1px solid;
  font-size: 24px;
  border-color: var(--white);
}

.section-2 .nav .nav-item:hover {
  opacity: 0.8;
}

.section-2 .nav .nav-item:nth-child(1) {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.section-2 .nav .nav-item:nth-child(4) {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border: unset;
}

.section-2 .nav .nav-item a {
  color: var(--orange);
}
.section-2 .nav .nav-item a:hover {
  color: var(--dark-orange);
}

.section-2 .nav .nav-item img {
  width: 70px;
  height: 70px;
}

.section-2 .short-cut {
  color: var(--light-dark);
}

.section-2 .border {
  background-color: var(--purple-6);
  color: var(--white);
}

.section-3 h1,
.section-3-2 h1 {
  color: var(--light-dark);
}

.section-4 .p-3 {
  text-align: center;
}

.section-5 {
  background-color: var(--dark-gray);
  font-size: 15px;
  font-weight: normal;
  background-repeat: no-repeat;
  background-size: 100%;
}

.section-5 img {
  width: 250px;
}

.section-5 h4 {
  color: var(--white);
}

.section-5 p {
  color: var(--white);
  margin: unset;
}

footer {
  text-align: center;
}

footer p {
  margin: unset;
  color: var(--dark);
  font-size: 15px;
  padding: 5px 0px;
}

footer a {
  color: var(--dark);
}

.flipster__item img {
  max-height: 300px;
  max-width: 100%;
}

.flipster--flat .flipster__item--past,
.flipster--flat .flipster__item--future {
  opacity: unset;
}

.flipster__item__content {
  text-align: center;
  max-width: 300px;
}

.flipster__item .flipster__item__content a p {
  display: -webkit-box !important;
  margin: 5px auto;
  padding: 0px 50px;
  padding-top: 10px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px !important;
  line-height: 1.6;
}

@media (max-width: 991px) {

  .section-search form select,
  .section-search form .search-input,
  .section-search form .search-button {
    width: 100%;
    margin-bottom: 5px;
  }

  .section-2 .nav-fill .nav-item .nav-link {
    font-size: 0px;
  }

  .section-2 .nav .nav-item img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .header .logo img {
    width: 100%
  }

  .section-1 {
    padding: 40px 0px;
  }

  .section-search .nav .nav-link {
    font-size: 0px;
  }

  .section-search .nav .nav-link i {
    font-size: initial;
  }

  .section-search form select,
  .section-search form .search-input,
  .section-search form .search-button {
    width: 100%;
    margin-bottom: 5px;
  }

  .section-2 {
    background-size: cover;
  }

  .section-2 .nav-fill .nav-item .nav-link {
    font-size: 0px;
  }

  .section-2 .nav .nav-item img {
    width: 30px;
    height: 30px;
  }

  .section-5 .col-md-3 {
    margin-bottom: 10px;
  }
}

#backtotop {
  bottom: 40px;
  display: inline-block;
  font-size: 120%;
  position: fixed;
  right: 40px;
  text-align: center;
  z-index: 1000;
  background-color: var(--orange);
}

@keyframes zoom {
  0% {
    background-size: 100%;

  }

  50% {
    background-size: 150%;
  }

  100% {
    background-size: 100%;
  }
}

select[name='idx'] {
  display: none;
}

#coverflow a p,
#coverflow2 a p {
  color: var(--light-dark);
}