/* CUSTOM CSS INCIO */
@media screen and (max-width: 479px){
    .header {padding-bottom: 5px;}
    #content{padding:15px 0;}
    }
    
    h3 + p, ul + h3, ul + p, p + h3, h2 + p {
            margin-top: 12px;
    }
    
    h3 + ul {
        line-height: 1.5 !important;
        margin-top: 12px;
    }
    
    .theme-default .nivo-controlNav a{background-color:#009c2c!important;}
    .theme-default .nivo-controlNav a.active{background-color:#ECECEC !important;}
    
    .alignleft{
        margin-bottom: 17px !important;
    }
    
    .site-nav{
        text-transform: none;
    }
    
    .site-nav ul li a{
        font-weight: bold;
        color: #0068B4
    }
    
    .blog-post-repeat .entry-summary ul, .entry-content ul {
        font: 14px arial;
        line-height: 1.25;
    }
    
    .feature-box{
        width: 24.81%;
        box-sizing: border-box;
        margin: 0 0.25% 0.25% 0;
    }
    
    .feature-title{
        text-shadow: 1px 1px 1px #000;
    }
    
    .feature-box:first-child{
        margin-left: 0;
    }
    
    .header{
        background: #ececec;
    }
    
    .feature-box:first-child{ 
        background-color:#00a5cb;
    } 
    
    .feature-box:nth-child(3){ 
        background-color:#72bf44;
    }
    
    .feature-box:nth-child(2){ 
        background-color:#f8951f;
    }
    
    .feature-box:nth-child(3) .feature-title {
        font: 700 23px 'Roboto',san-serif;
        margin-bottom: 29px;
        margin-top: 2px	
    }
    
    .feature-box:nth-child(4){ 
        background-color:#febd11;
    }
    
    .feature-box .feature-content{overflow: hidden; width: 16em; height: 4em;}
    
    .feature-box{
        color: #fff;
    }
    
    .feature-box a{
        color: yellow;
    }
    
    #sidebar{
        margin: 20px 0 0;
        padding: 10px;
        border: 2px solid #ebebeb;
        box-sizing: border-box;
        width: 292px;
        border-radius: 10px
    }
    
    #sidebar aside ul li {
         padding: 0 0 12px 12px;	 
    }
    
    #sidebar aside ul li a:hover {
         font-weight: bold;
         text-decoration: underline;
    }
    
    #sidebar aside{
        margin: 4px;
    }
    
    .screen-reader-text{
        font-size: 16px;
    }
    
    #s{
        display: block;
        width: 96%;
        margin-top: 4px;
        padding: 3.4px;
        background: url(/wp-content/themes/healing-touch/images/icon-lupa.png);
        background-repeat: no-repeat;
        background-size: 5%;
        background-position: 4px 5px; 
        text-indent: 20px;
    }
    
    #searchsubmit{
        margin-top: 5px;
        width: 64%;
        font-weight: bold;
        width: 100%;
    }
    
    .blog-post #s{
        background: url(/wp-content/themes/healing-touch/images/icon-lupa.png);
        background-repeat: no-repeat;
        background-position: 4px 4px;
        width: 50%;
    }
    
    .blog-post #searchsubmit{
        width: 51.2%;
        padding: 8px 0;
    }
    
    #footer{
        background-color: #0068b4 !important;
    }
    
    #footer, #footer .widget-column h2, #footer .widget-column .foot-label {color:#fff !important;}
    
    #footer .widget-column h2{
        font-size: 20px;
    }
    
    #footer .widget-column a 
        {color:#fff !important;
    }
    
    #footer .widget-column a:hover{
        text-decoration: underline;
    }
    #footer .widget-column{
        width: 33%;
        margin-right: 0;
        padding-right: 50px;
        box-sizing: border-box;
    }
    @media screen and (max-width: 1024px) and (min-width: 990px){
    .feature-box {
        width: 24.81% !important;
            min-height: initial;
    }}
    
    @media screen and (max-width: 989px) and (min-width: 720px){
    .feature-box {
        width: 24.81% !important;
        min-height: initial;
    }}
    
    @media screen and (max-width: 768px) and (min-width: 720px){
    #sidebar{
        width: 252px;
    }}
    
    @media screen and (max-width: 719px) and (min-width: 480px){
    .feature-box{
        margin-bottom: 1em;
    }
    #sidebar{
        width: 70%;
        margin: 0 auto;
    }
    
    .blog-post #s{
        width: 98.5%;
    }
    
    .blog-post #searchsubmit{
        width: 100%;
        margin-bottom: 10px;
    }}
    
    @media screen and (max-width: 479px){
    .feature-box{
        width: 100%;
        margin-bottom: 1em;
    }
    .blog-post #s{
        width: 97%;
    }
    
    .blog-post #searchsubmit{
        width: 100%;
        margin-bottom: 10px;
    }
    
    #sidebar{
        margin: 0 auto;
    }}
    
    @media only screen and (max-width:480px){
    img.alignleft, img.alignright {display: block; float: none; margin: 0 auto; margin-bottom: 20px;}
    #footer .widget-column{width: 95% !important;
        padding-right: 0;}
    }
    .feature-box:nth-child(2) .feature-title{
        font: 700 25px 'Roboto',san-serif;
        margin-top: 4px;
    }
    .feature-box:nth-child(3) .feature-title{
        font: 700 19px 'Roboto',san-serif;
        margin-top: 7px;
    }
    feature-box:nth-child(4) .feature-content p:last-child {display:none;}
    
    .logo p{margin-top:0}
    
    @media screen and (max-width:500px){
        .site-nav li:hover a, .site-nav li.current_page_item a{background:transparent!important;}
        #menu-menu-1{background:#fff}
    }
    
    #home_slider{
        min-height: 400px;
        width:100%;
        background-image:url('http://www.prefeiturarj.org/wp-content/uploads/2017/05/prefeitura-do-rio-de-janeiro.jpg');
        background-position:center;
        background-size:cover;
        animation: slider 15s infinite;
    }
    @media screen and (max-width:500px){
        .all-box{top:0;margin-bottom:0}
        #home_slider{min-height: 150px;margin: 16px 0;}
        #sidebar{width: 100%;}
        .site-nav li:hover a, .site-nav li.current_page_item a{background-color: transparent !important;}
        .site-nav ul li a{padding: 10px;width: calc(100% - 20px);display: inline-block;}
    }
    @keyframes slider {
        0% {background-image: url('https://www.prefeiturarj.org/wp-content/uploads/2017/05/prefeitura-do-rio-de-janeiro.jpg');}
        35% {background-image: url('https://www.prefeiturarj.org/wp-content/uploads/2017/05/prefeitura-rio-de-janeiro-2.jpg');}
        65% {background-image: url('https://www.prefeiturarj.org/wp-content/uploads/2017/05/prefeitura-rio-de-janeiro-2.jpg');}  
        100% {background-image: url('https://www.prefeiturarj.org/wp-content/uploads/2017/05/prefeitura-do-rio-de-janeiro.jpg');}         
    }
    
    @media screen and (max-width:500px) {
        .all-box .site-aligner{
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        .home .feature-box {
            width: 49%;
            margin-bottom: 0.2em;
            display: inline-flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .home .feature-box .feature-title{
            font-size: 16px;
            margin-bottom: 0;
        }
        .home .feature-box .feature-content{
            overflow: visible;
            width: 100%;
            height: auto;
            padding: 0;
            margin: 5px;
            font-size: 14px;
        }
        .welcome-box{padding-top:0}
        .home .feature-box:nth-child(1) .feature-title, .home .feature-box.last .feature-title{line-height: 2.6em;}
    }
    
/* CUSTOM CSS FINAL */

.posts-relacionado {
    background-color: #FFF;
    margin-bottom: 20px;
    clear: both;
    float: left;
    width: calc(100% - 2.001%);
    padding: 2.001% 0;
    padding-top: 1.994%;
}
.posts-relacionado h4 { 
    font-size: 21px;
    margin-bottom: 15px;
}
.posts-relacionado article {
    width: 31%;
    margin-right: 3.5%;
    float: left;
    margin-bottom: 15px;
}
.posts-relacionado #featured-thumbnail { 
    position: relative;
    overflow: hidden;
    margin-bottom: 0 
}
.posts-relacionado .featured-thumbnail{
    height: 160px;
    overflow: hidden;
    width:100%;
}
.posts-relacionado .featured-thumbnail img{
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    float: left;
}
.posts-relacionado article:nth-child(7n-3) { 
    clear: left 
}
.posts-relacionado .post-info {
    clear: none;
    float: none;
}
.posts-relacionado .last {
    margin-right: 0;
    padding-bottom: 0;
}
.posts-relacionado .title {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.1em;
}
.posts-relacionado .title a {
    font-size: 16px!important;
    color: #222!important;
    font-weight: 600!important;
}
.posts-relacionado .title a:hover { color: initial}
.posts-relacionado article header { margin-bottom: 0 }

@media screen and (max-width:800px) {
    .posts-relacionado article{
    width: 100%;
    max-width: 100%;
        float: none !important;
    }
    #content h1.entry-title{
        font-size:24px;
        font-weight:bold;
    }
}

