/**
 * @package PKU-Geophy
 * @author  Xinghong Zhong
 */

/*:root {
  --gpy-black: #212529;
  --gpy-theme: #156aa3;
  --gpy-grey: #dee2e6;
  --gpy-bg-grey: #f7f7f7;
}*/

body,
.container-fluid,
.container {
  min-width: 1024px;
}

header#site-header,
footer#site-footer {
  width: 100%;
}

header#site-header,
footer#site-footer,
header#site-header>.container,
footer#site-footer>.container {
  background-color: #156aa3;
}

article {
  line-height: 2rem;
}

hr {
  border-color: #156aa3;
  opacity: 1;
}

body.home hr,
div#site-sidebar hr {
  border-top-width: 2px;
}

.btn-more {
  color: #212529;
}

div#site-content .card-title,
div#site-content .card-title a {
  color: #156aa3;
}

.gpy-theme {
  color: #156aa3;
}

div#site-sidebar .card {
  background-color: #f7f7f7;
}

header#site-header {
  background-image: url("../fonts/earth_white_a0.2.svg");
  background-repeat: no-repeat;
  background-size: 24rem 24rem;
  background-position: 106% 15%;
}

header#site-header img.header-logo {
  width: 5rem;
}

div#site-content img.cover {
  width: 100%;
  height: auto;
}

div#site-sidebar {
  line-height: 1.6rem;
}

div#site-sidebar .card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

div#site-sidebar .card-body {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

div#site-sidebar .card ul li:last-child {
  padding-bottom: 0 !important;
}

body.page div#site-sidebar .card ul {
  list-style: none;
}

body.page div#site-sidebar .card li {
  text-indent: -1.2rem;
}

body.page div#site-sidebar .card li::before {
  content: '>';
  padding-right: 0.4rem;
  color: #156aa3;
}

/* IE9 compat */
.navbar-expand .navbar-nav {
  /* 09ç‰ˆ */
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  /* 12ç‰ˆ */
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
}

nav#site-navbar-desktop {
  padding-top: 0;
  padding-bottom: 0;
}

nav#site-navbar-desktop.fixed-top {
  box-shadow: #dee2e6 0px 2px 2px;
}

nav#site-navbar-desktop .nav-link {
  color: white;
  padding: 0.8rem 24px;
}

nav#site-navbar-desktop .dropdown-menu {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(250, 250, 250, 0.8);
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  height: auto;
  min-width: unset;
  left: 15px;
}

nav#site-navbar-desktop .dropdown-menu>.dropdown-item {
  background-color: transparent;
  line-height: 2rem;
  text-align: center;
}

nav#site-navbar-desktop .dropdown-menu>.dropdown-item:hover {
  color: #156aa3;
  background-color: white;
}

article table {
  width: 100% !important;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
}

article table th,
article table td {
  padding: 0.5rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

article ol,
article ul {
  padding-left: 20px;
}

.card {
  border: none;
}

.card-body {
  padding: 1rem;
  height: 100%;
  /* IE compat */
}

article .card-title {
  line-height: 2rem;
}

article .card-text p:last-child {
  margin-bottom: 0 !important;
}

div#site-content article .card-body .footer p {
  margin-bottom: 0rem;
  line-height: 1.2rem;
}

body:not(.home) .card-body .footer hr {
  display: block;
  margin-top: 2.5rem;
  border-color: #212529;
}

article.page.teacher-list,
article.page.teacher-bio .fields-header {
  line-height: 1.8rem;
}

article.page.teacher-list .card-body img.card-img-top {
  width: 150px;
}

article.page.teacher-bio *[data-field="group.photo"] img.card-img {
  width: 135px;
}

article.page.teacher-bio *[data-field="group.name"] {
  font-size: 1rem;
}

article.page.teacher-bio *[data-field="group.grade"] {
  font-size: 0.85rem;
}

.carousel-caption h5>span {
  background-color: rgba(0, 0, 0, 0.3);
}

.carousel-indicators li[data-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin: 0px 8px;
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators {
  bottom: 10px;
}

.carousel-indicators li[data-slide-to]:hover {
  cursor: pointer;
}

.breadcrumb {
  background-color: white;
}

.breadcrumb-item+.breadcrumb-item::before,
.breadcrumb-item+.breadcrumb-item.active::before {
  padding-right: 0rem;
  content: ">>";
}

.breadcrumb-item {
  color: #212529;
}

.breadcrumb-item.active {
  color: #156aa3;
}

.breadcrumb-item a {
  color: inherit;
  background-color: transparent;
}

.page-link {
  color: #156aa3;
}

.page-link:hover {
  background-color: #fff;
}

.page-item.active .page-link {
  background-color: #156aa3;
  border-color: #156aa3;
}

.card-link.text-dark:hover,
*[data-field=homepage]>a:hover {
  color: #156aa3 !important;
}

.breadcrumb-item a,
.page-item a,
a.more-link,
article.post .card-body a,
article.page .card-body a {
  text-decoration: none;
}

article.post .card-body a,
article.page .card-body a {
  color: #156aa3;
}

article.post .card-body .footer a {
  color: inherit;
}

article.post .card-body .footer a:hover {
  color: #156aa3;
}

.flexslider {
  border: none;
  margin: 0;
}

.flexslider .flex-caption {
  text-align: center;
  color: white;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  margin: 0px;
}

.flexslider .flex-direction-nav a {
  top: 0;
  bottom: 0;
  width: 8%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  text-align: center;
}

.flexslider:hover .flex-direction-nav a {
  width: 10%;
}

.flexslider .flex-direction-nav .flex-prev {
  justify-content: flex-start;
  left: 0px;
}

.flexslider .flex-direction-nav .flex-next {
  justify-content: flex-end;
  right: 0px;
}

.flexslider:hover .flex-direction-nav .flex-prev {
  left: 0px;
  padding-left: 2%;
}

.flexslider:hover .flex-direction-nav .flex-next {
  right: 0px;
  padding-right: 2%;
}

.flexslider .flex-direction-nav a:before {
  color: rgba(0, 0, 0, 0.7);
  text-shadow: none;
}

.flexslider .flex-direction-nav .flex-prev:before {
  padding-left: 15px;
  width: 50px;
  height: 50px;
  background: url(../images/arrowleft.png) no-repeat;
}

.flexslider .flex-direction-nav .flex-next:before {
  padding-right: 15px;
  width: 50px;
  height: 50px;
  background: url(../images/arrowright.png) no-repeat;
}

.flexslider .flex-control-paging li {
  padding: 10px 6px;
  margin: 0px;
}

.flexslider .flex-control-paging li a {
  background: rgba(0, 0, 0, 0.35);
}

.flexslider .flex-control-paging li a:hover {
  background: rgba(0, 0, 0, 0.7);
}

.flexslider .flex-control-paging li a.flex-active {
  background: rgba(0, 0, 0, 0.95);
}

.flexslider .flex-control-nav {
  bottom: 0.4rem;
}

.flexslider .flex-caption {
  position: absolute;
  bottom: 50px;
  margin-left: 40px;
  padding: 0.45rem 0.6rem;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 992px) and (min-width: 768px) {

  .carousel-caption h5>span {
    font-size: 1.1rem;
  }
}