@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #003087;      /* Memphis Blue */
    --primary-dark: #193059;       /* Brister Blue */
    --primary-light: #e5edf9;      /* Light Tint Blue */
    --secondary-color: #9C9EA1;    /* Memphis Gray */
    --secondary-light: #E2E4E6;    /* Mynders Gray */
    --text-color: #1e293b;         /* Slate Dark */
    --text-muted: #64748b;         /* Muted Slate */
    --bg-color: #f8fafc;           /* Light gray page bg */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0, 30, 135, 0.08), 0 10px 10px -5px rgba(0, 30, 135, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* UofM Top Banner */
.uofm-top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    padding: 8px 24px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-color);
}

.uofm-top-bar a {
    color: white;
    opacity: 0.9;
}

.uofm-top-bar a:hover {
    opacity: 1;
    color: var(--secondary-light);
}

/* Site Header */
.site-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo-img {
    height: 48px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: var(--transition);
}

.logo-section:hover .header-logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Layout Grid */
.main-content {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* FIRST VIEW: Group Members Showcase Hero */
.group-hero-showcase {
    margin-bottom: 40px;
    position: relative;
}

.group-hero-frame {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(0, 48, 135, 0.25);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .group-hero-frame {
        height: 380px;
    }
}

.group-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.group-hero-frame:hover .group-hero-img {
    transform: scale(1.02);
}

.group-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 24, 72, 0.92) 0%, rgba(0, 48, 135, 0.45) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.group-hero-badge {
    color: white;
    max-width: 750px;
}

.group-hero-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.group-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.group-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}

/* SCROLL REVEAL: Welcome to the Lab Details Section */
.welcome-details-section {
    margin-bottom: 56px;
}

.welcome-card-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    border-radius: 14px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.welcome-card-box:hover {
    box-shadow: var(--shadow-md);
}

.welcome-tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.welcome-heading {
    font-size: 1.85rem;
    color: var(--text-color);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.welcome-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.welcome-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.welcome-btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.welcome-btn.secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.welcome-btn.secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.hero-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 169, 34, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-spotlight {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        gap: 32px;
    }
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero-spotlight-title {
    font-size: 2.6rem;
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-spotlight-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.hero-spotlight-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 13px 26px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(243, 169, 34, 0.3);
}

.hero-btn-primary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 13px 26px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

/* Spotlight Image Frame */
.spotlight-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #001030;
    transition: var(--transition);
}

.spotlight-frame:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.6);
}

.spotlight-img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.spotlight-overlay-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.badge-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.hero-btn.primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.hero-btn.primary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.hero-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-image-card {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.hero-image-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4);
}

.hero-image-card img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
}

.hero-image-caption {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid Sections */
.section-title {
    font-size: 1.85rem;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Research Areas Card Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.research-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.research-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.research-card:hover .research-card-title a,
.research-card-title a:hover {
    color: var(--primary-color);
}

.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.card-action-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.research-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.research-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.research-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 16px;
}

.research-card-list {
    list-style: none;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.research-card-list li {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.research-card-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 2px;
}

/* People Page Cards */
.people-section {
    margin-bottom: 56px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 24px;
}

.people-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.people-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.people-card-header {
    background-color: var(--primary-light);
    padding: 24px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.people-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Fallback Initials Avatar */
.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 2.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.people-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.people-name {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.people-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.people-interests {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 20px;
    flex: 1;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.people-interests strong {
    color: var(--primary-dark);
}

.people-contact {
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item a {
    color: var(--text-color);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Research detail layout */
.research-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.research-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.research-nav-list {
    list-style: none;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.research-nav-item a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.research-nav-item a:hover, .research-nav-item.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.research-details {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.research-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 120px;
}

.research-sec-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.research-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 16px;
}

.research-figure-box {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    text-align: center;
}

.research-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.research-fig-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 500;
}

/* Publications page search filter style */
.filter-bar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.15);
}

.search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

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

/* Papers and Presentations Cards */
.publication-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.publication-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.pub-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-body {
    flex: 1;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.35;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pub-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pub-badge.accepted {
    background-color: #dcfce7;
    color: #166534;
}

.pub-badge.year {
    background-color: var(--secondary-light);
    color: var(--text-color);
}

.pub-badge.type {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.pub-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}

.pub-link:hover {
    text-decoration: underline;
}

/* Paper / Previous Posters Style */
.posters-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.paper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 18px 24px;
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
    font-size: 0.98rem;
    color: var(--text-color);
    transition: var(--transition);
}

.paper:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
    border-left-color: var(--primary-color);
}

.paper a {
    color: var(--primary-color);
    font-weight: 600;
}

.paper a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Card Page */
.contact-container {
    max-width: 800px;
    margin: 0;
}

.contact-card-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.director-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    margin-bottom: 20px;
    object-fit: cover;
}

.director-name {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.director-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.contact-details-list {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.contact-form-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer styling */
.site-footer {
    background-color: #0f172a; /* Slate 900 */
    color: #e2e8f0; /* Slate 200 */
    padding: 48px 24px 24px 24px;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-details {
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 24px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    height: 36px;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%) invert(100%);
}

.footer-logo-img:hover {
    opacity: 1;
    filter: none;
}

/* Home group photo section */
.group-photo-box {
    margin-top: 48px;
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.group-photo-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.group-photo-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 16px;
}

/* Media Queries */
@media (max-width: 992px) {
    .research-layout {
        grid-template-columns: 1fr;
    }
    .research-sidebar {
        position: static;
        margin-bottom: 24px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .nav-toggle {
        display: block;
        position: absolute;
        right: 24px;
        top: 24px;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    .main-nav.show {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 10px 12px;
    }
    .hero {
        padding: 40px 24px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
