/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: rgba(30, 120, 96, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background-color: rgba(30, 120, 96, 0.2);
    color: var(--text-color);
}

:root {
    --primary-color: #1a5d4e;
    --secondary-color: #278c75;
    --accent-color: #e6f7f2;
    --text-color: #1a202c;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --bg-dark: #ffffff;
    /* FORCE DARK TO WHITE */
    --card-bg-light: #ffffff;
    --card-bg-dark: #ffffff;
    /* FORCE DARK TO WHITE */
    --nav-height: 70px;
    --gradient-primary: linear-gradient(135deg, #1a5d4e 0%, #278c75 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Original Dark Mode Variables - Neutralized */
    --bg-dark-mode: #ffffff;
    --text-dark-mode: #1a202c;
    --card-bg-dark-mode: #ffffff;
}

/* Force Body to Light */
body {
    background-color: #ffffff !important;
    color: #1a202c !important;
}

/* Force Publication Item to Light */
.publication-item {
    background-color: #ffffff !important;
    color: #1a202c !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Force Publication Title */
.pub-title {
    color: #1a202c !important;
}

/* Force Authors */
.authors-list {
    color: #4a5568 !important;
}

/* Force Citation */
.pub-citation {
    color: #718096 !important;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Videos */
video,
iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 120, 96, 0.1);
    box-shadow: 0 4px 20px rgba(30, 120, 96, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(30, 120, 96, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(30, 120, 96, 0.12);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

.search-box {
    position: relative;
}

.search-form-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile Search Box - Hidden on Desktop */
.mobile-search-item {
    display: none;
}

.mobile-search-box {
    width: 100%;
    padding: 0.5rem 0;
}

.mobile-search-form {
    width: 100%;
}

.mobile-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 120, 96, 0.08);
    border: 2px solid rgba(30, 120, 96, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.mobile-search-wrapper:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.15);
}

.search-icon-mobile {
    color: var(--primary-color);
    font-size: 22px;
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
}

.mobile-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.mobile-search-submit {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 120, 96, 0.3);
}

.mobile-search-submit .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.mobile-search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.4);
}

.mobile-search-submit:active {
    transform: scale(0.95);
}

.search-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(30, 120, 96, 0.08);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 180px;
    box-shadow: 0 4px 15px rgba(30, 120, 96, 0.15);
    transform: translateY(-1px);
}

.search-submit {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.3);
}

.search-submit .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(30, 120, 96, 0.4);
}

.search-submit:hover .material-symbols-outlined {
    transform: rotate(90deg);
}

