/* CSS Variables */
:root {
    --primary: #10b981; /* Emerald Green */
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 90px;
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-ler {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-left: 1px solid var(--border);
    padding-left: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header.align-left {
    text-align: left;
    margin-left: 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.about-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-state.small {
    padding: 40px 24px;
}

.empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: inline-block;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.empty-state p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* Members */
.subsection-title {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.member-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.member-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.mt-4 {
    margin-top: 32px;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
}

.footer-brand .logo-ler {
    color: white;
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-ufpe {
    font-weight: 600;
    color: var(--primary) !important;
    margin-top: 4px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links p {
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    background-color: #020617;
    padding: 24px 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 48px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    
    .hero-title { font-size: 40px; }
    .hero { padding: 40px 0; }
    
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 40px; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-outline-small {
    padding: 6px 12px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.btn-outline-small:hover {
    background-color: var(--primary);
    color: white;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.page-content {
    padding: 120px 0 60px;
    min-height: calc(100vh - 300px);
}



/* --- MOBILE MENU & MODERN TWEAKS --- */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

@media (max-width: 768px) {
    .menu-btn { 
        display: block; 
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
        order: 3;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 15px;
        order: 4;
    }
    
    .nav-actions.active {
        display: flex;
    }
}

/* Make grid cards modern */
.member-card, .pub-card, .news-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.member-card:hover, .pub-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}


/* --- SIDEBAR LAYOUT --- */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 24px;
}
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: var(--primary);
}
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
}
.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}


/* --- FIX FOR MOBILE SIDEBAR --- */
@media (max-width: 992px) {
    .sidebar {
        position: relative !important;
        top: 0 !important;
    }
}
