:root {
    --primary-color: #0B5345;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --yellow: #F4D03F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Barra de Acessibilidade */
.accessibility-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.accessibility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-tools {
    display: flex;
    gap: 1.5rem;
}

.top-tools {
    display: flex;
    gap: 1.5rem;
}

.accessibility-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.accessibility-bar a:hover {
    text-decoration: underline;
}

/* Cabeçalho Principal */
.main-header {
    background-color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    height: 90px;
    width: auto;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0.3rem 0;
}

.logo-text p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.search-section {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #094239;
}

.header-tools {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.header-tools a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-tools a:hover {
    color: var(--primary-color);
}

/* Menu Principal */
.main-nav {
    background-color: var(--yellow);
    padding: 0;
    position: relative;
    z-index: 100;
}

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

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links > li > a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mega Menu */
.has-mega-menu {
    position: static;
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    z-index: 1000;
}

.has-mega-menu:hover .mega-menu {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.mega-menu-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 0.5rem;
}

.mega-menu-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
}

/* Seções Gerais */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.section-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Organograma */
.organograma-section {
    padding: 2rem 0;
}

.organograma {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.org-nivel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.org-box {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.org-presidente {
    background: var(--primary-color);
    color: var(--white);
    min-width: 300px;
}

.org-box h3 {
    margin-bottom: 1rem;
    color: inherit;
}

.org-box ul {
    list-style: none;
    padding: 0;
}

.org-box ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.org-box ul li:last-child {
    border-bottom: none;
}

/* Vereadores */
.vereadores-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.vereadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vereador-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vereador-card:hover {
    transform: translateY(-5px);
}

.vereador-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.vereador-info {
    padding: 1.5rem;
    text-align: center;
}

.vereador-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vereador-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vereador-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.vereador-social a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.vereador-social a:hover {
    color: var(--accent-color);
}

/* Notícias e Slider */
.news-section {
    padding: 2rem 0;
    background: var(--light-gray);
}

.news-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-container {
    position: relative;
}

.news-slide {
    display: none;
}

.news-slide.active {
    display: block;
}

.news-card-large {
    display: flex;
    background: var(--white);
}

.news-image {
    flex: 1;
    min-height: 300px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    padding: 2rem;
}

.news-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-content p {
    color: var(--text-color);
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--white);
}

.latest-news {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.latest-news h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    text-decoration: none;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--light-gray);
}

.news-item h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
}

/* Serviços e Informativos */
.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.services-menu {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-menu h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.service-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.service-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.informativos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.informativo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.informativo-card:hover {
    transform: translateY(-5px);
}

.informativo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.informativo-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.informativo-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.btn-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background: #094239;
}

/* Acesso Rápido */
.quick-access {
    padding: 4rem 0;
    text-align: center;
}

.quick-access h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.quick-access-item:hover {
    transform: translateY(-5px);
}

.quick-access-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-access-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h3 {
    color: var(--yellow);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--yellow);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-info li i {
    color: var(--yellow);
    margin-top: 0.2rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: var(--yellow);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 200px);
}

/* Vereador Profile Styles */
.vereador-profile {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.profile-cover {
    height: 200px;
    background-color: var(--primary-color);
    border-radius: 8px 8px 0 0;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 0 2rem;
    margin-top: -60px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--white);
    overflow: hidden;
    margin-right: 2rem;
    background-color: var(--light-gray);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
    padding-bottom: 1rem;
}

.profile-details h1 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-social {
    display: flex;
    gap: 1rem;
}

.profile-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.profile-social a:hover {
    color: var(--primary-color);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 1rem;
    padding: 0 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Bio and Timeline */
.bio-section,
.formacao-section {
    margin-bottom: 2rem;
}

.bio-section h2,
.formacao-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline {
    list-style: none;
}

.timeline li {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 2rem;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline .date {
    font-weight: bold;
    color: var(--secondary-color);
    min-width: 100px;
}

/* Projetos Grid */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.projeto-status {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.projeto-status.aprovado {
    background-color: #27ae60;
    color: white;
}

.projeto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-more {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-more:hover {
    background-color: var(--secondary-color);
}

/* Comissões Grid */
.comissoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.comissao-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comissao-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comissao-card .cargo {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.comissao-reunioes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comissao-reunioes h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Atividades Timeline */
.atividades-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.atividade-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 2rem;
    position: relative;
}

.atividade-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.atividade-data {
    min-width: 100px;
    font-weight: bold;
    color: var(--secondary-color);
}

.atividade-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contato Section */
.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contato-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contato-info ul {
    list-style: none;
}

.contato-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contato-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsividade */
@media (max-width: 1200px) {
    .accessibility-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
    }
    
    .search-section {
        width: 100%;
        max-width: none;
    }
    
    .news-grid-container {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .org-nivel {
        flex-direction: column;
        align-items: center;
    }
    
    .org-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .vereadores-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .news-card-large {
        flex-direction: column;
    }
    
    .news-image {
        min-height: 200px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
}
