/**Hack for mobile nav...*/
@media only screen and (max-width:767px) {
  .navbar-inner [class*="span"] {
    display: inline!important;
  }
}

a {
  color: #B75315;
}

#hero {
  width: 100%;
  height:320px;
  background: url('blog_hero_background.jpg') no-repeat center center;
  background-size: cover;
  -ms-behavior: url(/backgroundsize.htc);
  behavior: url(/backgroundsize.htc);
}

#hero div {
  margin: 0 auto;
  width: 960px;
}

#hero h1 {
  padding-top:83px;
  color: #fff;
  text-align: center;
  font-size: 55px;
}

#hero h2 {
  color: #fff;
  text-align: center;
  font-size: 26px;
  padding-top:10px;
  line-height: 0;
  *line-height: 22px;
  *padding-top:0;
}


/** Filter Nav **/
#menu-shadow {
  width: 940px;
  height: 52px;
  margin: 0 auto 0 auto;
  position: relative;
  -webkit-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  -moz-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  behavior: url(/pie.htc);
}
#category-filter {
  list-style: none;
  height:92px;
  display: block;
  background: #fff;
  position: absolute;
  margin: -40px 0;
  padding:0;
}

/*Styles specific for article page*/
#menu-shadow.article {
  height: 92px;
}

#category-filter.article {
  margin:0;
  position: relative;
  height:92px;
}
/*End Article nav styles */

#category-filter i {
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  width: 100%;
}
#category-filter li {
  display: block;
  float:left;
  width: 104px;
  height: 92px;
  vertical-align: top;
  margin: 0;
  padding: 0;
  position: relative;

}

#category-filter li a:after {
  content: "";
  height: 52px;
  width: 1px;
  background-color: #dcdcdc;
  position: absolute;
  top:20px;
  right:-1px;
}

#category-filter li a:hover:after, #category-filter li.active a:after {
  width: 0px;
}

#category-filter li.last, #category-filter li.views-row-last {
  width: 108px;
}

#category-filter li.last a, #category-filter li.views-row-last a {
  width: 88px;
}
#category-filter li.last a:after, #category-filter li.views-row-last a:after {
  width: 0;
}

#category-filter li a:hover {
  color: #fff;
  text-decoration: none;
  background: #1C819B;
  cursor: pointer;
}

#category-filter li a.selected {
  color: #fff;
  text-decoration: none;
  background: #1C819B;
  background-image:url(img/filter-selected.png);
  cursor: pointer;
  background-size:contain;
}

#category-filter li a.selected:after {
  width:0;
}

#category-filder li:hover {

}


#category-filter li a {
  font-size: 12px;
  line-height: 16px;
  color: #1C819B;
  text-align: center;
  display: block;
  width:84px;
  height:72px;
  padding: 10px;
}

/** Filter Nav (tablet) **/
@media only screen and (max-width:979px) {

  #menu-shadow {
    width: 724px;
  }

  #category-filter i {
    font-size: 18px;
    line-height: 28px;
  }

  #category-filter li {
    width: 80px;
  }

  #category-filter li.last, #category-filter li.views-row-last {
    width: 80px;
  }

  #category-filter li.last a, #category-filter li.views-row-last a {
    width: 65px;
  }

  #category-filter li a {
    width:65px;
    padding: 10px;
  }

  #category-filter li a.selected {
    color: #fff;
    text-decoration: none;
    background: #1C819B;
    background-image:url(img/filter-selected-narrow.png);
    background-repeat: no-repeat;
    background-position: center 0;
    cursor: pointer;
  }



}


/** Isotope tile layout**/

#isotope-container {
  max-width: 960px;
  margin: 40px auto;
}
.isotope-element {
  width: 300px;
  height: 404px;
  background-color: #fff;
  margin: 0;
  float: none;
  margin-bottom: 20px;
  /*cursor: pointer;*/
  opacity: 1;
  -webkit-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  -moz-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  behavior: url(/pie.htc);

  *float: left;
  *margin-right:9px;
  *margin-left:9px;

}

.isotope-element a {
  font-weight: normal;
}

.isotope-element a:hover {
  text-decoration: none;
}

.isotope-element h3 a {
  font-weight: bold;
}

.isotope-element h3{
  margin: 10px 0 0;
}
.isotope-element h3 a:hover {
  text-decoration: underline;
}

