

@media (max-width: 991px) {
  .top-post-area .top-post-left {
    margin-bottom: 10px;
  }
}

.top-post-area .top-post-right .single-top-post {
  position: relative;
}

.top-post-area .top-post-right .single-top-post .feature-image-thumb {
  overflow: hidden;
  max-height: 130px;
  margin-bottom:10px;
}

.row .small-gutters {
}

.top-post-area .top-post-right .single-top-post .feature-image-thumb img {
  width: 100%;
}

.top-post-area .top-post-right .single-top-post .feature-image-thumb .overlay-bg {
  background: rgba(0, 0, 0, 0.1);
}

.top-post-area .top-post-right .single-top-post:hover .feature-image-thumb img {
  //transform: scale(1.045);
}

.top-post-area .top-post-right .single-top-post .top-post-details {
  position: absolute;
  bottom: 0px;

  display: inline-block;
  color: #2e4054;
}

.top-post-details {
  display: block;
  background-color: rgba(255,255,255, 0.9);
  padding-right: 10px;
}

a .top-post-details {
  background-color: rgba(255,255,255, 0.9);
}

a:hover .top-post-details {
  background-color: rgba(47,64,84, 0.8);
  color: #ffffff!important;
}

.hmpg-mod-link {
  display: block;
}

a .hmpg-mod-link {
  color: #2E4054;
}

a:hover .hmpg-mod-link {
  background-color: rgba(47,64,84, 0.8);
  color: #ffffff!important;
}

.top-post-area .top-post-right .single-top-post .top-post-details .meta li {
  display: inline-block;
  color: #fff;
  margin-right: 10px;
  font-weight: 300;
  font-size: 12px;
}

@media (max-width: 414px) {
  .top-post-area .top-post-right .single-top-post .top-post-details .meta li {
    font-size: 9px;
  }
}



