/* Notícias*/
/* Estilo geral para os artigos do blog */
#blog-entries article {
    background: url(https://sm-portugal.com/wp-content/uploads/2023/12/separadorluna.png) bottom right no-repeat;
    border: none;
    margin-bottom: 60px;
}

/* Estilo da miniatura dos artigos */
#blog-entries .blog-entry .thumbnail {
    max-width: 350px;
    max-height: 420px;
    position: relative;
    flex: 1;
}

/* Estilo do link da miniatura */
#blog-entries .blog-entry .thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

/* Estilo da classe antes do título */
#blog-entries .beforetitle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
	background: linear-gradient(to right, var(--cor-primaria) 0%, transparent 80%);
    background-position: bottom;
    background-size: 100% 1px;
    background-repeat: no-repeat;
    padding-bottom: 1px; 
}

/* Estilo da data do artigo */
#blog-entries .blog-entry-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    line-height: 1.2em;
    text-transform: uppercase;
    margin: 0 0 10px 15px;
    min-width: 150px;
    text-align: right; /* Ajuste para visualização em dispositivos móveis */
}

/* Estilo da categoria do artigo */
#blog-entries .blog-entry-category::before {
    content: "TEMA: ";
    color: #ababab;
}

/* Estilo do fundo da parte inferior do artigo */
#blog-entries .blog-entry-bottom {
    border: none;
}

/* Estilo do texto sobreposto na miniatura ao passar o rato */
#blog-entries .blog-entry .thumbnail a::before {
    content: "LER NOTÍCIA";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    text-align: center;
    opacity: 0;
    transform: scale(1.2) rotateX(90deg);
    transition: opacity 0.4s ease, transform 0.6s ease, background 0.4s ease;
    z-index: 10;
}

/* Estilo ao passar o rato sobre a miniatura */
#blog-entries .blog-entry .thumbnail a:hover::before {
    opacity: 1;
    transform: scale(1) rotateX(0);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

/* Estilo do conteúdo do artigo */
.blog-entry-content {
    flex: 2;
}

/* Estilo do título do artigo */
h2.blog-entry-title a {
    font-family: "Yanone Kaffeesatz", Atma, sans-serif;
    text-transform: uppercase;
}

/* Estilo do separador Luna */
.luna {
    content: "";
    display: block;
    background: url(https://sm-portugal.com/wp-content/uploads/2023/12/separadorluna.png) bottom right no-repeat;
    height: 67px;
    width: 90%;
    position: relative;
    margin-top: -80px;
}

/* Estilo do elemento fadeBranco (invisível por padrão) */
.fadeBranco {
    display: none;
}


/* Estilos para a paginação */
ul.page-numbers {
    text-align: center;
}

.page-numbers a, .page-numbers span:not(.elementor-screen-only), .page-links span {
    color: #fff;
    background-color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 32px;
}


.single .post-tags {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

#related-posts {
	border-top: 0;
}

figure.related-post-media {
	align-content: center;
}

.related-thumb {
    background-color: transparent;
}

.related-thumb img {
	max-height: 150px;
	width: auto!important;
	margin: auto;
}



/* Estilos responsivos para dispositivos móveis */
@media only screen and (max-width: 767px) {
    .blog-entry-inner {
        display: block;
    }

    #blog-entries .blog-entry .thumbnail a {
        border-radius: 10px 10px 0 0;
    }

    #blog-entries .blog-entry .thumbnail {
        margin: auto;
        width: 90%;
        max-height: 200px;
        max-width: 100%;
    }

    #blog-entries .beforetitle {
        width: 100%;
    }

    #blog-entries .blog-entry-date {
        text-align: right;
        margin: 0;
    }

    .blog-entry.post .thumbnail {
        position: relative;
        overflow: hidden;
    }

    .blog-entry.post .thumbnail .fadeBranco {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 1) 100%);
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        z-index: 1;
    }

    .blog-entry.post .thumbnail img {
        display: block;
        width: 100%;
        height: auto;
    }

    .blog-entry-title {
        text-align: center;
    }

    .blog-entry-summary, .entry-content.clr {
        text-align: justify;
    }

    .entry-content.clr figure {
        float: none;
        margin: 0.5em auto;
    }

    .meta-date + .meta-cat {
        display: none;
    }

    .related-posts-title {
        margin-top: 20px; 
    }

    #related-posts .col {
        min-height: unset;
        margin-bottom: 35px;
        float: none; 
    }
}
