/* ======== CONTAINER GERAL ======== */
.eblog #content {
    margin-top: 20px;
}

.eblog #content h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ======== GRID DAS POSTAGENS ======== */
.eblog .row > .update_post {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    
}
.eblog .row > .update_post .update_post_content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.eblog .row > .update_post .update_post_content:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ======== IMAGEM ======== */
.update_post .video-image img,
.update_post .video-image iframe {
    width: 100%;
    height: 300px;
    object-fit: cover;

-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}

/* ======== TEXTO DO CARD ======== */
.update_post_text {
    padding: 22px 20px;
}

/* ======== TÍTULO ======== */
.update_post_text h3 {
    margin: 0 0 10px 0;
}

.update_post_text h3 a {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-decoration: none;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* quantidade de linhas desejada */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px; /* mantém altura consistente */
}

.update_post_text h3 a:hover {
    color: #6c6c6c;
}

/* ======== AUTOR + DATA ======== */
.update_post_text span a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
}

.update_post_text span a:hover {
    color: #444;
}

/* ======== DESCRIÇÃO ======== */
.update_post_text p {
    margin-top: 12px;
    margin-bottom: 18px;
    line-height: 1.6;
    color: #555;
}
/* Limite de linhas para a descrição do blog */
.update_post_text p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* quantidade de linhas desejada */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 90px; /* mantém altura consistente */
}


/* ======== BOTÃO LEIA MAIS ======== */
.base_button {
    background: #000;
    color: #fff !important;
    padding: 0.8rem 0.8rem;
    border-radius: 4px;
    font-size: 11px;
    transition: background .3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.base_button:hover {
    background: #333;
}

/* ======== VIEW / COMMENTS ======== */
.blogcomments {
    margin-top: 10px;
}

.blogcomments li {
    color: #777;
    font-size: 13px;
}

.blogcomments i {
    margin-right: 3px;
}

/* ======== PAGINAÇÃO ======== */
#content .pagination {
    margin-top: 30px;
}

#content .results {
    margin-top: 30px;
    color: #666;
    font-size: 13px;
}

/* ======== RESPONSIVIDADE ======== */
@media (min-width: 768px) {
    .update_post {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    /* Ajusta cards empilhados no mobile */
    .update_post .video-image img,
    .update_post .video-image iframe {
        height: 300px;
    }

    .update_post_text h3 a {
        font-size: 18px;
    }
}


/* ====================================== */
/*       ESTILO DO FORMULÁRIO DE BUSCA    */
/* ====================================== */

#product-search #content label.control-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    color: #333;
}

/* Inputs e selects */
#product-search .form-control {
    height: 44px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

#product-search .form-control:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Checkbox inline */
#product-search .checkbox-inline {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}

/* Botão "Pesquisar" */
#product-search #button-search.btn-primary {
    margin-top: 10px;
    padding: 10px 26px;
    background: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

#product-search #button-search.btn-primary:hover {
    background: #333;
}

/* Espaçamento entre formulário e resultados */
#product-search .row.eblog {
    margin-top: 25px;
}

/* Título da busca */
#product-search #content h1 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}
#product-search .row > div {
    margin-bottom: 12px;
}


/* ========================================== */
/*       LATERAL DO BLOG — CATEGORIAS         */
/* ========================================== */

