/*
 * responsive.custom.css is for custom media queries that are not set via the
 * theme settings, such as cascading media queries.
 *
 * By default all the other responsive stylesheets used in Adaptivetheme use a
 * "stacking method", however cascading media queries use a waterfall method so
 * you can leverage the cascade and inheritance for all browsers that support
 * media queries.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable go to your theme settings and
 * look under the "CSS" settings tab.
 */


.mobile {
  display:none;
}

@media only screen and (max-width:1065px) {
  .front #block-views-home-banner-block {
    margin-left:20px;
  }
  .region-sidebar-second .region-inner {
    padding-right:20px;
  }
  
  #header {
    padding:22px 20px 0;
  }
}

/* banner bottom media queries and styles only */

@media only screen and (max-width:990px) and (min-width:768px), only screen and (max-width:621px) and (min-width:471px) {
  .banner-bottom div {
    margin:0 10px;
  }

  .banner-bottom {
    font-size:14px;
  }

  .banner-bottom .value {
    width:50px;
    height:20px;
  }
}

/* end of banner bottom media query */

@media only screen and (max-width:990px) {
  .view-opportunities .bef-select-as-radios .form-type-radio label {
    padding:6px 7px;
    font-size:14px;
  }
}

/* Start of Resource drop down exposed filters */
@media only screen and (max-width:931px) and (min-width:768px), only screen and (max-width:592px) {
  .view-resources .views-exposed-form select,
  .view-resources .views-exposed-form select:focus {
    font-size:12px;
    height:27px;
    padding:0px 17px 0px 3px;
    width:100%;
  }

  .view-resources .views-widget-filter-keys label {
    font-size:12px;
    padding:5px 20px 1px 8px;
  }
  
  .view-resources .views-widget-filter-keys input {
    padding-top:3px;
    padding-bottom:3px;
  }
  
  .view-resources .all-resources,
  .view-resources .all-resources:link,
  .view-resources .all-resources:visited {
    font-size:12px;
    text-align:center;
    height:27px;
    padding:4px 0;
    box-sizing: border-box;
  }
  
  .view-where-we-work .bef-select-as-radios .form-type-radio,
  .view-opportunities .bef-select-as-radios .form-type-radio,
  .view-opportunities .bef-select-as-links .form-type-bef-link{
      margin-right: 0;
      width: 32.7%;
      margin-bottom: 5px;
      text-align: center;
  }
  
  .view-where-we-work .views-exposed-form .views-exposed-widget,
  .view-opportunities .views-exposed-form .views-exposed-widget {
      padding: 0;
      width:100%;
  }
  
  .view-where-we-work .bef-select-as-radios .label-wide-js-process {
    width:49.5%;
  }
  
  .view-partners .bef-select-as-radios .form-type-radio,
  .view-partners .bef-select-as-links .form-type-bef-link{
      width: 49%;
      margin-bottom: 8px;
      margin-right: 0;
  }
  
  .view-partners .bef-select-as-radios .form-type-radio label,
  .view-partners .bef-select-as-links .form-type-bef-link a{
      font-size: 13px;
  }
  
  .view-resources #edit-submit-resources {
    padding: 6px 7px 6px;
    font-size: 13px;    
  }

}
/* End of Resrouces drop down exposed filters */


/* Discussions Search Tools */

@media only screen and (max-width: 975px) {
  #views-exposed-form-discussions-block #edit-sort-bef-combine-wrapper select {
    width:290px;
  }
}

@media only screen and (max-width: 975px) and (min-width:769px) {
  #block-views-discussions-block.enhanced .views-widget-sort-sort_bef_combine {
    float: left;
    margin-top:15px;
  }
}

@media only screen and (max-width: 825px) and (min-width:769px) {
  .region-sidebar-second .block-discussion .field-name-field-discussion-image-form label,
  .region-sidebar-second .block-discussion .form-actions .form-submit {
    font-size:16px;
  }
}
/*
 * Desktops/laptops and up
 */
/* @media only screen and (max-width: 1025px) {} */

@media only screen and (max-width: 855px) and (min-width:768px) {
  .region-sidebar-second .share-innovation .block-content,
  .region-sidebar-second .stay-updated .block-content {
    padding:30px 15px 5px;
  }

  .region-sidebar-second .stay-updated .block-content {
    padding-top:15px;
  }
  
  .nav ul.menu li a{
      font-size: 14px;
  }
}

