body, html {
    width: 100%;
    font-family: Verdana, Tahoma, Arial;
    text-align: left;
    -webkit-background-origin: padding-box;
    background-origin: padding-box;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-background-size: auto auto;
    background-size: auto auto;
}

h1 {
    font-size: 16px !important;
    margin: 24px 0 18px !important;
}

h1 i {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: text-bottom;
    line-height: 18px;
    color: #FFA000;
}

h3 {
    margin: 0
}

a {
    border-bottom: 1px solid transparent;
}

.agray {
    font-weight: 500;
    font-size: 16px;
}

#header {
    width: auto !important;
    overflow: visible !important;
}

#header .logo {
    height: auto !important;
    overflow: visible !important;
}

#header .logo p {
    text-transform: uppercase;
    margin-top: 8px;
    font-size: 11px;
    color: #e6e6e6;
    letter-spacing: 0.5px;
}

a:hover {
    border-bottom: 1px solid;
}

.header-background {
    /*background-color: #0277BD;*/
    background-image: url('/images/back1_optimized.png');
    background-position: 50% 15%;
    background-size: cover;
    border-bottom: 1px solid #B0BEC5;
    /*    position: relative;
    overflow: hidden;*/
    padding: 24px 0;
    margin-bottom: 18px;
    box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.3);
    image-rendering: optimizeSpeed;
    /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;
    /* Firefox                        */
    image-rendering: -o-crisp-edges;
    /* Opera                          */
    image-rendering: -webkit-optimize-contrast;
    /* Chrome (and eventually Safari) */
    image-rendering: pixelated;
    /* Chrome */
    image-rendering: optimize-contrast;
    /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;
}

.navbar-toggler {
    z-index: 2;
    position: relative;
    color: #fff;
    cursor: pointer;
}

.header-background .row {
    z-index: 2;
    position: relative;
}


/*.background-overlay {
    position: absolute;
    background-image: url('/images/background.svg');
    width: 300%;
    height: 300%;
    left: -150%;
    top: 0;
    opacity: 0.05;
    transform: rotateZ(-15deg);
    z-index: 1;
}*/

.background-overlay {
    position: absolute;
    background-color: #0277BD;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.9;
    z-index: 1;
}

.your-place {
    color: #fff;
    font-size: 14px;
    line-height: 28px;
    text-align: right;
    display: block;
}

.your-place b {
    border-bottom: 1px dashed;
}

.btn-simple {
    color: #fff;
    border-bottom: 1px dashed;
    display: inline-block;
}

.btn-simple i {
    margin-right: 4px;
}

#header .col-md-3 {
    margin-top: 24px;
    text-align: right;
}

#header .col-md-3:first-child {
    border-right: none;
    text-align: left;
}

#header .col-md-3 h3 {
    text-align: right;
}

#header .col-md-3 h3 a {
    font-size: 16px;
    letter-spacing: 0.9px;
    color: #fff;
    display: block;
}

#header .col-md-3 h3 a i {
    font-size: 24px;
    margin-right: 10px;
    color: #FFD54F;
    /*float: left;*/
}

#header .col-md-3 h3 a:hover {
    color: #0277BD;
    background-color: #fff;
    box-shadow: 0px 0px 0px 8px #fff;
    border: none;
    border-bottom: 1px solid transparent;
}

#header .col-md-3 h3 a:hover i{
  color: #FFA000;
}

#header .col-md-3 ul {
    margin-top: 8px;
    list-style-type: none;
}

#header .col-md-3 ul.last {
    float: right;
    max-width: 50%;
}

#header .col-md-3 ul li a {
    font-size: 13px;
    color: #fff;
    line-height: 13px;
    letter-spacing: 0.25px;
}

#header .col-md-3 ul li a:hover {
    /*color: #fff;
  background-color: #0277BD;
  box-shadow: 0px 0px 0px 8px #0277BD;*/
    border-bottom: 1px solid;
}

#header .band {
    padding: 0;
}

#header .menu {
    height: 95px;
}

#header .menu .col1 {
    padding: 0;
}

#header .menu .col2 {
    padding: 0;
    float: none;
}

#header .menu .col3 {
    padding: 0;
    float: none;
}

#header .menu .col4 {
    padding: 0;
    float: none;
}

#header .menu ul {
    margin: 0;
}

#header .menu ul li {
    line-height: 14px;
}

