/* Carrossel de destaques */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

/* Garante que cada coluna respeite o grid */
.col {
  flex: 1 0 0%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.public-noticias-carousel {
    width: 100%;
    height: 300px; /* altura fixa */
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative; /* para posicionar os controles */
}

.public-noticias-carousel .carousel-inner {
    height: 100%; /* garantir altura total */
}

.public-noticias-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.public-noticias-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cobre toda área, corta o excesso */
    object-position: center;
    border-radius: 8px 8px 0 0; /* só arredonda no topo para ficar bonito */
}

/* Legenda */
.public-noticias-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.25rem 0.25rem; /* arredonda só em baixo */
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

/* Botões de navegação - maior, com mais contraste */
.public-noticias-carousel .carousel-control-prev,
.public-noticias-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
}

.public-noticias-carousel .carousel-control-prev:hover,
.public-noticias-carousel .carousel-control-next:hover {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(0,0,0,1));
}

.public-noticias-carousel .carousel-control-prev-icon,
.public-noticias-carousel .carousel-control-next-icon {
    background-size: 50px 50px;
}

/* Mais notícias com imagem */
.public-noticias-outras .col {
  display: flex;      /* ou block, dependendo do card */
  flex-direction: column;
}

.public-noticias-outras .public-noticias-item {
    flex: 1 1 200px;
    text-align: center;
}

.public-noticias-outras img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Impede que cards fiquem com largura 100% */
.public-noticias-outras .card {
  height: 100%;
  width: 100%;
}
/* Slider de fotos - scroll horizontal */
.public-noticias-slider .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.public-noticias-slider .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.public-noticias-slider .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.public-noticias-slider .card-img-top:hover{
    border: 2px solid #007bff;
}

.public-noticias-slider .card-body {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    align-items: center;
}

.public-noticias-slider .card-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: left;
}

/* Remove o estilo padrão de botão */
.public-noticias-slider form {
    margin: 0;
    padding: 0;
}

.public-noticias-slider button.card {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
}


/* Vídeo em destaque */
.public-noticias-video {
    margin-bottom: 24px;
    text-align: center;
}

.public-noticias-video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
    border-radius: 8px;
}

/* Mais notícias simples */
.public-noticias-mais {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

/* Remove o escopo duplicado do seletor */
.public-noticias-mais .list-group-item {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 15px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
}

.public-noticias-mais .list-group-item:hover {
    background-color: #dbe8f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #007bff;
}
/* BENEFICIOS */
.beneficio-box {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.beneficio-img img {
    max-width: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.beneficio-text h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #333;
}

.beneficio-text p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* CONVENCAO */
.convencao-box {
    padding: 16px;
    background: #f9f9ff;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.convencao-box h5 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.convencao-box p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* DETALHES DA NOTICIA AO LER */
.noticia-detalhe-container {
    max-width: 800px;
}

.noticia-detalhe-titulo {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}

.noticia-detalhe-subtitulo {
    font-size: 1.2rem;
    color: #666;
}

.noticia-detalhe-imagem img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.noticia-detalhe-meta li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.noticia-detalhe-texto {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.noticia-detalhe-video iframe {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.noticia-detalhe-cnpj {
    font-size: 0.95rem;
}

/* EDITAR NOTICIAS EXTRA */
.lista-noticias {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.lista-noticias__item {
    background: #f1f1f1;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.lista-noticias__titulo {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.lista-noticias__botao {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    font-size: 14px;
}

.lista-noticias__botao:hover {
    background-color: #2c80b4;
}

.lista-noticias__nenhuma {
    text-align: center;
    font-size: 16px;
    padding: 20px;
    color: #777;
}

/* NOTICIAS RECENTES E NOTICIAS MAIS LIDAS */
/* Estilo único */
.public-noticias-estilo * {
    font-family: "Inter", Arial, sans-serif;
}

/* Mais Lidas */
.public-noticias-mais-lidas-card {
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}
.public-noticias-mais-lidas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.public-noticias-mais-lidas-titulo {
    font-weight: 700;
    border-left: 4px solid #f39c12;
    padding-left: 10px;
}

/* Últimas Publicadas */
.public-noticias-recentes {
    max-width: 600px;
    margin: 0 auto;
}

.public-noticias-recentes-titulo {
    font-weight: 700;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

.public-noticias-recentes .list-group-item {
    font-size: 1rem;
    transition: background-color 0.2s ease;
}
.public-noticias-recentes .list-group-item:hover {
    background-color: #f8f9fa;
}