@media (max-width:400px) {
  .isotope-element {
    opacity: 1;
  }
}
.isotope-element.w2 {
  width: 600px;
}
.isotope-element.h2 {
  height: 700px;
}


/* Adjust the size of the container based on how many boxes will fit.  This keeps it centered on all devices */
@media (min-width:320px) {
  #isotope-container {
    max-width: 300px;
  }
}

@media (min-width:620px) {
  #isotope-container {
    max-width: 620px;
  }
}
@media (min-width:940px) {
  #isotope-container {
    max-width: 940px;
  }
}

/** END Masonry layout */


/** Tile styles **/
.tile-background {
  width:300px;
  height:166px;
  background-size: cover;
  -ms-behavior: url(/backgroundsize.htc);
  behavior: url(/backgroundsize.htc);
}

.isotope-element h3 a {
  color: #555555 !important;
  font-size: 16px;
  padding:13px 18px 0 18px;
  margin:0;
  display: block;
  line-height: 22px;
}

.isotope-element p {
  color: #555555;
  padding:0 18px;
}

.i18n-zh-hans .isotope-element p {
  font-size: 12px;
}


.isotope-element p.date {
  font-size: 14px;
  margin:0 0 13px 0;
}

.isotope-element i {
  color: #1C819B;
  position: absolute;
  bottom: 13px;
  left: 10px;
  font-size: 20px;
}

.share-btn {
  position: absolute;
  bottom: 10px;
  right:10px;
  border: 2px solid #e2e2e2;
  width: 83px;
  height: 23px;
  vertical-align: middle;
  padding-top: 4px;
  color: #1C819B;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#mobileNav {
  width:100%;
  height: 40px;
  position: relative;
  background-color: #fff;

  width:100%;
  -webkit-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  -moz-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
  box-shadow: 0px 6px 18px -6px rgba(221,221,221,1);
  behavior: url(/pie.htc);
}



.select2-container .select2-choice {
  border-radius: 0;
  border: 1px solid #1C819B;
  background: #fff;
  color: #555555;
  font-weight: normal;
  font-size:16px;
}

.select2-container .select2-choice .select2-arrow {
  border-radius: 0;
  background: #1C819B;
  width: 25px;
  border:0;
}

.select2-container .select2-choice .select2-arrow b {
    display: block;
    width: 100%;
    height: 100%;
    background: url('select2.png') no-repeat 5px 1px;
}

.select2-dropdown-open .select2-choice .select2-arrow b {
  background-position: -19px 0;
  width: 25px;
}

.select2-results .select2-highlighted {
  background: #1C819B;
  color: #fff;
}

.select2-drop-active {
  border: 1px solid #1C819B;
  border-radius: 0;
  color: #555;
  font-size:16px;
}

.select2-results {
  max-height:400px;
}

.select2-result-label i, .select2-chosen i {
  display: block;
  float: left;
  width:25px;
  margin-right: 15px;
}

/** Mobile **/
.show-mobile {
  display: none;
}

@media only screen and (max-width:767px) {

  .select2-container {
    width: 620px;
  }

  #menu-shadow {
    display: none;
  }

  .show-mobile {
    display: block;
  }

  #hero {
    height:145px;
    background-size: cover;
    margin: 0 auto;
    width: 100%;
    -ms-behavior: url(/backgroundsize.htc);
    behavior: url(/backgroundsize.htc);
  }

  #hero h1 {
    padding-top:43px;
    color: #fff;
    text-align: center;
    font-size: 28px;
    margin:0 auto;
  }

  #hero h2 {
    color: #fff;
    text-align: center;
    font-size: 18px;
    margin:5px auto;
  }

  .isotope-options {
    width:100%;
    -webkit-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
    -moz-box-shadow: 0px 1px 18px 2px rgba(221,221,221,1);
    box-shadow: 0px 6px 18px -6px rgba(221,221,221,1);
    behavior: url(/pie.htc);
    padding: 0 0 10px 0;
  }

}

#block-nodeblock-156 .control-group { display: none; }
.page-blog h2.block-title { display: none; }
.isotope-options { background: none; }

.blog-btns .previous { float: left; }
.blog-btns .next { float: right; }

/** Article Page **/

body.node-type-blog-article {
    background-color: #f7f7f7;
}

