* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    /* Paleta de Matizes Adjacentes - Azul */
    --primary-dark: #0F3B5C;      /* Azul Escuro (Logo) */
    --primary: #1E5A96;           /* Azul Médio */
    --primary-light: #3B7DBD;     /* Azul Claro */
    --accent: #17A2B8;            /* Teal/Ciano (Adjacente) */
    --accent-light: #5DADE2;      /* Azul Ciano Claro */
    --light: #F0F4F8;             /* Cinza Azulado Muito Claro */
    --light-gray: #D6E4F1;        /* Cinza Azulado Claro */
    --dark-gray: #3D5577;         /* Cinza Azulado Escuro */
    --white: #FFFFFF;
}

/* Hero & Navbar */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 59, 92, 0.85), rgba(15, 59, 92, 0.85)), 
                url('http://localhost:8089/CEHIGERA/img/banner.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    color: var(--white);
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    min-height: 104px;
    z-index: 99999 !important;
    background: #005ea8 !important;
    isolation: isolate;
}

.navbar-dark {
    background: transparent;
    min-height: 104px;
    border-top: 5px solid #003768;
    border-bottom: 1px solid #0a5fa8;
    box-shadow: 0 2px 10px rgba(0, 55, 104, 0.2);
    overflow: hidden;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.95rem;
    min-height: 46px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffd100;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links li {
    position: relative;
}

.nav-links li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.nav-links a:hover {
    color: #d8ecff;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 3rem;
    max-width: 900px;
    line-height: 1.2;
}

/* Sections */
.section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    border-radius: 10px;
}

.section-title-dark {
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.bg-dark { 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.bg-light { 
    background: var(--light);
}

.bg-white { 
    background-color: var(--white);
}

.logo {
    width: 560px;
    height: 96px;
    background-image: url('img/Logo_CEHIGERA.jpg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left;
    text-indent: -9999px;
    display: block;
    flex-shrink: 0;
}

body {
    padding-top: 104px;
}

main,
section,
footer {
    position: relative;
    z-index: 1;
}

/* Grid Layouts */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 59, 92, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 4px solid var(--accent);
}

.card:hover { 
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 12px 30px rgba(15, 59, 92, 0.2);
}

.card h3 { 
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.card:hover h3 { 
    color: var(--white);
}

.card-outline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 200px;
    transition: all 0.3s ease;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--light-gray);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 59, 92, 0.08);
}

.card-outline:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    color: white;
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(23, 162, 184, 0.3);
}

.card-outline .material-symbols-outlined {
    font-size: 45px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.card-outline:hover .material-symbols-outlined {
    color: white;
}

.card-outline h4 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-outline:hover h4 {
    color: white;
}

/* Notícias & FAQ */
.news-item {
    border-bottom: 2px solid var(--light-gray);
    padding: 20px 0;
    display: flex;
    gap: 30px;
}

.news-item span { 
    color: var(--accent);
    font-weight: 700;
    min-width: 100px;
}

details {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    cursor: pointer;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(15, 59, 92, 0.08);
}

summary { 
    font-weight: 700;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

details:hover summary {
    color: var(--accent);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 50px 10%;
    margin-top: 80px;
}

footer p {
    opacity: 0.9;
    font-weight: 500;
}

.btn-route {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn-route:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

.google-map {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--light-gray);
}

/* Responsividade para o mapa */
@media (max-width: 900px) {
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .address-info {
        order: 2; /* Informações passam para baixo do mapa no celular */
    }
}

/* ========== ESTILOS ESCOPO ========== */

.escopo-section {
    background: var(--light);
    text-align: center;
}

.escopo-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.escopo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(15, 59, 92, 0.15);
}

/* Botões clicáveis sobre a imagem */
.escopo-dot {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(15, 59, 92, 0.3);
    text-decoration: none;
}

.escopo-dot:hover {
    background: linear-gradient(135deg, #17A2B8, #20B9BA);
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.5);
    border-color: var(--white);
}

.dot-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

/* Posicionamento dos números sobre a imagem */
.escopo-1 { top: 18%; left: 27%; transform: translate(-50%, -50%); }
.escopo-2 { top: 18%; left: 56%; transform: translate(-50%, -50%); }
.escopo-3 { top: 18%; left: 85%; transform: translate(-50%, -50%); }
.escopo-4 { top: 56%; left: 86%; transform: translate(-50%, -50%); }
.escopo-5 { top: 56%; left: 56%; transform: translate(-50%, -50%); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 59, 92, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(15, 59, 92, 0.2);
    animation: slideIn 0.3s ease;
    border-top: 5px solid var(--accent);
}

.close {
    color: var(--dark-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--primary-dark);
}

#modalTitle {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

#modalDescription {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

#modalDetails {
    color: var(--dark-gray);
    text-align: left;
}

