/* Global Styles for NuPAq/IEPA Website - Premium Redesign (Mobile First) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;500;700&display=swap');

:root {
    --primary-green: #004d33;
    --secondary-teal: #008b8b;
    --acc-light-green: #e6f4ea;
    --white: #ffffff;
    --bg-gray: #f8fbf9;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 77, 51, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing & Sizes (Mobile First) */
    --section-padding: 60px 5%;
    --heading-base: 2.2rem;
}

@media (min-width: 768px) {
    :root {
        --section-padding: 100px 10%;
        --heading-base: 3.5rem;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Header & Nav */
header.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container img {
    height: 60px;
    transition: var(--transition);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-green);
    cursor: pointer;
    z-index: 2000;
    /* Increased priority */
    padding: 10px;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: block;
        position: fixed;
        right: -100%;
        top: 0;
        width: 85%;
        /* Slightly wider */
        max-width: 400px;
        height: 100vh;
        background: #fff;
        backdrop-filter: blur(20px);
        padding: 120px 40px 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1050;
        /* Above regular content but below close btn if separate */
        transition: var(--transition);
        overflow-y: auto;
    }

    nav.nav-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.8rem;
        align-items: flex-start;
    }

    nav a {
        font-size: 1.25rem;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
}

@media (max-width: 767px) {

    /* General Responsive Adjustments */
    :root {
        --heading-base: 1.8rem;
    }

    header {
        padding: 0.5rem 5%;
    }
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .logo-container img {
        height: 85px;
    }

    /* Increased by 50%+ */
}

nav a:hover {
    color: var(--secondary-teal);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-teal);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Sections General */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 2.8rem;
    }
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-teal);
    margin: 0 auto;
    border-radius: 20px;
}

/* 1. Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 77, 51, 0.95) 0%, rgba(0, 139, 139, 0.7) 100%), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 5% 60px; /* Reduced top padding since body already has padding-top */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: var(--heading-base);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.3rem;
    }
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 2. Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-top: -60px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 60px;
    }
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-teal);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Research Lines (Cards) */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 25px;
    transition: var(--transition);
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.research-card i {
    font-size: 3rem;
    color: var(--secondary-teal);
    margin-bottom: 2rem;
    display: inline-block;
    background: var(--acc-light-green);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.research-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-green);
    font-size: 1.4rem;
}

.research-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.research-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 77, 51, 0.15);
    border-color: var(--secondary-teal);
}

.research-card:hover i {
    background: var(--secondary-teal);
    color: var(--white);
}

/* 4. Editorial Grid (Featured) */
.editorial-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .editorial-grid {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: repeat(2, 300px);
    }

    .editorial-item:first-child {
        grid-row: span 2;
    }
}

.editorial-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 250px;
}

.editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.editorial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.editorial-item:hover .editorial-img {
    transform: scale(1.1);
}

/* 8. Projects Module Styles */
.projects-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 50px;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

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

.project-card-content {
    padding: 2rem;
    flex-grow: 1;
}

.project-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.project-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--secondary-teal);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Individual Project Style */
.project-single-hero {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.project-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header {
    background: var(--white);
    padding: 3rem 10%;
    border-bottom: 1px solid #eee;
}

.project-meta-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 15px;
}

.meta-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-item span {
    font-weight: 600;
    color: var(--primary-green);
}

.project-body {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 5%;
}

.project-body h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.project-body p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

/* Horizontal Carousel (Mobile) */
.gallery-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: thin;
}

.gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 45%;
        height: 400px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related Pubs */
.related-pubs {
    background: var(--acc-light-green);
    padding: 4rem 10%;
    border-radius: 30px;
}