.blog_categories .categories_wrapper {
    padding: 20px 18px;
    margin-top: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.blog_categories .categories_wrapper h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Remove estilos padrões desagradáveis */
.blog_categories ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.blog_categories ul li {
    margin-bottom: 10px;
}

.blog_categories ul li:last-child {
    margin-bottom: 0;
}

/* Links das categorias */
.blog_categories ul li a {
    display: block;
    text-decoration: none;
    font-size: 15px;
    color: #444;
    padding: 6px 6px;
    border-radius: 6px;
    transition: 0.25s ease;
}

.blog_categories ul li a:hover {
    background: #f2f2f2;
    color: #000;
}

/* Ícone de check */
.blog_categories ul li a i.fa {
    margin-right: 6px;
    color: #888;
    font-size: 12px;
}

/* Categoria ativa */
.blog_categories ul li.active > a {
    background: #000;
    color: #fff !important;
    font-weight: 600;
}

.blog_categories ul li.active > a i.fa {
    color: #fff;
}

/* ============================== */
/*      SUBCATEGORIAS (children)  */
/* ============================== */

.blog_categories ul ul {
    margin-top: 8px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.blog_categories ul ul li a {
    font-size: 14px;
    padding: 5px 4px;
    color: #555;
}

.blog_categories ul ul li.active > a {
    background: #333;
    color: #fff;
}

/* ========================================== */
/*        LATERAL DO BLOG — TAGS              */
/* ========================================== */

.categories_wrapper.tags {
    padding: 20px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* Título */
.categories_wrapper.tags h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Lista */
.categories_wrapper.tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tag */
.categories_wrapper.tags ul li {
    margin: 0;
}

.categories_wrapper.tags ul li a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    color: #444;
    background: #f2f2f2;
    border-radius: 20px;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}

/* Hover */
.categories_wrapper.tags ul li a:hover {
    background: #000;
    color: #fff;
}


/* ========================================== */
/*       LATERAL DO BLOG — BUSCA              */
/* ========================================== */

.blog_categories .search {
    padding: 20px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.blog_categories .search h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Caixa da busca */
#blogsearch.input-group {
    width: 100%;
}

/* Campo de texto */
#blogsearch .form-control {
    height: 42px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

#blogsearch .form-control:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Botão */
#blogsearch .btn {
    background: #000;
    color: #fff;
    border: none;
    height: 42px;
    padding: 0 14px;
    border-radius: 0 6px 6px 0;
    transition: background .25s ease;
}

#blogsearch .btn:hover {
    background: #333;
}

/* Ícone dentro do botão */
#blogsearch .btn i {
    font-size: 14px;
}


/* ========================================= */
/*          PÁGINA DO POST – BLOG            */
/* ========================================= */

/* Título do post */
.mail_page_hadding {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 600;
    color: #222;
    margin: 25px 0 15px;
    line-height: 1.3;
}

/* Imagem principal */
@media only screen and (min-width: 768px) {
.openthumbs  .firstImg{
    max-width: 100%;
    margin: 0 auto;
}
.openthumbs .imgMain {
    object-fit: cover; /* Corta a imagem para preencher */
    height: 500px;
    /*object-position: top center;/* COMEÇA DO TOPO */*/
}
}
@media only screen and (min-width: 1200px) {
.openthumbs  .firstImg{
    max-width: 80%;
}
.openthumbs .imgMain {
    height: 650px;
}
}
.openthumbs img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Galeria de imagens */
.subimages {
    margin-top: 10px;
}

.subimages .images_silde img {
    width: 100%;
    border-radius: 6px;
    transition: opacity .2s ease;
}

.subimages .images_silde img:hover {
    opacity: 0.85;
}

/* Meta informações (autor, data, views, comentários) */
.shear_and_editer {
    text-align: center;
    text-transform: uppercase;
}
.fullblogcomments {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline;
 
}

.fullblogcomments li {
    font-size: 13px;
    display: inline;
    color: #666;
}

.fullblogcomments li i {
    margin-right: 4px;
    color: #888;
}

/* Área de compartilhamento */
.share {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Conteúdo do post */
#content .update_post_text p {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 18px;
}

/* Tags */
.dec_tags {
    margin-top: 20px;
}

.dec_tags span {
    font-weight: 600;
    margin-right: 6px;
    color: #222;
}

.dec_tags a {
    display: inline-block;
    font-size: 13px;
    color: #555;
    background: #f2f2f2;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 4px 4px 0 0;
    text-decoration: none;
    transition: background .2s ease;
}

.dec_tags a:hover {
    background: #000;
    color: #fff;
}

/* Linha divisória */
#content hr {
    margin: 35px 0;
    border-color: #eee;
}

/* ========================================= */
/*            FORMULÁRIO DE COMENTÁRIOS      */
/* ========================================= */

#form-comment h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

#form-comment .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
}

#form-comment .form-control:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

#button-comment {
    background: #000;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

#button-comment:hover {
    background: #333;
}

/* ========================================= */
/*        POSTS RELACIONADOS (REUSO GRID)    */
/* ========================================= */

#content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #222;
}


/* ========================================= */
/*   MÓDULO HOME – ÚLTIMAS POSTAGENS (BLOG)  */
/* ========================================= */

.latest_blog_wrapper.eblog {
    margin: 40px 0;
}

.latest_blog_wrapper.eblog > h4 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    letter-spacing: .3px;
}