#modalDetails h3 {
    color: var(--accent);
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

#modalDetails ul {
    margin-left: 25px;
    margin-bottom: 20px;
    line-height: 2;
}

#modalDetails li {
    margin-bottom: 8px;
    color: var(--primary);
}

/* Páginas de Escopo */
.container-escopo {
    max-width: 1200px;
    margin: 0 auto;
}

.btn-voltar {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.btn-voltar:hover {
    color: var(--accent);
}

.escopo-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 59, 92, 0.1);
}

.escopo-description {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.escopo-description h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.escopo-description p {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.escopo-section {
    margin-bottom: 40px;
}

.escopo-section h2 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.pesquisa-list {
    list-style: none;
    padding: 0;
}

.pesquisa-list li {
    padding: 12px 0;
    padding-left: 20px;
    position: relative;
    color: var(--dark-gray);
    line-height: 1.8;
}

.pesquisa-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--light);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    border: 3px solid var(--accent);
}

.team-member h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.projects-list {
    display: grid;
    gap: 20px;
}

.project-item {
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: var(--light);
    border-radius: 4px;
}

.project-item h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Seções de Divulgação */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: var(--light);
    border-radius: 4px;
}

.news-item span {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.news-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.events-list {
    display: grid;
    gap: 20px;
}

.event-item {
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 59, 92, 0.1);
}

.event-item .event-date {
    display: block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.event-item h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.event-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.partnership-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(15, 59, 92, 0.1);
    transition: transform 0.3s ease;
}

.partnership-item:hover {
    transform: translateY(-8px);
}

.partnership-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--light-gray);
}

.partnership-item h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.partnership-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.opportunities-list {
    display: grid;
    gap: 20px;
}

.opportunity-item {
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 59, 92, 0.1);
    position: relative;
}

.opportunity-item h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.opportunity-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.opportunity-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .escopo-dot {
        width: 45px;
        height: 45px;
    }
    
    .dot-number {
        font-size: 1.3rem;
    }
    
    .escopo-1 { top: 20%; left: 15%; }
    .escopo-2 { top: 17%; left: 57%; }
    .escopo-3 { top: 25%; left: 82%; }
    .escopo-4 { top: 68%; left: 80%; }
    .escopo-5 { top: 70%; left: 45%; }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 25px;
    }
    
    #modalTitle {
        font-size: 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0.9rem 1rem;
    }

    .navbar-dark {
        min-height: 122px;
    }

    .logo {
        width: 420px;
        height: 76px;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .nav-links li + li::before {
        display: none;
    }

    .nav-links a {
        min-height: 36px;
        font-size: 0.72rem;
        padding: 0 0.8rem;
    }

    .hero-content h1 { font-size: 1.8rem; }

    body {
        padding-top: 122px;
    }
    
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .address-info {
        order: 2;
    }
}

/* Destaque de pesquisa clicada */
.highlight-pesquisa {
    animation: highlightAnimation 0.6s ease-in-out;
    background: linear-gradient(135deg, var(--accent), var(--primary-light)) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(23, 162, 184, 0.4) !important;
}

@keyframes highlightAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7) !important;
    }
    70% {
        box-shadow: 0 0 0 25px rgba(23, 162, 184, 0) !important;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0) !important;
    }
}

.highlight-pesquisa .material-symbols-outlined {
    color: white !important;
}

/* Indicador de escopo relacionado */
.pesquisa-relacionada {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(15, 59, 92, 0.3);
    padding: 4px 10px;
    border-radius: 14px;
    margin-top: 8px;
    font-weight: 700;
    display: none;
}

.pesquisa-card:hover .pesquisa-relacionada {
    display: block;
}

/* Como Chegar Página */
.container-chegar {
    min-height: 80vh;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(15, 59, 92, 0.1);
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.info-item .material-symbols-outlined {
    color: var(--accent);
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.info-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}