/* 5. Publications List */
.pub-item {
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.pub-item:hover {
    border-left: 5px solid var(--secondary-teal);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.pub-icon {
    font-size: 1.5rem;
    color: var(--secondary-teal);
    margin-top: 5px;
}

.pub-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.pub-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* 6. Logo Cloud (Partners) */
.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logo-item {
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
    max-width: 120px;
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 7. CTA Final */
.cta-final {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    border-radius: 30px;
    padding: 60px 5%;
}

.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-final p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-in {
    animation: cardEntrance 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

/* Premium Footer Redesign */
footer {
    background: var(--primary-green);
    color: rgba(255, 255, 255, 0.75);
    padding: 100px 5% 30px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background accent */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-teal), var(--primary-green));
}

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

.footer-col h4 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-teal);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-teal);
    transform: translateY(-5px) !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    footer {
        padding-top: 70px;
    }

    .footer-grid {
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* 9. Science Library Styles */
.year-header:hover {
    border-color: var(--secondary-teal);
    background: #fff;
    box-shadow: var(--shadow-hover);
}

/* Publication Tag Colors */
.pub-type-tag.artigos-em-periodicos {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pub-type-tag.livros {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.pub-type-tag.capitulos-de-livros {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.pub-type-tag.resumos-em-eventos-internacionais {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.pub-type-tag.resumos-em-eventos-nacionais-locais {
    background: #efebe9;
    color: #4e342e;
    border: 1px solid #d7ccc8;
}

.pub-type-tag.textos-em-jornais-de-noticias-revistas {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd0;
}

.pub-full-citation strong {
    color: var(--primary-green);
}

/* Service Card Hover Effect */
.service-hover-card {
    transition: var(--transition) !important;
    border: 1px solid transparent !important;
}

.service-hover-card:hover {
    border-color: var(--secondary-teal) !important;
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover) !important;
}

transform: translateX(10px);
border-color: var(--secondary-teal);
}

.pub-type-tag.artigo {
    background: #e3f2fd;
    color: #1565c0;
}

.pub-type-tag.livro {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pub-type-tag.relatório {
    background: #fff3e0;
    color: #e65100;
}

.pub-type-tag.capítulo {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Academic & Technical Tags */
.pub-type-tag.tese {
    background: #311b92;
    color: #fff;
}

.pub-type-tag.dissertação {
    background: #5e35b1;
    color: #fff;
}

.pub-type-tag.tcc {
    background: #d1c4e9;
    color: #4527a0;
}

.pub-type-tag.mapa {
    background: #004d40;
    color: #fff;
}

.pub-type-tag.carta-imagem {
    background: #00695c;
    color: #fff;
}

.pub-type-tag.cartilha {
    background: #ff9800;
    color: #fff;
}

.pub-type-tag.mosaico-videográfico {
    background: #795548;
    color: #fff;
}

#library-search:focus {
    outline: none;
    border-color: var(--secondary-teal);
    box-shadow: 0 0 0 4px rgba(0, 139, 139, 0.1);
}

@media (max-width: 767px) {
    .pub-row {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Library Section Styling */
.library-section {
    margin-bottom: 80px;
}

.library-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.library-section-header h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin: 0;
}

.library-section-header i {
    font-size: 1.5rem;
    color: var(--secondary-teal);
}

.pub-thumbnail {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.pub-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pub-row:hover .pub-thumbnail img {
    transform: scale(1.1);
}

/* -------------------------------------------
   NuPAq Team Styles (Equipe)
------------------------------------------- */
.team-filters-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.team-search-wrapper {
    flex: 1.5;
    min-width: 250px;
    position: relative;
}

.team-search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-teal);
    font-size: 1.1rem;
}

.team-search-input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
}

.team-filter-select {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    min-width: 220px;
    cursor: pointer;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23008b8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.team-search-input:focus,
.team-filter-select:focus {
    border-color: var(--secondary-teal);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 139, 139, 0.1);
    transform: translateY(-2px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.team-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 77, 51, 0.12);
    border-color: var(--acc-light-green);
}

.member-header {
    padding: 30px 30px 10px;
    text-align: center;
}

.member-photo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--secondary-teal), var(--primary-green));
}

.member-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.member-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-teal);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.member-specialty {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.member-body {
    padding: 10px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    text-align: center !important;
}

.member-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.academic-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-lattes {
    background: #f8f9fa;
    color: #0d47a1;
    border: 1px solid #e3f2fd;
}

.link-rg {
    background: #f8f9fa;
    color: #00ccbb;
    border: 1px solid #e0f2f1;
}

.academic-link:hover {
    transform: scale(1.05);
}

.link-lattes:hover {
    background: #e3f2fd;
}

.link-rg:hover {
    background: #e0f2f1;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-filters-container {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        position: relative;
        /* Unstick on mobile for better space */
        top: 0;
    }

    .member-links {
        flex-direction: column;
        gap: 12px;
    }

    .academic-link {
        flex: 1;
        justify-content: center;
        padding: 16px;
        /* Links grandes para toque */
        font-size: 1rem;
    }
}

/* -------------------------------------------
   10. Partners (Parcerias) Section
------------------------------------------- */
.partners-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.partners-category {
    margin-bottom: 50px;
}

.partners-category h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.partners-category h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--secondary-teal);
    opacity: 0.3;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    width: 150px;
}

.partner-logo-wrapper {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.4s ease;
    filter: grayscale(1) opacity(0.6);
    border: 1px solid transparent;
}

.partner-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    transition: var(--transition);
}

.partner-item:hover .partner-logo-wrapper {
    filter: grayscale(0) opacity(1);
    background: #fff;
    border-color: var(--secondary-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 139, 139, 0.1);
}

.partner-item:hover .partner-name {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }

    .partner-logo-wrapper {
        width: 100px;
        height: 70px;
    }

    .partner-item {
        width: 120px;
    }
}

/* --- PHASE 1: ACCESSIBILITY BAR --- */
.accessibility-bar {
    background: #111;
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1001;
    position: fixed;
    top: 0;
    width: 100%;
}

.accessibility-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-right {
    display: flex;
    gap: 15px;
}