.search-submit:active {
    transform: translateY(-1px) scale(0.95);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle:hover {
    background-color: rgba(30, 120, 96, 0.08);
}

.mobile-menu-toggle:hover span {
    background-color: var(--primary-color);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.slide:nth-child(1) .slide-background {
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.6), rgba(21, 90, 71, 0.6)), url('/images/SL1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide:nth-child(2) .slide-background {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.7), rgba(30, 120, 96, 0.7)), url('/images/SL2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide:nth-child(3) .slide-background {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.65), rgba(38, 70, 83, 0.65)), url('/images/SL3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide:nth-child(4) .slide-background {
    background: linear-gradient(135deg, rgba(21, 90, 71, 0.7), rgba(13, 59, 46, 0.7)), url('/images/SL4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(50px) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInContent 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide.active .hero-content {
    animation: slideInContent 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInContent {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInControls 0.6s ease forwards 0.5s;
}

@keyframes fadeInControls {
    to {
        opacity: 1;
    }
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-control:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.slider-control svg {
    width: 24px;
    height: 24px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    animation: fadeInControls 0.6s ease forwards 0.5s;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Legacy Hero Support (for other pages) */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Publication Tags */
.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.pub-tag {
    background-color: var(--bg-light);
    /* Light background */
    color: var(--primary-color);
    /* Dark green text */
    border: 1px solid rgba(30, 120, 96, 0.2);
    /* Subtle border matching primary */
    border-radius: 9999px;
    /* Pill shape */
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pub-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

/* .section:nth-child(even) {
    background-color: var(--bg-light);
} */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

/* Lab Overview - Modern 2-Column Layout */
.lab-overview-modern {
    background: white !important;
    position: relative;
}

/* Override nth-child rule specifically for lab overview */
.section.lab-overview-modern {
    background: white !important;
    background-color: white !important;
}

/* Force white background for lab overview section */
section.section.lab-overview-modern {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.lab-overview-modern .section-title {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.lab-overview-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Photo Slideshow Column */
.lab-photos-column {
    position: relative;
}

.lab-photo-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 120, 96, 0.2);
    background: #f0f0f0;
}

.lab-photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-photo-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.lab-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lab Slider Controls */
.lab-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lab-slider-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lab-slider-control:active {
    transform: translateY(-50%) scale(0.95);
}

.lab-slider-control.prev {
    left: 1rem;
}

.lab-slider-control.next {
    right: 1rem;
}

.lab-slider-control svg {
    width: 20px;
    height: 20px;
}

/* Lab Slider Dots */
.lab-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.lab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.lab-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.lab-dot.active {
    background: white;
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Content Column */
.lab-content-column {
    padding: 1rem 0;
}

.lab-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
}

.lab-intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.lab-intro h2:first-child {
    margin-top: 0;
}

.lab-intro p {
    margin-bottom: 1.25rem;
}

.lab-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy Lab Overview (for other pages) */
.lab-overview {
    text-align: center;
}

.lab-overview .lab-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About NIAB */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 120, 96, 0.08);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 120, 96, 0.2);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Clickable card with text selection support */
.about-card-clickable {
    cursor: pointer;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.about-card-clickable * {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Card images */
.card-image {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.15);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card-clickable:hover .card-image img {
    transform: scale(1.05);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 120, 96, 0.08);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 120, 96, 0.2);
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    margin-bottom: 0.75rem;
}

.news-content h3 a {
    text-decoration: none;
    color: #1e6f5c;
    font-weight: 700;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #1e6f5c;
    text-decoration: none;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #1a5d4e !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #278c75 !important;
}

/* News List Page */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination {
    max-width: 900px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 120, 96, 0.1);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 120, 96, 0.25);
}

.pagination-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pagination-prev:hover svg {
    transform: translateX(-3px);
}

.pagination-next:hover svg {
    transform: translateX(3px);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-number:hover {
    background: rgba(30, 120, 96, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.3);
}

.pagination-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.news-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(30, 120, 96, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 120, 96, 0.2);
}

.news-row {
    display: flex;
    gap: 2rem;
}

.news-image-col {
    flex: 0 0 300px;
}

.news-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.news-content-col {
    flex: 1;
    padding: 2rem;
}

.news-content-col h2 a {
    color: #1a5d4e !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.news-content-col h2 a:hover {
    color: #278c75 !important;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-small {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    background-color: rgba(30, 120, 96, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(30, 120, 96, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.tag-small .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.tag-small:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.tag-small:hover .material-symbols-outlined {
    transform: scale(1.15);
}

/* Team CTA */
.team-cta {
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 120, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 120, 96, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.text-center {
    text-align: center;
}

/* Popular Topics / Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    align-items: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background-color: rgba(30, 120, 96, 0.12);
    border: 1px solid rgba(30, 120, 96, 0.25);
    border-radius: 50px;
    text-decoration: none;
    color: #1e6f5c;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(30, 120, 96, 0.1);
}

.tag:hover {
    background-color: #1e6f5c;
    color: white;
    border-color: #1e6f5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 120, 96, 0.25);
}

.tag:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tag size variations based on popularity */
.tag-large {
    font-size: 1.125rem;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
}

.tag-medium {
    font-size: 0.9375rem;
    padding: 0.5625rem 1.375rem;
    font-weight: 600;
}

.tag-small-cloud {
    font-size: 0.8125rem;
    padding: 0.4375rem 1.125rem;
    font-weight: 500;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* People Section */
.people-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding-top: 2.5rem !important;
}

/* Reduce space for intro content on people page */
.intro-content {
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.intro-content p {
    margin-bottom: 0;
    text-align: center;
}

/* Mobile-specific spacing improvements */
@media (max-width: 768px) {
    .people-section {
        padding-top: 1.5rem !important;
    }

    .intro-content {
        padding: 1rem 0 0.5rem;
    }
}

/* Tab Navigation */
.people-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 120, 96, 0.08);
    border: 1px solid rgba(30, 120, 96, 0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.people-tab {
    flex: 1;
    min-width: 180px;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
}

.people-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 120, 96, 0.05), transparent);
    transition: left 0.5s;
}

.people-tab:hover::before {
    left: 100%;
}

.people-tab svg {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.people-tab:hover {
    background: rgba(30, 120, 96, 0.05);
    border-color: rgba(30, 120, 96, 0.2);
    transform: translateY(-2px);
}

.people-tab:hover svg {
    transform: scale(1.1);
}

.people-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(30, 120, 96, 0.25);
}

.people-tab.active svg {
    transform: scale(1);
}

.people-tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tab Content */
.people-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.people-tab-content.active {
    display: block;
}

/* People Group Sections */
.people-group {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

.people-group:last-child {
    margin-bottom: 2rem;
}

.group-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.group-title-text {
    text-align: center;
}

.group-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    border: none;
}

.group-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* People Grid - Maximum 2 Cards Per Row */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* .people-grid .person-card rule removed to allow global max-width to take effect */

@media (max-width: 900px) {
    .people-grid {
        gap: 2rem;
        max-width: 800px;
    }
}

@media (max-width: 600px) {
    .people-grid {
        gap: 1.5rem;
        max-width: 700px;
    }
}

/* Flexbox layout automatically centers 1, 2, or any leftover cards */

/* Person Card - Enhanced Modern Design */
.person-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 120, 96, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 120, 96, 0.08);
    position: relative;
    /* min-height: 500px; Removed min-height to let content dictate size */
    height: auto;
    width: 100%;
    max-width: 320px;
    /* Enforce standard size globally */
    margin: 0 auto;
    /* Center the card if grid column is wider */
    display: flex;
    flex-direction: column;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.person-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(30, 120, 96, 0.15);
    border-color: rgba(30, 120, 96, 0.25);
}

.person-card:hover::before {
    transform: scaleX(1);
}

/* Person Card Link */
.person-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    /* height: 100%; Removed to prevent stretching */
    width: 100%;
}

.person-card-link:visited,
.person-card-link:active,
.person-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.person-card:active,
.person-card-link:active .person-card {
    transform: translateY(-10px);
}

/* Person Image Container */
.person-image {
    position: relative;
    width: 100%;
    /* height: 250px; Removed fixed height for aspect ratio */
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-card:hover .person-image img {
    transform: scale(1.08);
}

/* Image Overlay Effect */
.person-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.9), rgba(42, 157, 143, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-image-overlay svg {
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-card:hover .person-image-overlay {
    opacity: 1;
}

.person-card:hover .person-image-overlay svg {
    transform: scale(1);
}

/* Placeholder for missing images */
.person-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.05), rgba(42, 157, 143, 0.05));
}

.person-image-placeholder svg {
    color: var(--primary-color);
    opacity: 0.3;
}