@media only screen and (max-width:936px){
  .nav ul.menu li a {
    font-size: 14px;
    padding:18px 9px 15px 8px;
  }
}

@media only screen and (max-width: 875px) {
  .nav ul.menu li a {
    font-size: 13px;
    padding:18px 6px 15px 6px;
  }
}

@media only screen and (max-width: 965px) and (min-width:876px) {
    #logo img{
        width: 326px;
    }
}
@media only screen and (max-width: 875px) and (min-width:769px) {
    #logo{
        margin-top: 2px;
    }
    #logo img{
        width: 265px;
    }
    .region-header .block-menu .menu li{
        padding: 0 7px;
    }
    .region-header .block-menu .menu li a{
        font-size: 12px;
    }
    .region-header .social-media-header{
        margin-top: 2px;
        margin-left: 5px;
    }
    .region-header .social-media-header .block-content a img{
        width: 22px !important;
        height: auto !important;
    }
    #block-menu-menu-utility-menu{
        margin-top: 1px;
    }
}

@media only screen and (max-width: 820px) {
  /* footer blocks */
  #block-block-2 {
    clear:both;
  }
  
  .region-footer-bottom .region-inner {
    position:relative;
  }
  
  #block-block-3 {
    position:absolute;
    top:50px;
    right:0;
  }
}


@media only screen and (max-width: 796px) {
  .nav ul.menu li a {
    font-size: 12px;
  }
}

@media only screen and (max-width: 790px) and (min-width:769px) {
  .banner-top .field-type-text {
    font-size:22px;
  }
}

/*
 * Tablet sizes and up
 */
@media only screen and (max-width: 768px) {
  /*Header Styles */
  #header{
    padding-top: 78px;
  }

  #header #block-google-appliance-ga-block-search-form,
  #header #block-menu-menu-utility-menu,
  #block-system-user-menu,
  #header #branding,
  #menubar-wrapper,
  #logo a,
  #header #block-block-8{
    display: none;
  }

  #logo a.mobile{
    display: block;
    padding: 18px;
  }

  #logo a.mobile img{
    display: block;
  }

  #block-gtranslate-gtranslate{
    float: none;
    margin-left:15px;
  }

  /* End Header Styles */

  #breadcrumb {
    display:none;
  }
  
  /* Start Sidebar Styles */
  .one-sidebar .sidebar {
    padding-top:32px;
  }
  .section-idds.one-sidebar .sidebar{
      padding-top: 55px;
  }
  
  /* End Sidebar Styles */
  
  /* Secondary Region/Where We Work */
  
  .we-work-secondary-wrap{
      display: none;
  }
  
  .we-work-content-title{
      display: block;
  }
  
  /* End Secondary */
  
  /* Start of Main Content Region */
  .not-front #main-content {
    padding:0;
  }

  #breadcrumb,
  .not-front #main-content-header,
  .section-blog-news .view-blog-news-events .views-field-nothing,
  .section-blog-news .view-blog-news-events .views-field-title,
  .section-blog-news .view-blog-news-events .views-field-field-tags,
  .section-blog-news .view-blog-news-events .views-field-body,
  .section-blog-news .view-blog-news-events .view-content,
  .section-about-idin .card-wrapper.people {
    padding-right:15px;
    padding-left:15px;
  }
  
  .section-blog-news .attachment-before .view-blog-news-events .view-content {
    padding:0;
  }
  
  .section-blog-news .featured .views-field.views-field-field-photo img {
    width:100%;
    height:auto;
  }
  
  .card-wrapper.resource {
    background-position:18px 22px;
    padding-left:162px;
  }

  .views-row-first .card-wrapper.people,
  .views-row-first .card-wrapper.partner,
  .views-row-first .card-wrapper.resource {
    border-top:0;
  }
  /* End of Main Content Region */

  /* Start retheme exposed filters */
    /* section resources exposed filters */
    .section-resources .view-filters {
      height: 75px;
      border-bottom: 1px solid #e0e0e0;
      border-top: 1px solid #e0e0e0;
      padding: 22px 15px;
      box-sizing:border-box;
    }

    .section-resources .all-resources,
    .section-resources .all-resources:link,
    .section-resources .all-resources:visited {
      margin-top:0;
    }

    .section-resources .views-exposed-form .views-widget-filter-field_resource_type_tid,
    .section-resources .views-exposed-form .views-widget-filter-field_audience_tid {
      padding-top:0;
    }
    /* end section resources exposed filters */
    
    /* section blog and news exposed filters */
    .section-blog-news .view-blog-news-events .view-filters {
      padding-left:15px;
      padding-right:15px;
      overflow:hidden;
      border-top:1px solid #e0e0e0;
      margin-top:22px;
    }
    
    
    .section-blog-news .view-blog-news-events .views-exposed-form .views-exposed-widget {
      padding:0;
      float:none;
    }
    
    .section-blog-news .view-blog-news-events .bef-select-as-links {
      margin-top:25px;
      margin-bottom:25px;
    }
    .view-projects-current-studies .bef-select-as-links a,
    .section-blog-news .view-blog-news-events .bef-select-as-links a{
        font-size: 14px;
    }
    
    /* end of section blog and news exposed filters */
    
    /* section staff idin 
    .section-about-idin #block-system-main {
      padding:0 15px 15px;
      border-bottom:1px solid #e0e0e0;
      margin-bottom:0;
    }
    */
    .front #content{
        padding-left: 0;
        padding-right: 0;
    }
    
    .front #block-views-home-banner-block {
      margin-left:0;
    }
    
    .front #content h2.block-title{
        padding-left: 18px;
    }
    
    #content{
        padding-left: 15px;
        padding-right: 15px;
    }

    /*
    #content #block-system-main,
    #content #block-views-projects-current-studies-block,
    #content #block-views-people-block-2,
    #content #block-views-partners-block-1{
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-views #content #block-system-main{
        padding-left: 0;
        padding-right: 0;
    }
    */
    /* section what we do 
    .section-what-we-do #content {
      padding-left:15px;
      padding-right:15px;
    }
    */
  /* End of retheme exposed filters */
  
  .anchor-to {
    display:block;
  }

}
/* end 768 */

