/* 
Legacy content specific css 
*/


/* Office changes */

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

  .office__text,
  .office__region-image {
    width: 100% !important;
  }
}

.office__flexbox {
  display: flex;
  flex-wrap: wrap-reverse;
  margin-bottom: 20px;
}

.office__text {
  width: 280px;
}

.office__address,
.office__phone-number,
.office__fax-number,
.office__region-email,
.office__speaker-official,
.office__twitter{
  margin-bottom: 20px;
}

.office__address .usa-icon,
.office__phone-number .usa-icon,
.office__fax-number .usa-icon,
.office__region-email .usa-icon,
.office__speaker-official .usa-icon,
.office__twitter .usa-icon {
  vertical-align: bottom;
}

.office__email,
.office__phone-number,
.office__twitter {
  color: #005ea2;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.office__email a,
.office__phone-number a,
.office__twitter a {
  text-decoration: none;
}

.office__email a:hover,
.office__phone-number a:hover,
.office__twitter a:hover,
.office__email a:focus,
.office__phone-number a:focus,
.office__twitter a:focus {
  text-decoration: underline;
}

.office__email .usa-icon,
.office__phone-number .usa-icon,
.office__twitter .usa-icon {
  vertical-align: top;
}

.office__map {
  margin-bottom: 20px;
}

.office__twitter img.icon {
  width: 20px;
  height: auto;
  margin-right: 11px;
}
.office__map img.icon {
  width: 20px;
  height: auto;
  margin-right: 2px;
}

.office__states {
  max-width: 100%;
  margin: 0 20px 20px 0;
  background: #f6f7f7;
  border: solid 1px #ccc;
}

.office__state {
  margin: 10px;
}

.office__region-image {
  width: 350px;
  min-height: 244px;
  position: relative;
}

.office__region-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.office--table table {
  border: 1px solid #f0f0f0;
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
}

.office--table table thead {
  color: white;
  background: #005ea2;
}

.office--table table tr {
  border-bottom: 1px solid #f0f0f0;
}

.office--table table:not(.usa-table) th{
  border-collapse: collapse;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

/* carousel styles */

.carousel
{
	width: 580px;
	height: 340px;
}

.carousel .carousel-indicators
{
	/*position: absolute; bootstrap.css already sets the position to absolute*/
	bottom: 0;
	left: 0;
	z-index: 15;
	width: 100%;
	padding: 0 20px 0 0;
	margin: 0 0 10px;
	text-align: right;
	list-style: none;
}

.carousel .carousel-indicators li
{
	display: inline-block;
	width: 20px;
	height: 8px;
	margin: 1px;
	text-indent: -999px;
	cursor: pointer;
	background-color: #999;
	border: none;
	border-radius: 0;
}

.carousel .carousel-indicators .active
{
	width: 20px;
	height: 8px;
	margin: 1px!important;
	background-color: #fff;
}

.views-field-field-billboard-teaser-text
{
	height: 0;
}
.views-field-field-billboard-image img {
    width: 580px;
    height: 340px;
}
.carousel-caption{
	position: relative;
	top: -100px;
	left: 0;
	bottom: 0;
	right: 0;
	color: #fff;
    padding: 15px 20px;
	height: auto;
    text-align: left;
	overflow: hidden;
	cursor: pointer;
}

.page-challenges .carousel-caption{
	cursor: auto;
}

.page-challenges .carousel-caption .carousel-teaser-text{
	line-height: 20px;
}

.carousel-caption:before,
.page-challenges .carousel-caption:before{
	content: "";
	position: absolute;
	opacity: 0.7;
    filter: alpha(opacity=70);  /* For IE8 and earlier */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
.page-challenges .carousel-caption:before{
	background: url(../images/carousel-bg.png) repeat;
}
.carousel-caption:before{
	background: url(../images/carousel-bg.png) repeat-x;
}

.carousel-caption h3
{
	padding: 0px 0px 3px;
	margin: 0;
	font-size: 22px;
}

#site-content .carousel-caption h3 a,
#site-content .carousel-caption h3 a:visited
{
	margin: 10px 0;
	font-size: 22px;
	color: #fff;
	text-decoration: none;
}

.carousel-teaser-text
{
	float: left;
	width: 450px;
	line-height: 1.2em;
	color: #cccccc;
}

.carousel-control,
.carousel-control:hover,
.carousel-control:focus
{
	opacity: 1;
	filter: alpha(opacity=100);
}


.carousel-control.left,
.carousel-control.right
{
	background-image: none;
}

.carousel-indicators,
.carousel-control
{
	display: none;
}

.carousel.multiple-items .carousel-indicators,
.carousel.multiple-items .carousel-control
{
	display: block;
}

.carousel-control.right
{
	right: 0px;
	width: 15%;
}


.carousel-control .icon-prev{
	background: url(../images/carousel-left-arrow.png) no-repeat;
	width: 50px;
	height: 50px;
	left: 11px;
}


.carousel-control .icon-next{
	background: url(../images/carousel-right-arrow.png) no-repeat;
	width: 50px;
	height: 50px;
	right: 11px;
}

.carousel-control .icon-prev:before,
.carousel-control .icon-next:before
{
	content: '';
}

.carousel .field,
.carousel .field__item {
  margin: 0;
}

/*** clean this up later. Would be nice to have a mixin instead  ***/
#site-content .video-listing .more-link a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: .75rem 2.5rem;
  width: auto;
  font-size: 14px;
  line-height: 1.42857143;
  color: #fff;
  background-color: #005ea2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  border-radius: .25rem;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  margin-right: .5rem;
  padding: .75rem 1.25rem;
  text-align: center;
  text-decoration: none;
}

#site-content .video-listing .more-link a:visited {
  color: #fff;
}

.usa-modal .media-oembed-content {
  display: block;
  width: 100%;
  height: auto;
  min-height: 400px;
  margin: 0 auto;
}

.usa-modal .field--item {
  padding: 5px 0;
}

.usa-modal .field--name-field-posted-date {
  font-size: 16px;
  font-weight: bold;
}

.usa-modal .field--name-field-tags .field--item {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  background-color: #005ea2;
  border-radius: 2px;
  margin-right: .25rem;
  padding: 1px 5px;
  display: inline-block;
}
