/* Container principal */
#tabs-container {
    max-width: var(--content-width);
    margin: auto;
    padding: 0;
    background: var(--light-grey);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    justify-content: flex-start;
    align-items: stretch;
}

.tabs-plugin .titles {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 0;
    text-align: center;
    gap: 4px;
}

.tabs-plugin .titles .category-title {
    flex: 1;
    padding: 15px;
    background: #EEEEEE;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    border-top: 1px solid #DCDCDC;
    border-left: 1px solid #DCDCDC;
    border-right: 1px solid #DCDCDC;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: center;
    text-decoration: none;
}

.tabs-plugin .titles .category-title:hover {
    background: #DCDCDC;
    text-decoration-line: underline;
    transition: width 0.3s ease;
}




.tabs-plugin .titles .category-title.active {
    background: #DCDCDC;
    color: #000;
    text-decoration-line: underline;
}

.tabs-plugin .titles .category-title i {
    margin-left: 8px;
    font-size: 1em;
}


/* Zoom na imagem quando em hover sincronizado */
.content-category .category-item.hovered img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.content-category {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    align-items: stretch;
}

.content-category .category-item {
    flex: 1 1 calc(50% - 10px);
    background: #EEEEEE;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-between;
    align-items: stretch;
    box-sizing: border-box;
    height: auto;
    min-height: 200px;
}

.content-category .category-item.hidden {
    height: 0;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 0;
}

.content-category .category-item:hover {
    transition: all 0.15s ease, opacity 0.15s ease;
    background: #DCDCDC;
}

/* Imagem dentro da categoria */
.content-category .category-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0px;
    transition: transform 0.2s ease;
}


.content-category .category-item:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background: #DCDCDC;
}

/* Descrição */
.content-category .category-item p {
    flex-grow: 1;
    font-weight: 300;
    margin-top: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
}

/* Container de posts */
.posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 20px;
    margin-top: 0;
    background: #DCDCDC;
    flex-direction: row;
    align-content: space-between;
    align-items: stretch;
    justify-content: space-between;
    min-width: var(--container-max-width);
    box-sizing: border-box;
}

/* Cada post */
.posts-container .post-item {
    flex: 1 1 calc(33.333% - 15px);
    /* Ajustado para espaçamento consistente */
    border-radius: 5px;
    background: #C7C7C7;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.posts-container .post-item:hover {
    transform: scale(1.05);
}

/* Imagem do post */
.posts-container .post-item .post-thumbnail img {
    width: 100%;
    height: 180px;
    /* Altura fixa */
    object-fit: cover;
    /* Todas imagens com proporção uniforme */

    /* Evita que a imagem ultrapasse o container */
    box-sizing: border-box;
    /* Inclui padding e bordas no cálculo da largura total */
    display: block;
}

/* Conteúdo do post */
.post-item .post-item-content {
    padding: 15px;
    text-align: left;
}

.post-item h3 {
    font-weight: 500 !important;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-item p {}

a.read-more {
    color: #000;
}

.read-more {
    display: block;
    margin-top: 10px;
    color: var(--darker-grey);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsividade */
@media screen and (max-width: 768px) {

    .tabs-plugin .titles,
    .tabs-plugin .content-category {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: space-evenly;
        align-items: stretch;
    }


    .content-category .category-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .posts-container {
        padding: 10px;
        gap: 10px;
        width: 100%;
        min-width: unset;
        display: flex;
        flex-wrap: nowrap;
        align-content: stretch;
        justify-content: space-evenly;
        flex-direction: column;
    }

    .posts-container .post-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .posts-container .post-item .post-thumbnail img {
        width: 100%;
        height: auto;
        /* Ajusta a altura dinamicamente para respeitar a largura */
    }

}