.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 16px;
  line-height: 22px;
  font-weight: bold;
  border-bottom: 5px solid #102A4C;
  height: 365px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (max-width:  767px ) {
  .masthead {
    display: block;
    height: 190px;
    margin-bottom: 300px;
    font-size: 12px;
  }
}
@media (max-width: 550px) {
  .masthead {
    margin-bottom: 300px;
  }
}
.masthead .container {
  flex: 1;
  width: 50%;
  padding-right: 10%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 60%;
  z-index: 1;
  margin-top: 0px;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-flow: column nowrap;
  padding-left: 0;
  background: rgba(16, 42, 76, 0.7);
  clip-path: polygon(0 0%, 77% 0%, 100% 100%, 0% 100%);
}
.masthead .container .content {
  width: 70%;
}
.masthead .container .content p:last-child {
  margin-bottom: 0;
}
.masthead .container > p:last-child {
  width: 70%;
  text-align: left;
  margin-top: 15px;
  margin-bottom: 0;
}
.masthead .container > p:last-child .btn.btn-primary {
  background: #89D6EF;
  color: white;
}
@media (max-width:  767px ) {
  .masthead .container {
    padding: 0 0 15px 0;
    position: absolute;
    top: 190px;
    flex: none;
    background: white;
    border-bottom: 1px solid #d8d7d7;
    margin-top: 0;
    width: 100%;
    clip-path: none;
    background: #102A4C;
    padding: 15px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .masthead .container:after {
    display: none;
  }
  .masthead .container .content {
    width: 100%;
    margin-bottom: 0;
    padding: 0 15px;
  }
  .masthead .container > p:last-child {
    padding: 0 10px;
    width: 100%;
    margin-top: 0;
  }
}
.masthead h1 {
  color: #89D6EF;
}
@media (max-width:  767px ) {
  .masthead .content {
    padding: 15px;
    margin-bottom: 15px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .masthead .content p {
    margin-bottom: 0;
  }
}
.masthead a {
  color: white;
  text-decoration: underline;
}
.masthead a:focus,
.masthead a:hover {
  color: #102A4C;
}
.masthead .btn {
  text-decoration: none;
  padding-left: 30px;
  padding-right: 30px;
  margin: 5px 5px 0 0;
}
@media (max-width:  767px ) {
  .masthead .btn {
    margin: 0px 5px;
  }
}
.masthead h1 {
  color: white;
  font-weight: 500;
  font-size: 36px;
  text-transform: none;
}
@media (max-width:  767px ) {
  .masthead h1 {
    font-size: 24px;
  }
}
.masthead:before {
  content: '';
  position: absolute;
  bottom: 0;
  height: 75%;
  width: 100%;
  opacity: 0.4;
  background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), black 33%, black);
  background-image: -o-linear-gradient(rgba(0, 0, 0, 0), black 33%, black);
  background-image: linear-gradient(rgba(0, 0, 0, 0), black 33%, black);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#ff000000', GradientType=0);
}
@media (max-width:  767px ) {
  .masthead:before {
    display: none;
  }
}
.masthead:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
}
@media (max-width:  767px ) {
  .masthead:after {
    display: none;
  }
}
@media (max-width: 374px) {
  .masthead .content {
    padding: 5px;
  }
  .masthead .container p {
    margin-bottom: 0;
  }
}
