/*
Theme Name: News Publisher
Theme URI: 
Author: Henrique Alves
Author URI: 
Description: Feito com amor.
Version: 1.10.5
*/

body {
    background-color: #ffffff;
    font-family: roboto, sans-serif;
}

/* Estilos específicos para o header fixo */
.header .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9;
    transition: top 0.3s ease-in-out;
    padding: 15px;
    background-color: #212121;
}

header.site-header.shadow {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

/* Estilos para o botão de toggler (menu mobile) */
.navbar-toggler {
    border-color: transparent;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    color: #ffffff;
}

.navbar-nav .nav-item .nav-link.active {
    color: #ffffff;
}

.primary-menu .navbar-nav .nav-link {
    color: #eb6230;
}

.primary-menu .navbar-nav .nav-link:hover {
    text-decoration: none;
}

/* Estilizando o menu do dropdown */
.dropdown-menu {
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilizando os itens do menu */
.dropdown-item {
    color: #333;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
    color: #000;
}

a.nav-link.dropdown-toggle {
    text-decoration: none;
}

a.nav-link.dropdown-toggle.show {
    color: #ffffff;
    background-color: #ffffff;
    text-decoration: none;
}

a.nav-link.dropdown-toggle.show:hover {
    color: #000000;
}

/* Estilizando a cor do texto do item ativo */
.dropdown-item.active, .dropdown-item:active {
    color: #000;
    background-color: #f9f9f9;
}

.search-form {
    margin-left: auto;
}

.search-form .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}

.search-form .form-control {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.block1 {
    margin-top: 20px;
}

/* Center x.com */
.twitter-tweet {
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}.twitter-tweet-rendered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* Carousel */
.carousel {
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.carousel-inner img {
    width: 100%;
    height: 492px;
    border-radius: 12px;
}

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

.carousel-caption a {
    text-decoration: none;
}

.carousel-caption a:hover {
    text-decoration: none;
}

.carousel-caption h5 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.carousel-caption h5:hover {
    color: #eb6230;
}

.carousel-caption p {
    font-size: 16px;
    color: #ddd;
}

/* Carousel indicators */

.carousel-indicators button {
    width: 50px !important;
    height: 5px !important;
}

/* Posts laterais */
.side-posts {
    padding: 0px 0px 0px 0px;
    position: relative;
}

.side-post-thumbnail {
    margin-bottom: 15px;
}

.side-posts .side-post-thumbnail {
    position: relative;
}

.side-posts .side-post-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.side-posts .category-name {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #eb6230;
    padding: 5px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-top-left-radius: 12px;
}

.side-posts .entry-title {
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.side-posts .entry-title a {
    font-weight: normal;
    color: #fff;
}

.side-posts .entry-title a:hover {
    color: #eb6230;
    text-decoration: none;
}

.side-posts .side-post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.section-title {
    font-size: 30px;
}

/* Estilo para a seção de posts recentes */

.posts-recentes .mb-2.row {
    border-bottom: none; /* Remove a linha padrão */
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
    margin-top: 8px;
    padding-top: 8px;
}

.posts-recentes .mb-2.row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px; /* Adiciona margem à esquerda */
    width: calc(100% - 30px); /* Reduz para alinhar com a imagem */
    height: 1px;
    background-color: #ddd;
}

.posts-recentes .mb-2.row:last-of-type::after {
    display: none; /* Remove a linha do último item */
}

.posts-recentes .post-excerpt p {
    color: #000;
}
.posts-recentes h1 {
    position: relative;
    display: inline-block;
    color: #212121;
    margin-bottom: 0.5rem;
}

.posts-recentes h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #eeeeee;
    margin-top: 0.2rem;
}

/* Estilo para os posts individuais */
.main-post-thumbnail {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.main-post-caption {
    background-color: #fff;
    padding: 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-post-caption h2.entry-title {
    margin-top: 0px;
}

.main-post-caption h2.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: left;
}

.main-post-caption h2.entry-title a:hover {
    color: #eb6230;
}

.entry-meta {
    font-size: 14px;
    color: #000;
    width: 100%;
    margin-top: 10px;
    text-align: left;
    line-height: 1.4;
}

.entry-meta .meta-author {
    font-weight: 600;
    display: block;
    margin-bottom: 2px; /* reduzido para quase colado */
}

.entry-meta .meta-category-time {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px; /* bem justo */
    margin-top: 0; /* zera margem superior */
    margin-bottom: 0; /* zera margem inferior */
}

.entry-meta .meta-category {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.entry-meta .meta-category a {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.entry-meta .meta-category a:hover {
    text-decoration: underline;
}

.entry-meta .meta-time {
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}


/* Estilo para a seção de posts recentes */
.posts-loops h1 {
    position: relative;
    display: inline-block;
    color: #f26623;
    margin-bottom: 0.5rem;
}

.posts-loops h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #eeeeee;
    margin-top: 0.2rem;
}

/* Estilo para os posts loops */
.main-loop-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0px 0px 5px 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry-meta-loop {
    font-size: 14px;
    color: #999;
    width: 100%;
    margin-top: 5px;
    text-align: left;
}

.main-loop-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.main-post-caption-loop {
    background-color: #fff;
    padding: 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-post-caption-loop h2.entry-title-loop {
    margin-top: 10px;
}

.main-post-caption-loop h2.entry-title-loop a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: left;
}

.main-post-caption-loop h2.entry-title-loop a:hover {
    color: #eb6230;
}

.featured-post {
    display: flex;
    align-items: center;
}

.featured-post .main-loop-featured img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.featured-post .col-md-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post .entry-title-loop a {
    text-decoration: none;
}

.featured-post .entry-title-loop a:hover {
    text-decoration: none;
}

/* Labels de Categoria */
.category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e94e77;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.category-label.orange {
    background-color: #ff5a36;
}

.category-label.red {
    background-color: #d9534f;
}

.scontent .custom-paragraph {
    text-align: center;
    font-size: 18px;
    margin-top: 150px;
    margin-bottom: 20px;
}

.scontent .home-page {
    display: inline-block;
    background-color: #eb6230;
    padding: 5px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: none;
    margin-bottom: 150px;
    text-decoration: none;
    transition: background 0.3s;
}

/* Error 404 */
.erro404 .home-page {
    display: inline-block;
    background-color: #eb6230;
    padding: 5px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: none;
    margin-top: 50px;
    margin-bottom: 50px;
    text-decoration: none;
    transition: background 0.3s;
}

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

.erro404 h1 {
    margin-top: 50px;
    font-size: 35px;
    font-weight: 500;
}

.erro404 .search-form {
    margin-top: 20px;
}

/* Posts principais */
.entry-header {
    margin-bottom: 10px;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #007bff;
}

.entry-footer .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}

.entry-footer .btn:hover {
    background-color: #004aad;
}

/* Paginação */
nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    margin-bottom: 50px;
}

/* Estilo para os links de paginação */
nav.pagination a,
nav.pagination span {
    display: inline-block;
    margin: 0px;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 1px;
    color: #212121;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

/* Estilo para o link da página atual */
nav.pagination .current {
    background-color: #eb6230;
    color: #fff;
    pointer-events: none;
    border-radius: 5px;
}

/* Estilo para os links ao passar o mouse */
nav.pagination a:hover {
    background-color: #eeeeee;
    color: #212121;
}

/* Estilo para os links desabilitados */
nav.pagination .disabled {
    color: #ddd;
    pointer-events: none;
    border-color: #ddd;
}

/* Estilo para os links de próximo e anterior */
nav.pagination .prev,
nav.pagination .next {
    font-weight: bold;
}

/* Estilos categorias */

.main-cat {
    margin-top: 20px;
}

.main-cat .cat-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.main-cat .category-navigation {
    margin-top: -10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.category-navigation h2 {
    font-size: 16px;
    font-weight: 500;
    background-color: #eb6230;
    color: #fff;
    padding: 8px;
    margin-top: 0px;
    margin-bottom: 8px;
    border-radius: 2px;
    display: inline-block;
}

.main-cat-thumbnail .main-post-caption h2.entry-title {
    margin-top: 10px;
}

.main-cat .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-cat .category-item {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.main-cat .category-item:hover {
    background-color: #e9ecef;
}

.category-list {
    position: relative;
}

.main-cat .rss-icon { 
    background-color: #ff6600;
    color: #fff;
    padding: 5px;
}

.rss-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-cat .rss-icon:hover {
    background-color: #cc5200;
}

.main-cat .entry-title a {
    color: #000;
    text-decoration: none;
}

.main-cat .entry-title a:hover {
    color: #007bff;
}

.main-cat .entry-meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.main-cat .main-post-caption {
    padding: 0px;
}

.main-cat-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0px 0px 5px 5px;
    margin-bottom: 0px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-cat-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.main-cat2-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0px 0px 5px 5px;
    margin-bottom: 0px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-cat2-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.main-cat2-thumbnail .main-post-caption h2.entry-title {
    margin-top: 10px;
}

/* Tags single */

.main-tag {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    flex-direction: column;
    align-items: center;
}

.main-tag .btn {
    background-color: #e9ecef;
}

.main-tag .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.main-tag .tag-item {
    text-transform: uppercase;
    background-color: #e9ecef;
    padding: 7px 10px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.main-tag .tag-item:hover {
    background-color: #e9ecef;
}

.tags-list {
    position: relative;
}

/* Comentários */
.comentarios { overflow:hidden; padding:0px 0px 0px 0px; margin:20px 0 30px 0; text-transform:none; }
.comentarios a { color: #333; }
.comentarios a:hover { color:#ffffff; }
.comentarios h3 { margin:0 0 10px 0; padding:0; font-size:20px; font-weight:normal; color:#222; }
ol.commentlist { list-style:none; margin:0; padding:0; }
ol.commentlist li { list-style:none; margin:0; padding:0; }
ol.commentlist li.comment ul.children li, ol.commentlist li.comment ul li { margin:0; padding:0 0 0 74px; background:url(./resposta.png) no-repeat 35px 0px; }
ol.commentlist li .avatar-comentario { float:left; margin:0 10px 0 0; height:74px; width:74px; display:block; position:relative; }
ol.commentlist li .comentario-campo { 
padding: 8px; 
overflow: hidden; 
margin: 0 0 20px 0; 
background-color: #FFFFFF;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
ol.commentlist li .comentario-nome { overflow:hidden; }
ol.commentlist li .nome-comentarista { font-size:14px; font-style:italic; color:#939598; padding:0; }
ol.commentlist li .nome-comentarista strong { color:#58595b; }
ol.commentlist li .nome-comentarista a { text-decoration:underline; color:#58595b; }
ol.commentlist li .nome-comentarista a:hover { color:#222; }
ol.commentlist li .data-comentario { font-size:10px; color:#939598; font-weight:normal; font-style:italic; }
ol.commentlist li .texto-comentario { margin:0; padding:10px 0px; color:#999999; line-height:18px; font-size:12px; }
ol.commentlist li .texto-comentario p { margin:0; padding:0; }
ol.commentlist li .texto-comentario a { text-decoration:none; color: #333; }
ol.commentlist li .texto-comentario a:hover { color:#555; }
ol.commentlist li .reply-link { font-size:11px; font-family:Verdana, Geneva, sans-serif; float:none; display:block; float:left; position:relative; text-transform:none; margin:10px 0 0 0; }
ol.commentlist li .reply-link a { display:block; padding:3px 10px; color:#fff !important; background: #333; }
ol.commentlist li .reply-link a:hover { background:#191919;
}
.links-comentario,
.caixa-mensagem {
margin-bottom: 8px;
}
.lista-de-comentarios h3,
.comentarios-titulo {
width: 100%;
margin: 0 0 15px;
padding: 0;
}
.comentario-campos {
padding: 8px 12px;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
margin-bottom: 25px;
}
.caixa-mensagem textarea {
width: 100%;
padding: 8px;
border: 1px #CCC solid;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.enviar-button {
border: none;
padding: 7px 16px;
background: #333;
color: #FFFFFF;
cursor: pointer;
width: 100%;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.enviar-button:hover {
opacity: 0.7;
}

.scomentarios {
    margin-bottom: 50px;
}

.scomentarios h3 {
    position: relative;
    display: inline-block;
    font-size: 20px;
    color: #000000;
    margin-bottom: 0.5rem;
}

.scomentarios h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #eeeeee;
    margin-top: 0.2rem;
}

/* Badge */
.badgee {
    background-color: #eb6230;
    padding: 5px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: none;
}

/* Single */

.single .entry-title {
    text-align: center;
    margin-bottom: 20px;
}

.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
    line-height: 1.3;
    font-weight: bold;
    box-shadow: none;
    color: #2d2d2d;
}

.single h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: none;
    margin-top: 20px;
}

.single h3 {
    font-weight: 700;
}

.single .entry-content h2 {
    font-size: 30px;
}

.single .entry-content h3 {
    font-size: 25px;
}

.single .entry-content h4 {
    font-size: 20px;
}

.single .entry-content h5 {
    font-size: 18px;
}

.single .entry-content h6 {
    font-size: 16px;
}

/* Breadcrumb yoast*/
.page-breadcrumb-yoast {
    font-size: 12px;
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 10px;
    list-style: none;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    color: #8c8c8c;
}

.page-breadcrumb-yoast a {
    text-decoration: none;
    color: #8c8c8c;
}

.page-breadcrumb-yoast a:hover {
    color: #757272;
}

/* Breadcrumb rankmath*/
.page-breadcrumb-rankmath {
    font-size: 12px;
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: -6px;
    list-style: none;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    color: #8c8c8c;
}

.page-breadcrumb-rankmath a {
    text-decoration: none;
    color: #8c8c8c;
}

.page-breadcrumb-rankmath a:hover {
    color: #757272;
}

/* Tables */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.single .entry-content table, th, td {
    border: 1px solid #ddd;
}

.single .entry-content th, td {
    padding: 8px;
    text-align: left;
}

.single .entry-content th {
    background-color: #f2f2f2;
}

/* Bullet Points */
.single .entry-content ul {
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 40px;
}

.single .entry-content ul li {
    margin-bottom: 5px;
}

/* Numbered Lists */
.single .entry-content ol {
    list-style-type: decimal;
    margin: 1em 0;
    padding-left: 40px;
}

.single .entry-content ol li {
    margin-bottom: 5px;
}

/* Image Alignments */
.single .entry-content img.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.single .entry-content img.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.single .entry-content img.aligncenter {
    display: block;
    margin: 0 auto;
}

/* Image Captions */
.single .entry-content .wp-caption {
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
    color: #545454;
}

.single .entry-content .wp-caption img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.single .entry-content .wp-caption {
    max-width: 100%;
}

.single .entry-content .wp-caption p.wp-caption-text {
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    padding: 0.5em 0;
    color: #555;
}

/* Paragraphs */

.single .entry-content {
    font-weight: normal;
}

.single .entry-content p {
    margin: 1em 0;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Links */
.single .entry-content a {
    color: #004aad;
    text-decoration: none;
}

.single .entry-content a:hover, a:focus {
    text-decoration: underline;
}

/* Blockquotes */
.single .entry-content blockquote {
    margin: 1em 40px;
    padding: 0.5em 10px;
    border-left: 5px solid #ccc;
    color: #666;
    background: #f9f9f9;
}

.single .entry-content blockquote p {
    margin: 0;
}

/* Responsive Video Embed */
.single .entry-content iframe[src*="youtube.com"],
.single .entry-content object,
.single .entry-content embed {
    max-width: 100%;
    max-height: 488px;
}
    
.single .entry-content iframe {
    max-height: none;
}

.entry-content {
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    text-align: inherit;
    text-transform: initial;
    letter-spacing: normal;
    color: #313131;
}

/* Author box */
.author-box {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0px;
    margin-top: 20px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    height: 80px;
    width: 80px;
}

.author-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.author-info h5 {
    margin: -20px 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-info h5 a {
    color: #000;
    text-decoration: none;
}

.author-info h5 a:hover {
    color: #004aad;
    text-decoration: none;
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Post info */
.post-info {
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    color: #8c8c8c;
}

.post-info a.author {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.post-info a.author:hover {
    text-decoration: underline;
}

.post-info .date {
    color: #333;
}

.post-info .separator {
    color: #8c8c8c;
}

/* Shares */

.share-buttons .share-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: default;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.share-buttons i {
    margin-right: 8px;
}

.share-buttons {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-buttons a {
    display: inline-block;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.share-buttons .btn {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.share-buttons .btn-outline-primary {
    border: 1px solid #007bff;
    color: #007bff;
}

.share-buttons .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.share-buttons .btn-facebook {
    background-color: #3b5998;
    color: #fff;
    width: 160px;
}

.share-buttons .btn-facebook:hover {
    background-color: #2d4373;
}

.share-buttons .btn-pinterest {
    background-color: #bd081c;
    color: #fff;
    width: 160px;
}

.share-buttons .btn-pinterest:hover {
    background-color: #8c0615;
}

.share-buttons .btn-telegram {
    background-color: #0088cc;
    color: #fff;
    width: 160px;
}

.share-buttons .btn-telegram:hover {
    background-color: #006f99;
}

.share-buttons .btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    width: 160px;
}

.share-buttons .btn-whatsapp:hover {
    background-color: #1DA851;
}

/* Shared top */

.share-buttons-top {
    align-items: center;
    justify-content: center;
}

.share-buttons-top a {
    display: inline-block;
    text-decoration: none;
    color: #FFF;
    transition: background-color 0.3s ease;
}

.share-buttons-top a:hover {
    text-decoration: none;
    color: #FFF;
    transition: background-color 0.3s ease;
}

share-buttons-top .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 5px;
        color: #fff;
        text-decoration: none;
        margin-right: 0.5rem;
    }

    .btn-comment { background-color: #FF5733; }
    .btn-whatsapp { background-color: #25D366; }
    .btn-facebook { background-color: #3b5998; }
    .btn-twitter { background-color: #1DA1F2; }
    .btn-telegram { background-color: #0088cc; }
    .btn-linkedin { background-color: #0077b5; }
    .btn-pinterest { background-color: #E60023; }

.share-buttons-top i {
    color: #fff;
}

/* Estilo para os posts relacionados */
.main-related-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0px 0px 5px 5px;
    margin-bottom: 2px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.main-related-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.related-posts h1 {
    position: relative;
    display: inline-block;
    font-size: 20px;
    color: #000000;
    margin-bottom: 0.5rem;
}

.related-posts h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #eeeeee;
    margin-top: 0.2rem;
}

.main-related-thumbnail .main-post-caption h2.entry-title {
    margin-top: 10px;
    font-size: 16px;
}

/* Galeria TMCP */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  justify-content: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

.gallery::after {
  content: "";
  display: block;
  clear: both;
}

.gallery .gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery .gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery .gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-columns-3,
.gallery-columns-4,
.gallery-columns-5 {
  all: unset;
}

.gallery br {
  display: none !important;
}

.gallery-caption {
  font-size: 0.8rem;
  text-align: center;
  color: #666;
  margin-top: 0.5rem;
}

.entry-content > *:not(.gallery) {
  clear: both;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Lightbox base */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.lightbox-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-overlay .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Widget */

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid #777;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0;
}

.sidebar-widget p,
.sidebar-widget a {
    color: #000;
}

.sidebar-widget a:hover {
    color: #eb6230;
}

/* Links e Hover */
.sidebar-widget a {
    color: #000;
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: #eb6230;
}

/* Listas */
.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
}

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

.sidebar-widget ul li a {
    color: #000;
}

.sidebar-widget ul li a:hover {
    color: #eb6230;
}


/* Footer Widget Area */

.publoop {
    margin-bottom: 20px;
}

.pubtopsingle {
    margin-top: -20px;
    margin-bottom: 50px;
}

.pubfooter {
    margin-bottom: 50px;
}

.footer-widget-area {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.widget-area {
    position: relative;
}

.widget-area:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #555;
}

.footer-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #777;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0;

}

.footer-widget p,
.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

/* Links e Hover */
.footer-widget a {
    color: #ccc;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #fff;
}

/* Listas */
.footer-widget ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-widget ul li a {
    color: #ccc;
}

.footer-widget ul li a:hover {
    color: #fff;
}

/* Calendário */
.footer-widget table {
    width: 100%;
    color: #ccc;
}

.footer-widget table th {
    color: #fff;
    text-align: center;
}

.footer-widget table td {
    text-align: center;
}

.footer-widget table caption {
    color: #fff;
    margin-bottom: 10px;
}

/* Widgets específicos */
.footer-widget .widget_recent_entries ul,
.footer-widget .widget_archive ul,
.footer-widget .widget_categories ul,
.footer-widget .widget_meta ul {
    list-style: none;
    padding-left: 0;
}

.footer-widget .widget_recent_entries ul li,
.footer-widget .widget_archive ul li,
.footer-widget .widget_categories ul li,
.footer-widget .widget_meta ul li {
    margin-bottom: 10px;
}

.footer-widget .widget_recent_entries ul li a,
.footer-widget .widget_archive ul li a,
.footer-widget .widget_categories ul li a,
.footer-widget .widget_meta ul li a {
    color: #ccc;
}

.footer-widget .widget_recent_entries ul li a:hover,
.footer-widget .widget_archive ul li a:hover,
.footer-widget .widget_categories ul li a:hover,
.footer-widget .widget_meta ul li a:hover {
    color: #fff;
}

.footer-widget-disabled,
.footer-menu-disabled {
    background-color: #444;
    color: #999;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #666;
}

.footer-widget-disabled::after,
.footer-menu-disabled::after {
    content: 'Widget Desabilitado';
}


/* Footer Menu */
.footer-menu-area {
    background-color: #222;
    padding: 10px 0;
    color: #ccc;
    text-align: center;
}

.footer-menu-area .nav {
    justify-content: center;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-menu-area .nav a {
    color: #ccc;
    padding: 5px 15px;
    text-decoration: none;
}

.footer-menu-area .nav a:hover {
    color: #fff;
}

/* Footer Credits */
.footer-credits {
    background-color: #111;
    color: #ccc;
    padding: 2px 0;
    text-align: center;
}

.footer-credits p {
    margin: 0;
    font-size: 14px;
}

/* Botão Top */
#btnTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  background-color: #101011;
  color: #FFF;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

#btnTop:hover {
  background-color: #004aad;
}

/* Estilo para o Widget de Calendário */
.widget_calendar {
    background-color: #444;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.widget_calendar caption {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.widget_calendar th {
    text-align: center;
    padding: 10px 5px;
    background-color: #555;
    color: #fff;
}

.widget_calendar td {
    text-align: center;
    padding: 10px;
    border: 1px solid #555;
}

.widget_calendar td a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.widget_calendar td a:hover {
    background-color: #ff6f61;
}

.widget_calendar tfoot {
    text-align: center;
    margin-top: 10px;
}

.widget_calendar tfoot a {
    color: #ff6f61;
    text-decoration: none;
}

.widget_calendar tfoot a:hover {
    text-decoration: underline;
}

/* Adiciona um pouco de espaço entre os dias */
.widget_calendar td {
    padding: 5px;
}

/* Estilo para o dia atual */
.widget_calendar td#today {
    background-color: #ff6f61;
    color: #fff;
    border-radius: 50%;
}

/* Remover bordas desnecessárias */
.widget_calendar table {
    border: none;
}

/* Estilo para o Widget de Posts Mais Vistos */
.most-viewed-posts {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.most-viewed-post {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.post-rank {
    position: absolute;
    top: -2px;
    left: 0;
    font-size: 16px;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.post-rank:nth-child(1) {
    background-color: #eb6230;
}

.post-thumbnail-wg {
    margin-right: 10px;
    position: relative;
    z-index: 0;
}

.post-thumbnail-wg img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
}

.post-info-wg {
    color: #000;
    flex-grow: 1;
    font-size: 16px;
    margin-left: 5px;
}

.post-info-wg a {
    color: #000;
    text-decoration: none;
    line-height: 1.4;
}

.post-info-wg a:hover {
    color: #ff6f61;
}

/* Estilos para a barra de busca em dispositivos móveis */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -80%;
        width: 80%;
        height: 100%;
        background-color: #333;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        z-index: 1050;
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar-toggler {
        z-index: 1100;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: #fff;
        padding: 10px 15px;
        border-bottom: 1px solid #444;
    }

    /* Estilizando o menu do dropdown */
    .dropdown-menu {
        background-color: #f9f9f9;
        border: 1px solid #ccc;
        border-radius: 0px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Estilizando os itens do menu */
    .dropdown-item {
        color: #eb6230;
        padding: 10px 20px;
    }

    .dropdown-item:hover {
        background-color: #f1f1f1;
        color: #000;
    }

    .search-form {
        padding: 8px;
    }

    .search-form input[type="search"] {
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 0;
        background: #444;
        color: #fff;
    }

    .search-form input[type="submit"] {
        display: none;
    }
}

/* Estilo para movel portrait */
@media (max-width: 768px) {
    .navbar-brand img {
        width: auto;
        height: 40px;
    }
    .carousel-inner img {
        height: 45%;
    }
    .carousel-caption {
        bottom: 5px;
        left: 10px;
        right: 10px;
    }
    .footer-menu-area .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    }
    .footer-menu-area .nav a {
    padding: 5px 5px;
    white-space: nowrap;
    }

    .footer-widget {
        margin-bottom: 20px;
    }
    #btnTop {
        ;
        padding: 5px 10px;   
    }
    .single .entry-content iframe[src*="youtube.com"],
    .single .entry-content object,
    .single .entry-content embed {
    max-height: 210px;
    }
    .single .entry-content iframe {
    max-height: none;
    }
    .main-tag {
        margin-bottom: 0px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-tag .tags-label {
        margin-bottom: 5px;
        text-align: center;
        width: 100%;
    }
    .main-tag .tags-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-tag .tag-item {
        background-color: #e9ecef;
        width: calc(50% - 10px);
        margin-bottom: 10px;
    }
    .author-box {
        flex-direction: column;
        align-items: center;
    }
    .author-avatar img {
        height: 60px;
        width: 60px;
        margin-bottom: 5px;
        margin-right: -15px;
    }
    .author-info {
        margin-top: 10px;
    }
    .author-info h5 {
        font-size: 16px;
        white-space: normal;
        margin-top: 0;
        text-align: center;
    }
    .author-info p {
        font-size: 13px;
    }
    .share-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    .share-buttons .share-label {
        margin-bottom: 10px;
    }
    .share-buttons .d-flex.flex-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; 
    }
    .share-buttons .btn {
        width: 45%;
        max-width: 160px;
        display: flex;
        justify-content: center;
        margin: 5px;
    }
    .main-loop-thumbnail {
    margin-bottom: -10px;
    }
    .main-cat2-thumbnail {
    margin-bottom: -16px;
    }
    .main-related-thumbnail {
    margin-bottom: -12px;
    }
    .scomentarios {
        margin-top: -8px;
    }
    .posts-recentes .pagination {
        margin-top: 44px;
        margin-bottom: 46px;
    }
    
    .posts-recentes .entry-meta {
    
    padding: 5px 5px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
    }
    .publoop {
    margin-bottom: 10px;
    }
    .pubtopsingle {
    margin-bottom: 30px;
    }
    .pubfooter {
    margin-bottom: 30px;
    }
    .featured-post .entry-title-loop {
    margin-top: 15px;
    }
    .featured-post .entry-meta {
    margin-bottom: -30px;
    }
}

/* Estilo para responsividade */
@media (max-width: 600px) {
    nav.pagination a,
    nav.pagination span {
    padding: 8px 12px;
    margin: 0 3px;
    }
}

/* Estilo para móvel landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .side-posts .entry-title {
        font-size: 13px !important;
        margin: 0;
        text-align: center;
    }
}

/* Media queries para iPads */
@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-inner img {
    height: 267px;
    }
    .carousel-caption p {
        font-size: 14px;
    }
    .side-posts .entry-title {
    font-size: 14px;
    margin: 0;
    text-align: center;
    }
    nav.pagination a,
    nav.pagination span {
    padding: 8px 12px;
    margin: 0 3px;
    }
    .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 24px;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    }
    .carousel-caption h5 {
    font-size: 20px;
    }
    .single .entry-content iframe[src*="youtube.com"],
    .single .entry-content object,
    .single .entry-content embed {
    max-height: 400px;
    }
    .single .entry-content iframe {
    max-height: none;
    }
    .share-buttons .btn {
    width: 45%;
    max-width: 160px;
    display: flex;
    justify-content: center;
    margin: 5px;
    }
}

/* Estilos específicos para iPad Pro 12.9" */
@media (min-width: 1024px) and (max-width: 1366px) {
    .carousel-inner img {
    height: 357px;
    }
    .navbar-nav .nav-link {
        font-size: 15px;
    }
}

/* Estilos específicos para iPad Pro 12.9 landscape" */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .carousel-inner img {
    height: 424px;
    }
    .navbar-nav .nav-link {
        font-size: 16px;
    }
}

/* Media queries para dispositivos móveis (celulares) em modo paisagem */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
    .carousel-inner img {
    height: 267px;
    }
    .navbar-nav .nav-link {
        font-size: 15px;
    }
    .side-posts .entry-title {
    font-size: 18px;
    margin: 0;
    text-align: center;
    }
    nav.pagination a,
    nav.pagination span {
        padding: 8px 12px;
        margin: 0 3px;
    }
    .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    }
    .carousel-caption h5 {
    font-size: 18px;
    }
}

/* Cards modernos para a homepage */
.modern-cards-grid .modern-card .card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.modern-cards-grid .modern-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.modern-cards-grid .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.modern-cards-grid .card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.modern-cards-grid .card:hover .card-img-top {
    transform: scale(1.05);
}

.modern-cards-grid .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-cards-grid .card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.modern-cards-grid .card-title a:hover {
    color: #007bff;
}

.modern-cards-grid .card-meta {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Cards para páginas de categoria */
.featured-posts .featured-card-item {
    border-radius: 15px;
    overflow: hidden;
}

.featured-posts .featured-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.featured-posts .card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.featured-posts .featured-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.featured-posts .featured-card-item:hover .featured-img {
    transform: scale(1.1);
}

.featured-posts .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

.featured-posts .featured-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.featured-posts .featured-title a {
    color: white;
    text-decoration: none;
}

.featured-posts .featured-title a:hover {
    text-decoration: none;
}

/* Grid de categoria moderno */
.modern-category-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.modern-category-grid > .col-lg-3,
.modern-category-grid > .col-md-4,
.modern-category-grid > .col-sm-6 {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
}

.modern-category-grid .modern-category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-category-grid .category-card-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-category-grid .category-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.modern-category-grid .card-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.modern-category-grid .category-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.modern-category-grid .category-card-item:hover .category-img {
    transform: scale(1.05);
}

.modern-category-grid .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-category-grid .card-title {
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modern-category-grid .card-meta {
    margin-top: auto;
}

.modern-category-grid .category-link {
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.modern-category-grid .category-link:hover {
    text-decoration: none;
}

/* Ajustes para mobile - categoria */
@media (max-width: 768px) {
    .modern-category-grid .card-title {
        -webkit-line-clamp: unset;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .modern-cards-grid .card-img-top {
        height: 160px;
    }
    
    .featured-posts .card-img-wrapper {
        height: 200px;
    }
    
    .modern-category-grid .card-img-wrapper {
        height: 150px;
    }
    
    .category-navigation {
        text-align: center;
    }
    
    .category-navigation .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .modern-cards-grid .col-lg-4 {
        margin-bottom: 20px;
    }
    
    .modern-category-grid .col-lg-3 {
        margin-bottom: 20px;
    }
    
    .featured-posts .featured-overlay {
        padding: 15px;
    }
    
    .featured-posts .featured-title {
        font-size: 1rem;
    }
}

/* Melhorias gerais de UX */
.card {
    border: none !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Animações suaves */
* {
    transition: all 0.3s ease;
}

a {
    text-decoration: none !important;
}

/* Paginação moderna */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    color: #007bff;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* ===== CAROUSEL ORIGINAL MELHORADO ===== */

.carousel-modern {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 400px;
}

.carousel-modern .carousel-inner {
    height: 100%;
    border-radius: 15px;
}

.carousel-modern .carousel-item {
    height: 400px;
    position: relative;
}

.carousel-modern .carousel-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.carousel-modern .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    text-align: left;
    border-radius: 0 0 15px 15px;
}

.carousel-modern .carousel-caption h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.carousel-modern .carousel-caption h5 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carousel-modern .carousel-caption h5 a:hover {
    /* Cor controlada pelo painel via custom-styles-carousel.php */
}

.carousel-modern .custom-excerpt {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Indicadores do carousel */
.carousel-modern .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.carousel-modern .carousel-indicators button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.carousel-modern .carousel-indicators button.active {
    background-color: #fff;
    opacity: 1;
    transform: none;
}

/* Controles do carousel */
.carousel-modern .carousel-control-prev,
.carousel-modern .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-modern .carousel-control-prev:hover,
.carousel-modern .carousel-control-next:hover {
    opacity: 1;
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-modern .carousel-control-prev {
    left: 20px;
}

.carousel-modern .carousel-control-next {
    right: 20px;
}

.carousel-modern .carousel-control-prev-icon,
.carousel-modern .carousel-control-next-icon {
    filter: invert(1);
}

/* ===== SIDE POSTS AJUSTADOS ===== */

.modern-side-posts {
    height: 400px; /* Mesma altura do carousel */
    display: flex;
    flex-direction: column;
}

.side-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.modern-side-post-item {
    margin: 0;
    flex: 1; /* Distribui igualmente o espaço */
    height: calc(50% - 5px); /* Força altura igual para ambos os cards */
}

.side-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.side-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.side-post-image-wrapper {
    height: 140px; /* ou 150px conforme o design */
    flex: none;
}

.side-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.side-post-card:hover .side-post-image {
    transform: scale(1.05);
}

/* Badge com clip-path personalizado */
.side-post-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 15px 6px 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    z-index: 2;
}

.badge-text {
    display: block;
}

.side-post-content {
    padding: 15px;
    flex-shrink: 0; /* Não permite que o conteúdo encolha */
    min-height: 60px; /* Altura mínima para o conteúdo */
    display: flex;
    align-items: center; /* Centraliza verticalmente o título */
}

.side-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.side-post-title a:hover {
    /* Cor controlada pelo painel via custom-styles-carousel.php */
}

/* ===== RESPONSIVIDADE MELHORADA ===== */

@media (max-width: 1199px) {
    .carousel-modern,
    .carousel-modern .carousel-item {
        height: 350px;
    }
    
    .modern-side-posts {
        height: 350px;
    }
    
    .carousel-modern .carousel-caption {
        padding: 25px;
    }
    
    .carousel-modern .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .modern-side-posts {
        margin-top: 30px;
        height: auto;
    }
    
    .side-posts-grid {
        flex-direction: row;
        gap: 15px;
        height: auto;
    }
    
    .modern-side-post-item {
        flex: 1;
    }
    
    .side-post-image-wrapper {
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .carousel-modern,
    .carousel-modern .carousel-item {
        height: 280px;
    }
    
    .carousel-modern .carousel-caption {
        padding: 20px;
    }
    
    .carousel-modern .carousel-caption h5 {
        font-size: 1.1rem;
    }
    
    .carousel-modern .custom-excerpt {
        display: none;
    }
    
    .carousel-modern .carousel-control-prev,
    .carousel-modern .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-modern .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-modern .carousel-control-next {
        right: 15px;
    }
    
    /* CORREÇÃO MOBILE: Side posts sem sobreposição e altura flexível */
    .modern-side-posts {
        height: auto; /* Altura automática para permitir crescimento */
        min-height: 280px; /* Altura mínima igual ao carousel mobile */
        margin-top: 20px; /* Espaçamento adequado do carousel */
        margin-bottom: 20px; /* Espaçamento para próxima seção */
    }
    
    .side-posts-grid {
        flex-direction: column;
        gap: 15px; /* Gap aumentado para melhor separação */
        height: auto; /* Altura automática */
        padding: 0; /* Remove padding extra */
        margin: 0; /* Remove margin extra */
    }
    
    .modern-side-post-item {
        height: auto; /* Altura automática para permitir crescimento */
        min-height: 120px; /* Altura mínima para garantir consistência */
        margin: 0; /* Remove margens que causam sobreposição */
        padding: 0; /* Remove padding extra */
        flex-shrink: 0; /* Impede que os cards encolham */
    }
    
    .side-post-card {
        height: auto; /* Altura automática para permitir crescimento */
        min-height: 120px; /* Altura mínima */
        margin: 0; /* Remove margens do card */
        box-sizing: border-box; /* Inclui padding e border no cálculo da altura */
    }
    
    .side-post-image-wrapper {
        min-height: 140px; /* Altura mínima reduzida para mobile */
        height: 80px; /* Altura fixa para as imagens */
        flex-shrink: 0; /* Impede que a imagem encolha */
    }
    
    .side-post-content {
        padding: 10px; /* Padding reduzido para mobile */
        min-height: auto; /* Altura mínima automática para o conteúdo */
        flex-shrink: 0; /* Impede que o conteúdo encolha */
        height: auto; /* Garante que a altura se ajuste ao conteúdo */
    }
    
    .side-post-title {
        font-size: 0.85rem; /* Fonte menor para mobile */
        line-height: 1.2; /* Line-height reduzido */
        -webkit-line-clamp: unset; /* Remove limitação de linhas */
        -webkit-box-orient: vertical;
        overflow: visible; /* Permite que o texto seja totalmente visível */
        text-overflow: unset; /* Remove truncamento */
        white-space: normal; /* Permite quebra de linha normal */
        display: block; /* Garante que o texto seja exibido em bloco */
        height: auto; /* Permite que a altura se ajuste ao conteúdo */
    }
}

@media (max-width: 576px) {
    .carousel-modern,
    .carousel-modern .carousel-item {
        height: 250px;
    }
    
    .carousel-modern .carousel-caption {
        padding: 15px;
    }
    
    .carousel-modern .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .carousel-modern .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-modern .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .side-post-content {
        padding: 12px;
    }
    
    .side-post-title {
        font-size: 0.9rem;
    }
}

/* Animações suaves para todos os elementos */
.carousel-modern *,
.modern-side-posts * {
    transition: all 0.3s ease;
}

/* Melhorias de acessibilidade */
.carousel-modern .carousel-control-prev:focus,
.carousel-modern .carousel-control-next:focus,
.side-post-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Estados de loading */
.carousel-image[src=""],
.side-post-image[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== BARRA DE BUSCA MODERNA ===== */

.modern-search-form {
    margin-left: auto;
    position: relative;
    max-width: 300px;
}

.modern-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern-search-wrapper:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.modern-search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(235, 98, 48, 0.2);
}

.modern-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 18px;
    font-size: 14px;
    color: #fff;
    border-radius: 25px;
    outline: none;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.modern-search-input:focus {
    color: #fff;
}

.modern-search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-search-button {
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.modern-search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modern-search-button:active {
    transform: scale(0.98);
}

.modern-search-button i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.modern-search-button:hover i {
    transform: scale(1.1);
}

/* Animação de foco */
@keyframes searchFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 98, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(235, 98, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(235, 98, 48, 0);
    }
}

.modern-search-wrapper:focus-within {
    animation: searchFocus 0.6s ease-out;
}

@media (max-width: 991.98px) {
    .modern-search-form {
        max-width: 100%;
        margin: 10px 0;
        padding: 0 15px;
    }

    .modern-search-wrapper {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .modern-search-wrapper:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .modern-search-wrapper:focus-within {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 3px rgba(235, 98, 48, 0.2);
        animation: searchFocus 0.6s ease-out;
    }

    .modern-search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 12px 18px;
        font-size: 14px;
        color: #fff;
        border-radius: 25px;
        outline: none;
        font-weight: 400;
        letter-spacing: 0.3px;
        min-width: 0;
    }

    .modern-search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 300;
    }

    .modern-search-button {
        border: none;
        padding: 10px 15px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
    }

    .modern-search-button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .modern-search-button:active {
        transform: scale(0.98);
    }

    .modern-search-button i {
        font-size: 14px;
        transition: transform 0.2s ease;
    }

    .modern-search-button:hover i {
        transform: scale(1.1);
    }
}

/* Estilo para o título de destaque */
.section-title .highlight-title {
    color: #eb6230; /* Cor de destaque */
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.section-title .highlight-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #eb6230; /* Cor da linha de destaque */
    border-radius: 2px;
}


/* Estilos para cards verticais do author.php */
.modern-cards-grid-vertical {
    margin-top: 20px;
}

.modern-card-vertical {
    margin-bottom: 8px;
}

.modern-card-vertical .card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.modern-card-vertical .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-wrapper-vertical {
    position: relative;
    width: 300px;
    min-width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img-vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-card-vertical .card:hover .card-img-vertical {
    transform: scale(1.05);
}

.modern-card-vertical .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-card-vertical .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #333;
}

.modern-card-vertical .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-card-vertical .card-title a:hover {
    color: #eb6230;
}

.modern-card-vertical .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.modern-card-vertical .card-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
}

.modern-card-vertical .card-meta small {
    font-size: 0.85rem;
    color: #888;
}

.meta-category-time-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.meta-category-author a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.meta-category-author a:hover {
    color: #eb6230;
    text-decoration: underline;
}

.meta-time-author {
    color: #888;
}

/* Responsividade para cards verticais */
@media (max-width: 768px) {
    .modern-card-vertical .card {
        flex-direction: column !important;
        display: flex !important;
    }
    
    .card-img-wrapper-vertical {
        width: 100% !important;
        min-width: auto !important;
        height: 200px !important;
        flex-shrink: 0 !important;
    }
    
    .modern-card-vertical .card-body {
        padding: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 150px !important;
    }
    
    .modern-card-vertical .card-title {
        font-size: 1.1rem !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
    
    .modern-card-vertical .card-text {
        font-size: 0.9rem !important;
        display: block !important;
        margin-bottom: 10px !important;
        flex-grow: 1 !important;
    }
    
    .modern-card-vertical .card-meta {
        display: block !important;
        margin-top: auto !important;
        padding-top: 10px !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    .meta-category-time-author {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper-vertical {
        height: 180px !important;
    }
    
    .modern-card-vertical .card-body {
        padding: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 140px !important;
    }
    
    .modern-card-vertical .card-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    .modern-card-vertical .card-text {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        display: block !important;
        flex-grow: 1 !important;
    }
    
    .modern-card-vertical .card-meta {
        padding-top: 8px !important;
        display: block !important;
        margin-top: auto !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    .meta-category-time-author {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }
}

/* Melhorias no author box */
.author-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.author-box .author-avatar img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-box .author-info h5 a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.author-box .author-info h5 a:hover {
    color: #eb6230;
}

.author-box .author-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ===== Loops adicionais ===== */

.modern-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.modern-post-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.modern-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.post-card-image .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modern-post-card:hover .card-img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  margin-bottom: 12px;
}

.category-tag {
  display: inline-block;
  background: #4a7c59;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.category-tag:hover {
  background: #3d6b4a;
  color: white;
  text-decoration: none;
}

.post-card-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.post-card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-excerpt {
  flex: 1;
  margin-bottom: 16px;
}

.post-card-excerpt p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.post-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.post-time {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
  .modern-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card-content {
    padding: 16px;
  }

  .post-card-title {
    font-size: 16px;
  }

  .modern-post-card {
    margin-bottom: 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .modern-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .modern-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Design 2 - Horizontal */
.horizontal-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.horizontal-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.horizontal-post-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.horizontal-post-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.horizontal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizontal-post-card:hover .horizontal-img {
    transform: scale(1.05);
}

.horizontal-post-content {
    flex: 1;
}

.horizontal-category-tag {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.3s ease;
}

.horizontal-category-tag:hover {
    background: #1e7e34;
    color: white;
}

.horizontal-post-title {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.4;
}

.horizontal-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.horizontal-post-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.horizontal-post-meta {
    color: #999;
    font-size: 13px;
}

/* Design 3 - Compacto */
.compact-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.compact-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 8px;
}

.compact-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.compact-post-image {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.compact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.compact-post-card:hover .compact-img {
    transform: scale(1.03);
}

.compact-post-content {
    padding: 15px;
}

.compact-category-tag {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.compact-category-tag:hover {
    background: #c82333;
    color: white;
}

.compact-post-title {
    margin: 8px 0 0 0;
    font-size: 16px;
    line-height: 1.3;
}

.compact-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .horizontal-post-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .horizontal-post-image {
        width: 100%;
        height: 200px;
    }
    
    .modern-posts-grid,
    .compact-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .compact-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .compact-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .horizontal-post-inner {
        padding: 15px;
    }
    
    .post-card-content,
    .compact-post-content {
        padding: 15px;
    }
}

.modern-cards-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.modern-cards-grid > .col-lg-4,
.modern-cards-grid > .col-md-6 {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
}

.modern-cards-grid .modern-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-cards-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-cards-grid .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-cards-grid .card-title {
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modern-cards-grid .card-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modern-cards-grid .card-meta {
    margin-top: auto;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .modern-cards-grid .card-title,
    .modern-cards-grid .card-text {
        -webkit-line-clamp: unset;
        overflow: visible;
        text-overflow: unset;
    }
}

/* ===== RELATED MODERN CARDS DESIGN ===== */

.related-modern-cards-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.related-modern-cards-grid > .col-lg-4,
.related-modern-cards-grid > .col-md-6 {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
}

.related-modern-cards-grid .related-modern-card .related-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.related-modern-cards-grid .related-modern-card .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.related-modern-cards-grid .related-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.related-modern-cards-grid .related-card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-modern-cards-grid .related-card:hover .related-card-img-top {
    transform: scale(1.05);
}

.related-modern-cards-grid .related-card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.related-modern-cards-grid .related-card-title a:hover {
    color: #007bff;
}

.related-modern-cards-grid .related-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.related-modern-cards-grid .related-card-title {
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .related-modern-cards-grid .related-card-img-top {
        height: 160px;
    }
    .related-modern-cards-grid .related-card-title {
        -webkit-line-clamp: unset;
        overflow: visible;
        text-overflow: unset;
        font-size: 1.1rem;
    }
    .related-modern-cards-grid > .col-lg-4,
    .related-modern-cards-grid > .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .related-modern-cards-grid .related-card-body {
        padding: 15px;
    }
    .related-modern-cards-grid .related-card-title {
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .related-modern-cards-grid .related-card-img-top {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
}

/* Ajustes para o design 'relacionado' */
.related-posts h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.related-modern-cards-grid .related-card-body {
    padding: 15px;
}

.related-modern-cards-grid .related-card-title {
    font-size: 1rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.related-modern-cards-grid .related-card-img-wrapper {
    height: 150px;
}

@media (max-width: 576px) {
    .related-modern-cards-grid .related-card-img-top {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
    .related-modern-cards-grid .related-card-img-wrapper {
        height: 150px;
    }
    .related-modern-cards-grid .related-card-title {
        font-size: 0.9rem;
    }
}