/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
header {
    background-image: url('imagens/banner.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.header-content {
    font: verdana;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(0, 0, 0);
    text-shadow: 4px 4px 8px rgba(109, 109, 109, 0.5);
}
.titulo-underline {
    width: 950px; 
    height: 5px;
    background-color: #d32f2f; 
    margin: 1px auto; 
}

.header-content h1 {
    font-size: 4rem;
    font: verdana;
    margin-bottom: 5px;
}

/* ==============================================
   Estilos do menu de navegação
   ============================================== */

nav {
    padding: 15px;
    display: flex;
    justify-content: flex-end; 
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0; 
    padding: 0; 
}

.nav-item {
    position: relative;
    margin-left: 20px; 
    margin-right: 0; 
}

.nav-link {
    color: rgb(15, 15, 15);
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(43, 43, 43, 0.116);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.dropdown-icon {
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    list-style: none;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    list-style: none;
}

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

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* ==============================================
   Estilos para conteúdo geral
   ============================================== */
   main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.intro-section {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.events-section {
    background-color: white;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.events-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* ==============================================
   Estilos para mapas
   ============================================== */
.map-section {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; 
    height: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==============================================
   Estilos Geral Para Tabelas
   ============================================== */

 table {
    width: 100%; /* Largura da tabela */
    margin: 20px auto; /* Centraliza na página */
    border-collapse: collapse; /* Remove espaços entre células */
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Cabeçalho da tabela (linha 1) */
th {
    background-color: #d32f2f; /* Azul do Google */
    color: white; /* Texto branco */
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

/* Células do corpo da tabela */
td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Linha divisória */
}

/* Efeito hover nas linhas */
tr:hover {
    background-color: #f5f5f5; /* Cor de fundo ao passar o mouse */
}

/* Zebrado (opcional) */
tr:nth-child(even) {
    background-color: #f9f9f9;
}



/* Rodapé */
footer {
    background-color: #d32f2f;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-item {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .intro-content {
        flex-direction: column;
    }
}

/* ==============================================
   Estilos específicos para a página Sobre a Vigilância
   ============================================== */

.sobre-vigilancia {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.content-section {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.content-section h2 {
    color: #d32f2f;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-section h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-list,
.how-it-works {
    margin: 15px 0;
    padding-left: 20px;
}

.feature-list li,
.how-it-works li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight-box {
    background-color: #ececec;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #838383;
}

.team-section {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #d32f2f;
}

.team-section h3 {
    color: #d32f2f;
    margin-top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
}

/* ======================================
   ESTILO DE TABELA PARA PÁGINA DE OSCS
   ====================================== */

   .osc-table {
    width: 100%;
    max-width: 800px;
    margin: 25px auto;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Células da tabela */
.osc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

/* Coluna A (palavras-chave) */
.osc-table td:first-child {
    width: 30%;
    font-weight: 600;
    color: #333;
    padding-right: 20px;
}

/* Coluna B (informações) */
.osc-table td:last-child {
    width: 70%;
    color: #555;
}

/* Linhas alternadas para melhor legibilidade */
.osc-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Efeito hover sutil */
.osc-table tr:hover {
    background-color: #f1f1f1;
}

/* Última linha sem borda */
.osc-table tr:last-child td {
    border-bottom: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .osc-table {
        font-size: 0.85em;
    }
    
    .osc-table td {
        padding: 10px 12px;
    }
    
    .osc-table td:first-child {
        width: 35%;
    }
    
    .osc-table td:last-child {
        width: 65%;
    }
}


/* =================================
   Estilos do Hub de Conteúdo
   ================================= */

   .hub-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.hub-title {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.hub-description {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.card-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-title {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-text {
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-button {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: auto;
}

.card-button:hover {
    background-color: #b71c1c;
}

/* Responsividade */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-title {
        font-size: 1.5rem;
    }
}

/* ======================
   GALERIA DE FOTOS OSC
   ====================== */

   .galeria-osc {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-osc h2 {
    color: #d32f2f;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.galeria-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galeria-legenda {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-legenda {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .galeria-osc h2 {
        font-size: 1.5rem;
    }
}

/* ======================
   CONTAINER PARA PLANILHAS
   ====================== */

.sheet-container {
    width: 100%;
    height: 600px;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f5f5f5;
}

.sheet-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    min-height: 100%;
    min-width: 100%;
}

.sheet-header {
    background-color: #d32f2f;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-controls {
    display: flex;
    gap: 10px;
}

.sheet-controls a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

.sheet-controls a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .sheet-container {
        height: 400px;
    }
    
    .sheet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .sheet-controls {
        width: 100%;
        justify-content: flex-end;
    }
}


/* =================================
   Estilos do Container Retrátil (Accordion)
   ================================= */

.accordion-container {
    margin: 30px auto;
    padding: 0 20px;
}

.accordion-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h3 {
    margin: 0;
    color: #d32f2f;
    font-size: 1.2rem;
}

.accordion-toggle {
    font-size: 1.5rem;
    color: #d32f2f;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px; /* Ajuste conforme necessário */
}

/* Responsividade */
@media (max-width: 768px) {
    .accordion-header {
        padding: 15px;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
}

/* ===== EQUIPE CONSELHO TUTELAR ===== */
.equipe-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
    justify-items: center;
}

.conselheiro-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    max-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conselheiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.conselheiro-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #d32f2f;
}

.conselheiro-card h4 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: #d32f2f;
}

.conselheiro-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Responsivo */
@media (max-width: 768px) {
    .equipe-container {
        grid-template-columns: 1fr;
    }

    .conselheiro-card {
        max-width: 100%;
    }
}

/* Lightbox específico dos conselheiros */
.lightbox-conselheiro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow-y: auto;
}

.lightbox-conselheiro-content {
    background: #fff;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.lightbox-conselheiro-foto {
    flex: 1 1 300px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-conselheiro-foto img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid #d32f2f;
}

.lightbox-conselheiro-info {
    flex: 2 1 400px;
    padding: 30px;
    color: #333;
}

.lightbox-conselheiro-info h2 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 2rem;
}

.lightbox-conselheiro-info h4 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.lightbox-conselheiro-info p {
    font-size: 1rem;
    line-height: 1.6;
}

.lightbox-conselheiro .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsivo */
@media (max-width: 768px) {
    .lightbox-conselheiro-content {
        flex-direction: column;
    }

    .lightbox-conselheiro-foto,
    .lightbox-conselheiro-info {
        flex: 1 1 100%;
    }

    .lightbox-conselheiro-info {
        padding: 20px;
    }
}

