/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    /* Critical styles for above-the-fold content */
    display: flex; /* Change back to flex */
    flex-direction: column;
    min-height: 100vh;
}

.header-wrapper {
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #1f1f1f; /* Ensure background color matches header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    background-color: #1f1f1f; /* Ensure background color matches header */
}

header {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    /* Remova a linha abaixo para que o header não fique fixo */
    /* position: sticky; */
    /* top: 0; */
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px; /* Adjust to your desired max width */
    padding: 0 20px;
    margin: 0 auto; /* Center horizontally */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav ul.categories {
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #1f1f1f;
}

nav ul.categories li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul.categories li a:hover {
    color: #ffcc00;
}

.search-form {
    margin-top: 10px;
}

.search-form input[type="text"] {
    padding: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #5d5b5b;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #878484;
}

nav ul.categories {
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #1f1f1f;
}

nav ul.categories li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul.categories li a:hover {
    color: #ffcc00;
}

.container {
    display: flex;
    max-width: 1000px; /* Adjusted max-width */
    margin: 30px auto;
    padding: 20px;
    background-color: #1f1f1f;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    gap: 20px;
    flex: 1;
    margin-top: 30px; /* Adjust margin to account for header */
}

.sidebar {
    flex: 1;
    max-width: 300px;
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget h2 {
    color: #ffcc00;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    margin-bottom: 10px;
}

.sidebar .widget ul li a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s;
}

.sidebar .widget ul li a:hover {
    color: #ffcc00;
}

.sidebar .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar .tags li a {
    background-color: #ffcc00;
    color: #1f1f1f;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar .tags li a:hover {
    background-color: #e6b800;
}

.content {
    flex: 3;
}

.featured-posts,
.all-posts {
    margin-bottom: 40px;
}
 
.featured-posts h2,
.all-posts h2 {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.featured-posts ul,
.all-posts ul {
    list-style: none;
}

.featured-posts li,
.all-posts li {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.featured-posts li:hover,
.all-posts li:hover {
    transform: translateY(-5px);
    background-color: #333333;
    cursor: pointer;
}




.thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.highlighted-posts h2 {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Estilos do Carrossel */
.carousel {
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background-color: #1f1f1f;
    /* Critical styles for carousel */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.title-link {
    color: inherit; /* Herda a cor do elemento pai */
    text-decoration: none; /* Remove o sublinhado */
}

.title-link:hover,
.title-link:focus {
    color: inherit; /* Mantém a cor original ao passar o mouse ou focar */
    text-decoration: none; /* Mantém o sublinhado removido */
}

.carousel-item a {
    display: flex;
    align-items: center;
    width: 90%;
    height: 90%;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.carousel-item a:hover {
    transform: scale(1.02);
}

.carousel-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.carousel-placeholder {
    width: 50%;
    height: 100%;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px 0 0 8px;
    color: #999999;
    font-size: 1.2em;
    padding: 10px;
    box-sizing: border-box;
}

.carousel-info {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #1f1f1f;
    border-radius: 0 8px 8px 0;
}

.carousel-info h3 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.carousel-info p.excerpt {
    color: #cccccc;
    margin-bottom: 15px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 204, 0, 0.8);
    border: none;
    color: #1f1f1f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(255, 204, 0, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators .indicator {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 204, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-indicators .indicator.active {
    background-color: rgba(255, 204, 0, 1);
    transform: scale(1.3);
}

.post-info h3 {
    text-decoration: none;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.post-info p.excerpt {
    color: #cccccc;
    margin-bottom: 5px;
}

.post-info span {
    font-size: 0.9em;
    color: #999999;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1f1f1f;
    color: #ffffff;
    margin-top: 40px;
    border-radius: 8px;
}

/* Estilos para os Filtros de Tags no Sidebar */
.sidebar .widget.tags-filters {
    margin-bottom: 30px;
}

.sidebar .widget.tags-filters h2 {
    color: #ffcc00;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.sidebar .widget.tags-filters .tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

.sidebar .widget.tags-filters .tags li a.tag-link {
    background-color: #ffcc00;
    color: #1f1f1f;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    display: inline-block;
}

.sidebar .widget.tags-filters .tags li a.tag-link.active {
    background-color: #e6b800;
    transform: scale(1.05);
}

.sidebar .widget.tags-filters .tags li a.tag-link:hover {
    background-color: #e6b800;
}

.sidebar .widget.tags-filters .selected-tags {
    margin-top: 20px;
    text-align: left;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar .widget.tags-filters .selected-tags.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.sidebar .widget.tags-filters .selected-tags h3 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 1em;
}

.sidebar .widget.tags-filters .selected-tags-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.sidebar .widget.tags-filters .selected-tags-list li.selected-tag {
    background-color: #333333;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.sidebar .widget.tags-filters .selected-tags-list li.selected-tag button.remove-tag {
    background: none;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1em;
    color: #ffcc00;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #666666;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar .widget.tags-filters .selected-tags-list li.selected-tag button.remove-tag:hover {
    background-color: #e6b800;
    color: #ffffff;
}

/* Consolidated media query for max-width: 768px */
@media (max-width: 768px) {
    .container {
        /* Center the container */
        margin: 0 auto;
        width: 100%;
        /* ...existing code... */
    }

    .main-header {
        /* Ensure header content is centered */
        align-items: center;
        /* ...existing code... */
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 20px;
        /* ...existing code... */
    }

    .content {
        max-width: 100%;
        /* ...existing code... */
    }

    .featured-posts li,
    .all-posts li {
        flex-direction: column;
        align-items: flex-start;
        /* ...existing code... */
    }

    .thumbnail,
    .post-thumbnail {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
        /* ...existing code... */
    }

    .carousel {
        height: 350px;
        /* ...existing code... */
    }

    .carousel-item a {
        flex-direction: column;
        height: 100%;
        /* ...existing code... */
    }

    .carousel-image,
    .carousel-placeholder {
        width: 100%;
        height: 60%;
        border-radius: 8px 8px 0 0;
        /* ...existing code... */
    }

    .carousel-info {
        width: 100%;
        height: 40%;
        border-radius: 0 0 8px 8px;
        /* ...existing code... */
    }

    .post-info {
        width: 100%;
        margin-left: 0;
        /* ...existing code... */
        padding: 5px 0; /* Reduzido o padding vertical */
        height: 40px; /* Definida altura fixa para tornar mais fina */
    }

    .post-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        /* ...existing code... */
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        /* ...existing code... */
    }

    .post-tags ul li,
    .sidebar .tags li a,
    .sidebar .widget.tags-filters .tags li a.tag-link {
        padding: 2px 4px;
        font-size: 0.6em;
        /* ...existing code... */
    }

    .post-tags ul li:nth-child(n+6),
    .sidebar .tags li:nth-child(n+6),
    .sidebar .widget.tags-filters .tags li:nth-child(n+6) {
        display: none;
        /* ...existing code... */
    }

    .see-all-tags {
        display: block;
        /* ...existing code... */
    }

    /* ...existing code... */
    .see-all-tags {
        display: block; /* Ensure the "See All" button is visible */
    }
    .sidebar .tags li {
        display: block; /* Ensure all tags are visible */
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .modal-header, .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .modal-header h2 {
        margin-bottom: 10px;
    }
    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .apply-tags {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para as Tags nos Posts (Opcional) */
.post-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.post-tags li {
    background-color: #333333;
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 3px;

}

a {
    text-decoration: none;
    color: #ffcc00; /* Bright yellow for links */
}

a:hover {
    color: #e6b800; /* Slightly darker yellow for hover state */
}

/* Estilos para o Modal */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo semi-transparente */
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

.modal-content {
    background-color: #1f1f1f;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.modal-header, .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-footer {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 20px;
}

.close-button {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.close-button:hover,
.close-button:focus {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(1.1);
}

/* Adicionando um efeito de foco para acessibilidade */
.close-button:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Imagem no Modal */
#modal-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Nome do Produto */
#modal-name {
    font-size: 1.5em;
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Botão de Comprar */
#buy-button {
    background-color: #ffcc00;
    color: #1f1f1f;
    border: none;
    padding: 10px 25px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#buy-button:hover {
    background-color: #e6b800;
}

/* Navegação no Modal */
.modal-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-navigation button {
    background-color: #ffcc00;
    color: #1f1f1f;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
}

.modal-navigation button:hover {
    background-color: #e6b800;
}

/* Responsividade */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-header, .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-header h2 {
        margin-bottom: 10px;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .apply-tags {
        width: 100%;
        text-align: center;
    }
}



.post-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.post-left {
    flex: 1 1 300px;
    max-width: 300px;
}

.post-featured-image {
    margin-bottom: 20px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}



.post-tags ul {
    list-style: none;
    padding: 0;
}

.post-tags li {
    margin-top: 3px;
    display: inline;
}

.post-tags a {
    text-decoration: none;
    color: #0779e4;
}

.post-tags a:hover {
    text-decoration: underline;
}

.post-right {
    flex: 2;
    margin-left: 20px;
}

.post-meta {
    margin-bottom: 20px;
}

.post-meta p {
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 450;
    color: #e0e0e0;
}

.post-meta .category a,
.post-meta .date {
    color: #ffcc00;
}

.post-content {
    position: relative;
}


.post-tags h3 {
    color: #ffcc00;
}

.post-tags ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags ul li {
    background-color: #333333;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 20px;
}


.description {
    overflow: hidden;
    text-overflow: ellipsis;
}
/* See More Button Styles */
.see-more {
    display: none; /* Hidden by default */
    margin-top: 10px;
    font-weight: bold; 
    padding: 8px 16px;
    background-color: #ffcc00;
    color: #1f1f1f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.see-more:hover {
    background-color: #e6b800;
}

.post-tags ul li a {
    color: #e0e0e0;
    text-decoration: none;
}

.post-tags ul li a:hover {
    color: #ffcc00;
}

.post-title {
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
    color: #ffcc00;
}

/* Estilos para garantir que as imagens com a classe thumbnail tenham o mesmo tamanho */
.thumbnail {
    min-width: 120px; /* Defina a largura desejada */
    min-height: 140px; /* Defina a altura desejada */
    object-fit: cover; /* Garante que a imagem se ajuste ao contêiner sem distorção */
    border-radius: 5px; /* Adiciona bordas arredondadas, se desejado */
    margin-right: 20px; /* Espaçamento entre a imagem e o texto */
}

/* Estilos existentes */
.post-tags ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags ul li {
    background-color: #333333;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 20px;
}

.post-tags ul li a {
    color: #e0e0e0;
    text-decoration: none;
}

.post-tags ul li a:hover {
    color: #ffcc00;
}

.post-title {
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
    color: #ffcc00;
}

/* styles.css */
.category-header {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.clear-category {
    color: white;
    background: none;
    border: none;
    font-size: 0.8em;
    margin-left: 10px;
    cursor: pointer;
}

.thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.novel-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.load-more:hover {
    background-color: #4f4f4f;
}




.post-navigation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-navigation .nav-link {
    margin: 5px 0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.post-navigation .nav-link:hover {
    text-decoration: underline;
}


.novel-title-chapter a {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffcc00;
    text-decoration: none;
}




.nav-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.chapter-select {
    width: 130px;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 10px; /* Espaçamento entre o select e os botões */
    flex-grow: 1; /* Permite que o select cresça para ocupar o espaço disponível */
}

.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
    text-align: center; /* Ensure text is centered */
}

.main-header nav ul.categories {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.main-header .search-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.main-header .search-form input[type="text"] {
    flex-grow: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-header {
        padding: 10px;
        width: 100%;
        text-align: center; /* Ensure text is centered */
    }

    .main-header h1 {
        font-size: 1.8em;
        text-align: center; /* Ensure text is centered */
        width: 100%;
    }

    .main-header nav ul.categories {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-header nav ul.categories.show {
        display: flex;
    }

    .main-header .search-form {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-header .search-form input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .main-header .search-form button {
        width: 100%;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .content {
        max-width: 100%;
    }

    .featured-posts li,
    .all-posts li {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
    }

    .thumbnail,
    .post-thumbnail {
        width: 80px; /* Adjusted width for smaller screens */
        height: 60px; /* Adjusted height for smaller screens */
        margin-bottom: 0; /* Remove bottom margin */
        margin-right: 10px; /* Add right margin */
    }

    .post-info {
        height: auto; /* Adjust height to fit content */
        margin-left: 10px; /* Add left margin to avoid overlap */
        flex: 1; /* Ensure it takes the remaining space */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }

    .post-content-wrapper {
        display: flex;
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        width: 100%;
    }

    .post-item {
        display: flex;
        flex-direction: column; /* Ensure vertical layout */
        align-items: flex-start; /* Align items to the start */
        gap: 10px; /* Add gap to ensure separation */
    }

    .carousel {
        height: 350px;
    }

    .carousel-item a {
        flex-direction: column;
        height: 100%;
    }

    .carousel-image,
    .carousel-placeholder {
        width: 100%;
        height: 60%;
        border-radius: 8px 8px 0 0;
    }

    .carousel-info {
        width: 100%;
        height: 40%;
        border-radius: 0 0 8px 8px;
    }

    .carousel-info h3 {
        font-size: 1.3em;
    }

    .carousel-info p.excerpt {
        font-size: 0.9em;
    }

    .tag-filters {
        padding: 10px 15px;
    }

    .tag-filters .tags {
        gap: 5px;
    }

    .selected-tags-list li.selected-tag {
        padding: 6px 10px;
    }

    .post-thumbnail {
        width: 100%; /* Ensure full width for thumbnail */
        height: auto; /* Adjust height to fit content */
    }

    .post-info {
        width: 100%; /* Ensure full width for post info */
        margin-left: 0; /* Remove left margin */
    }

    .post-content-wrapper {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        gap: 10px; /* Add gap to ensure separation */
    }

    .post-item {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        gap: 10px; /* Add gap to ensure separation */
    }

    .post-tags ul li {
        padding: 3px 6px; /* Reduced padding for smaller screens */
        font-size: 0.7em; /* Reduced font size for smaller screens */
    }
    .sidebar .tags li a,
    .sidebar .widget.tags-filters .tags li a.tag-link {
        padding: 4px 8px; /* Reduced padding for smaller screens */
        font-size: 0.8em; /* Reduced font size for smaller screens */
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px;
    }

    .main-header h1 {
        font-size: 1.8em;
    }

    .main-header nav ul.categories {
        flex-direction: column;
        align-items: center;
    }

    .main-header .search-form {
        flex-direction: column;
        align-items: center;
    }

    .main-header .search-form input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .main-header .search-form button {
        width: 100%;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .content {
        max-width: 100%;
    }

    .featured-posts li,
    .all-posts li {
        flex-direction: column;
        align-items: flex-start;
    }

    .thumbnail {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .carousel {
        height: 350px;
    }

    .carousel-item a {
        flex-direction: column;
        height: 100%;
    }

    .carousel-image,
    .carousel-placeholder {
        width: 100%;
        height: 60%;
        border-radius: 8px 8px 0 0;
    }

    .carousel-info {
        width: 100%;
        height: 40%;
        border-radius: 0 0 8px 8px;
    }

    .carousel-info h3 {
        font-size: 1.3em;
    }

    .carousel-info p.excerpt {
        font-size: 0.9em;
    }

    .post-info p.excerpt {
        font-size: small;
    }

    .tag-filters {
        padding: 10px 15px;
    }

    .tag-filters .tags {
        gap: 5px;
    }

    .selected-tags-list li.selected-tag {
        padding: 6px 10px;
    }
}

@media (min-width: 769px) {
    .main-header nav ul.categories {
        display: flex !important;
    }
}

#tag-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.see-all-tags {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #ffcc00;
    color: #1f1f1f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.see-all-tags:hover {
    background-color: #e6b800;
}

#modal-tag-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.apply-tags {
    font-weight: bold;
    padding: 8px 16px;
    background-color: #ffcc00;
    color: #1f1f1f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.apply-tags:hover {
    background-color: #e6b800;
}

.tags, .selected-tags-list {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.tags li::marker, .selected-tags-list li::marker {
    content: none; /* Remove marker */
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-header, .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-header h2 {
        margin-bottom: 10px;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .apply-tags {
        width: 100%;
        text-align: center;
    }
}

mark {
    background-color: yellow;
    color: black;
    position: relative;
}

.remove-highlight {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

mark.highlight {
    background-color: yellow;
    color: black;
    position: relative;
    padding-right: 20px; /* Espaço para o botão de remoção */
}

.remove-highlight {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.highlight-remove {
    display: none;
    position: absolute;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
    z-index: 1000; /* Ensure the button is on top of other elements */
}

.high-contrast {
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
}

.high-contrast-link {
    color: #ffcc00; /* Bright yellow for high contrast */
    text-decoration: none;
}

.high-contrast-link:hover {
    color: #e6b800; /* Slightly darker yellow for hover state */
}

/* ...existing code... */

.post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 5px 0; /* Reduzido o padding vertical para tornar mais compacto */
}

.post-thumbnail {
    flex-shrink: 0;
    width: 120px; /* Fixed width */
    margin-right: 15px; /* Space between thumbnail and info */
    border-radius: 5px; /* Rounded corners */
    object-fit: cover; /* Ensure image covers the area */
}

/* ...existing code... */

.post-info {
    flex-grow: 1;
    min-width: 0; /* Ensure it doesn't force the container to expand */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha o conteúdo no início para otimizar espaço */
    height: auto; /* Adjust height to fit content */
}

/* ...existing code... */

.post-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 10px; /* Add gap to ensure separation */
}

/* ...existing code... */

.post-item {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    align-items: center; /* Align items vertically */
    width: 100%;
    gap: 8px; /* Reduzido o espaçamento entre os itens */
    border: 1px solid #333; /* Add border for better separation */
    padding: 5px 10px; /* Diminuído o padding vertical para reduzir a altura */
    border-radius: 8px; /* Add border radius for better aesthetics */
}

/* ...existing code... */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-header nav ul.categories {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-header nav ul.categories.show {
        display: flex;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .content {
        max-width: 100%;
    }

    .featured-posts li,
    .all-posts li {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
    }

    .thumbnail,
    .post-thumbnail {
        width: 80px; /* Adjusted width for smaller screens */
        height: 60px; /* Adjusted height for smaller screens */
        margin-bottom: 0; /* Remove bottom margin */
        margin-right: 10px; /* Add right margin */
    }

    .post-info {
        height: auto; /* Adjust height to fit content */
        margin-left: 10px; /* Add left margin to avoid overlap */
        flex: 1; /* Ensure it takes the remaining space */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        font-size: x-small;
    }

    .post-content-wrapper {
        display: flex;
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        width: 100%;
    }

    .post-item {
        display: flex;
        flex-direction: column; /* Ensure vertical layout */
        align-items: flex-start; /* Align items to the start */
        gap: 10px; /* Add gap to ensure separation */
    }

    .carousel {
        height: 350px;
    }

    .carousel-item a {
        flex-direction: column;
        height: 100%;
    }

    .carousel-image,
    .carousel-placeholder {
        width: 100%;
        height: 60%;
        border-radius: 8px 8px 0 0;
    }

    .carousel-info {
        width: 100%;
        height: 40%;
        border-radius: 0 0 8px 8px;
    }

    .carousel-info h3 {
        font-size: 1.3em;
    }

    .carousel-info p.excerpt {
        font-size: 0.9em;
    }

    .tag-filters {
        padding: 10px 15px;
    }

    .tag-filters .tags {
        gap: 5px;
    }

    .selected-tags-list li.selected-tag {
        padding: 6px 10px;
    }

    .post-thumbnail {
        width: 30%; /* Ensure full width for thumbnail */
        max-width: 200px;
        min-width: 150px;
        height: auto; /* Adjust height to fit content */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 10px; /* Add bottom margin */
    }

    .post-info {
        width: 100%; /* Ensure full width for post info */
        margin-left: 0; /* Remove left margin */
    }

    .post-content-wrapper {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        gap: 10px; /* Add gap to ensure separation */
    }

    .post-item {
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Align items vertically */
        gap: 10px; /* Add gap to ensure separation */
    }

    .post-tags ul li {
        padding: 3px 6px; /* Reduced padding for smaller screens */
        font-size: 0.7em; /* Reduced font size for smaller screens */
    }
    .sidebar .tags li a,
    .sidebar .widget.tags-filters .tags li a.tag-link {
        padding: 4px 8px; /* Reduced padding for smaller screens */
        font-size: 0.8em; /* Reduced font size for smaller screens */
    }
    .post-tags ul li,
    .sidebar .tags li a,
    .sidebar .widget.tags-filters .tags li a.tag-link {
        padding: 2px 4px; /* Further reduced padding for smaller screens */
        font-size: 0.6em; /* Further reduced font size for smaller screens */
    }
    .post-tags ul li:nth-child(n+6),
    .sidebar .tags li:nth-child(n+6),
    .sidebar .widget.tags-filters .tags li:nth-child(n+6) {
        display: none; /* Hide tags beyond the 5th one */
    }
    .see-all-tags {
        display: block; /* Ensure the "See All" button is visible */
    }
}



.date-text {
    font-style: italic;
}




