/* GENERAL */

body {
  color: #3A508B;
  background-color: #FFF;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

.main ul {
  list-style: disc;
  margin-left: 2em;
}
.main ol {
  list-style: decimal;
  margin-left: 2em;
}
.main li {
  margin-bottom: 0.5em;
  font-size: 1.8em;
}
h4 {
  margin: 1em 0 0.5em 0;
  font-size: 2em;
  font-weight: 700;
}


.wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.main {
  padding: 65px 0;
}
.main-wrapper {
  padding-bottom: 80px;
}

.language-chooser li a {
  color: #3A508B;
}
.language-chooser li.active a,
.language-chooser li:hover a {
  background-color: #3A508B;
}
.footer {
  color: #000;
  background-color: #77AAE5;
}


/* ALL PAGES */

.content-heading {
  margin-bottom: 20px;
  color: #3A508B;
  font-size: 5em;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}
.text-large {
  max-width: 900px;
  margin: 0 auto 80px auto;
  color: #3A508B;
  font-size: 1.5em;
  /* font-weight: 300; */
  text-align: center;
  line-height: 1.3;
}
.color-blocks {
  text-align: center;
}
.color-block {
  display: inline-block;
  position: relative;
  width: 32%;
  margin: 0 0.5%;
  padding: 20px 25px;
  text-align: left;
  vertical-align: top;
}
.color-block:nth-child(3n+1) {
  background-color: #1AC9CF;
}
.color-block:nth-child(3n+2) {
  background-color: #FFA6AF;
}
.color-block:nth-child(3n+3) {
  background-color: #DC8AFF;
}
.cb-content {
  display: block;
  /* padding: 0 20px 0 0; */
  color: #000;
  font-size: 2.6em;
  font-weight: 600;
  text-align: left;
}
.zh_TW .cb-content,
.zh_CN .cb-content {
  font-size: 3em;
}
.color-block.loaded .cb-content {
  position: absolute;
  left: 20px;
  bottom: 20px;
}
.cb-icon {
  display: block;
  float: right;
  width: 40%;
  height: 0;
  padding-bottom: 30%;
  margin: 0 0 20px 20px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}
.cb-text {
  display: block;
}
html.zh_TW .cb-text,
html.zh_CN .cb-text {
  clear: both;
}
.cb-text-inner {
  display: block;
  padding-top: 70px;
}


/* COURSES */

.page-title {
  margin-bottom: 60px;
  overflow: hidden;
}
.page-title h1 {
  display: inline-block;
  position: relative;
  margin-top: 2px;
  padding-right: 20px;
  padding-bottom: 20px;
  color: #3A508B;
  font-size: 3.4em;
  font-weight: 600;
}
.page-title h1 span {
  position: relative;
  background-color: #FFF;
  z-index: 2;
  border-right: 20px solid #FFF;
}
.page-title h1:after {
  display: block;
  position: absolute;
  content: '';
  left: 0;
  bottom: 28px;
  width: 2000px;
  height: 3px;
  background-color: #3A508B;
  z-index: 1;
}
.accordion-group {
  margin-bottom: 60px;
  display: table;
  table-layout: fixed;
  width: 100%;
}
.accordion-heading {
  display: table-cell;
  /* width: 34%; */
  width: 30%;
  padding: 30px 25px;
  border-right: 15px solid #FFF;
  color: #FFF;
  background-color: #1AC9CF;
  font-size: 2.9em;
  vertical-align: top;
}
.accordion-group:nth-child(even) .accordion-heading {
  background-color: #1564A1;
}
.accordion-rows {
  display: table-cell;
  vertical-align: top;
}
.accordion-row {
  margin-bottom: 16px;
  background-color: #DCF2F2;
  -webkit-border-top-right-radius: 20px;
  -webkit-border-bottom-right-radius: 20px;
  -moz-border-radius-topright: 20px;
  -moz-border-radius-bottomright: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.accordion-group:nth-child(even) .accordion-row {
  background-color: #E8F5FF;
}
.accordion-row:last-child {
  margin-bottom: 0;
}
.accordion-topic {
  position: relative;
  padding: 25px 50px 25px 25px;
  color: #3A508B;
  font-size: 2.1em;
  font-weight: 500;
  cursor: pointer;
}
.accordion-topic:after {
  display: block;
  position: absolute;
  content:'\25BE';
  top: 50%;
  right: 20px;
  margin-top: -15px;
  font-size: 1.2em;
  transition: all 0.2s ease-in;
}
.accordion-row.active .accordion-topic:after {
  margin-top: -12px;
  transform: rotate(-180deg);
  transition: all 0.2s ease-out;
}
.accordion-details {
  display: none;
  padding: 0 25px 40px 25px;
}

.content-slider-container {
  position: relative;
  margin-bottom: 60px;
}
.content-slider {
  visibility: hidden;
}
.content-slide {
  display: block;
  position: relative;
  width: 100%;
  background-color: #E8F5FF;
  -webkit-border-top-right-radius: 20px;
  -webkit-border-top-left-radius: 20px;
  -moz-border-radius-topright: 20px;
  -moz-border-radius-topleft: 20px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  overflow: hidden;
}
.cs-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
}
.cs-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.cs-right {
  display: block;
  width: 50%;
  margin-left: 50%;
  padding: 80px 60px;
  vertical-align: top;
}
.cs-text {
  font-size: 1.4em;
  font-weight: 500;
}
.cs-text p {
  line-height: 1.3;
}
.bx-wrapper .bx-pager {
  left: 0 !important;
  width: 50% !important;
  margin: 0 !important;
  text-align: center !important;
}
.bx-wrapper .bx-pager.bx-default-pager a {
  margin: 0 8px !important;
  background-color: #989898 !important;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover {
  background-color: #0983E0 !important;
}
.bx-wrapper .bx-pager.bx-default-pager a.active {
  background-color: #3A508B !important;
}

.breadcrumbs a, .breadcrumbs span {
  color: #3A508B;
}

.content-row-icon {
  display: table;
  table-layout: fixed;
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}
.cri-left {
  display: table-cell;
  width: 250px;
  /* width: 26%; */
  padding: 30px 25px;
  background-color: #0983E0;
  border-right: 16px solid #FFF;
  text-align: center;
  vertical-align: middle;
}
.cri-icon {
  width: 100px;
  height: 120px;
  margin: 0 auto 10px auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.cri-heading {
  color: #FFF;
  font-size: 2.3em;
  font-weight: 700;
}
.cri-right {
  display: table-cell;
  position: relative;
  padding: 40px;
  background-color: #E8F5FF;
  vertical-align: middle;
  -webkit-border-top-right-radius: 20px;
  -webkit-border-bottom-right-radius: 20px;
  -moz-border-radius-topright: 20px;
  -moz-border-radius-bottomright: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.cri-with-pin .cri-right:after {
  display: block;
  position: absolute;
  content: '';
  right: -15px;
  top: -40px;
  width: 60px;
  height: 60px;
  background: url('images/language-improvement-project/icon-pin@2x.png') no-repeat center center;
  background-size: contain;
}

.cra-heading {
  color: #3A508B;
  font-size: 2.3em;
  font-weight: 700;
}
.cra-table {
  display: table;
  table-layout: fixed;
  width: 100%;
}
.cra-left {
  display: table-cell;
  width: 250px;
  /* width: 26%; */
  padding: 30px 25px;
  border-right: 16px solid #FFF;
  text-align: center;
  vertical-align: middle;
}
.cra-icon {
  width: 100px;
  height: 120px;
  margin: 0 auto 10px auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.cra-right {
  display: table-cell;
  padding: 40px;
  vertical-align: middle;
}


.content-grids {
  margin-bottom: 60px;
  overflow: hidden;
}
.content-grid {
  float: left;
  width: 49.5%;
  margin: 0 1% 1% 0;
}
.content-grid:nth-child(even) {
  margin-right: 0;
}
.content-grid {
  padding: 15px;
}
.content-grid:nth-child(4n+1) {
  background-color: #BE7CE0;
}
.content-grid:nth-child(4n+2) {
  background-color: #FFA6AF;
}
.content-grid:nth-child(4n+3) {
  background-color: #A5DB86;
}
.content-grid:nth-child(4n+4) {
  background-color: #1AC9CF;
}
.cg-image {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 1200px) {
  .page-title h1 {
    font-size: 2.4em;
  }
  .accordion-heading {
    font-size: 2.3em;
  }
  .cri-heading {
    font-size: 2.2em;
  }
  .accordion-topic {
    font-size: 2em;
  }
  .content-heading {
    font-size: 3em;
  }
  .text-large, .cs-text {
    font-size: 1.2em;
  }
  .cs-right {
    padding: 60px 40px;
  }
  .cs-text p {
    text-align: left;
  }
  .cb-content {
    font-size: 2.2em;
  }
}

@media (max-width: 1000px) {
  .main-menu li a {
    font-size: 1.6em;
  }
  .page-title h1 {
    font-size: 2.2em;
  }
  .cri-heading {
    font-size: 2em;
  }
  .accordion-heading {
    font-size: 2em;
  }
  .accordion-topic {
    font-size: 1.8em;
  }
  .content-heading {
    font-size: 2.8em;
  }
  .text-large, .cs-text {
    font-size: 1.1em;
  }
  .cb-content {
    font-size: 1.8em;
  }

  .main {
    padding: 40px 0;
  }
  .page-title {
    margin-bottom: 20px;
  }
  .cs-right {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .page-title h1 {
    font-size: 2em;
  }
  .cri-heading {
    font-size: 1.8em;
  }
  .content-heading {
    font-size: 2.6em;
  }
  .text-large, .cs-text {
    font-size: 1em;
  }
  h4 {
    font-size: 1.8em;
  }
  p, .main li {
    font-size: 1.7em;
  }
  .cb-content {
    font-size: 2em;
  }

  .page-title h1 span {
    border-right: 10px solid #FFF;
  }

  .cs-left {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
  }
  .cs-right {
    width: 100%;
    padding: 25px 30px;
    margin-left: 0;
  }

  .cri-left, .cra-left,
  .cri-right, .cra-right {
    padding: 20px;
  }
  .cri-left, .cra-left {
    width: 180px;
  }
  .cri-with-pin .cri-right:after {
    top: -30px;
    width: 40px;
    height: 40px;
  }
  .cri-icon {
    width: 70px;
    height: 80px;
    margin-bottom: 15px;
  }
  .content-slider-container, .content-row-icon {
    margin-bottom: 40px;
  }

  .bx-controls.bx-has-pager {
    top: 0;
    bottom: auto;
    height: 0;
    padding-bottom: 50%;
  }
  .bx-wrapper .bx-pager {
    position: absolute;
    bottom: 10px;
    width: 100% !important;
    padding: 10px 0;
    background-color: rgba(255,255,255,0.5);
  }
  
  .main {
    padding: 40px 0;
  }
  .main-wrapper {
    padding: 0;
  }

  .text-large {
    margin-bottom: 30px;
  }
  .main-menu-button {
    background-color: #3A508B;
  }
  .color-block {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
  }
  .cb-icon {
    width: 60px;
    padding-bottom: 50px;
  }
  .cb-text-inner {
    padding-top: 0;
    padding-right: 60px;
  }

  .accordion-group, .accordion-heading, .accordion-rows {
    display: block;
    width: 100%;
  }
  .accordion-heading {
    border-right: 0;
    margin-bottom: 16px;
    -webkit-border-top-right-radius: 20px;
    -webkit-border-bottom-right-radius: 20px;
    -moz-border-radius-topright: 20px;
    -moz-border-radius-bottomright: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}

@media (max-width: 600px) {
  .page-title h1 {
    font-size: 1.8em;
  }
  .cri-heading {
    font-size: 1.6em;
  }
  h4 {
    font-size: 1.7em;
  }
  p, .main li {
    font-size: 1.6em;
  }
  .accordion-heading {
    font-size: 1.8em;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .accordion-topic {
    font-size: 1.6em;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .content-row-icon, .cri-left, .cri-right,
  .cra-table, .cra-left, .cra-right {
    display: block;
    width: 100%;
  }
  .cri-left, .cra-left {
    border-right: 0;
    padding: 15px 20px;
  }
  .cri-with-pin .cri-left:after {
    display: block;
    position: absolute;
    content: '';
    right: -15px;
    top: -18px;
    width: 30px;
    height: 30px;
    background: url('images/language-improvement-project/icon-pin@2x.png') no-repeat center center;
    background-size: contain;
  }
  .cri-with-pin .cri-right:after {
    display: none;
  }
  .cri-icon, .cri-heading,
  .cra-icon {
    display: inline-block;
    vertical-align: middle;
  }
  .cri-icon, .cra-icon {
    margin-right: 20px;
    margin-bottom: 0;
  }
  .cri-right-with-pin:after {
    top: auto;
    bottom: 20px;
  }

  .content-grids {
    margin-bottom: 30px;
  }
  .content-grid {
    float: none;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 0 auto 20px auto;
  }
  .content-grid:nth-child(even) {
    margin-right: auto;
  }
}

@media (max-width: 400px) {
  p {
    font-size: 1.4em;
  }
}
