/**
 * Allows you to use retina images at various pixel densities.
 * Examples:
 *
 *   @include retina(/images/mypic.jpg, 2);
 *   @include retina(/images/mypic.jpg, 3, 100px 100px, left top no-repeat transparent);
  @include retina('/images/title-zfgl.jpg', 2, cover, center center no-repeat);
 *
 * @param  {Value}  $path               The path to the file name minus extension.
 * @param  {Number} $cap:    2          The highest pixel density level images exist for.
 * @param  {Value}  $size:   auto auto  The intended width of the rendered image.
 * @param  {Value}  $extras: null       Any other `background` values to be added.
 */
html {
  font-size: 16px;
}

@media only screen and (max-width: 576px) {
  html {
    font-size: 14px;
  }
}

h1,
h2,
h3 {
  font-weight: 700;
}

a:link,
a:visited {
  color: #161616;
  text-decoration: none;
}

a:hover {
  color: #a5231d;
}

.button-primary {
  color: #fff !important;
}

.gshadow {
  -webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  border-radius: 0.5rem;
}

.gshadow:hover {
  -webkit-box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.3);
  box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.morelink {
  margin-top: auto;
  margin-bottom: auto;
  min-width: 1.5rem;
  text-align: center;
  display: block;
  opacity: 0.7;
}

.morelink:hover {
  opacity: 1;
}

.bgcover, .jumbotron {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fsection {
  background-color: #f8f9fa;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid #dee2e6;
}

.fsection .section-title {
  color: #134857;
  font-size: 1.64rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.fsection .section-title:after {
  display: block;
  content: "";
  clear: both;
  height: 0;
  margin-bottom: 0;
  visibility: hidden;
}

.fsection:after {
  display: block;
  content: "";
  clear: both;
  height: 0;
  margin-bottom: 0;
  visibility: hidden;
}

.fsection p:after {
  display: block;
  content: "";
  clear: both;
  height: 0;
  margin-bottom: 0;
  visibility: hidden;
}

.link-primary {
  font-size: 1.25rem;
  color: #144a74 !important;
}

.link-primary:after {
  font-family: 'iconfont' !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: '\e673';
  position: absolute;
  transition: 0.3s;
}

.link-primary:hover:after {
  transform: translateX(5px);
  transition: 0.3s;
}

.b-bar {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.b-bar:after {
  display: block;
  content: "";
  clear: both;
  height: 0;
  margin-bottom: 0;
  visibility: hidden;
}

.jumbotron {
  background-image: url(/images/bg-reply-texture.jpg);
}

.promos-section {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.promos-section .row > div {
  margin-bottom: 1rem;
}

.promos-section img {
  max-width: none;
  border-radius: 4px;
  width: 100%;
}

.promos-section h3 {
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.breadcrumb {
  padding: 0.3rem 0;
  margin: 0 .5rem;
}

@media (max-width: 768px) {
  .breadcrumb {
    margin: 0;
  }
}

.breadcrumb a {
  color: #adb5bd;
}

.breadcrumb a:last-child {
  color: #134857;
}

.breadcrumb a:hover {
  color: #a5231d;
}

.breadcrumb a + a:before {
  display: inline-block;
  padding-right: 0.8rem;
  padding-left: 0.5rem;
  color: #6c757d;
  content: '/';
}

@media only screen and (max-width: 576px) {
  .breadcrumb a + a:before {
    padding-left: 0;
    padding-right: 0.5rem;
  }
}

@media (max-width: 991px) {
  .order-lg {
    order: -1;
  }
}

.table-list {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.table-list th {
  background-color: #ececec;
  border: 1px solid #d2d2d2;
  padding: 5px 8px;
  text-align: center;
  font-size: 16px;
}

.table-list td {
  background-color: #fff;
  padding: 5px 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  word-break: break-word;
}

.table-list div {
  word-break: break-all;
}

.table-list .tb-row td {
  background-color: #f5f5f5;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
    -webkit-transform: translate3d(0, -50%, 0);
    -moz-transform: translate3d(0, -50%, 0);
    -o-transform: translate3d(0, -50%, 0);
    -ms-transform: translate3d(0, -50%, 0);
  }
  to {
    opacity: 1;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
  }
}

.subject-header {
  padding: 0;
}

.subject-header img {
  width: 100%;
}

.navbar {
  background-color: #3a5090;
  padding: 0;
  margin-bottom: 2rem;
}

.navbar a {
  font-size: 1.4rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  color: #fff;
  position: relative;
  margin-right: 1.2rem;
}

.navbar .active,
.navbar .current {
  background-color: #2891b2;
}

.topic-title {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.topic-title img {
  max-width: 500px;
  width: 100%;
}

.text-list li {
  margin-bottom: 28px;
  background-repeat: no-repeat;
  background-position: left center;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-list li i {
  margin-right: 10px;
}

.news {
  margin-bottom: 3rem;
}

@media (max-width: 750px) {
  .news .col-md-6 {
    padding: 0;
  }
}

.promos {
  margin-bottom: 2rem;
}

.promos .card a {
  overflow: hidden;
}

.news-list li {
  display: flex;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #ececec;
  padding-bottom: 1rem;
}

.news-list li span {
  margin-left: auto;
  color: #666;
  font-weight: 300;
}