.details {
  background-color: #5f8473;
  padding-left: 10px;
  padding-right: 10px;
  height: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.details2 {
    background-color: #c38b05;
    padding-left: 10px;
  padding-right: 10px;
  height: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.details3 {
  background-color: #67788c;
  padding-left: 10px;
  padding-right: 10px;
  height: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-post-header-spacing {
  margin-bottom: 10px;
}
/* =================================== */
/*  HN additions
/* =================================== */

@media (min-width: 768px)
  .col-md-6 {
    flex: 0 0 0 0;
    max-width: 100%
}

.module {
  > h2 {
    padding: 1rem;
    margin: 0 0 0.5rem 0;
  }
  > p {
    padding: 0 1rem;
  }
  /*animation: widen 10s linear alternate infinite;*/
}



.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  grid-gap: 5px;
  //background-color: #2196F3;
  //padding: 10px;
}
.grid-item {
  //background-color: rgba(255, 255, 255, 0.8);
  //text-align: center;
  //padding: 20px;
  //font-size: 30px;
}
.item1 {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}
.item2 {
  grid-column: 6 / span 1;
  grid-row: 1 / span 1;
  padding-left: 10px;
}
.item3 {
  grid-column: 6 / span 1;
  grid-row: 2 / span 1;
}
.item5 {
  grid-column: 1 / span 6;
  grid-row: 3;
}

.year-content {
  background-content: #000;
  margin-bottom: 1rem;
}

.color {
   color: #949696;
}

.ps {
   color: #000;
}

.topics-list {
   padding-left: 20px;
   padding-bottom: 15px;
}

.home-headers {
   margin-bottom: .5em;
  border-style: solid;
  border-width: 1px;
  padding-left: 10px;
  padding-right: 10px;
  border-color: #ccc;
  width: 100%;
  background-color: #2e4054;
  padding-top: 3px;
}

.home-headers-top-item {
  margin-bottom: .5em;
  margin-top: .5em;
  border-style: solid;
  border-width: 1px;
  padding-left: 10px;
  padding-right: 10px;
  border-color: #ccc;
  width: 100%;
  background-color: #2e4054;
  padding-top: 3px;
}

a.color-bar-text-sections-afe-hmpg1 {
 padding:0.1em 0.5em;
 //border:0.1em dotted #c38b05;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#FFFFFF;
 text-align:center;
 transition: all 0.2s;
}
a.color-bar-text-sections-afe-hmpg1:hover {
  background-color: #b83c2c;
 //background-color:#7d5903;
 //border:0.1em solid #fff;
}

a.color-bar-text-sections-afe-hmpg2 {
 padding:0.1em 0.5em;
 //border:0.1em dotted #5f8473;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#FFFFFF;
 text-align:center;
 transition: all 0.2s;
}
a.color-bar-text-sections-afe-hmpg2:hover {
  background-color: #b83c2c;
 //background-color: #3f564b;
 //border:0.1em solid #fff;
}

a.color-bar-text-sections-afe-hmpg3 {
 padding:0.1em 0.5em;
 //border:0.1em dotted #67788c;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#FFFFFF;
 //color: #2e4054;
 text-align:center;
 transition: all 0.2s;
 //background-color: rgba(244,246,247, 0.9);
}
a.color-bar-text-sections-afe-hmpg3:hover {
  background-color: #b83c2c;
 //background-color:#2e4054;
 //border:0.1em solid #fff;
}

.color-bar-text-sections-afe-hmpg-third-row-left {
  padding-bottom: 18px;
  padding-top: 18px;
  background-image: url("/img-homepage/chinese-counting.jpg");
  background-position: center;
  background-size: cover;
  background-color: #000;
  //min-height: 50px;
  text-align: center;
}

.color-bar-text-sections-afe-hmpg-third-row-right {
  padding-bottom: 18px;
  padding-top: 18px;
  background-image: url("/img-homepage/kids.jpg");
  background-position: center;
  background-color: #000;
  background-size: cover;
  //min-height: 50px;
  text-align: center;
}

.color-bar-text-sections-afe-hmpg a{
  color: #fff;
}

.color-bar-text-background-afe-hmpg {
  font-family: Open Sans, sans-serif;
  font-size: 18px;
  line-height: 20px;
  padding-bottom: 2px;
  padding-top: 2px;
  color: #fff;
}

.color-bar-text-background-afe-hmpg a {
  color: #fff;
}

.site-sub-title {
  padding-top: 1.0em;
  font-size: 1.25em;
  line-height: 1.5em;
  font-family: "carto", serif;
  padding-bottom: .5em;
}

.hmpg-bkgrnd-section {
  margin-bottom: 5px;
}



@media (max-width: 450px) {
   .hmpg-bkgrnd-section {
   margin: 0px;
   }
   .details {
   //height: 80%;
   }
}

.home-headers-text {
  font-family: Open Sans, sans-serif;
  padding-bottom: 0px;
  margin-bottom: 5px;
  color: #fff;
  text-align: center;
}

.tags-3rdline a{
  color: #de9d03;
}

.tags {
  padding-left: 10px;
  margin-bottom: 0px;
  font-family: Open Sans, sans-serif;
  line-height: 1.25em;
  margin-top: 3px;
}


.afe {
  font-size: 30px;
  font-style: italic;
}



.navbar-brand-subtitle {
  font-size: .40em;
  line-height: .3em;
  color: #6e9885;
}

.navbar-brand-4 {
  display: inline-block;
  padding-top: 0.6rem;
  padding-bottom: 0.3125rem;
  margin-right: 2.25rem;
  font-size: 1.3rem;
  line-height: inherit;
  white-space: nowrap;
  color: #fff;
}

.logo-asia {
  font-size: 3rem;
}

.tagline-in-menu {
  font-size: 0.75em;
  color: #6e9885;
  max-width: 200px;
  line-height: 1.5em;
}

.arrow-color-hmpg {
  color: #de9d03;
}

.arrow-color-hmpg2 {
  color: #6e9885;
}

.arrow-color-hmpg3 {
  color: #b83d2c;
}


.arrow-color-logo {
  color: #93372f;
}

.hmpg-bkgrnd-lower {
   margin: -10px !important;
   //background-color: aliceblue;
}



.hmpg-bkgrnd-sections {
   background-color: #2e4054;
}

.nav-link {
   text-align: center;
}

@media (max-width: 1280px) {
.nav-link {
   text-align: left;
  }
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 0.0rem 1rem;
  //background-color: #2e4054;
}

.navbar-brand {
    display: inline-block;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.afe-homepage {
   //padding-top: 5.6rem;
}

.afe-elementary {
   //padding-top: 5.6rem;
}



.search-in-menu {
  margin-left: auto;
}

.navbar-toggler {
  margin-left: 20px;
  padding: .65rem .6em;
  font-size: 1rem;
}



.footer-text {
  text-align: center;
  font-size: .75rem;
  color: white;
  margin-top: 50px;
}

.top-post-heading-category {
  font-size: .65rem;
  font-weight: 700;
  padding-top: 3px;
  border-bottom-style: solid;
  margin-left: 10px;
  border-width: 1px;
}

.main-menu-item {
  font-size: .85rem;
  line-height: .95rem;
  padding-bottom: .4rem;
}

.main-menu-h1 {
  font-family: Open Sans, sans-serif;
  font-weight: 700;
  color: #314054;
  border-bottom: solid;
  border-bottom-width: 1px;
  margin-bottom: .4rem;
}

.third-row {
  width: 100%;
  overflow: hidden;
  max-height: 110px;
  margin-bottom: 10px;
}

.time-periods {
  font-family: Roboto, sans-serif;
  font-size: 15px;
  line-height: 46px;
  background-color: #d5cabd;
  padding-left: 20px;
  border-left: solid;
  border-left-width: 20px;
  border-left-color: #b9ac53;
}
.grid-container-time-period {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto;
  grid-gap: 5px;
}

@media (max-width: 413px)
.grid-container-time-period {
    grid-template-columns: auto !important;
}

.grid-container-time-period-column1 {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  grid-gap: 5px;
}

@media (max-width: 413px)
.grid-container-time-period-column1 {
    grid-template-columns: auto !important;
}

.grid-container-time-period-column2 {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  grid-gap: 5px;
}

@media (max-width: 413px)
.grid-container-time-period-column2 {
    grid-template-columns: auto !important;
}

.time-period-section {
  text-align: center;
  padding: 0px;
  font-size: 12px;
  margin-bottom: 5px;
}

.time-period-section a{
   text-decoration: none;
   color: #fff;
}

.time-period-item1 {
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item2 {
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item3 {
  grid-column: 3 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item4 {
  grid-column: 4 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item5 {
  grid-column: 5 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item6 {
  grid-column: 6 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item7 {
  grid-column: 7 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item8 {
  grid-column: 8 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item9 {
  grid-column: 9 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item10 {
  grid-column: 10 / span 1;
  grid-row: 1 / span 1;
}
.time-period-item11 {
  grid-column: 11 / span 1;
  grid-row: 1 / span 1;
}

.btn-group button {
  background-color: none;
  //cursor: pointer; /* Pointer/hand icon */
  //float: left; /* Float the buttons side by side */
  display: inline-flex;
  width: 130px;
}


@media (max-width: 768px) {
.btn-group, .btn-group-vertical {
  display: inline;
   }
.button2 {
  width: 170px;
   }
}

@media (max-width: 872px) {
  .navbar {
    padding-bottom: 10px;
  }
  .afe-homepage {
    //padding-top: 8.6rem;
  }
}

@media (max-width: 990px) {
//.btn-group, .btn-group-vertical {
 // display: inline;
   }
}

.btn-group button a:link{
   text-decoration: none;
}

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table;
}

a.button1{

 padding:0.1em 1.7em;

 //margin:0 0.3em 0.3em 0;
 //border-radius:0.12em;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#2e4054;
 text-align:center;
 background-color: #fff;
 //background-color: rgba(244,246,247, 0.9);
  // border:0.1em solid #FFFFFF;
  //background-color: rgba(47,64,84, 0.8);
  //color: #ffffff!important;

}
a.button1:hover{
  //border:0.1em solid #FFFFFF;
  //background-color: rgba(47,64,84, 1.0);
  background-color: #b83c2c;
  color: #ffffff!important;
}


@media all and (max-width:30em){
 a.button1{
  margin:0.4em auto;
 }
}

a.button2{
 padding:0.1em 1.7em;
 border:0.1em solid #FFFFFF;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#FFFFFF;
 text-align:center;
 transition: all 0.2s;
}
a.button2:hover{
 color:#000000;
 background-color:#FFFFFF;
}

a.button2:focus{
 color:#000000;
 background-color:#FFFFFF!important;
}

a.button3{
 padding:0.4em 1.7em;
 //margin:0 0.3em 0.3em 0;
 //border-radius:0.12em;
 box-sizing: border-box;
 text-decoration:none;
 font-family:'Open Sans',sans-serif;
 font-weight:300;
 color:#2e4054;
 text-align:center;
 background-color: #fff;
 //background-color: rgba(244,246,247, 0.9);
 border:1px solid #000000;
 //background-color: rgba(47,64,84, 0.8);
 //color: #ffffff!important;
}
a.button3:hover{
  border:1px solid aliceblue;
  //background-color: rgba(47,64,84, 1.0);
  background-color: #b83c2c;
  color: #ffffff!important;
}

@media all and (max-width:30em){
 a.button2{
  margin:0.4em auto;
 }
}

@media all and (max-width:1200px){
 a.button2{
 padding:0.1em 1.1em;
 margin-top: 0.1em;
 margin-bottom: 0.1em;
 }
}

@media all and (max-width:990px){
 a.button2{
 padding:0.1em 0.5em;
 margin-top: 0.1em;
 margin-bottom: 0.1em;
 }
}

.navbar-dark .navbar-toggler {
  color: rgba(255,255,255,1);
  border-color: rgba(255,255,255,1);
}

.navbar-dark .navbar-toggler:hover {
  //color: rgba(255,255,255,1);
  //border-color: rgba(255,255,255,1);
  //background-color: #b83d2c;
  background-color: aliceblue;
  //color: #fff !important;
}

.btn-outline-success:hover {
  background-color: #b83d2c;
  border-color: #fff;
}

.navbar-toggler {
  border-radius: 0rem !important;
}

.form-control {
  border-radius: 0rem;
  border-style: none;
}

.btn {
  border-radius: 0rem;
  line-height: inherit;
  font-size: inherit;
}

button:focus {
  outline: 1px solid;
  border-radius: 0rem;
}

.footer-logo {
  float: right;
}

.col .timeline-homepage-fit {
  
}

h2.prof-courses {
  background-color: #fff;
  color: #314054;
  padding-left: 0px;
  border-top: solid 1px;
  padding-top: 20px;
}