/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 0;
}

.navbar-content {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a.active {
    border-bottom: 2px solid #3498db;
}

.lab-logo-small {
    height: 50px; 
    width: auto;
    margin-right: 15px;
    
    background-color: white;
    padding: 2px;            
    border-radius: 4px; 
    display: inline-block;  
}

.lab-logo {
    height: 250px; 
    width: auto;
    margin-right: 15px;
    
#    background-color: white;
#    padding: 2px;            
#    border-radius: 4px; 
#    display: inline-block;  
}

/* Staff Section */
.staff-section {
    margin: 40px 0;
}

.section-title {
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Grid Layout */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.staff-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.staff-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.staff-info h3 {
    margin: 10px 0 5px 0;
}

.role {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

/* PI Specific Styling (Larger Card) */
.pi-card {
    display: flex;
    text-align: left;
    grid-column: 1 / -1; /* Spans full width */
}

.pi-card img {
    width: 200px;
    height: 200px;
    margin-right: 30px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #ecf0f1;
    margin-top: 40px;
}

.hero-section {
    background-color: #ffffff;
    padding: 60px 0; /* Vertical spacing */
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center; /* Vertically centers logo and text */
    gap: 40px; /* Space between logo and text */
}

/* Logo Styling */
.hero-logo img {
    max-width: 400px; /* Adjust size as needed */
    height: auto;
    display: block;
}

/* Text Styling */
.hero-text {
    flex: 1; /* Takes up the remaining space */
}

.hero-text h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-top: 0;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* Stacks logo on top of text on small screens */
        text-align: center;
    }
    
    .hero-logo img {
        max-width: 200px;
        margin: 0 auto;
    }
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 equal columns */
    gap: 10px;
    margin-top: 15px;
}

/* Individual link styling */
.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.social-item:hover {
    opacity: 0.8;
}

/* Platform Colors */
.github { background-color: #333; }
.instagram { background-color: #E1306C; }
.facebook { background-color: #1877F2; }
.linkedin { background-color: #0077B5; } /* Official LinkedIn Blue */

/* Placeholder for icons (if you aren't using an icon library like FontAwesome) */
.icon {
    margin-right: 8px;
    font-weight: bold;
}


.institutional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 30px;
    margin-top: 20px;
}

/* Individual Institution Card */
.institution-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

.institution-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.institution-card p {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 50px; /* Keeps text aligned even if lengths vary */
}

/* Logo specific styling */
.inst-logo {
    max-width: 100%;
    height: 80px; /* Fixed height for consistency */
    object-fit: contain; /* Prevents logo distortion */
    margin-bottom: 10px;
    background-color: white; /* Helpful if logos have transparency */
}

/* Link/Button styling inside the card */
.institution-card a {
    text-decoration: none;
    color: #3498db;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.institution-card span {
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustment for phones */
@media (max-width: 768px) {
    .institutional-grid {
        grid-template-columns: 1fr; /* Stacks cards vertically */
    }
}

.video-thumbnail-container {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.video-thumbnail-container:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

/* The Thumbnail Image */
.video-thumb {
    width: 100%;
    display: block;
    height: auto;
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkens the image slightly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.video-link:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5); /* Darkens more on hover */
}

.play-icon {
    font-size: 50px;
    background: #ff0000; /* YouTube Red */
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.play-overlay p {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.publication-year {
    margin-bottom: 50px;
}

.pub-list {
    list-style: none; /* Remove as bolinhas padrão */
    padding: 0;
}

.pub-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee; /* Linha sutil entre publicações */
}

.pub-item:last-child {
    border-bottom: none; /* Remove a linha do último item do ano */
}

/* Título do Artigo (Link) */
.pub-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50; /* Cor escura consistente com o site */
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: #3498db; /* Azul de destaque ao passar o mouse */
    text-decoration: underline;
}

/* Nome da Revista */
.pub-journal {
    margin-top: 5px;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.95rem;
}