/* Person Info Section */
.person-info {
    padding: 1.25rem;
    text-align: center;
    /* height: 200px; Removed fixed height */
    flex-grow: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    /* overflow: hidden; Removed overflow hidden */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.person-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.person-card:hover .person-name {
    color: var(--primary-color);
}

.person-position {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.person-email {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.person-card:hover .person-email {
    opacity: 1;
}

.person-email svg {
    flex-shrink: 0;
}

.person-email span {
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Person Social Links */
.person-social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.person-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.person-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Email icon - Blue */
.person-social-link[title="envelope"]:hover {
    background: #4285F4;
    color: white;
}

/* LinkedIn icon - Blue */
.person-social-link[href*="linkedin"]:hover {
    background: #0077B5;
    color: white;
}

/* ResearchGate icon - Teal */
.person-social-link[href*="researchgate"]:hover {
    background: #00D0B1;
    color: white;
}

/* Google Scholar icon - Blue */
.person-social-link[href*="scholar.google"]:hover {
    background: #4285F4;
    color: white;
}

/* GitHub icon - Dark */
.person-social-link[href*="github"]:hover {
    background: #181717;
    color: white;
}

/* Twitter icon - Blue */
.person-social-link[href*="twitter"]:hover {
    background: #1DA1F2;
    color: white;
}

.person-social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* ===== Unified Page Hero Section ===== */
.page-hero {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: slidePattern 20s linear infinite;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.page-hero-icon .material-symbols-outlined {
    font-size: 40px;
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Special styling for Lab page hero */
.page-hero-lab {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.95), rgba(21, 90, 71, 0.95)), url('/images/SL1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Light Theme Modifier */
.page-hero.light {
    background: var(--bg-light);
    color: var(--text-color);
    border-bottom: 1px solid rgba(30, 120, 96, 0.1);
}

.page-hero.light .page-hero-background {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-light" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(30, 120, 96, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-light)"/></svg>');
    opacity: 0.5;
}

.page-hero.light .page-hero-icon {
    background: white;
    border-color: rgba(30, 120, 96, 0.2);
    box-shadow: 0 8px 32px rgba(30, 120, 96, 0.1);
}

.page-hero.light .page-hero-icon .material-symbols-outlined {
    color: var(--primary-color);
}

.page-hero.light h1 {
    color: var(--primary-color);
    text-shadow: none;
}

.page-hero.light .page-hero-subtitle {
    color: var(--text-light);
    text-shadow: none;
}

/* Legacy support for old page-header class */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 20 Q10 0 20 20 T40 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.meta-info {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Page Content */
.page-content {
    padding: 3rem 0;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
    margin: 1rem 0 1rem 2rem;
}

.content-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.external-link {
    margin-top: 2rem;
    text-align: center;
}

/* History Section */
.history {
    background-color: var(--bg-light);
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.history-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 50%, #80cbc4 100%);
    color: #1a1a1a;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

/* Animated Wave Decoration */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".3" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat;
    background-size: cover;
    transform: translateY(-1px);
    z-index: 1;
    animation: waveAnimation 15s ease-in-out infinite;
}

@keyframes waveAnimation {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(-1px) scaleX(1);
    }

    50% {
        opacity: 0.9;
        transform: translateY(-3px) scaleX(1.02);
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(30, 120, 96, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 120, 96, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255, 255, 255, 0.4)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

/* Footer About Section */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(30, 120, 96, 0.3);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(30, 120, 96, 0.15);
}

.footer-logo:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(30, 120, 96, 0.25);
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.footer-section h3 svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-description {
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-founded {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(30, 120, 96, 0.5);
}

/* Footer Links Section */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li {
    margin: 0;
}

.footer-links a {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover::before {
    transform: scaleY(1);
}

.footer-links a svg {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
    padding-left: 1rem;
}

.footer-links a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Social Section */
.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 120, 96, 0.25);
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.15), rgba(30, 120, 96, 0.25));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-social-link:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(30, 120, 96, 0.3);
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Specific social media colors on hover */
.footer-social-link[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.footer-social-link[aria-label="Twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.footer-social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: white;
}

.footer-social-link[aria-label="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(30, 120, 96, 0.25);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(0, 0, 0, 0.65);
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-tagline {
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    font-size: 0.875rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }

    .footer-wave {
        height: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 1.5rem;
    }

    .footer-about {
        text-align: center;
        align-items: center;
    }

    .footer-founded {
        border-left: none;
        border-top: 2px solid rgba(30, 120, 96, 0.4);
        padding-left: 0;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright,
    .footer-tagline {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.05rem;
    }

    .footer-social-link {
        width: 44px;
        height: 44px;
    }
}


/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Improved loading states */
.news-card,
.person-card,
.about-card,
.item-card {
    animation: fadeInUp 0.6s ease-out;
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card:nth-child(4) {
    animation-delay: 0.4s;
}

.person-card:nth-child(1) {
    animation-delay: 0.1s;
}

.person-card:nth-child(2) {
    animation-delay: 0.2s;
}

.person-card:nth-child(3) {
    animation-delay: 0.3s;
}

.person-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mobile Menu Overlay */
.nav-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Logo Styling */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.25rem;
}

.site-logo:hover {
    transform: scale(1.05);
    background-color: rgba(30, 120, 96, 0.05);
}

.logo-image {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-logo:hover .logo-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Navigation Icons */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-icon .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.nav-text {
    display: inline;
}

.nav-link:hover .nav-icon {
    opacity: 1;
}

.nav-link:hover .nav-icon .material-symbols-outlined {
    transform: scale(1.15) rotate(5deg);
}

.nav-link.active .nav-icon {
    opacity: 1;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--primary-color);
}

.mobile-menu-toggle.active {
    background-color: rgba(30, 120, 96, 0.12);
}

/* Responsive Design */

/* Base responsive settings */
* {
    -webkit-tap-highlight-color: rgba(30, 120, 96, 0.2);
    -webkit-touch-callout: none;
}

/* Ensure smooth transitions between breakpoints */
.nav-menu,
.mobile-menu-toggle,
.search-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch-friendly buttons and links */
@media (hover: none) and (pointer: coarse) {

    .nav-link,
    .btn,
    .tag,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Large Desktop (1920px and above) - 4K, Ultra-wide displays */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Standard Desktop (1366px to 1919px) - Most laptops and desktops */
@media (min-width: 1366px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (above 900px) - ensure menu is visible */
@media (min-width: 901px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        backdrop-filter: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .search-box {
        display: block !important;
    }

    /* Hide mobile search on desktop */
    .mobile-search-item {
        display: none !important;
    }

    .nav-item {
        width: auto !important;
        border-bottom: none !important;
    }

    .nav-link {
        padding: 0.25rem 0.5rem !important;
        margin: 0 !important;
        width: auto !important;
        border-left: none !important;
        border-radius: 6px !important;
    }

    .nav-link.active {
        background-color: rgba(30, 120, 96, 0.12) !important;
        margin-left: 0 !important;
        padding-left: 0.5rem !important;
        width: auto !important;
        border-left: none !important;
    }

    .nav-link.active::after {
        display: block !important;
    }

    .nav-link:hover {
        transform: translateY(-1px) !important;
    }

    .nav-menu-overlay {
        display: none !important;
    }
}

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.25rem 0.4rem;
        font-size: 0.9rem;
    }

    .search-input {
        width: 120px;
    }

    .search-input:focus {
        width: 160px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .person-card {
        height: auto;
        width: 320px;
        max-width: 320px;
        margin: 0 auto;
        justify-self: center;
    }

    .person-image {
        aspect-ratio: 4/5;
        height: auto;
    }

    .group-title {
        font-size: 1.85rem;
    }

    /* Tabs on desktop tablet */
    .people-tab {
        padding: 1rem 1.25rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-tagline {
        font-size: 1.3rem;
    }
}

/* Medium tablets (900px and below) - transition to mobile menu */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .search-box {
        display: none;
    }

    /* Show mobile search in menu */
    .mobile-search-item {
        display: block;
        width: 100%;
        border-bottom: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(30, 120, 96, 0.15);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -10px 0 30px rgba(30, 120, 96, 0.15);
        z-index: 999;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(30, 120, 96, 0.1);
        transition: all 0.3s ease;
    }

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

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0;
        width: 100%;
        font-size: 1rem;
        border-radius: 0;
        margin: 0.125rem 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-icon {
        display: flex;
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .nav-icon .material-symbols-outlined {
        font-size: 22px;
    }

    .nav-link:hover .nav-icon {
        opacity: 1;
    }

    .nav-link:hover .nav-icon .material-symbols-outlined {
        transform: scale(1.1);
    }

    .nav-link.active .nav-icon {
        opacity: 1;
        color: var(--primary-color);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(30, 120, 96, 0.1), rgba(42, 157, 143, 0.08));
        border-left: 4px solid var(--primary-color);
        padding-left: 1.5rem;
        margin-left: -2rem;
        width: calc(100% + 2rem);
        font-weight: 600;
        color: var(--primary-color);
    }

    .nav-link:hover {
        background-color: rgba(30, 120, 96, 0.05);
        transform: translateX(4px);
    }

    .nav-menu-overlay {
        display: none;
    }

    .nav-menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* iPad Pro Landscape (1024px to 1366px) */
@media (min-width: 1024px) and (max-width: 1365px) and (orientation: landscape) {
    .container {
        padding: 0 40px;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.95rem;
    }
}

/* iPad Pro Portrait (834px to 1024px) */
@media (min-width: 834px) and (max-width: 1023px) and (orientation: portrait) {
    .container {
        padding: 0 35px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.9rem;
    }
}

/* iPad Landscape (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .nav-menu {
        width: 320px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iPad Portrait & Small Tablets (768px and below) */
@media (max-width: 768px) {

    /* Pagination on tablet */
    .pagination {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .pagination-nav {
        gap: 1rem;
    }

    .pagination-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.875rem;
    }

    /* Header and Navigation */
    .site-header {
        position: sticky;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .container {
        padding: 0 20px;
    }

    .logo-image {
        height: 28px;
    }

    .nav-menu {
        width: 280px;
        max-width: 90vw;
        padding: 4.5rem 1.5rem 2rem;
    }

    /* Hero Section & Slider */
    .hero {
        padding: 3rem 0;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .slider-control {
        width: 40px;
        height: 40px;
    }

    .slider-control.prev {
        left: 1rem;
    }

    .slider-control.next {
        right: 1rem;
    }

    .slider-dots {
        bottom: 1.5rem;
    }

    /* Lab Overview Grid - Stack on mobile */
    .lab-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lab-photo-slider {
        height: 400px;
    }

    .lab-intro {
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Page Hero - Tablet */
    .page-hero {
        padding: 4rem 0 3rem;
        min-height: 300px;
    }

    .page-hero-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .page-hero-icon .material-symbols-outlined {
        font-size: 36px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero-subtitle {
        font-size: 1.15rem;
    }

    .page-hero-lab {
        min-height: 350px;
    }

    /* Legacy page-header */
    .page-header {
        padding: 1.5rem 0 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    /* News */
    .news-row {
        flex-direction: column;
    }

    .news-image-col {
        flex: none;
        height: 200px;
    }

    .news-content-col {
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .person-card {
        height: auto;
        width: 320px;
        max-width: 320px;
        margin: 0 auto;
        justify-self: center;
    }

    .person-image {
        aspect-ratio: 4/5;
        height: auto;
    }

    .person-info {
        padding: 1.5rem;
        height: auto;
    }

    .person-name {
        font-size: 1.1rem;
    }

    .group-title {
        font-size: 1.65rem;
        flex-direction: column;
        align-items: center;
    }

    .group-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.85rem;
    }

    /* Tabs on tablet */
    .people-tabs {
        gap: 0.75rem;
        flex-wrap: wrap;
        padding: 0.5rem;
        margin-bottom: 2rem;
    }

    .people-tab {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 160px;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .people-tab svg {
        width: 18px;
        height: 18px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .about-card,
    .news-card,
    .person-card,
    .item-card {
        border-radius: 12px;
    }

    .news-content,
    .person-info,
    .item-content {
        padding: 1.25rem;
    }

    /* Team CTA */
    .team-cta {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-tagline {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }

    /* Tags */
    .tags-cloud {
        gap: 0.75rem;
    }

    .tag {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Content */
    .content-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .content-body h2 {
        font-size: 1.5rem;
    }

    .content-body h3 {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }

    /* Search Input */
    .search-input {
        width: 140px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-input:focus {
        width: 160px;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {

    /* Pagination on mobile */
    .pagination {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
    }

    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .pagination-prev {
        order: 1;
    }

    .pagination-next {
        order: 2;
    }

    .pagination-info {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .logo-image {
        height: 24px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hero Section & Slider */
    .hero {
        padding: 2rem 0;
    }

    .hero-slider {
        height: 350px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .slider-control {
        width: 36px;
        height: 36px;
    }

    .slider-control.prev {
        left: 0.5rem;
    }

    .slider-control.next {
        right: 0.5rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    /* Sections */
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Page Hero - Mobile */
    .page-hero {
        padding: 3rem 0 2.5rem;
        min-height: 280px;
    }

    .page-hero-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .page-hero-icon .material-symbols-outlined {
        font-size: 32px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1.1rem;
    }

    .page-hero-lab {
        min-height: 300px;
    }

    /* Legacy page-header */
    .page-header {
        padding: 1rem 0 0.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Lab Intro */
    .lab-intro {
        font-size: 1rem;
    }

    .lab-photo-slider {
        height: 350px;
        border-radius: 15px;
    }

    .lab-slider-control {
        width: 36px;
        height: 36px;
    }

    .lab-slider-dots {
        bottom: 1rem;
    }

    /* Cards */
    .about-card,
    .news-card,
    .person-card,
    .item-card {
        border-radius: 10px;
    }

    .about-card,
    .news-content,
    .news-content-col,
    .person-info,
    .item-content {
        padding: 1rem;
    }

    .news-card h3,
    .item-content h2 {
        font-size: 1.25rem;
    }

    .news-date,
    .person-position,
    .item-date,
    .item-meta {
        font-size: 0.85rem;
    }

    /* Grid layouts */
    .person-card {
        border-radius: 16px;
        height: auto;
        width: 320px;
        max-width: 320px;
        margin: 0 auto;
        justify-self: center;
    }

    .person-image {
        aspect-ratio: 4/5;
        height: auto;
    }

    .person-info {
        padding: 1.5rem 1rem;
        height: auto;
    }

    .person-name {
        font-size: 1.15rem;
    }

    .person-position {
        font-size: 0.875rem;
    }

    .group-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .group-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.75rem;
    }

    .people-group {
        margin-bottom: 2.5rem;
    }

    /* Tabs on mobile */
    .people-tabs {
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
    }

    .people-tab {
        flex: 1 1 100%;
        min-width: auto;
        width: 100%;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        flex-direction: row;
        gap: 0.625rem;
        justify-content: flex-start;
        text-align: left;
    }

    .people-tab svg {
        width: 20px;
        height: 20px;
    }

    .people-tab span {
        font-size: 0.875rem;
        text-align: left;
        line-height: 1.3;
    }

    .news-grid,
    .items-grid,
    .about-grid {
        gap: 1.25rem;
    }

    /* Team CTA */
    .team-cta {
        padding: 2.5rem 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }

    /* Tags */
    .tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .tag-small {
        padding: 0.3rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Content */
    .content-body {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .content-body h2 {
        font-size: 1.35rem;
        margin-top: 1.5rem;
    }

    .content-body h3 {
        font-size: 1.15rem;
    }

    .content-body ul,
    .content-body ol {
        margin-left: 1.5rem;
    }

    /* History Section */
    .history-content p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Featured Image */
    .featured-image {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
    }

    /* Tags Section */
    .tags-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Extra small devices (420px and below) */
@media (max-width: 420px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    /* Page Hero - Small Mobile */
    .page-hero {
        padding: 2.5rem 0 2rem;
        min-height: 250px;
    }

    .page-hero-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.875rem;
    }

    .page-hero-icon .material-symbols-outlined {
        font-size: 28px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .page-hero-lab {
        min-height: 280px;
    }

    /* Legacy page-header */
    .page-header h1 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-tagline {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.25rem;
    }

    .news-image img,
    .item-image img {
        height: 180px;
    }

    .person-image img {
        height: 220px;
    }
}

/* Landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        padding: 2rem 2rem 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }
}

/* ============================================
   DEVICE-SPECIFIC OPTIMIZATIONS
   ============================================ */

/* iPhone 14 Pro Max, 14 Plus, 13 Pro Max, 12 Pro Max (428px) */
@media only screen and (min-width: 414px) and (max-width: 428px) and (-webkit-min-device-pixel-ratio: 2) {
    .container {
        padding: 0 18px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .nav-menu {
        width: 100%;
    }
}

/* iPhone 14 Pro, 14, 13 Pro, 13, 12 Pro, 12, 11 Pro, X, XS (390px-393px) */
@media only screen and (min-width: 375px) and (max-width: 393px) and (-webkit-min-device-pixel-ratio: 2) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* iPhone SE (2020), 8, 7, 6 (375px) */
@media only screen and (width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-title {
        font-size: 1.65rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }
}

/* iPhone SE (1st gen), 5S, 5 (320px) */
@media only screen and (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .nav-menu {
        width: 100%;
        padding: 4rem 1rem 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 0;
    }
}

/* Android Tablets (7-10 inch) - Landscape */
@media only screen and (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) {
    .container {
        padding: 0 30px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Android Tablets - Portrait */
@media only screen and (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Large Android Phones (Samsung Galaxy S21+, Note series, OnePlus) - Landscape */
@media only screen and (min-width: 360px) and (max-width: 915px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
    .hero {
        padding: 1.5rem 0;
    }

    .section {
        padding: 1.75rem 0;
    }

    .nav-menu {
        width: 320px;
        padding: 3rem 1.5rem 1.5rem;
    }
}

/* Standard Android Phones (360px-411px) - Portrait */
@media only screen and (min-width: 360px) and (max-width: 411px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Small Android Phones (below 360px) */
@media only screen and (max-width: 359px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* High DPI Displays (Retina, AMOLED) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .site-header {
        border-bottom-width: 0.5px;
    }

    .nav-link {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }

    .site-header {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Fix for iOS Safari bottom bar */
    .nav-menu {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Android Chrome specific fixes */
@supports not (-webkit-touch-callout: none) {
    .nav-menu {
        overscroll-behavior: contain;
    }
}

/* Items Grid (generic) */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 120, 96, 0.08);
    position: relative;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 120, 96, 0.2);
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 1.5rem;
}

.item-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.item-content h2 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

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

.item-meta,
.item-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* News Single Page Styles */
.news-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 3rem;
}

.news-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.news-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-header-content .news-date {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.news-tags-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.news-tags-header .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-tags-header .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.news-featured-image {
    padding: 3rem 0 0;
    background: var(--bg-light);
}

.news-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.news-content {
    padding: 3rem 0;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-body h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-body h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.news-body h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-body p {
    margin-bottom: 1.25rem;
}

.news-body ul,
.news-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-body li {
    margin-bottom: 0.5rem;
}

.news-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.news-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.news-body a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.news-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.news-body img {
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.news-body code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.news-body pre {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.news-body pre code {
    background: none;
    padding: 0;
}

.related-content {
    background: var(--bg-light);
    padding: 3rem 0;
}

.related-section {
    margin-bottom: 3rem;
}

.related-section:last-child {
    margin-bottom: 0;
}

.related-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

/* Removed duplicate .people-grid and .person-card rules - using the ones above */

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 120, 96, 0.2);
}

.person-card a {
    text-decoration: none;
    color: var(--text-color);
}

.person-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.person-position {
    font-size: 0.9rem;
    color: var(--text-light);
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.publication-item a {
    text-decoration: none;
    color: var(--text-color);
}

.publication-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.publication-item:hover h3 {
    color: var(--secondary-color);
}

.publication-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.publication-journal {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
}

.news-navigation {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.news-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.news-nav-prev,
.news-nav-next,
.news-nav-index {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-nav-prev,
.news-nav-next {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.news-nav-prev:hover,
.news-nav-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.news-nav-index {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.news-nav-index:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Responsive News Single Page */
@media (max-width: 768px) {
    .news-header {
        padding: 3rem 0 2rem;
    }

    .news-header-content h1 {
        font-size: 1.8rem;
    }

    .news-featured-image img {
        max-height: 300px;
    }

    .news-body {
        font-size: 1rem;
    }

    .news-body h2 {
        font-size: 1.5rem;
    }

    .news-body h3 {
        font-size: 1.25rem;
    }

    /* Removed conflicting media query - using main grid rules above */

    .person-avatar {
        width: 100px;
        height: 100px;
    }

    .news-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .news-nav-prev,
    .news-nav-next,
    .news-nav-index {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-header-content h1 {
        font-size: 1.5rem;
    }

    /* Removed conflicting media query - using main grid rules above */
}

/* ============================================
   Material Icons Utility Classes
   ============================================ */

/* Material Icons (Classic) */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Material Symbols (Variable Font) */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* Material Icon Size Variants */
.material-icons.md-18,
.material-symbols-outlined.md-18 {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.material-icons.md-24,
.material-symbols-outlined.md-24 {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-icons.md-36,
.material-symbols-outlined.md-36 {
    font-size: 36px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.material-icons.md-48,
.material-symbols-outlined.md-48 {
    font-size: 48px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* Material Symbol Variants */
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.light {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.bold {
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

/* Color Variants */
.material-icons.md-dark,
.material-symbols-outlined.md-dark {
    color: rgba(0, 0, 0, 0.54);
}

.material-icons.md-light,
.material-symbols-outlined.md-light {
    color: rgba(255, 255, 255, 1);
}

.material-icons.md-inactive,
.material-symbols-outlined.md-inactive {
    color: rgba(0, 0, 0, 0.26);
}

/* Primary Color */
.material-icons.md-primary,
.material-symbols-outlined.md-primary {
    color: var(--primary-color, #1E7860);
}

/* Accent Color */
.material-icons.md-accent,
.material-symbols-outlined.md-accent {
    color: var(--accent-color, #2A9D8F);
}

/* Vertical Alignment Helpers */
.material-icons.md-valign-middle,
.material-symbols-outlined.md-valign-middle {
    vertical-align: middle;
}

.material-icons.md-valign-top,
.material-symbols-outlined.md-valign-top {
    vertical-align: top;
}

.material-icons.md-valign-bottom,
.material-symbols-outlined.md-valign-bottom {
    vertical-align: bottom;
}

/* ===========================
   Collaboration Slider Styles
   =========================== */

/* Collaboration Hero */
.collaboration-hero {
    height: 500px;
}

.collaboration-hero .slide-background {
    background: linear-gradient(135deg, rgba(30, 120, 96, 0.6), rgba(21, 90, 71, 0.6)), url('/images/SL1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.collaboration-hero .slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: slidePattern 20s linear infinite;
}

/* Collaboration Slider Section */
.collaboration-slider-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.collaboration-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 670px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Collaboration Slides */
.collab-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 670px;
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.collab-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: 670px;
}

.collab-content {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 100%;
    max-width: 900px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.collab-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.collab-intro {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.collab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.collab-list li {
    font-size: 1.1rem;
    color: var(--color-text);
    padding: 15px 25px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.collab-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(30, 120, 96, 0.2);
}

.collab-footer {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
    padding: 20px 25px;
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ebe4 100%);
    border-radius: 12px;
}

/* Collaboration Slider Controls */
.collab-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 120, 96, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInControls 0.6s ease forwards 0.5s;
}

.collab-slider-control:hover {
    background: rgba(21, 90, 71, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(30, 120, 96, 0.4);
}

.collab-slider-control:active {
    transform: translateY(-50%) scale(0.95);
}

.collab-slider-control.prev {
    left: 2rem;
}

.collab-slider-control.next {
    right: 2rem;
}

.collab-slider-control svg {
    width: 24px;
    height: 24px;
}

/* Collaboration Slider Dots */
.collab-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    animation: fadeInControls 0.6s ease forwards 0.5s;
}

.collab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 120, 96, 0.4);
    border: 2px solid rgba(30, 120, 96, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collab-dot:hover {
    background: rgba(30, 120, 96, 0.6);
    border-color: rgba(30, 120, 96, 0.8);
    transform: scale(1.2);
}

.collab-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* Partners Section */
.partners-section {
    background: white;
    padding: 80px 0;
}

.partners-intro {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.partner-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 120, 96, 0.15);
    border-color: var(--color-primary);
}

.partner-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.partner-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}


.partners-footer {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ebe4 100%);
    border-radius: 15px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .collaboration-hero {
        height: 400px;
    }

    .collaboration-slider {
        min-height: 600px;
    }

    .collab-slide {
        height: 600px;
        padding: 40px 40px;
    }

    .collab-slide.active {
        height: 600px;
    }

    .collab-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .collab-intro {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .collab-list li {
        font-size: 1.05rem;
        padding: 12px 20px;
        margin-bottom: 10px;
    }

    .collab-slider-control {
        width: 45px;
        height: 45px;
    }

    .collab-slider-control.prev {
        left: 1rem;
    }

    .collab-slider-control.next {
        right: 1rem;
    }

    .collab-slider-control svg {
        width: 20px;
        height: 20px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .collaboration-hero {
        height: 350px;
    }

    .collaboration-slider {
        min-height: 670px;
        border-radius: 15px;
    }

    .collab-slide {
        height: 670px;
        padding: 30px 25px;
    }

    .collab-slide.active {
        height: 670px;
    }

    .collab-title {
        font-size: 1.7rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .collab-intro {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .collab-list li {
        font-size: 1rem;
        padding: 10px 15px;
        margin-bottom: 8px;
    }

    .collab-footer {
        font-size: 1rem;
        padding: 15px 18px;
        margin-top: 1.2rem;
        text-align: center;
    }

    .collab-slider-control {
        width: 40px;
        height: 40px;
    }

    .collab-slider-control svg {
        width: 18px;
        height: 18px;
    }

    .partner-card {
        padding: 25px;
    }

    .partner-card h3 {
        font-size: 1rem;
    }
}

/* Lab Content Sections */
.lab-content {
    padding: 4rem 0;
    background: #ffffff;
}

.lab-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.lab-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.lab-content ul {
    max-width: 700px;
    margin: 2rem auto;
    padding-left: 0;
    list-style: none;
}

.lab-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 1rem 2rem;
    padding-left: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.lab-content li::before {
    content: "✓";
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.lab-content li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.lab-content li:hover::before {
    color: white;
}

/* Expanded About NIAB Lab Section */
.lab-about-expanded {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.about-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.about-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-logo-container {
    text-align: center;
    margin: 2rem auto 3rem;
    padding: 2rem;
}

.about-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 15px rgba(30, 120, 96, 0.15));
    transition: all 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(30, 120, 96, 0.25));
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-color);
    margin: 0;
}

.about-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-detail-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(30, 120, 96, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(30, 120, 96, 0.2);
}

.about-detail-card:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-detail-card:hover .detail-icon {
    transform: scale(1.1) rotate(5deg);
}

.detail-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: white;
}

.about-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-detail-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 768px) {
    .lab-about-expanded {
        padding: 3rem 0;
    }

    .about-main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-logo-container {
        padding: 1rem;
        margin: 1.5rem auto 2rem;
    }

    .about-logo {
        max-width: 250px;
    }

    .about-lead {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .about-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-detail-card {
        padding: 2rem 1.5rem;
    }

    .detail-icon {
        width: 60px;
        height: 60px;
    }

    .detail-icon .material-symbols-outlined {
        font-size: 2rem;
    }

    .about-detail-card h3 {
        font-size: 1.3rem;
    }

    .about-detail-card p {
        font-size: 1rem;
    }
}

/* Mission & Research Areas Slider Styles */
.mission-research-slider {
    background: #f8f9fa;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.mission-slider-container {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.mission-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 3rem 2rem;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mission-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.mission-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.mission-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(30, 120, 96, 0.1);
    transition: all 0.3s ease;
    font-size: 1.15rem;
    text-align: left;
    position: relative;
    padding-left: 3rem;
}

.mission-list li::before {
    content: "✓";
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.mission-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(30, 120, 96, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Slider Controls */
.mission-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mission-slider-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.mission-slider-control.prev {
    left: 20px;
}

.mission-slider-control.next {
    right: 20px;
}

/* Slider Dots */
.mission-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
    padding-bottom: 1rem;
}

.mission-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mission-dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

.mission-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-research-slider {
        padding: 3rem 0;
    }

    .mission-slider-container {
        height: 500px;
    }

    .mission-slide {
        padding: 2rem 1rem;
    }

    .mission-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .mission-content {
        font-size: 1rem;
    }

    .mission-intro {
        font-size: 1.1rem;
    }

    .mission-list li {
        padding: 0.8rem 1.5rem;
        padding-left: 2.5rem;
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .mission-list li::before {
        left: 1rem;
        font-size: 1.2rem;
    }

    .mission-slider-control {
        width: 40px;
        height: 40px;
    }

    .mission-slider-control.prev {
        left: 10px;
    }

    .mission-slider-control.next {
        right: 10px;
    }
}

/* -------------------------------------------------------------------------- */
/*                        Publication List Styles (Boxed)                     */
/* -------------------------------------------------------------------------- */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.publication-year-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.year-header {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid rgba(30, 120, 96, 0.15);
    display: inline-block;
    width: 100%;
}

.year-publications {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/*                        Publications Timeline Layout                        */
/* -------------------------------------------------------------------------- */

/* Publications Timeline Container */
.publications-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

/* Timeline Vertical Line */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
            rgba(30, 120, 96, 0.3) 0%,
            rgba(30, 120, 96, 0.15) 50%,
            rgba(30, 120, 96, 0.05) 100%);
    border-radius: 2px;
}

/* Publication Year Group */
.publication-year-group {
    margin-bottom: 3.5rem;
    position: relative;
}

.publication-year-group:last-child {
    margin-bottom: 0;
}

/* Year Marker Container */
.year-marker {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

/* Timeline Node */
.year-node {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff !important;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 120, 96, 0.1),
        0 4px 12px rgba(30, 120, 96, 0.2);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-year-group:hover .year-node {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(30, 120, 96, 0.15),
        0 6px 16px rgba(30, 120, 96, 0.3);
}

/* Year Header */
.year-header {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0.5rem;
}

.year-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Year Publications Container */
.year-publications {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Publication Item - Modern Card */
/* Publication Item - Modern Card - Forced Light */
.publication-item {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 120, 96, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;

    /* Modern soft shadow with depth */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(30, 120, 96, 0.02);
}

.publication-item .pub-title {
    color: #1a1a1a !important;
}

.publication-item .authors-list {
    color: #4a5568 !important;
}

.publication-item .pub-citation {
    color: #718096 !important;
}

/* Subtle left accent */
.publication-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-6px) translateX(2px);
    border-color: rgba(30, 120, 96, 0.15);

    /* Enhanced shadow on hover with more depth */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(30, 120, 96, 0.12),
        0 0 0 1px rgba(30, 120, 96, 0.08);
}

.publication-item:hover::before {
    opacity: 1;
}

/* Publication Content */
.publication-content {
    padding: 2.25rem 2.75rem;
}

/* Publication Header */
.pub-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Publication Type Badge - Pill Style */
.pub-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg,
            rgba(30, 120, 96, 0.08) 0%,
            rgba(30, 120, 96, 0.12) 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(30, 120, 96, 0.15);
    transition: all 0.2s ease;
}

.publication-item:hover .pub-type-badge {
    background: linear-gradient(135deg,
            rgba(30, 120, 96, 0.12) 0%,
            rgba(30, 120, 96, 0.18) 100%);
    border-color: rgba(30, 120, 96, 0.25);
    transform: translateY(-1px);
}

/* Publication Title */
.pub-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.45;
    margin: 0 0 1.5rem 0;
    transition: color 0.2s ease;
    letter-spacing: -0.015em;
}

.publication-item:hover .pub-title {
    color: var(--primary-color);
}

/* Publication Metadata */
.pub-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Authors Section */
.pub-authors {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1.7;
}

.authors-list {
    flex: 1;
    color: #4a5568;
    font-size: 0.975rem;
}

/* Lab Author Highlighting */
.lab-author {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.lab-author-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.lab-author-link:hover .lab-author {
    color: var(--secondary-color);
}

/* Citation Section */
.pub-citation {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

.citation-text {
    flex: 1;
}

/* Ensure journal names are italicized */
.citation-text i,
.citation-text em {
    font-style: italic;
}

/* DOI Section */
.pub-doi {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg,
            rgba(30, 120, 96, 0.03) 0%,
            rgba(30, 120, 96, 0.06) 100%);
    border-radius: 10px;
    border: 1px solid rgba(30, 120, 96, 0.1);
    transition: all 0.2s ease;
}

.pub-doi:hover {
    background: linear-gradient(135deg,
            rgba(30, 120, 96, 0.06) 0%,
            rgba(30, 120, 96, 0.09) 100%);
    border-color: rgba(30, 120, 96, 0.2);
}

.doi-text {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.doi-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.doi-link {
    color: #4a5568;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    word-break: break-all;
    transition: all 0.2s ease;
    position: relative;
}

.doi-link:hover {
    color: var(--primary-color);
}

.doi-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.doi-link:hover::after {
    width: 100%;
}

/* Scientific Formatting - Subscripts and Superscripts */
.pub-title sub,
.citation-text sub,
.authors-list sub {
    font-size: 0.7em;
    vertical-align: sub;
    line-height: 0;
}

.pub-title sup,
.citation-text sup,
.authors-list sup {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
}

/* Icon Styling */
.icon-sm {
    font-size: 1.15rem;
    opacity: 0.65;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* Publication Actions */
.pub-actions {
    display: flex;
    gap: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(30, 120, 96, 0.08);
    flex-wrap: wrap;
}

/* Modern Button Styling */
.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pub-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.pub-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pub-btn .material-symbols-outlined {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.pub-btn:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Primary Button */
.pub-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 120, 96, 0.2);
}

.pub-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 120, 96, 0.3);
}

/* Secondary Button */
.pub-btn-secondary {
    background: white;
    color: #4a5568;
    border-color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pub-btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Publication Tags - Updated to match request */
.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.pub-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e6f0eb;
    /* Light misty green */
    color: #1e7860;
    /* Dark green */
    border: 1px solid #d1e2da;
    /* Subtle border */
    border-radius: 9999px;
    /* Pill shape */
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.pub-tag:hover {
    background-color: #d1e2da;
    color: #155f4a;
    border-color: #b8d4c8;
    transform: translateY(-1px);
}

/* Responsive Design */

@media (max-width: 480px) {
    .publications-timeline {
        padding-left: 30px;
    }

    .timeline-line {
        left: 8px;
    }

    .year-node {
        left: 0;
        width: 14px;
        height: 14px;
    }

    .year-header {
        font-size: 1.5rem;
    }

    .publication-content {
        padding: 1.25rem 1.5rem;
    }

    .pub-title {
        font-size: 1.05rem;
    }

    .pub-type-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }

    .pub-authors,
    .pub-citation {
        font-size: 0.85rem;
    }
}