/* Global */
body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: rgb(82,97,109);
}
h3,
h4 {
  color: rgb(44,52,59);
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}
a {
  color: rgb(196,71,65);
}
a:hover {
  color: rgb(196,71,65);
}
.emphasis {
  font-style: italic;
}
#wrap {
  background-color: white;
}

/* Section: Header */
#header {
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 0;
  background: none;
  background-color: white;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  border-style: solid;
  border-color: rgb(44,52,59);
  border-width: 0  0 2px 0;
  border-radius: inherit;
}
#header .navbar-brand {
  color: #777;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}
#header .navbar-brand .emphasis {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 400;
}
#header .nav,
#footer .nav {
  letter-spacing: 0.02em;
}
#header .nav li a {
  color: rgb(44,52,59);
  margin: 10px 15px 5px 15px;
  padding: 0 0 7px 0;
}
#header .nav li a:hover {
  color: rgb(196,71,65);
  padding-bottom: 5px;
  border-bottom: 2px solid rgb(196,71,65);
}
#header .nav li:last-child a {
  margin-right: 0;
}
#header .navbar-toggle,
#header .navbar-toggle:hover,
#header .navbar-toggle:active {
  border: 0;
  background-color: inherit;
  padding-right: 5px;
  padding-left: 5px;
  margin-top: 9px;
}
#header .sub {
  color: rgb(44,52,59);
}
#header .main + .sub:before {
  content: "\00a0";
}

/* Section: Brief */
#brief {
  background-image: url(../images/brief.jpg);
  background-size: cover;
  background-position: 50%;
  height: 480px;
  text-align: center;
  padding-top: 320px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  position: relative;
  border-style: solid;
  border-color: rgb(44,52,59);
  border-width: 0 0 2px 0;
}
#brief .container {
  width: 100%;
  position: absolute;
  bottom: 20px;
}
#brief h3 {
  font-size: 36px;
  color: white;
}
#brief p {
  font-size: 24px;
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 300;
}

/* Featurettes */
.featurette-image {
  background-size: cover;
  background-position: 50%;
  height: 420px;
  border-style: solid;
  border-color: rgb(44,52,59);
  border-width: 2px 0;
}
.featurette {
  margin-top: 36px;
  margin-bottom: 36px;
  background-color: white;
}
.featurette p {
  text-align: center;
}
.featurette h3 + p {
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 36px;
  padding: 0 10%;
}
.featurette h3 + div {
  margin-top: 36px;
}
.featurette h4 {
  font-size: 16px;
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 700;
}

.featurette + .featurette {
  border-style: solid;
  border-color: rgb(44,52,59);
  border-width: 2px 0 0 0;
}

/* Section: Team */
.portrait {
  margin: 0 auto;
  width: 160px;
  height: 160px;
  position: relative;
}
.portrait img {
  width: 160px;
  height: 160px;
}
.portrait-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: url(../images/portrait-frame.png) no-repeat;
  background-size: cover;
  overflow: hidden;
}
.languages img {
  width: 24px;
}

/* Section: Philosophy */
#philosophy-image {
  background-image: url(../images/featurette-philosophy.jpg);
}

#location-image {
  background-image: url(../images/featurette-location.jpg);
}

/* Section: Program */
#program-image {
  background-image: url(../images/featurette-program.jpg);
}
#program h4 {
  padding-bottom: 10px;
  border-bottom: 2px solid rgb(44,52,59);
  font-family: 'Merriweather', serif;
  font-style: italic;
}
#program td:nth-child(1) {
  text-align: right;
  width: 2em;
}
#program td:nth-child(2) {
  padding-left: 0.5em;
}
#program td:nth-child(3) {
  padding-left: 0.5em;
  width: 4em;
}
#program td:nth-child(4) {
  padding-left: 0.8em;
}

/* Section: Apply */
#apply-image {
  background-image: url(../images/featurette-apply.jpg);
}
#apply p {
  margin-bottom: 1em;
  font-size: 16px;
  padding: 0 10%;
}

/* Section: FAQ */
ul.questions {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
ul.questions li {
  margin-bottom: 24px;
}
.question {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 700;
}

/* Section: Partners */
#partners-image {
  background-image: url(../images/featurette-partners.jpg);
}
.partner p:first-of-type {
  display: block;
  height: 94px;
  line-height: 94px;
  text-align: center;
  vertical-align: bottom;
}
.partner p:first-of-type img {
  height: 59px;
}

/* Custom page footer */
#footer {
  padding-top: 19px;
  padding-bottom: 20px;
  color: rgba(256,256,256,0.8);
  background-color: rgb(82,97,109);
  border-style: solid;
  border-color: rgb(44,52,59);
  border-width: 2px 0 0 0;
}
#footer p {
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 0;
}
#footer p + p {
  margin-top: 24px;
}
#footer a {
  color: rgba(256,256,256,1);
}
#footer .nav li {
  padding: 10px 0;
  text-align: right;
}
#footer .nav li a {
  padding: 0;
  color: inherit;
  display: inline;
}
#footer .nav li a:hover {
  background: none;
}

/* Responsive: Small resolutions */
@media screen and (max-width: 1023px) {
  #header .main {
    display: none;
  }
  #header .main + .sub:before {
    content: "3S ";
    color: #777;
  }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  #header .nav li a {
    margin: 15px 15px 10px 15px;
  }
}

/* Responsive: Phones */
@media screen and (max-width: 767px) {
  #header .navbar-brand {
    max-width: calc(100% - 47px);
  }
  #header .navbar-collapse.collapsing,
  #header .navbar-collapse.in {
    border: none;
  }
  #brief {
    height: 420px;
  }
  .featurette {
    padding: 0 0.5em;
  }
  .featurette-image {
    height: 210px;
  }
  #team div.col-sm-4 + div.col-sm-4,
  #philosophy div.col-sm-6 + div.col-sm-6,
  #location div.col-sm-4 + div.col-sm-4,
  #program div.col-sm-5 + div.col-sm-5 {
    margin-top: 36px;
  }
  #footer .nav {
    margin-bottom: 10px;
  }
  #footer .nav li {
    text-align: left;
  }
}