@media only screen and (max-width:675px) {
  #block-views-discussions-block.enhanced .views-widget-sort-sort_bef_combine {
    clear:both;
    float:left;
    margin-top:15px;
  }
}

@media only screen and (max-width: 592px){
  .view-directory .all-resources,
  .view-directory .all-resources:link,
  .view-directory .all-resources:visited {
    font-size:12px;
    text-align:center;
    height:27px;
    padding:4px 0;
    box-sizing: border-box;
  }
  
  .view-directory .views-exposed-form select,
  .view-directory .views-exposed-form select:focus {
    font-size:12px;
    height:27px;
    padding:0px 17px 0px 3px;
    width:100%;
  }

  .view-directory .views-widget-filter-search_api_views_fulltext label {
    font-size:12px;
    padding:5px 20px 1px 8px;
  }
  
  .view-directory .views-widget-filter-search_api_views_fulltext input {
    padding-top:3px;
    padding-bottom:3px;
  }
    
  .view-directory #edit-submit-directory {
    padding: 6px 7px 6px;
    font-size: 13px;    
  }
}

@media only screen and (max-width: 480px) {
  /* 
   * Float Region Blocks - custom media query CSS example:
   * 
   * Float regions blocks is an Extension you can enable in the appearance
   * settings for your theme. This feature allows you to automatically float
   * blocks in regions, you can switch it on and off depending on your
   * requirements. For design purposes you many want to remove the floats for
   * devices where the entire theme is just one column - for example small
   * mobile phones. The following CSS is inside the custom media query:
   *
   *   @media only screen and (max-width: 480px){}
   *
   * This will target devices with a maximum width of 480px - most small phones.
   * In these smaller screen sizes we can remove the float and widths so all
   * blocks stack instead of displaying horizonally. The selector used is an
   * "attribute selector" which will match on any float block class. Use your
   * inspector or Firebug to get the classes from the page output if you need
   * more granular control over block alignment and stacking.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }
  
  /* footer blocks */
  #block-block-1,
  #block-block-2,
  #block-block-3 {
    clear:both;
    float:none;
    width:100%;
    margin-right:0;
  }
  
  #footer #block-block-2 {
    margin:15px 0;
  }
  
  .region-footer-bottom .region-inner {
    padding:0;
    border-top:none;
    margin-left:15px;
    margin-right:15px;
  }
  
  #block-block-3 {
    position:relative;
    top:0;
  }
  
  .region-footer {
    padding:17px 15px;
    border-bottom:1px solid #c2c2c2;
    margin-bottom:20px;
  }
  
  .region-footer ul.menu li.first {
    margin-left:0;
  }
  .banner-text-cell {
    padding:5px;
  }

  .banner-bottom {
    display:none;
  }
  
  .view-where-we-work .bef-select-as-radios .form-type-radio,
  .view-opportunities .bef-select-as-radios .form-type-radio,
  .view-opportunities .bef-select-as-links .form-type-bef-link {
    width: 32%;
  }
  
  .view-where-we-work .bef-select-as-radios .label-wide-js-process {
    width:48.5%;
  }
  
  .anchor-to a {
    width:100%;
  }
  
