/**** Custom Styles For OTO Source ****/


/*** DEFAULTS ***/
body, p {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #4D4D4D;
}
body.front #main-content,
body.page-oto-source-search #breadcrumbs,
body.page-oto-source-search .page-title {
  display: none;
}

a {
  color: #38A5B1;
}
h2 {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #FFF;
}

.field-label {
  color: #38A5B1;
  font-size: 24px;
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 10px;
}
.field {
  /*margin: 0 20px 50px 0;*/
}
#views-exposed-form-oto-source-search-page label {
  display: none;
}
.front #block-views-exp-oto-source-search-page {
}


/*** HEADER ***/
header#masthead {
  min-height: 50px;
  max-width: 1170px;
}
#logo {
  width: auto;
  display: inline-block;
}
#logo a img {
  padding: 10px 0;
  width: 250px;
  height: auto;
}
#logo h1#site-title {
  display: none;
}
.front #header-block {
  color: #FFF;
  background:linear-gradient(0deg,rgba(96,206,219,0.7),rgba(96,206,219,0.7)),url('/sites/all/themes/aao_oto/images/header-bg.png');
  background-size:cover;
  background-position: center;
  min-height: 200px;
}

#header-block {
  color: #FFF;
  background:linear-gradient(0deg,rgba(96,206,219,0.7),rgba(96,206,219,0.7)),url('/sites/all/themes/aao_oto/images/oto-source_image_slice.jpg');
  background-size:cover;
  background-position: center;
  min-height: 200px;
}


#header-block a {
  color: #FFF;
}
body.front #header-block {
  min-height: 700px;
}
#block-block-1 {
  font-weight: normal;
  color: #FFF;
  padding: 100px 0 40px 0;
  max-width: 500px;
}
#block-block-1 h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 17px;
}
#block-block-1 p {
  color: #FFF;
  font-weight: 300;
}
.front #block-views-exp-oto-source-search-page h2 {
  display: none;
}

body.node-type-oto-module .col-sm-12 {
  padding: 0;
}

header > .row {
  margin: 0;
}

body.node-type-oto-module .row {
  margin: 0;
}

body.page-oto-source-search form#views-exposed-form-oto-source-search-page {
  margin-bottom: 40px !important;
}

body .views-exposed-form .views-exposed-widget {
  padding-left: 0;
}

#mobile-nav {
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  margin-top: 20px;
}

body.mobile-active #mobile-nav span {
  transform: rotate(45deg);
}

body.mobile-active #mobile-nav span:before {
  top: 0;
  opacity: 0;
}

body.mobile-active #mobile-nav span:after {
  bottom: 0;
  transform: rotate(-90deg);
}

#mobile-nav span {
  top: 50%;
  display: block;
  margin-top: -2px;
}

#mobile-nav span:after, 
#mobile-nav span:before {
    display: table;
    content: " ";
}

#mobile-nav span:before {
  top: -10px;
}

#mobile-nav span:after {
  bottom: -10px;
}

#mobile-nav span:before,
#mobile-nav span:after,
#mobile-nav span {
  position: absolute;
  width: 30px;
  height: 4px;
  z-index: 999999999999;
  transition-timing-function: ease;
  transition-duration: .15s;
  transition-property: transform;
  border-radius: 4px;
  transition-property: none;
  background-color: #38A5B1;
  transition: all ease 0.3s;
}

body #mobile-navigation {
  position: absolute;
  left: 0;
  top: 62px;
  background-color: white;
  z-index: 9999;
  width: 100%;
  display: none;
}

body #mobile-navigation .mobile-nav-menu ul {
  padding: 0;
}

body #mobile-navigation .mobile-nav-menu ul li {
  display: block;
  padding: 15px;
  list-style-type: none;
  cursor: pointer;
}

body #mobile-navigation .mobile-nav-menu ul li a {
  display: block;
  cursor: pointer;
}

body.mobile-active #mobile-navigation {
  display: block;
}


/* Mobile Nav Styles */

@media screen and (max-width: 950px){
  #navigation {
    display: none;
  }

  #mobile-nav {
    display: inline-block;
  }
}



