/* Colour reference chart *

highlight           hl      #ff6a00
darker highlight    hld     #0eb294
darest highlight    hlde    #04705c
border              bo      #ededed
*/
/* hide url after printing */
a[href]:after {
  content: none !important;
}
html {
  position: relative;
  min-height: 100%;
}
body {
  overflow-x: hidden;
  background: #f5f6f7;
  font-size: 15px;
  /* Margin top by top navbar */
  margin-top: 70px;
  /* Margin bottom by footer height */
  margin-bottom: 40px;
}
iframe {
  border: 0px;
}
/* change gutter size */
@media (min-width: 992px) {
  #wrapper > div[class^="col"] {
    padding-left: 5px;
    padding-right: 5px;
  }
}
@media (max-width: 980px) {
  body {
    font-size: 14px;
    background: #fff;
  }
  #wrapper {
    padding: 0px !important;
    margin: 0px !important;
  }
  *:not([class^="col"]) > .panel {
    border: 0px;
    border-radius: 0px;
    box-shadow: none;
    padding: 0px !important;
    margin: 0px !important;
  }
  *:not([class^="col"]) > .panel > .panel-heading {
    border-radius: 0px;
    background-color: #fff !important;
  }
  .breadcrumb {
    background: #fff;
  }

  #footer .col-md-2 {
    display: none;
  }
  h4 {
    font-size: 13px !important;
    line-height: 18px !important;
  }
  h3 {
    font-size: 14px !important;
    line-height: 20px !important;
  }
  h2 {
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: normal;
  }
  h2.black a {
    color: black;
  }
  h1 {
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: normal;
  }
  .topiclist > hr {
    padding-top: 15px !important;
    padding-bottom: 0px !important;
    margin: 0px !important;
    border: 0px;
  }
  .topiclist h3 a {
    max-height: 24px;
    overflow: hidden;
  }
  .panel-heading .btn {
    font-size: 14px;
    padding: 3px 10px;
  }
  /*ul.dropdown-menu li a { color:#fff !important }*/
  #sidebar-wrapper {
    height: 100%;
  }
  #catlist {
    bottom: 0px;
    height: 100%;
  }
}
@media (min-width: 980px) {
  #wrapper {
    position: static !important;
    width: auto !important;
    left: 0px !important;
  }
  #overlay {
    display: none !important;
  }
}
@media (min-width: 728px) {
  .topiclist .item.grid {
    padding: 7.5px !important;
  }
}
@media (max-width: 728px) {
  body,
  html {
    overflow-x: hidden !important;
  }
  .topiclist.panel-body {
    padding: 5px !important;
  }
  .topiclist hr {
    padding-top: 5px !important;
  }
  .topiclist .thumb {
    height: 180px !important;
  }
  .col-md-8.col-sm-9.col-xs-7 {
    padding-left: 10px !important;
    padding-right: 15px !important;
  }
  .navbar-brand.subitem {
    display: block !important;
  }
  .topiclist .item.grid .col-md-4.col-sm-3.col-xs-5 .thumb {
    min-height: 150px !important;
    margin-bottom: 5px;
  }
  .navbar-brand {
    padding-left: 0px;
    padding-right: 0px;
  }
}
#overlay {
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 0px;
  z-index: 99;
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0px !important;
  padding: 0px !important;
  font-weight: normal !important;
}
h4 {
  font-size: 15px;
  line-height: 20px;
}

h3 {
  font-size: 17px;
  line-height: 22px;
}
h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: normal;
}
h2.black a {
  color: black;
}
h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: normal;
}
td {
  vertical-align: middle !important;
}
label {
  font-weight: normal !important;
}
hr {
  margin: 15px 0px;
}

