/* This File Contains All Responsive CSS */

/* Custom Drop-Down
================================================== */
#navigation .selector option {
    background: #eee;
    -webkit-appearance: none;
    padding: 5px;
}

#navigation .selector,
#navigation .selector span {
    cursor: pointer !important;
    -webkit-font-smoothing: antialiased;
}

#navigation .selector,
#navigation .selector * {
    margin: 0;
    padding: 0;
}

#navigation .selector select {
    top: 0px;
    left: 0px;
}

#navigation .selector {
    width: 100%;
    font-size: 12px;
    font-weight: bold;
}

#navigation .selector span:after {
    padding-left: 5px;
    padding-right: 5px;
    content: "\f078";
    font-family: 'FontAwesome';
}

#navigation .selector span {
    cursor: pointer;
}

#navigation .selector {
    height: 30px;
    line-height: 30px;
    display: -moz-inline-box;
    display: inline-block;
    vertical-align: middle;
    zoom: 1;
    *display: inline;
}

#navigation .selector select:focus {
    outline: 0;
}

#navigation .selector {
    position: relative;
    padding-left: 10px;
    overflow: hidden;
}

#navigation .selector span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#navigation .selector select {
    position: absolute;
    height: 35px;
    background: none;
    width: 97%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    border: 0 !important;
}

/* General
================================================== */
img {
    max-width: 100%;
}

/*hide redundant menu*/
#navigation select {
    display: none;
    width: 100% !important;
}

#navigation .selector {
    display: none;
    margin-top: 5px;
}

/* Blocks
================================================== */

/* -- Popular Articles -- */
.popular ul {
    list-style-type: none;
    margin-left: 0;
}
.popular ul > li {
    margin-bottom: 1.6923076923076923em;
}

/* -- Banners -- */
.banners ul {
    list-style-type: none;
    margin-left: 0;
}
.banners ul > li {
    margin-bottom: 0.8461538461538461em;
}
.banners img {
    display: block;
}

/* -- Related articles -- */

.related > h2 {
  margin-bottom: 22px;
}

.related .views-row {
    margin-bottom: 1em;
}
.related .group-left {
    width: auto;
}

@media all and (min-width: 768px) {
    .related .group-left {
        width: 100%;
    }
    .related .views-row {
        width: 49%;
        float: left;
    }
    .related .views-row-odd {
        margin-right: 2%;
    }

    .related .group-right {
        width: 46%;
    }
}
@media all and (min-width: 980px) {
    .related .group-right {
        margin-left: 4%;
    }
    .related .group-left {
        width: 50%;
    }
}


/* Apply To All Responsive Layouts
================================================== */
@media only screen and (device-width: 768px) {

    #header {
        padding-bottom: 5px;
    }

    .region-header {
        position: static;
        float: left;
        clear: both;
    }

    .region-header .block {
        margin-bottom: 0px;
        padding: 0px;
    }

}

/* Mobile only */
@media only screen and (min-width: 0px) and (max-width: 480px) {

  #logoimg img {
    margin-left: -20px;
  }

  #header {
    padding-top: 10px;
  }
  
  #logoimg img.hide-mobile, .hide-mobile{
    display:none;
  }
  
}

/* Large devices */
@media only screen and (min-width: 980px) {
  #header {
    padding-top: 20px;
    padding-bottom: 5px;
  }
   #logoimg img.hide-desktop, .hide-desktop{
    display:none;
  }
}


/* #Tablet (Portrait)
================================================== */

/* Note: Design for a width of 740px */
@media only screen and (min-width: 768px) and (max-width: 980px) {

    #wrap {
        width: 680px;
    }
  .hide-desktop{
    display:none;
  }

    #header {
        padding-bottom: 5px;
        padding-top: 20px;
    }

    .region-header {
        position: static;
        float: left;
        clear: both;
        width: 100%;
    }

    .region-header .block {
        margin-bottom: 0px;
        padding: 0px;
    }

    ul.menu li {
        width: 100%;
    }

    .region-header .block-rnw-blocks {
        float: left;
    }

    .block-rnw-blocks .social_media {
        margin: 10px 0px 10px 5px;
        width: 70px;
    }

    .view .node .group-left,
    .view .node .group-right,
    .view .node.ds-2col-stacked .group-left,
    .view .node.ds-2col-stacked .group-right{
        width: 100%;
    }
}

@media only screen and (min-width: 960px) and (max-width: 1040px) {

  #wrap {
    padding: 0px 5px;
  }
}

@media only screen and (min-width: 960px) and (max-width: 990px) {8

  #wrap {
    padding: 0px;
  }
}


/*  #Mobile (Portrait)
================================================== */

/* Note: Design for a width of 290px */
@media only screen and (max-width: 767px) {

    body.front .view.promoted .node.ds-2col {
        width: 100%;
    }

    #logo {
        width: 100%;
    }

    /*hide*/
    .flexslider .caption {
        display: none;
    }

    /*display dropdown nav*/
    #navigation .selector,
    #navigation select {
        display: none;
    }

    ul.menu li {
        width: 100%;
    }

    #wrap {
      width: 300px;
      padding: 0 10px;
    }


    body.sidebar-first #content,
    #content,
    #sidebar {
        width: 100%;
    }

    body.front .node .group-left,
    body.front .node .group-right,
    body.front .node.ds-2col-stacked .group-left,
    body.front .node.ds-2col-stacked .group-right{
        width: 100%;
    }

    .node h2.title {
        margin-bottom: 10px;
    }

    #sidebar {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 2.2px solid #382e2c;
    }

    .comment .attribution, .comment .comment-text {
        display: inline-block;
    }

    #copyright, #back-to-top {
        float: none;
        width: 100%;
        text-align: center;
    }

    #header {
        padding-bottom: 5px;
    }

    .region-header {
        position: static;
        float: left;
        clear: both;
    }

    .region-header .block {
        margin-bottom: 0px;
        padding: 0px;
    }

    .region-header .block.block-service-links {
        padding: 6px 0px 6px 0px;
        margin-right: 5px;
    }

    .block-rnw-blocks .social_media_header {
        float: left;
        width: 40px;
        margin: 0px 0px 0px 10px;
    }

    div.node .group-meta {
        width: 240px;
        margin: 0px 10px 10px 0px;
        border-bottom: 1px solid #DDDDDD;
        padding-bottom: 10px;
        padding-right: 10px;
    }

    .view-mode-search_result .group-image,
    .node-teaser .group-image {
        width: 240px;
    }
}

/* #Mobile (Landscape)
================================================== */

/* Note: Design for a width of 420px */
@media only screen and (min-width: 480px) and (max-width: 767px) {

    #wrap {
        width: 420px;
    }
   #logoimg img.hide-tablet, .hide-tablet{
    display:none;
  }

    .responsive-clear {
        clear: both;
    }

    #header {
        padding-bottom: 5px;
    }

    .region-header {
        position: static;
        float: left;
        clear: both;
        width: 100%;
    }

    .region-header .block {
        margin-bottom: 0px;
        padding: 0px;
    }

    .region-header .block.block-service-links {
        padding: 6px;
        margin-right: 15px;
    }

    .region-header .block-rnw-blocks {
        float: left;
    }

    .region-header .block-rnw-blocks .social_media_header {
        float: left;
        width: 40px;
        margin: 0px 10px 0px 0px;
    }

    .block-rnw-blocks .social_media {
        margin: 10px 15px 10px 5px;
    }
}

@media only screen and (min-width: 980px) {
    .region-header .block-rnw-blocks {
        margin-right: 1em;
    }
}
