/* Research Page Specific Styles */

/* Research Introduction */
.research-intro {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    max-width: 800px;
}

/* Lab Section */
.lab-section {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.lab-section:last-child {
    border-bottom: none;
}

.lab-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 6px solid #3d7ed9;
}

.lab-logo {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lab-info h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #333;
}

.lab-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
}

.prof-link {
    color: #3d7ed9;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #3d7ed9;
}

.prof-link:hover {
    color: #2c5fb4;
    border-bottom: 1px solid #2c5fb4;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3d7ed9;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: #333;
    line-height: 1.4;
    padding-right: 80px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #e9f2ff;
    color: #3d7ed9;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.project-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3d7ed9;
}

.project-details h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.project-details ul {
    margin: 0;
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f0f7ff;
    color: #3d7ed9;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.project-link:hover {
    background: #3d7ed9;
    color: white;
    transform: translateY(-2px);
}

/* Publications Section */
.publications-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.publications-section h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.publication-item {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #6a11cb;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.pub-year {
    flex: 0 0 70px;
    font-weight: 600;
    color: #6a11cb;
    font-size: 1.2rem;
}

.pub-content {
    flex: 1;
}

.pub-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
}

.pub-authors {
    color: #555;
    font-style: italic;
    margin-bottom: 8px;
}

.pub-venue {
    color: #666;
    font-size: 0.95rem;
}

/* Navigation */
.research-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.nav-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #3d7ed9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 200px;
    text-align: center;
}

.nav-button:hover {
    background-color: #2c5fb4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prev-button {
    background-color: #6c757d;
}

.prev-button:hover {
    background-color: #545b62;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.publication-item {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.publication-item:nth-child(1) { animation-delay: 0.5s; }
.publication-item:nth-child(2) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .lab-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .lab-logo {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card h3 {
        padding-right: 0;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .pub-year {
        flex: none;
    }
    
    .research-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-button {
        width: 100%;
        min-width: auto;
    }
}