/* navbar */
.navbar-md {
  max-height: 60px !important;
}
.navbar-md .navbar-brand {
  color: #fff;
}
.navbar-md button.navbar-toggle {
  height: 36px;
  line-height: 36px;
  padding: 0px 10px;
  margin: 7px 15px;
  background: #cf0f1a;
  color: #fff;
  border-color: #cf0f1a;
}
/*
.navbar-md button:not(.btn):hover,.navbar-md button:not(.btn):focus {
	background: #af570a !important;
}*/
.navbar-md button:hover,
.navbar-md button:focus {
  background: #cf0f1a !important;
}
.navbar-md .navbar-toggle .icon-bar {
  background: #fff;
}
.navbar-brand.subitem {
  position: relative !important;
  z-index: 1 !important;
  display: none;
}
.navbar-brand.subitem:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  height: 50%;
  width: 1px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
  background: #fff;
  border-bottom: 1px solid /*bo*/ #ededed;
  min-height: 60px !important;
}
.navbar ul li a {
  color: #000 !important;
}
.navbar ul li a i {
  margin: 0px 5px;
}
.navbar ul li a:not(.hasbtn):hover {
  background: /*hl*/ #fff !important;
  text-decoration: none;
}
.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff !important;
}
.navbar-collapse {
  background: #fff;
  border-color: transparent !important;
}
.navbar-collapse form {
  border-color: transparent !important;
}
#navbar-container {
  max-width: 1200px !important;
}
@media (min-width: 980px) {
  ul.dropdown-menu li a {
    color: #000 !important;
  }
}
.navbar-default .navbar-nav > .open > a {
  background: #cf0f1a !important;
}

/* pagination override */
.pagination {
  margin: 0px !important;
}
.pagination a {
  color: #000 !important;
}
.pagination li.active a {
  color: #fff !important;
  background: #ff6a00 !important;
  border-color: #ff6a00 !important;
}

/* affix */
.affix-bottom {
  position: absolute;
}

/* alert */
.alert {
  margin: 0px !important;
}

/* button */
.btn-default.custom {
  color: #fff !important;
  background-color: /*hl*/ #333333 !important;
  box-shadow: 0 4px /*hlde*/ #555555;
  border: none;
}
.btn-default.custom:focus {
  outline: none !important;
}
.btn-default.custom:hover {
  background: /*hld*/ #555555 !important;
}
.btn-default.custom:active {
  outline: none !important;
  background-color: /*hld*/ #333333 !important;
  box-shadow: 0 2px /*hlde*/ #555555 !important;
  transform: translateY(2px);
}
/* fix double border */
.btn-group-justified .btn {
  border-right-width: 0px;
}
.btn-group-justified .btn:last-of-type {
  border-right-width: 1px;
}

/* fundamental */
.success {
  background: #28a745 !important;
}
.btn-success {
  background: #28a745 !important;
  border-color: #28a745 !important;
}
.btn-success:hover {
  background: #28a745 !important;
  border-color: #28a745 !important;
}
a {
  color: #333333;
}
a:hover {
  color: #666666;
}
a.notalink,
.notalink {
  color: #000;
  text-decoration: none;
}
a.f-red,
.f-red {
  color: #c90927;
}
a.f-orange,
.f-orange {
  color: #f17627;
}
a.f-green,
.f-green {
  color: #333333;
}
a.f-grey,
.f-grey {
  color: #999;
}
a.f-black,
.f-black {
  color: #000;
}
.b-red {
  background: #c90927;
  color: #fff;
  border-color: #c90927 !important;
}
.b-grey {
  background: #f5f6f7;
}
.b-green {
  background: #333333;
  color: #fff;
  border-color: #333333 !important;
}
.b-orange {
  background: #f17627;
  color: #fff;
  border-color: #f17627 !important;
}
.t-border {
  border-top: 1px solid #eeeeee;
}
.cursor {
  cursor: pointer;
  cursor: hand;
}
.display-table {
  display: table;
  table-layout: fixed;
}
.display-cell {
  display: table-cell;
  vertical-align: middle;
  float: none;
}
.headlight {
  background: /*hl*/ #f5f6f7;
  border-radius: 5px;
}
.center {
  margin: auto;
}
.shadow {
  box-shadow: 0px 1px 2px #ddd;
}
.xs-pad {
  padding: 5px !important;
}
.s-pad {
  padding: 10px !important;
}
.m-pad {
  padding: 15px !important;
}
.l-pad {
  padding: 20px !important;
}
.xl-pad {
  padding: 25px !important;
}
.ovf {
  overflow: hidden;
  height: 100%;
}
.none {
  display: none;
}
.spacer {
  padding: 5px;
  margin: 0px;
  font-size: 0px;
  line-height: 5px;
}
.inline-block {
  display: inline-block;
}
.lean {
  padding: 0px !important;
  margin: 0px !important;
}
.thumb {
  width: 100%;
  display: block;
  height: 220px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* close / times button */
.close {
  /*position: absolute;*/
  right: 0px;
  top: 30px;
  width: 22px;
  height: 30px;
  opacity: 1;
}
.close:hover {
  opacity: 1;
}
.close:before,
.close:after {
  position: absolute;
  left: 10px;
  content: " ";
  height: 30px;
  width: 2px;
  background-color: #fff;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}
/* */
#catlist a {
  color: #000 !important;
}
#catlist a:hover {
  color: #999 !important;
}
#wrapper {
  max-width: 1200px;
  padding: 0px 10px;
  margin: auto;
}