.acc-right button {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.acc-right button:hover {
    background: #333;
    border-color: #666;
}

/* HIGH CONTRAST MODE - GLOBAL RESET */
body.high-contrast,
body.high-contrast div,
body.high-contrast section,
body.high-contrast main,
body.high-contrast article,
body.high-contrast .container,
body.high-contrast .project-box,
body.high-contrast .publication-box,
body.high-contrast .team-card,
body.high-contrast .partner-logo-wrapper {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

body.high-contrast {
    --bg-gray: #000000 !important;
    --white: #000000 !important;
    --primary-green: #ffff00 !important;
    --secondary-teal: #ffff00 !important;
    --text-dark: #ffffff !important;
    --text-muted: #ffff00 !important;
    --acc-light-green: #333 !important;
}

body.high-contrast header {
    background: #000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

body.high-contrast .logo-container img,
body.high-contrast .partner-item img {
    filter: brightness(0) invert(1) brightness(10) contrast(100);
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast a,
body.high-contrast p,
body.high-contrast span,
body.high-contrast li,
body.high-contrast i,
body.high-contrast p.section-intro {
    color: #ffff00 !important;
}

body.high-contrast .btn-box-action,
body.high-contrast .btn-primary,
body.high-contrast .year-header,
body.high-contrast .project-year-badge {
    background: #000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast footer {
    background: #000 !important;
    border-top: 3px solid #ffff00 !important;
}

/* FONT SIZE ADAPTATION - FORCE SCALE */
body.font-lg p,
body.font-lg span,
body.font-lg li,
body.font-lg a {
    font-size: 1.25rem !important;
}

body.font-lg h1 {
    font-size: 3rem !important;
}

body.font-lg h2 {
    font-size: 2.5rem !important;
}

body.font-lg h3 {
    font-size: 2rem !important;
}

body.font-xl p,
body.font-xl span,
body.font-xl li,
body.font-xl a {
    font-size: 1.4rem !important;
}

body.font-xl h1 {
    font-size: 3.5rem !important;
}

body.font-xl h2 {
    font-size: 3rem !important;
}

body.font-xl h3 {
    font-size: 2.5rem !important;
}

/* Global Content Offset Fix - Unified for all internal templates */
.content-wrapper,
.library-container {
    margin-top: 0 !important;
    /* Clean offset handled by body padding */
    /* Clean offset handled by global body padding in header.php */
}

/* --- PHASE 2: ACADEMIC BADGES --- */
.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.academic-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.link-lattes {
    background: #e3f2fd;
    color: #1976d2;
}

.link-lattes:hover {
    background: #1b6abc !important;
    color: #fff !important;
}

.link-rg {
    background: #f3f3f3;
    color: #00ccbb;
}

.link-rg:hover {
    background: #00ccbb !important;
    color: #fff !important;
}

.link-orcid {
    background: #f1f8e9;
    color: #a6ce39;
}

.link-orcid:hover {
    background: #a6ce39 !important;
    color: #fff !important;
}

.link-scholar {
    background: #e8f0fe;
    color: #4285f4;
}

.link-scholar:hover {
    background: #4285f4 !important;
    color: #fff !important;
}

/* Invert colors for dark mode/high contrast */
body.high-contrast .academic-link {
    background: #000 !important;
    border: 1px solid #ffff00 !important;
    color: #ffff00 !important;
}

/* Floating Badge Stability Fix */
.floating-badge {
    position: relative !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    background: #0da989 !important;
    color: #fff !important;
}

/* --- 10. EXPEDIÇÕES & MAP EXPLORER (PREMIUM REDESIGN) --- */
.expedicoes-layout {
    display: flex;
    flex-direction: column;
    height: 750px;
    margin: 30px 0 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .expedicoes-layout {
        flex-direction: row;
        height: 800px;
    }
}

/* Sidebar Explorer */
.expedicoes-sidebar {
    width: 100%;
    height: 40%;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .expedicoes-sidebar {
        width: 400px;
        height: 100%;
    }
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-filters {
    padding: 15px 25px;
    background: #f9fbf9;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sidebar-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Explorer Cards */
.explorer-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 15px;
    align-items: center;
}

.explorer-card:hover {
    border-color: var(--secondary-teal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.explorer-card.active {
    border-color: var(--primary-green);
    background: var(--acc-light-green);
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-info h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--primary-green);
    line-height: 1.3;
}

.card-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
}

/* Map Area */
.map-viewport {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

#map-explorer {
    width: 100%;
    height: 100%;
}

/* Map Popups */
.nucms-popup .leaflet-popup-content-wrapper {
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
}

.nucms-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.popup-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-green);
}

.popup-body {
    padding: 20px;
}

.popup-body small {
    display: block;
    text-transform: uppercase;
    color: var(--secondary-teal);
    font-weight: 800;
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.popup-body h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--primary-green);
}

.popup-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-popup {
    display: inline-block;
    background: var(--primary-green);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

/* Custom Markers */
.custom-marker {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-marker i {
    color: #fff;
    font-size: 14px;
}

.marker-green {
    background-color: #2d5a27;
}

.marker-blue {
    background-color: #0077be;
}

.marker-red {
    background-color: #c0392b;
}

.marker-orange {
    background-color: #e67e22;
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}