.entry-content :where(ul, ol, li, span, p, strong, em, a, b, i ){
    font-size: 16px;
}

.ultimos_artigos .post-relacionado .conteudo-post p.conteudo-data i.fa:before {
    content: '';
    display: inline-block;
    width: 19px;
    height: 19px;
    vertical-align: text-bottom;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ultimos_artigos .post-relacionado .conteudo-post p.conteudo-data i.fa-calendar::before {
    background-image: url('https://www.prefeiturarj.org/wp-content/themes/healing-touch/images/fa-calendar.webp');
}

.ultimos_artigos {
    border-top: 1px solid #ccc;
    padding-top: 15px;
    clear: both;
}

.ultimos_artigos .post-relacionado {
    display: grid;
    grid-template-columns: 28% 70%;
    gap: 3%;
    margin-top: 15px;
}

.ultimos_artigos .post-relacionado:not(:last-child) {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
}

.ultimos_artigos .post-relacionado .conteudo-post p {
    margin-bottom: 14px;
    padding-bottom: 0;
}

.ultimos_artigos .post-relacionado .conteudo-post p.conteudo-data {
    color: #AAAAAA;
}

.ultimos_artigos .post-relacionado .conteudo-titulo {
    font-weight: bold;
}

.ultimos_artigos .post-relacionado .read-more, .read-more a {
    background-color: #0068b4;
    color: #fff !important;
    padding: 5px 10px;
    margin-left: 0;
    border-radius: 5px;
    transition: all .3s ease-in-out;
}

.ultimos_artigos .post-relacionado .read-more:where(:hover, :active), .read-more a:where(:hover, :active) {
    background-color: #06a84c;
}

@media screen and (max-width:800px) {
    .page-header h1{
        top: 0;
    }
    .sidebar_right {
        width: 100%;
    }

    #sidebar {box-sizing: border-box;}
    
    .ultimos_artigos .post-relacionado {
        grid-template-columns: 100%;
        gap: 1%;
        width: 97%;
        box-sizing: border-box;
    }
    
    .ultimos_artigos .post-relacionado .conteudo-post {
        margin-bottom: 10px;
    }
    
    .ultimos_artigos .post-relacionado .post-imagem {
        display: flow-root;
        max-height: 230px;
        overflow: hidden;
    }
    
    .ultimos_artigos .post-relacionado .post-imagem img {
        width: 100%;
    }
}
@media screen and (min-width:800px) {
    .blog-post-repeat article{
        display: grid;
        grid-template-columns: 35% calc(65% - 10px);
        gap: 10px;
    }
    .blog-post-repeat .blog-title{
        margin-top: 0;
    }
}