#article-container {
  max-width: 960px;
  margin: 32px auto;
  height:100%;
}

#article-container h1 {
  line-height: 1.0em;
  font-size: 2.5em;
  padding-top: 25px;
}

.left-col {
  width: 60%;
  float: left;
  margin-bottom:20px;
  margin-left: 10px;
}

.right-col {
  width: 260px;
  float: right;
  background-color: #fff;
  height:100%;
  padding:20px;
  display: block;
  margin-right:10px;
  position: relative;
}

#article-category {
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
  width: 100%;
}

#article-category i {
  color: #1C819B;
  font-size: 18px;
  float: left;
  height: 40px;
  margin-right: 8px;
}

#article-container h3 {
  font-weight: normal;
  font-size: 1em;
  margin-left: 5px;
}

#article-container p {
  color: #444444;
  line-height: 1.8em;
  font-size: 1.0em;
  margin-bottom: 40px;
}

#article-container p.list_header {
  margin-bottom: 10px;
}

#article-content {
  display: block;
  height:100%;
}

#article-content p{
  color: #444444;
}

.article-image {
  width:100%;
  padding-bottom: 50px;
}

.related-item i {
  color: #1C819B;
  float: left;
  display: block;
  margin:10px 10px 50px 0px;
  font-size:24px;
}

.related-title {
  margin: 10px 0;
  margin-bottom: 20px;
  width: 260px;
  *width: 200px;/*IE7 hack */
}



.related-title a {
  color: #333333;
}

.related-image {
  width: 260px;
  height: 144px;
  background-color: #ccc;
  display: block;
  margin: 0 auto;
  background-size: cover;
    background-repeat: no-repeat;
    -ms-behavior: url(/backgroundsize.htc);
    behavior: url(/backgroundsize.htc);
}

.related-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #cccccc;
}

.related-item.views-row-last {
  margin-bottom: 0;
  border-bottom: none;
}

/* Older and Newer Post links */
.blog-btns .previous, .blog-btns .next {
  text-transform: uppercase !important;
  color: #444444 !important;
  margin:100px 0 50px 0;
}

.blog-btns .previous:hover, .blog-btns .next:hover{
  text-decoration: none !important;
}

.blog-btns .previous {
  float: left;
}

.blog-btns .previous:before {
  content: "\e80b";
  color: #1C819B;
  margin-right:10px;
  font-family: 'toefl-icons';;
}

.blog-btns .next {
  float: right;
}

.blog-btns .next:after {
  content: "\e80c";
  color: #1C819B;
  margin-left:10px;
  font-family: 'toefl-icons';
}

/* Article page mobile break points */

@media only screen and (max-width:1199px) {
  .right-col {
    margin-right: 0;
  }

}
@media only screen and (max-width:979px) {
  #article-container {
    max-width: 979px;
  }

  .right-col {
    margin-right: 0;
  }

  .left-col {
    width: 55%;
  }
}

@media only screen and (max-width:767px) {
  #article-container {
    padding: 0 20px 0 0;
  }

  #article-container h1 {
    font-size:1.5em;
  }

  .right-col {
    display:none;
  }

  .left-col {
    width:100%;
  }

  #related-articles-mobile {
    background-color: #fff;
    padding:40px 0;
  }

  /*Related Carousel*/
  .related-item i {
    color: #1C819B;
    float: left;
    display: block;
    margin:10px 10px 50px 0px;
    font-size:24px;
  }

  .related-title {
    margin: 10px 0;
    margin-bottom: 20px;
    width: 260px;
  }

  .related-image {
    width: 260px;
    height: 130px;
    background-color: #ccc;
    display: block;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    -ms-behavior: url(/backgroundsize.htc);
    behavior: url(/backgroundsize.htc);
  }

  .related-item {
    margin-bottom: 0;
    border-bottom: none;
    width: 260px;
    margin: 0 auto;
  }

  .blog-btns .previous, .blog-btns .next {
    text-transform: uppercase;
    color: #444444;
    margin:50px 0 0 0;
  }

  .select2-container {
    width: 620px;
  }

  #menu-shadow {
    display: none;
  }

  .show-mobile {
    display: block;
  }


}

@media only screen and (max-width:619px) {
  .select2-container {
    width: 300px;
  }

  #select2-drop-mask {
    /*z-index: 999999;*/
  }
  #nav-wrapper {

  }
}