#content {
    width: auto !important;
    padding: 0 !important;
}

#content .block_left {
    float: none !important;
    width: auto !important;
}

#content .news {
    margin-bottom: 10px;
    float: none;
}

#content .newsblock .photos {
    width: auto;
    margin-right: auto;
    height: 320px;
    float: none;
    overflow: hidden;
    width: 100%;
    position: relative;
}

#content .newsblock .photos .photo {
    width: auto;
    height: 320px;
}

#content .newsblock .overlay {
    width: auto;
}

#content .newsblock .list {
    position: relative;
    width: auto;
    height: auto;
    float: none;
    z-index: 2
}

#content .newsblock .list .preview {
    position: relative;
    height: auto;
    text-align: left;
    cursor: pointer;
    width: 24%;
    display: inline-block;
    vertical-align: top;
    padding: 8px 0;
    border-right: 1px dashed #eaeaea;
}

#content .newsblock .list .triangle {
    margin-top: -49px;
    transform: rotate(90deg);
    left: 50%;
    margin-left: -9px;
}

#content .newsblock .list .controls {
    padding: 12px 0px 0px 20px;
    margin-top: 8px;
    text-align: right;
}

#content .blogs {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    background: none !important;
}

#content .videos, #content .forums {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}

#content .videos .controls, #content .forums .controls {
    margin: 0;
    height: auto !important;
    padding: 0 !important;
    border-bottom: none !important;
}

#content .articles {
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

#content .articles .controls {
    height: auto !important;
    padding: 0 !important;
    overflow: auto !important;
}

#content .articles .controls .agray {
  line-height: inherit;
  padding-top: 3px !important;
  position: absolute;
  right: 16px;
  top: 22px;
}

#content .articles .separator {
    height: 24px;
}

#content .articles .recom .overlay {
    max-width: 90%;
}

#content .articles .recom {
    width: 100%;
}

#content .articles .recom .item {
    max-width: 720px;
    width: auto;
}

#content .block_right {
    width: auto;
    overflow: auto;
    float: none
}

#content .articles .controls h1 {
    width: 100%;
}

.calendar .event {}

.calendar .event .date {
    height: 100%;
    background: #0277BD;
    color: #fff;
    margin-bottom: 0;
    padding: 12px;
    display: inline-block;
    vertical-align: top;
}

.calendar .event .date .day {
    font-size: 24px;
    width: 100%;
    display: block;
    line-height: 20px;
    text-align: center;
    margin-top: 8px;
}

.calendar .event .date .month {
    width: 100%;
    display: block;
    text-align: center;
}

.calendar .event .text {
    padding-left: 10px;
    padding-bottom: 0;
    display: inline-block;
    width: calc(100% - 70px);
}

.calendar .event .text a {
    font-size: 16px;
    line-height: 17px;
    font-weight: bold;
}

.calendar .event .text p {
    line-height: 13px;
    margin-top: 8px;
    padding: 0;
}

.block_border {
    background: #fff;
    overflow: hidden;
}

.block_border .block_content {
    padding: 8px 0px;
}

.block_border img {
    margin-bottom: 16px;
}

.block_border a {
    display: block;
    font-weight: bold;
    font-size: 16px;
    line-height: 18px;
}

.block_border p {
    font-size: 14px;
    color: gray;
}

.forums table {
    background: #ECEFF1;
}

.forums .controls {
    background: #fff;
}

.logo {
    padding-top: 5px !important;
    padding-bottom: 12px !important;
    margin-top: -26px !important;
    text-align: left !important;
}

.logo img {
    margin-left: -43px;
    -webkit-filter: drop-shadow( 1px 2px 2px rgba(0, 0, 0, 0.25));
}

.logo button{
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.logo button i{
  font-size: 16px;
}

.logo button:hover{
  background:#fff;
  color: #0277BD;
}

.search-warning {
    color: #58390c !important;
    font-size: 14px;
    line-height: 12px;
}
.btn-warning:hover {
    color: #fff !important;
    background-color: #ec971f !important;
    border-color: #eb9316 !important;
}

.searcher {
    max-width: 60%;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 8px;
    float: left;
}

.searcher form input {
    display: inline-block !important;
    float: left !important;
    width: calc(100% - 54px) !important;
}

#header .col-md-3:first-child {
    margin-top: 0
}

.collapse.in {
    clear: both;
}

