/**
 * general styles for the child-theme
*/

body{
    font-family: 'Roboto', sans-serif;
    color:#4b666e;
    background-color: #fffdfd;
}

.container,
body:not(.home) #content{
    max-width: 1170px;
}

body:not(.has-sidebar) .entry-content{
    width: 100%;
}

.container .block {
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 1200px){
    body.sidebar-left #main{
        padding-left: 15px;
    }
    body.sidebar-left #sidebar{
        padding-right: 15px;
    }
}
@media screen and (min-width: 992px){
    body.has-sidebar #sidebar {
        width: 260px;
    }
    body.has-sidebar #main{
        width:calc(100% - 260px);
    }
}

@media (max-width: 768px){
    .block-space{
        padding-top: 30px;
        padding-bottom: 30px;
    }
    #sidebar .widgetlist,
    .nav-links{
        padding-top: 30px;
        margin-top: 30px;
    }
}

/** - */

h1, h2, h3, h4, h5, h6{
    font-weight: 500;
}
.page-title{
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
}

.block-header{
    font-size: 2rem;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
}
.loop-title{
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
}

.wtitle{
    font-size: 1.125rem;
    text-transform: uppercase;
}
@media (max-width: 768px){
    .page-title{
        font-size: 1.7rem;
    }
    .block-header{
        font-size: 1.714rem;
    }
    .loop-title{
        font-size: 1.145rem;
    }
    .wtitle{
        font-size: 1.28rem;
    }
}

/** - */
.btn-loop{
    padding: 10px;
    margin-top: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-loop:after{
    content:'\e80a';
    font-family: 'fontello';
    font-size: .8em;
    line-height: 1;
    display: inline-block;
    margin-left: 6px;
    transform:rotate(-90deg);
}

.btn-secondary{
    text-transform: uppercase;
    font-weight: 700;
    color:#fff;
    padding: 15px 70px;
    background-color: #4b666e;
}

@media (min-width: 992px){
    .btn-secondary:hover,
    .btn-secondary:focus{
        background-color:#122034;
    }
    .btn-loop:hover,
    .btn-loop:focus{
        color:#122034;
    }
}

/**
 * hover
 */
a{
    text-decoration: none;
    transition-property: color, background-color;
    transition-duration: .3s;
}

.slick-prev:before,
.slick-next:before{
    color:#122034;
}

.page-top{
    background-color: #4b666e;
    border-radius: 5px;
}

.pagination .page-numbers{
    border: none;
    padding: 5px 10px;
    margin-right: 0;
    font-weight: 700;
}
@media (min-width: 992px){
    .pagination .page-numbers:hover,
    .pagination .page-numbers:focus{
        color:#122034;
    }
}

/**
 * active
*/
.menu .current-menu-ancestor>:first-child,
.menu .current-menu-item>:first-child,
.pagination .current,
.current-cat{
    color:#dc7928;
}

/** - */
.contacts_socials li{
    margin-right: 6px;
}
.contacts_socials li:last-child{
    margin-right: 0;
}

/** - */
#sidebar .wtitle{
    font-weight: 500;
}
#sidebar .wbody{
    font-weight: 500;
    text-transform: uppercase;
}
#sidebar .wbody ul>li{
    padding: 1em 5%;
    margin: .25em 0;
    background-color: #e8e8e8
}
@media (min-width: 769px){
    #sidebar .wbody{
        font-size: .875em;
    }
}

.widget_attachment_widget .file-link{
    margin-bottom: 15px;
}


/**
 * side-info
*/
.side-info .inner{
    background-color: #e8e8e8;
}
.side-info .widget_media_image{
    max-width: 180px;
}
.side-info .close{
    font-size: 1.15rem;
    border: none;
    background-color: transparent;
    position: absolute;
    top: 10px;
    right: 15px;
}
.side-info .wtitle{
    font-size: .875rem;
}
@media (max-width: 768px){
    .side-info .wtitle{
        font-size: 1rem;
    }
}


/**
 * file-link styles
*/
.files-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: -20px;
}
.files-row .file-link{
    width:49%;
    margin-bottom: 20px;
}
.file-link{
    display: flex;
}
.file-link .img{
    position: relative;
    flex-shrink: 0;
    height: 0;
    width: 40px;
    padding-bottom: 40px;
}
.file-link svg{
    fill: #4b666e;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    transition: fill .3s;
}
.file-link .content{
    font-weight: 500;
    margin-left: 8px;
    overflow: hidden;
}
.file-link .title{
    font-size: 14px;
    text-decoration: underline;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s;
}
.file-link .meta{
    font-size: 12px;
}
@media (min-width: 992px){
    .file-link:hover svg,
    .file-link:focus svg{
        fill:#122034;
    }
    .file-link:hover .title,
    .file-link:focus .title{
        color:#122034;
    }
}

/**
 * img-as-bg
*/
.img-as-bg{
    position: relative;
}
.img-as-bg .bg-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}