@media screen and (max-width: 767px){
  
  body select.form-select,
  body .views-exposed-form .views-widget-filter-field_unit_tid,
  .views-exposed-widget .form-type-textfield input.form-control,
  .views-exposed-form .views-exposed-widget {
    width: 100% !important;
    float: none;
    background-position: 100% !important;
  }

  input[type="submit"].form-submit {
    right: 0 !important;
  }

  .views-submit-button input#edit-submit-oto-source-search {
    position: absolute;
    right: 16px;
    bottom: 3px;
  }

  body.page-oto-source-search .view .views-row a {
    font-size: 18px;
  }

  body.page-oto-source-search .view .views-row {
    width: auto;
    margin: 0 15px;
  }

  .node-type-oto-module h2.title {
    font-size: 24px;
    line-height: 28px;
  }

  body.node-type-oto-module #header-block {
    padding: 40px 15px;
  }

  body.node-type-oto-module .top-section {
    margin: 40px 15px;
    max-width: 100%;
  }

  body.node-type-oto-module .right-sidebar {
    display: block;
    float: none;
    max-width: 100%;
    margin: 40px 15px;
  }

  body.node-type-oto-module .group-topics {
    width: 100%;
  }

  body.node-type-oto-module .ui-accordion-header {
    font-size: 18px;
    line-height: 22px;
  }

  body.node-type-oto-module .ui-accordion .ui-accordion-content .field-label {
    font-size: 16px;
  }
}

/** Main Menu **/
.mainmenu {
  vertical-align: middle;
  width: auto;
  float: right;
}
nav #main-menu ul {
  margin-top: 20px;
  float: right;
}
nav #main-menu ul li {
  display: inline;
  list-style: none outside none;
  padding-right: 25px;
}
nav #main-menu ul li a {
  color: #4D4D4D;
}

/*** SEARCH PAGE ***/
body.page-oto-source-search .content {
  width: 100%
}
body.page-oto-source-search #block-views-exp-oto-source-search-page {
  text-align: center;
}

body.page-oto-source-search #block-views-exp-oto-source-search-page h2 {
  display: none;
}
body.page-oto-source-search .region-header {
  margin: 80px 0;
}
body.page-oto-source-search .region-header .block h2 {
  text-align: center;
  margin-bottom: 40px;
} 

@media screen and (min-width: 767px){
  body.page-oto-source-search .region-header .content {
    margin: 0 0 0 100px;
  }
}
body.page-oto-source-search .views-row {
  width: 66%;
  border-bottom: 1px solid #DDD;
  padding: 20px 0;
  margin: 0 auto;
}
body.page-oto-source-search .views-row a {
  font-size: 24px;
  font-weight: bold;
}
body.page-oto-source-search .item-list .pager {
  padding-top: 20px;
}
body.page-oto-source-search .item-list .pager .pager-item {
  margin: 0;
  padding: 0;
}
body.page-oto-source-search .item-list .pager li>a, .pager li>span {
  font-weight: bold;
  color: #4d4d4d;
  background-color: #dedfdc;
  margin: 0;
  padding: 3px 10px;
  border-radius: 0;
}
body.page-oto-source-search .item-list .pager .pager-current {
  color: #FFF;
  background-color: #FF7363;
  margin: 0;
  padding: 6px 10px;
  border-radius: 0;
}
body.page-oto-source-search .item-list .pager .pager-first,
body.page-oto-source-search .item-list .pager .pager-last {
  display: none;
}

/** Search Form **/
select.form-select {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #4d4d4d;
  width: 400px;
  padding: 5px 5px 5px 10px;
  border: 0;
  border-radius: 0;
  height: 40px;
  background: url('/sites/all/themes/aao_oto/images/dropdown_carets.png') no-repeat right #FFF;
  background-position: 350px -4px;
  appearance:none;
  -moz-appearance:none; /* Firefox */
  -webkit-appearance:none; /* Safari and Chrome */
}
select::-ms-expand {
  display: none;
}
.views-exposed-widget .form-type-textfield input.form-control {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #4d4d4d;
  width: 400px;
  height: 40px !important;
  border-radius: 0;
  border: 0;
}
.page-oto-source-search select.form-select {
  width: 400px;
  background-position: 352px -4px;
}
.page-oto-source-search .views-exposed-widget .form-type-textfield input.form-control {
  width: 400px;
}
.views-exposed-form .views-exposed-widget {
  padding: 1px 1px 1px 10px;
}
.views-widget-filter-keys {
  clear: both;
  margin-top: 20px;
}