/*  #views-exposed-form-discussions-block #edit-sort-bef-combine-wrapper {
    width:89%;
  }*/
  
/*  #views-exposed-form-discussions-block #edit-sort-bef-combine-wrapper select {
    width:100%;
  }*/
  
  #views-exposed-form-discussions-block .views-submit-button {
    width:8%;
  }
  .field-name-field-accomplishments .field-item {
    width: 55px;
    padding-top: 55px;
  }
  .user-full-name-link a {
    font-size: 26px;
  }
  
}

@media only screen and (max-width:435px) {
  
  #block-views-home-banner-block {
    margin-bottom:10px;
  }

  .banner-top {
    margin-bottom:0;
  }
  .banner-top .field-type-text {
    font-size:20px;
  }
  
  .front #content section {
    padding:0;
  }

  #content h2.block-title {
    font-size:22px;
  }

  .opportunities-card .card-content {
    padding:15px 15px 0px;
  }

  .opportunities-card {
    padding:0;
  }

  .view-opportunities {
    padding-top:20px;
  }

  .one-sidebar .sidebar {
    padding-top:32px;
  }

  .region-sidebar-second .region-inner {
    padding:0;
    margin:0;
  }

  .block-blog-news-events-block-1 {
    border-bottom:1px solid #ababab;
    margin-bottom:30px;
  }

  .card-wrapper,
  .card-wrapper.blog-news-card {
    border:none;
    box-shadow: none;  
  }

  .where-we-work-card,
  .discussion-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0px 0px 5px #e0e0e0;
    margin-bottom:17px;
  }
  
  .card-wrapper.blog-news-card {
    margin-bottom:0;
    padding:10px 18px;
  }

  .blog-news-card .card-photo,
  .blog-news-card .card-content {
    float:none;
    width:100%;
  }

  .card-photo {
    margin-bottom:11px;
  }

  .card-photo img {
    width:100%;
    display:block;
  }

  .field-name-field-tags,
  .card-content .field-name-body{
    display:none;
  }
  
  .where-we-work-card .field-name-body,
  .discussion-card .field-name-body {
    display:block;
  }
  
  .where-we-work-card .field-name-body p,
  .discussion-card .field-name-body p {
    line-height:24px;
  }
  
  .where-we-work-card .card-content,
  .discussion-card .card-content {
    padding:20px 15px 0;
  }
  
  .discussion-card .comment-links {
    padding:0 15px;
  }
  
  .view-where-we-work .bef-select-as-radios .form-type-radio label {
    padding:6px 15px;
  }
  
  .card-info {
    font-size:13px;
  }

  .view-blog-news-events .views-row-last {
    margin-bottom:7px;
  }

  .region-sidebar-second .share-innovation .block-content,
  .region-sidebar-second .stay-updated .block-content {
    padding-left:12px;
    padding-right:12px;
  }
  
  .section-blog-news .view-blog-news-events .view-content {
    padding:0;
  }
  
  .section-about-idin .card-photo {
    width:83px;
  }
  
  .section-about-idin .card-content h2 {
    font-size:16px;
  }
  
  .section-about-idin .card-content .field-name-field-title {
    font-size:13px;
  }
  
  .section-about-idin .card-content .field-name-field-email {
    font-size:14px;
  }
  
  .section-about-idin .card-bio p {
    line-height:24px;
  }
      
  .card-wrapper.projects-studies .card-content{
      padding-left: 0;
      padding-right: 0;
  }
  .node-full .node-type,
  .node-full .field-name-field-date,
  .node-full .field-name-field-author{
      font-size: 12px;
  }  

  .view-projects-current-studies .bef-select-as-radios .form-type-radio label,
  .view-projects-current-studies .bef-select-as-links .form-type-bef-link a{
      padding: 6px 18px;
  }
  
  .view-projects-current-studies .views-exposed-widgets {
    margin-bottom:0;
  }
}
/* end 435 */