/* Quando NÃO é carrossel (grid padrão) */
.latest_blog_wrapper.eblog .row {
    display: flex;
    flex-wrap: wrap;
}

.latest_blog_wrapper.eblog .row > .update_post.col-sm-4 {
    margin-bottom: 30px;
}

/* Card */
.latest_blog_wrapper.eblog .update_post .update_post_content {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.latest_blog_wrapper.eblog .update_post .update_post_content:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Imagem */
.latest_blog_wrapper.eblog .video-image img,
.latest_blog_wrapper.eblog .video-image iframe {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Texto */
.latest_blog_wrapper.eblog .update_post_text {
    padding: 18px 18px 16px;
}

/* Título do post */
.latest_blog_wrapper.eblog .update_post_text h3 {
    margin: 0 0 10px;
}

.latest_blog_wrapper.eblog .update_post_text h3 a {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.25;
    display: block;
}

.latest_blog_wrapper.eblog .update_post_text h3 a:hover {
    color: #000;
}

/* Meta (autor/data) */
.latest_blog_wrapper.eblog .update_post_text span a {
    font-size: 13px;
    color: #777;
    text-decoration: none;
}

.latest_blog_wrapper.eblog .update_post_text span a:hover {
    color: #444;
}

/* Descrição (clamp p/ alinhar cards) */
.latest_blog_wrapper.eblog .update_post_text p {
    margin: 12px 0 16px;
    color: #555;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* ajuste: 3 ou 4 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 72px; /* alinhamento dos cards */
}

/* Linha inferior (botão + views) */
.latest_blog_wrapper.eblog .update_post_text .row {
    display: flex;
    align-items: center;
}

.latest_blog_wrapper.eblog .base_button {
    background: #000;
    color: #fff !important;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .25s ease;
}

.latest_blog_wrapper.eblog .base_button:hover {
    background: #333;
}

.latest_blog_wrapper.eblog .blogcomments {
    margin: 0;
}

.latest_blog_wrapper.eblog .blogcomments li {
    font-size: 13px;
    color: #777;
}

/* ========================================= */
/*             ESTILO DO SWIPER              */
/* ========================================= */

.latest_blog_wrapper.eblog .swiper-viewport {
    position: relative;
    padding: 0;
}

/* Setas */
.latest_blog_wrapper.eblog .swiper-button-next,
.latest_blog_wrapper.eblog .swiper-button-prev {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}

.latest_blog_wrapper.eblog .swiper-button-next:hover,
.latest_blog_wrapper.eblog .swiper-button-prev:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.latest_blog_wrapper.eblog .swiper-button-next:before,
.latest_blog_wrapper.eblog .swiper-button-prev:before {
    font-family: FontAwesome;
    color: #fff;
    font-size: 16px;
    line-height: 38px;
    display: block;
    text-align: center;
}

.latest_blog_wrapper.eblog .swiper-button-next:before { content: "\f054"; } /* fa-chevron-right */
.latest_blog_wrapper.eblog .swiper-button-prev:before { content: "\f053"; } /* fa-chevron-left */

/* Remove ícone padrão do swiper (se aparecer) */
.latest_blog_wrapper.eblog .swiper-button-next:after,
.latest_blog_wrapper.eblog .swiper-button-prev:after {
    display: none;
}

/* Paginação */
.latest_blog_wrapper.eblog .swiper-pagination {
    position: relative;
    margin-top: 16px;
    text-align: center;
}

.latest_blog_wrapper.eblog .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    opacity: .25;
    background: #000;
    margin: 0 4px;
}

.latest_blog_wrapper.eblog .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ========================================= */
/*             RESPONSIVO                    */
/* ========================================= */

@media (max-width: 991px) {
    .latest_blog_wrapper.eblog .video-image img,
    .latest_blog_wrapper.eblog .video-image iframe {
        height: 300px;
    }

    .latest_blog_wrapper.eblog .update_post_text p {
        -webkit-line-clamp: 3;
        min-height: 72px;
    }
}

@media (max-width: 767px) {
    .latest_blog_wrapper.eblog > h4 {
        font-size: 20px;
    }

    .latest_blog_wrapper.eblog .video-image img,
    .latest_blog_wrapper.eblog .video-image iframe {
        height: 300px;
    }

    .latest_blog_wrapper.eblog .update_post_text {
        padding: 16px;
    }

    .latest_blog_wrapper.eblog .update_post_text h3 a {
        font-size: 17px;
    }
}