.views-exposed-form .views-widget-filter-field_unit_tid {
  margin-right: 100px;
}
.views-submit-button input#edit-submit-oto-source-search {
  background: url('/sites/all/themes/aao_oto/images/search.png') no-repeat center #FF7363;
  border: none;
  border-radius: 0;
  margin: 20px 0 0 -50px;
  width: 49px;
  height: 40px;
}

#views-exposed-form-oto-source-search-page #or-space {
  padding: 0 10px;
}

  /*** FOOTER ***/
#footer-block {
  background-color: #4D4D4D;

}
#colophon {
  background-color: #4D4D4D;
  min-height: 150px;
}
#colophon .fcred {
  color: #FFF;
  text-align: center;
  margin: 10px auto;
}
#block-block-3 {
  width: 100%;
}
#block-block-3 .content {
  margin: 0 auto;
}
#block-block-3 img {
  max-width: 80px;
  height: auto;
  text-align: center;
  padding: 10px;
}
.region-footer .block-menu h2 {
  display: none;
}
.region-footer .block-menu ul {
  padding: 10px 0 0 0;
  margin: 0;
  width: 100%;
  text-align: center;
}
.region-footer .block-menu ul li {
  display: inline;
  list-style: none outside none;
}
.region-footer .block-menu ul li a {
  color: #FFF;
}

  /*** OTO MODULE NODES ***/
.node-type-oto-module .container {
  max-width: 100%;
}
@media (min-width: 1200px) {
  .node-type-oto-module .group-topics,
  .node-type-oto-module .bottom-section {
    max-width: 1170px;
    margin: 0 130px;
  }
}
.node-type-oto-module h1.page-title {
  display: none;
}
.node-type-oto-module .content {
  width: 100%;
  position: relative;
}

body.node-type-oto-module .top-section,
body.node-type-oto-module .right-sidebar {
  margin-top: 70px;
}

.node-type-oto-module .top-section {
  max-width: 70%;
}

.content-container {
  max-width: 1170px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.node-type-oto-module .right-sidebar {
  display: inline-block;
  float: right;
  max-width: 30%;
  margin: 0 100px;
}
.node-type-oto-module #header-block {
  padding: 50px 0 0 0;
}
.node-type-oto-module h2.title {
  margin: 19px 0 22px 0;
}
.node-type-oto-module #header-block .field-type-taxonomy-term-reference,
.node-type-oto-module #header-block .field-type-taxonomy-term-reference .field-items,
.node-type-oto-module #header-block .field-type-taxonomy-term-reference .field-items .even,
.node-type-oto-module #header-block .field-type-taxonomy-term-reference .field-items .odd {
  display: inline;
}
.node-type-oto-module #header-block .field-type-taxonomy-term-reference .field-item {
  padding: 5px 8px;
  margin-top: 5px;
  background-color: #3DB2BF;
  box-shadow: 0 5px 15px 0 rgba(0,0,0,0.13);
  margin-right: 10px;
}

.node-type-oto-module .topic-accordions {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: visible;
  margin-bottom: 50px;
  margin-top: 60px;
}
.node-type-oto-module .topic-accordions:before {
  content: '';
  background-color: #E6E6E6;
  position: absolute;
  left: 0;
  top: 50px;
  bottom: 50px;
  width: 100%;
}
.node-type-oto-module .group-topics {
  background-color: #FFF;
  border-top: 4px solid #38A5B1;
  width: 80%;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 15px 0;
}
.node-type-oto-module .group-topics .accordion-header {
  margin: 30px 0 30px 40px;
}
.node-type-oto-module .ui-accordion-header {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: none;
  border: none;
  border-bottom: 1px solid #DDD;
  border-radius: 0;
  font-size: 24px;
  font-weight: normal;
  color: #858585;
  padding: 20px 40px 20px;
}
.node-type-oto-module .ui-widget-content {
  color: #8C8C8C;
}
.node-type-oto-module .ui-accordion .ui-accordion-header.ui-state-active {
  border-bottom: none;
}
.node-type-oto-module .ui-accordion .ui-accordion-content,
.node-type-oto-module .field-name-field-custom-text {
  padding: 20px 50px 0;
}
.node-type-oto-module .ui-state-default a, .ui-state-default a:link,
.node-type-oto-module .ui-accordion p, .node-type-oto-module .ui-accordion li,
.node-type-oto-module .field-name-field-custom-text p, .node-type-oto-module .field-name-field-custom-text li{
  color: #8C8C8C;
}
.node-type-oto-module .ui-accordion-content {
  border: none;
}
.node-type-oto-module .ui-accordion .ui-accordion-header span.ui-icon {
  display: none;
}
.node-type-oto-module .ui-accordion-icons.ui-accordion-header:after {
  content: '';
  background: url('/sites/all/themes/aao_oto/images/plus.png') no-repeat;
  background-color: transparent;
  position: absolute;
  top: 20px;
  right: 10px;
  width: 18px;
  height: 18px;
}