/*Social Share */
#socialModal a {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  line-height: 24px;
  text-align: center;
  color: #dadada;
  margin-left: 18px;
}
#socialModal a.facebook {
  background: #204385;
}

#socialModal a.instagram {
  background: #3c739c;
}
#socialModal a.twitter {
  background: #2aa9e0;
}
#socialModal a.google-plus {
  background: #d3492c;
}

.modal-footer .btn {
  color: #fff;
}

.btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
  background-color: #555;
}


.social-share {
  margin: 20px 0;
}
a.sub-share {
  display: inline-block;
  position: relative;
}

.sub-share .logo{
  width:185px;
  height:34px;
  display:inline-block;
  background-repeat: no-repeat;
  margin-right:1px;
}

.sub-share .text{
  color: #fff;
  position: absolute;
  left:33px;
  top:8px;
  font-weight: normal;
}

.social-share.chinese .sub-share .text{
  font-size:14px;
}

.social-share.chinese .sub-share .logo{
  width:175px;
}


.sub-share.fb .logo {
  background: #325a97 url('img/share-fb.png') no-repeat;
}

.sub-share.tw .logo {
  background: #1A7CBC url('img/share-tw.png') no-repeat;
}

.sub-share.plus .logo {
  background-image: url('img/share-plus.png');
}

.sub-share.renren .logo {
  background-image: url('img/share-renren.png');
}

.sub-share.weibo .logo {
  background: #e6162d url('img/share-weibo.png') no-repeat;
}

.sub-share.qzone .logo {
  background: #3184d6 url('img/share-qzone.png') no-repeat;
}

@media only screen and (max-width:979px) {
  .sub-share .text {
    display: none;
  }

  .sub-share .logo{
    width:35px;
  }

  .social-share.chinese .sub-share .logo{
    width:35px;
  }
}

.modal-header {
  text-align: center;
}

.modal {
  border-radius: 0;
  width:300px;
  margin-left: -150px;
}

@media (max-width: 767px) {
  .modal {
    border-radius: 0;
    width:300px;
    margin:auto;
  }
}

.modal-body {
  text-align: left;
  width:195px;
  margin: 0 auto;
}

.modal-body div {
  margin-top:10px;
}

.modal-footer {
  border-top: 0;
  background: #fff;
}

.modal-footer .btn {
  width:100%;
}

#socialModal a {
  border-radius: 0;
  width: 35px;
  height:35px;
  margin: 0 5px;
}

#socialModal a.facebook {
  background-color: #fff;
  background-image: url('img/share-fb.png');
}

#socialModal a.twitter {
  background-color: #fff;
  background-image: url('img/share-tw.png');
}

#socialModal a.google-plus {
  background-color: #fff;
  background-image: url('img/share-google.png');
}

#socialModal a.linkedin {
  background-color: #fff;
  background-image: url('img/share-linkedin.png');
}

#socialModal a.weibo {
  background-color: #fff;
  background-image: url('img/share-weibo.png');
}

#socialModal a.renren {
  background-color: #fff;
  background-image: url('img/share-renren.png');
}

#socialModal a.qzone {
  background-color: #fff;
  background-image: url('img/share-qzone.png');
}


.modal.fade {
  top: -200px;
}

#nav-wrapper {
  height:89px!important;
}

@media only screen and (max-width:619px) {
  #nav-wrapper {
    height:50px!important;
  }
}


/*Pager button*/
/*Override bootstrap*/
.pager li>a,.pager li>span {
  display:inline-block;
  padding:0;
  background:none;
  border:0;
  -webkit-border-radius:0;
  -moz-border-radius:0x;
  border-radius:0;
  color: #fff;
}

.pager li {
  display:inline;
  height: 42px;
  color: #fff;
  padding: 0 40px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 42px;
  font-size: 18px;
  display: inline-block;
  background:  #19869b;
  border-radius: 3px;
  width:220px;
}

ul.pager-load-more-empty li {
  display: none;
}

.pager li>a:hover, .pager li>a:focus {
  text-decoration:underline;
  background:none;
}

.pager {
  margin: -30px 0 20px 0;
}

/* China specfic overrides */

.i18n-zh-hans .isotope-element p{
	line-height: 1.3em !important;
}