#new-news hr {
    display: none;
}

.flex-card {
    background-image: url("https://www.justleadershipusa.org/wp-content/plugins/post-grid/assets/frontend/css/images/placeholder.png");
    overflow: hidden;
    background-color: lightgrey;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-position: 500% 500%; */
    background-position: 50% 50%;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizequality;
    color: white;
    border-radius: 4px;
    position: relative;
    margin: 0;
    transition: all 100ms ease-in-out 25ms;
    cursor: pointer;
}

.flex-card::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.flex-card:hover .blue-gradient {
    background-color: rgba(2, 136, 209, 0.80);
}

.flex-card h2 {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.35px;
    z-index: 2;
}

.icon_set {
    position: relative;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.icon_set i {
    font-size: 20px;
    vertical-align: middle;
    margin-left: 0;
}

.icon_set span {
    font-size: 16px;
    vertical-align: middle;
    margin: 0 6px 0 4px;
}

.card_search_result i {
    margin-left: 8px;
    vertical-align: middle;
    font-size: 24px;
}

.blue-gradient {
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.flex-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
    width: 100%;
}

.card_search_result {
    display: none;
    position: absolute;
    font-size: 14px;
    text-transform: uppercase;
    bottom: 0;
    text-align: right;
    padding: 8px 16px;
    right: 0;
    width: 100%;
    z-index: 2;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 767px) {
    .flex-card{
      margin: 15px 0;
    }
    .flex-card:last-child{
      margin: 15px 0 0;
    }
    #new-news p{
      margin-bottom: 16px !important;
    }
    #new-news .col-md-4:last-child p{
      margin-bottom: 0 !important;
    }
    #content .blogs .blogpost a img{
      border-left: 15px solid #fafafa !important;
      border-right: 15px solid #fafafa !important;
    }
    .logo img {
        width: 60%;
        margin: 16px 0 0;
    }
    #header .logo p {
        text-align: center;
    }
    #header .col-md-3 {
        padding: 0 30px;
    }
    #header .col-md-3 ul.last {
        max-width: 35%;
    }
    .your-place {
        width: 100%;
        text-align: center;
        display: block;
        margin-bottom: 8px;
    }
    #content .articles .controls .agray{
          padding-top: 15px !important;
    }
    .carousel-inner>.carousel-item>img {
        height: 320px !important;
    }
    .search-warning {
        margin-right: 8px;
    }
    .enter {
        margin: 8px;
        display: inline-block;
    }
    #header .col-md-3 ul li a {
        font-size: 16px;
        line-height: 24px;
    }
    .logo {
        margin-top: -36px!important;
    }
    #header .col-md-3:first-child {}
    #main {
        margin-top: 150px;
    }
    .header-background {
        padding: 24px 0 0;
    }
    .logo {
        width: 80%;
        z-index: 2;
        position: relative;
        float: left;
    }
    .navbar {
        position: fixed;
        right: 0;
        left: 0;
        top: 0;
        z-index: 1030;
    }
    h1 {
      /* background-color: #006aa5; */
      /* color: #fff !important; */
      overflow: visible;
      padding: 15px !important;
      margin: 10px 0;
      /* border-bottom: 1px dashed #2196F3;
      border-top: 1px dashed #03A9F4;*/
    }
    #content .blogs {
        margin: 0 -15px 24px;
        overflow: hidden;
        padding: 0;
    }
    #content .blogs h1 {
      margin: 24px 15px 18px !important;
    }
    h1 a {
        line-height: 20px;
    }
    .agray {
        color: #03A9F4 !important;
    }
    #new-news hr {
        margin-bottom: 24px;
        border-color: #CFD8DC;
        margin-top: -8px;
        visibility: visible;
    }
    .blogs .agray {
        color: #0277BD
    }
    #content .articles .separator {
        display: none;
    }
    .flex-card::before {
        content: "";
        display: block;
        padding-top: 75%;
    }
}

.articles h1 {}

.logo.hidden-md-up p {
    margin: 12px 16px 4px;
    color: #efefef;
    font-size: 12px;
    width: 100%;
    text-transform: uppercase;
}

.mobile-menu {
    padding-bottom: 16px;
}

.mobile-menu div {
    margin: 8px 16px;
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    color: #fff;
}

.mobile-menu div i {
    margin-right: 8px;
    font-size: 20px;
}

.collapsing {
    opacity: 0
}