.node-type-oto-module .ui-accordion-icons.ui-accordion-header.ui-state-active:after {
  background: url('/sites/all/themes/aao_oto/images/minus.png') no-repeat;
}
.node-type-oto-module .ui-accordion .ui-accordion-content .field-label {
  font-size: 18px;
  font-weight: bold;
  color: #8C8C8C;
}
.node-type-oto-module .ui-accordion .ui-accordion-content .field-label ol,
.node-type-oto-module .ui-accordion .ui-accordion-content .field-label p {
  font-size: 16px;
}
.node-type-oto-module .field-name-field-module-summary {
  margin: 0 20px 50px 50px;
}
.node-type-oto-module .field-collection-container {
  padding: 0 !important;
}
.node-type-oto-module .field-collection-view {
  border: none;
  margin: 0;
  padding: 0;
}
.node-type-oto-module .field-name-field-custom-field .field-item:last-child .field-name-field-custom-header {
  border-bottom: none;
}
.node-type-oto-module .field-name-field-custom-text {
  display: none;
}

.node-type-oto-module .field-name-field-custom-text ul li,
.node-type-oto-module .field-name-field-custom-text ol li {
  font-family: Verdana,Arial,sans-serif;
  font-size: 16px;
  font-weight: normal;
}

/** Contributor Logos **/
.page-node-137 img {
  max-width: 500px;
  height: auto;
}

/* NEW DROPDOWN STYLING*/

nav #main-menu ul li.expanded:hover .menu {
  display: block !important;
  visibility: visible !important;
}

nav #main-menu ul li.expanded {
  position: relative;
  display: inline-block;
}

nav #main-menu ul li.expanded .menu {
  display: none;
  position: absolute;
  top: 20px;
  left: 0;
  background-color: white;
  z-index: 9;
  margin: 0;
  float: none !important;
  padding: 0;
  width: 200px;
  padding-top: 20px;
}

nav #main-menu ul li.expanded > a {
  pointer-events: none;
}

nav #main-menu ul li.expanded > a:after {
  content: " »";
}

nav #main-menu ul li.expanded .menu li {
  display: block !important;
  padding: 10px 15px;
  margin: 0;
}

.oto-dropdown {
  width: 100%;
  position: relative;
}

.oto-dropdown .btn.btn--lg {
  font-family: "Whitney SSm A", "Whitney SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #4d4d4d;
  width: 400px;
  padding: 5px 5px 5px 10px;
  border: 0;
  border-radius: 0;
  background: url('/sites/all/themes/aao_oto/images/dropdown_carets.png') no-repeat right #FFF;
  background-position: 350px -4px;
  appearance:none;
  -moz-appearance:none; /* Firefox */
  -webkit-appearance:none; /* Safari and Chrome */
  text-align: left;
  font-weight: 400;
  line-height: 32px;
}

@media screen and (max-width: 767px){
  .oto-dropdown .btn.btn--lg {
    width: 100%;
    background-position: 100%;
  }
}

#header-block .oto-dropdown ul {
  list-style: none;
  margin: 0;
  background-color: white;
  position: absolute; 
  left: 0;
  top: 42px;
  z-index: 9;
  padding: 0;
  display: none;
}

#header-block .oto-dropdown ul.active {
  display: block;
}

#header-block .oto-dropdown ul li {
  display: block;
}

#header-block .oto-dropdown ul a {
  color: #4D4D4D;
  padding: 5px 15px;
  display: block;
}

body.front #block-block-4 h2 {
  display: none;
}