/*
 * Smalltouch sizes and up
 */
@media only screen and (max-width:385px) {

  h1#page-title {
    font-size:28px;
    line-height:28px;

  }

  .card-wrapper.resource {
    background-size: 45px 45px;
    background-position: 15px 28px;
    padding-top:100px;
    padding-left:15px;
    padding-bottom:30px;
  }
  .view-where-we-work .bef-select-as-radios .form-type-radio label,
  .view-opportunities .bef-select-as-links .form-type-bef-link a{
      padding: 6px 6px;
      font-size: 12px;
  }
  #block-system-main .search-google-appliance-search-form input[type=text]{
    max-width: 155px;
  }
  #block-menu-menu-footer-menu{
      float: none;
  }
  
  .where-we-work-card .card-content p {
    line-height:26px;
  }
  
  #block-block-4{
      float: none;
      width: auto;
      margin-top: 10px;
  }  
  .view-projects-current-studies .bef-select-as-radios .form-type-radio label,
  .view-projects-current-studies .bef-select-as-links .form-type-bef-link a{
      font-size: 12px;
  }
}

@media only screen and (max-width: 370px) {

  .banner-top .field-type-text {
    font-size: 19px;
    line-height: 24px;
  }
  
  .card-wrapper .table-cell {
    display:block;
    float:none;
    width:100%;
  }
  
  .section-about-idin .block-people-block-1 .table-wrap {
    width:100%;
  }
  
  .section-about-idin .block-people-block-1 .card-wrapper .table-cell {
    float:left;
    width:auto;    
  }
  
  .section-about-idin .block-people-block-1 .card-wrapper .table-cell.card-content {
    width:65%;
    margin-left:4%;
  }
  
  .section-about-idin .block-people-block-1 .card-wrapper .table-cell.card-photo {
    width:83px;
  }
  
  .card-wrapper .card-image {
    margin-bottom:15px;
  }

  .card-wrapper .card-image img {
    width:100%;
    height:auto;
  }

  .card-wrapper.people .card-content,
  .card-wrapper.partner .card-content,
  .card-wrapper.what-we-do .card-content {
    padding:0;
  }

  .card-wrapper.what-we-do h2,
  .card-wrapper.what-we-do .table-wrap {
    padding-left:0;
  }

  .view-resources .views-exposed-form select option {
    padding:2px 0;
  }

  .section-blog-news .view-blog-news-events .bef-select-as-links .form-type-bef-link {
    width:77px;
    height:26px;
    margin-right:6px;
    box-sizing:border-box;
    float:left;
  }
  
  .section-blog-news .view-blog-news-events .bef-select-as-links #edit-type-all {
    width:36px;
  }
  
  .section-blog-news .view-blog-news-events .bef-select-as-links .form-type-bef-link a {
    font-size:12px;
    padding:2px 0;
    text-align:center;
  }
  
  .view-partners .bef-select-as-links .form-type-bef-link{
      width: 48%;
      display: table;
      float: left;
      margin-right: 2%;
  }
  .view-partners .bef-select-as-links .form-type-bef-link a{
      display: table-cell;
      height: 40px;
      vertical-align: middle;
      text-align: center;
  }
} 

@media only screen and (max-width:365px) {
  #views-exposed-form-discussions-block #edit-keys-wrapper {
    width:250px;
  }
  
  #views-exposed-form-discussions-block #edit-keys-wrapper input {
    max-width:222px;
  }
  
  .view-opportunities .bef-select-as-radios .form-type-radio label {
    padding:6px;
    font-size:13px
  }  
}

@media only screen and (max-width: 330px) {
    
    .banner-top .field-type-text{
        font-size: 16px;
        line-height: 20px;
    }
    .banner-top .field-type-link-field a{
        padding: 10px 40px;
        font-size: 16px;
    }
    .node-full .node-type,
    .node-full .field-name-field-date,
    .node-full .field-name-field-author{
      font-size: 11px;
    } 
}

/*
 * Really small screens and up
 */
/* @media only screen and (max-width: 220px) {} */
