/* COALAB Laboratory Website Styles */

:root {
    --primary-color: #0057ac; /* Updated to UdeM Blue */
    --secondary-color: #1a73e8;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --light-gray: #e9ecef;
    --border-radius: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px; /* For fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Project Cards */
.project-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Team Cards */
.team-card {
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--light-gray);
}

.team-card .card-title {
    margin-bottom: 0.25rem;
}

.team-card .card-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.2rem; /* Reduced from 0.5rem to prevent wrapping */
    padding-left: 0.5rem !important; /* Adjust standard bootstrap padding if needed */
    padding-right: 0.5rem !important;
    white-space: nowrap; /* Prevent individual link wrapping */
}

.nav-link.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.hero-section h1 {
    color: white;
    border-bottom: none;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* News Section */
.news-item {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Publications List */
.publication-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.publication-authors {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.publication-venue {
    font-style: italic;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    margin-top: 4rem;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    body {
        padding-top: 70px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}