#sidebar {
  display: none;
  position: absolute;
  z-index: 99;
  height: 100%;
}
#sidebar ul {
  margin: 0px;
  padding: 0px;
}
#sidebar ul a {
  display: block;
}

#sidebar .list-group.list-group-root {
  padding: 0;
  overflow: hidden;
}

#sidebar .list-group.list-group-root .list-group {
  margin-bottom: 0;
}

#sidebar .list-group.list-group-root .list-group-item {
  border-radius: 0;
  border-width: 1px 0 0 0;
}

#sidebar .list-group.list-group-root > .list-group-item:first-child {
  border-top-width: 0;
}

#sidebar .list-group.list-group-root > .list-group > .list-group-item {
  padding-left: 30px;
  background: #f5f6f7;
}

/* footer */
#footer {
  background: #fff !important;
  border-top: 1px solid #ddd;
  font-size: 14px;
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 40px;
}
#footer .cont {
  background: #fff;
}
#footer .row {
  max-width: 1200px;
  margin: auto;
}
#footer ul,
#footer li {
  margin: 0px !important;
  padding: 0px !important;
}
#footer #more-footer {
  background: #fff;
}

/* topic list */
.topiclist .item.grid {
  padding: 5px 5px 0px 5px;
}
.topiclist .item.grid > .itemcontainer {
  border: 1px solid #ccc;
  display: inline-block;
  max-width: 100%;
  width: 100%;
}
.topiclist .item.grid .col-md-4.col-sm-3.col-xs-5 {
  width: 100%;
  padding: 0px;
}
.topiclist .item.grid .col-md-4.col-sm-3.col-xs-5 > .row {
  padding: 0px 15px !important;
}
.topiclist .item.grid .col-md-4.col-sm-3.col-xs-5 .thumb {
  min-height: 216px;
  margin-bottom: 5px;
}
.topiclist .item.grid h3,
.topiclist .item.grid a {
  overflow: hidden;
  /* white-space: nowrap;text-overflow: ellipsis; */
}
.topiclist .item.grid .col-md-8.col-sm-9.col-xs-7 {
  width: 100%;
}
.topiclist .item.grid .row > [class*="col-sm-"] {
  width: 100% !important;
  display: block;
  float: none;
  padding: 0px 10px;
  text-align: left;
}
.topiclist .infoline {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topiclist .item.grid h3 > a {
  display: -webkit-box;
  margin: 0 auto;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 45px; /* Fallback for non-webkit */
}

/*app banner*/
.appad {
  position: fixed;
  bottom: 0px;
  z-index: 4;
  width: 100%;
  background: white;
  border-top: 1px solid #ddd;
  max-height: 68px;
  display: none;
}
.appad a {
  text-decoration: none;
}
.appad a:hover {
  text-decoration: none;
}
.appad_close {
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  display: inline-block !important;
}
.appad_desc {
  padding: 10px 0px 10px 30px;
  overflow: hidden;
}
.appad_desc img {
  border-radius: 12px;
  margin-right: 10px;
}
.appad_open {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  display: inline-block !important;
}
.appad_open span {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: #333333;
}
