#header-custom {
    align-items: center; /* Centraliza verticalmente as imagens */
    padding: 0 20px;
    border-top: 5px solid red;
    border-bottom: 5px solid red;
    height: auto; /* Ajusta a altura do header conforme o conteúdo */
}

.img-topo-1,
.img-topo-2 {
    max-width: 100%; /* tamanho padrão */
}

/* Ajustes para telas pequenas (como celulares) */
@media (max-width: 768px) {
    .img-topo-1,
    .img-topo-2 {
        max-width: 50%; /* Reduz o tamanho para telas menores */
    }
}


/* 
*
*
* Fontes
*
*/
.link {
    color: black;
    font-weight: bold;
}

#aside-menu {
    font-size: 0.9rem;
}

#link-txt {
    font-size: 0.8rem;
    padding-left: 0.2rem;
}

.titulo-vermelho {
    background-color: #c30000;
    color: white;
    text-align: center;
    height: 2rem;
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
    align-items: center;
    padding-top: 0.4rem;
}

.small-font {
    font-size: 0.875rem;
}

h5 {
    font-size: 0.95rem;
}


/* 
*
*
* Estilo Notícias/Posts
*
*/
.news-list {
    margin-top: 5rem;
    list-style-type: none;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.news-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 5px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.news-title-link {
    text-decoration: none;
    color: #000; /* Cor preta */
    font-weight: bold;
}

.news-title-link:hover {
    text-decoration: underline;
}


.news-date {
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem 0;
}

.news-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #800000;
    color: white;
    font-size: 0.875rem;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 0.5rem;
}

.news-button:hover {
    background-color: #a00000;
}

img.float-start {
    max-width: 200px;
    /* Define a largura máxima da imagem */
    height: auto;
    /* Mantém a proporção da imagem */
}

/* Carousel
#carouselExample {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    color: white;
    width: 80%;
    max-width: 600px;
} */

.sub-container {
    margin-bottom: 15px;
    /* Espaçamento entre as imagens */
    text-align: center;
    /* Centraliza a imagem dentro do contêiner */
}

.ad-image {
    max-width: auto;
    /* Define a largura máxima da imagem */
    width: 100%;
    /* Ajusta a imagem proporcionalmente */
    height: auto;
    /* Mantém a proporção da imagem */
    display: block;
    /* Força a imagem a ser exibida como um bloco */
    margin: 0 auto;
    /* Centraliza a imagem */
}


.page-content {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 20px;
}

.page-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.modal {
    display: none;
    /* Mantém o modal oculto inicialmente */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.modal-content {
    width: 90%;
    /* Largura relativa para telas pequenas */
    max-width: 600px;
    /* Limita o tamanho máximo em telas maiores */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    /* Imagem ocupa toda a largura do modal */
    height: auto;
    max-height: 80vh;
    /* Limita a altura para evitar overflow */
    display: block;
}


/* 
*
*
* Layout para as págiunas da sessão "Forum Itatiba
*
*/
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev,
.next {
    color: #ffffff;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

/* Media Queries para dispositivos menores */
@media (max-width: 600px) {
    .close {
        font-size: 1.5em;
        top: 5px;
        right: 10px;
    }

    .prev,
    .next {
        font-size: 1.5em;
        padding: 5px;
    }
}

.custom-hr {
    height: 2px; /* Espessura da linha */
    background-color: black; /* Cor da linha */
    border: none; /* Remove bordas padrão */
    margin: 20px 0; /* Espaçamento acima e abaixo da linha */
}





/* Estilos exclusivos para o card do feed */
#card-page-feed {
    padding: 0; /* Remove o padding geral, será controlado pelos elementos internos */
    margin-top: 20px;
    border-radius: 8px;
    max-height: 600px; /* Altura aumentada */
    overflow: hidden; /* Impede que o conteúdo extravase o card */
}

.titulo-vermelho-feed {
    background-color: #c30000;
    color: white;
    text-align: center;
    height: 2.5rem; /* Altura do título ajustada */
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
    align-items: center;
    padding-top: 0.7rem; /* Centraliza verticalmente o texto */
    font-size: 1.2rem; /* Tamanho da fonte maior */
}

#card-page-feed #rss-feed {
    max-height: 550px; /* Altura aumentada para ajustar ao novo tamanho do card */
    overflow-y: auto; /* Adiciona a barra de rolagem apenas ao conteúdo */
    padding: 20px; /* Maior espaço interno */
}

#card-page-feed .feed-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #ccc;
    padding: 15px 0; /* Maior espaço entre os itens */
}

#card-page-feed .feed-item img {
    max-width: 120px; /* Aumenta o tamanho da imagem */
    max-height: 120px;
    margin-right: 15px; /* Maior espaçamento lateral */
    border-radius: 8px; /* Arredondamento maior para um visual mais moderno */
}

#card-page-feed .feed-item a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    font-size: 1rem; /* Aumenta o tamanho do link */
}

#card-page-feed .feed-item a:hover {
    text-decoration: underline;
}

#card-page-feed .feed-item p {
    margin: 10px 0 0; /* Maior espaçamento acima do parágrafo */
    font-size: 1rem; /* Aumenta o tamanho da fonte do texto */
    color: #555;
}
#card-page-feed .feed-item a.feed-link {
    color: #000; /* Cor preta */
    text-decoration: none; /* Remove o sublinhado do link */
}

#card-page-feed .feed-item a.feed-link:hover {
    text-decoration: underline; /* Deixa o link sublinhado ao passar o mouse */
}