#new-news .block_border a {
    padding: 0 0 8px;
    line-height: 19px;
}

#new-news .block_border a:hover {
    border: none;
    border-bottom: 1px solid transparent;
    color: #FF8F00;
}

#new-news .block_border a span {
    margin-right: 8px;
    position: relative;
}

#content .calendar {
    width: auto;
}

#content .calendar .date {
    width: 81px;
    height: 70px;
}

#content .calendar .date .month {
    margin-top: -6px;
    margin-bottom: 8px;
    display: block;
}

#footer {
    width: auto;
    padding: 16px 10px 10px 10px;
    margin-top: 24px;
}

#common_views .block_border a {
    font-weight: bold;
}

.carousel-inner>.carousel-item>a>img, .carousel-inner>.carousel-item>img, .img-fluid {
    display: block;
    /* max-width: 100%; */
    height: auto;
    object-fit: cover;
    /*height: 320px;*/
    width: 100%;
}

.carousel-caption {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    bottom: 0;
    padding: 16px 24px;
}

.carousel-indicators {
    bottom: -4px;
    right: 0;
    text-align: right;
    width: 100%;
    margin-left: -60%;
}

.carousel-caption h3 {
    color: #fadb33;
    font-size: 14px;
    font-weight: bold;
}

.star2.on {
    background: url(http://img.ndstatic.ru/js/star-rating/small_star2.png) no-repeat 0 -30px;
}

.half_star2 {
    width: 7px;
    height: 14px;
    margin-left: -8px;
    display: inline-block;
    overflow: hidden;
    background: url(http://img.ndstatic.ru/js/star-rating/small_star2.png) no-repeat 0 -30px;
}

.star2 {
    width: 16px;
    height: 14px;
    display: inline-block;
    overflow: hidden;
    background: transparent;
}

.star2.off {
    background: url(http://img.ndstatic.ru/js/star-rating/small_star2.png) no-repeat 0 0;
}

#common_views h1 {
    text-transform: uppercase;
    color: #0277BD;
    margin: 0;
    padding: 0
}

#common_views img {
    height: 175px;
}

#new-news .img-fluid {
    height: inherit;
    margin-bottom: 16px;
    border-radius: 2px;
    image-rendering: -webkit-optimize-contrast;
}

#new-news p {
    font-size: 12px;
    line-height: 14px;
    margin-top: 4px;
        margin-bottom: 0;
    color: #5a5a5a;
}

@media (min-width: 768px) {
    .flex-card h2 {
        font-size: 20px;
    }
    .icon_set i {
        font-size: 17px;
    }
    .icon_set span {
        font-size: 13px;
    }
    .carousel-inner>.carousel-item>a>img {
        height: 300px;
    }
    #content .blogs h1 {
        background: white;
    }
}

@media (max-width: 767px) {
    .carousel-inner>.carousel-item>a>img {
        height: 320px;
    }
    #content .block_left {
        padding: 0 !important;
    }
    #content .articles .controls .current{
          padding-right: 105px !important;
    }
    .col-md-12 h1{
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .blogs h1{
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
}

#content .blogs h1 {
    margin: 0;
    border-bottom: none !important;
}

#content .blogs .blogpost{
      background: #FAFAFA !important;
}

#content .blogs .blogpost p {
    padding: 10px 10px 0px !important;
}

#content .blogs .blogpost .username {
    padding: 0 10px !important;
}

#content .blogs .blogpost h3 {
    padding: 20px 10px !important;
    text-transform: uppercase;
}

#content .blogs .blogpost h3 a {
    color: #0277BD !important;
    font-size: 14px !important;
}

#content .blogs .blogpost a img{
  border-left: 3px solid #fafafa;
  border-right: 3px solid #fafafa;
}

#content .videos .controls .agray, #content .forums .controls .agray {
    padding-top: 0 !important;
}

.logout > div > a{
  color: #fff;
}

.username > a{
  color: #fff;
}

.LoginClick{
  color: #fff;
}
.LoginClick:hover{
  text-decoration: none !important;
  color: #FFA000 !important;
      border-bottom: none;
}

#new-news > div > h1 > a{
  margin-left: 10px;
}
.mobile-menu div a{
  color: #fff;
    font-size: 16px;
}
.btn-warning {
    color: #fff;
    background-color: #FFC107 !important;
    border-color: #FFB300 !important;
}
