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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    border-color: white;
    text-decoration: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 5rem 0;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    color: #1f2937;
    margin: 1.5rem 0 1rem 0;
}

.about-text ul {
    list-style: none;
    margin-left: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-text li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Featured Research */
.featured-research {
    background: white;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

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

.research-content {
    padding: 1.5rem;
}

.research-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.research-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Recent News */
.recent-news {
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    /* Ensure consistent rendering across browsers and hosting environments */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #374151, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #f9fafb;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
}

.footer-section:first-child h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 1px;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #374151;
    font-size: 1.1rem;
    /* Ensure icons display properly across all hosting environments */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif;
    font-weight: 900;
}

.social-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
    position: relative;
    /* Ensure consistent rendering across browsers and hosting environments */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.footer-bottom p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        display: block;
        font-size: 1rem;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section:first-child h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Additional styles for other pages will be added in the next section */

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-card .contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-card .contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-card .contact-icon i {
    font-size: 1.25rem;
    color: white;
}

.contact-card h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
}

.contact-card p {
    margin: 0.5rem 0;
    color: #6b7280;
    line-height: 1.6;
}

.contact-card a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-card .contact-note {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Professional Profiles Section */
.professional-profiles {
    padding: 4rem 0;
    background: #f8fafc;
}

.profile-category {
    margin-bottom: 3rem;
}

.profile-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.profile-card .profile-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-card .profile-icon i {
    font-size: 1.25rem;
    color: white;
}

.profile-card h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.125rem;
}

.profile-card p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.875rem;
}

.profile-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Travel & Availability Section */
.travel-availability {
    padding: 4rem 0;
    background: white;
}

.availability-content {
    max-width: 800px;
    margin: 0 auto;
}

.availability-info ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.availability-info li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.availability-info li strong {
    color: #1f2937;
    margin-right: 0.5rem;
}

.availability-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
}

.availability-note p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background: #f8fafc;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-media {
    width: 100%;
}

.project-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.project-description {
    padding-left: 1rem;
}

.project-description h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.project-description p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Alternate layout for even items */
.project-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.project-item:nth-child(even) .project-media {
    order: 2;
}

.project-item:nth-child(even) .project-description {
    order: 1;
    padding-left: 0;
    padding-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .project-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .project-item:nth-child(even) .project-media {
        order: 1;
    }
    
    .project-item:nth-child(even) .project-description {
        order: 2;
        padding-right: 0;
        padding-left: 0;
    }
    
    .project-description {
        padding-left: 0;
    }
}

/* Grants Section */
.grants {
    padding: 4rem 0;
    background: white;
}

.grants .container {
    /* Ensure container works properly within grants section */
    position: relative;
    z-index: 1;
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Remove margin fallback since we're using grid */

.grant-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grant-card:hover {
    transform: translateY(-5px);
}

.grant-content h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.grant-amount {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.grant-year {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.grant-year i {
    margin-right: 0.5rem;
}

/* Responsive Design for Grants */
@media (max-width: 768px) {
    .grants-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grant-card {
        padding: 1.5rem;
    }
    
    .grant-content h3 {
        font-size: 1.1rem;
    }
}

/* Project Details Page Styles */
.project-details {
    padding: 4rem 0;
    background: white;
}

.project-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.project-hero {
    margin-bottom: 3rem;
    text-align: center;
}

.project-hero img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-info h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.project-info h3 {
    color: #374151;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
}

.project-info p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.project-info ul {
    margin: 1rem 0 2rem 0;
    padding-left: 2rem;
}

.project-info li {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.project-info ol {
    margin: 1rem 0 2rem 0;
    padding-left: 2rem;
}

.project-info ol li {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Responsive Design for Project Details */
@media (max-width: 768px) {
    .project-details {
        padding: 2rem 0;
    }
    
    .project-hero img {
        height: 250px;
    }
    
    .project-info h2 {
        font-size: 1.75rem;
    }
    
    .project-info h3 {
        font-size: 1.25rem;
        margin: 2rem 0 0.75rem 0;
    }
    
    .project-info p {
        font-size: 1rem;
    }
    
    .project-info li {
        font-size: 0.95rem;
    }
    
    .project-media img {
        height: 250px;
    }
}

/* Highlighted Talks Section */
.highlighted-talks {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.highlighted-talks .section-title {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.highlight-header h3 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.highlight-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.highlight-event {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-date, .highlight-location {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.highlight-description {
    color: #374151;
    line-height: 1.6;
    margin: 1.5rem 0;
    font-size: 1.05rem;
}

.highlight-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.highlight-link i {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .highlight-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .highlight-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .highlight-header h3 {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    .highlight-links {
        flex-direction: column;
    }
    
    .highlight-link {
        justify-content: center;
    }
}

/* Talks & Lectures Sections */
.talks-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.talk-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.talk-card:hover {
    transform: translateY(-5px);
}

.lectures-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lecture-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lecture-card:hover {
    transform: translateY(-5px);
}

.lecture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.lecture-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lecture-links, .talk-links {
    margin-top: 1rem;
}

.lecture-link, .talk-link {
    display: inline-block;
    margin-right: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.lecture-link:hover, .talk-link:hover {
    text-decoration: underline;
}

/* Teaching Styles */
.teaching-interests {
    padding: 4rem 0;
    background: #f8fafc;
}

.interests-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #64748b;
    line-height: 1.7;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.course-topic {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-topic:hover {
    transform: translateY(-2px);
}

.course-topic i {
    color: #2563eb;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.course-topic span {
    font-weight: 500;
}

/* Teaching Gallery Styles - Sliding Cards */
.teaching-gallery {
    padding: 4rem 0;
    background: #f8fafc;
}

.gallery-content p {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.gallery-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

/* Alternative: If you prefer to fill the entire card */
.gallery-img.fill {
    object-fit: cover;
}

/* For images that might be too small */
.gallery-img.stretch {
    object-fit: fill;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.slide-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slide-info p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    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;
    font-size: 1.2rem;
    color: #2563eb;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Dots indicator */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

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

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.dot:hover {
    background: #64748b;
}

/* Touch/swipe support */
.gallery-slider {
    touch-action: pan-y;
    user-select: none;
}

@media (max-width: 768px) {
    .gallery-slider {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .slide-info {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .slide-info h4 {
        font-size: 1.25rem;
    }
    
    .slide-info p {
        font-size: 0.9rem;
    }
    
    .gallery-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Teaching mobile styles */
    .courses-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .course-topic {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .course-topic i {
        margin-right: 0.75rem;
        font-size: 1rem;
    }
}

.teaching-experience {
    padding: 4rem 0;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
}

.experience-date {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 8px;
}

.experience-date i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-date span {
    font-weight: 600;
    font-size: 0.9rem;
}

.experience-content h3 {
    color: #2563eb;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.experience-content .institution {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-content .description {
    color: #64748b;
    line-height: 1.6;
}

.educational-training {
    padding: 4rem 0;
    background: #f8fafc;
}

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

.training-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.training-item:hover {
    transform: translateY(-5px);
}

.training-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.training-icon i {
    font-size: 1.5rem;
}

.training-item h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.training-institution {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.training-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* Mentoring Programs Styles */
.mentoring-programs {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mentoring-programs h3 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.program-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.program-item:hover {
    transform: translateY(-2px);
}

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.program-icon i {
    font-size: 1.25rem;
}

.program-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.program-date {
    color: #64748b;
    font-weight: 500;
}

.mentee-institution {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.mentee-details {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.mentorship-category {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.mentorship-category h3 {
    color: #2563eb;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.mentee-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mentee-item {
    padding: 1rem;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    border-radius: 4px;
}

.mentee-item h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mentee-details {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mentorship-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mentorship-category {
        padding: 1.5rem;
    }
}

/* Student Publications Styles */
.student-publications {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.student-publications h3 {
    color: #2563eb;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    padding: 1.5rem;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    border-radius: 4px;
}

.publication-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-style: italic;
}

.publication-authors strong {
    color: #2563eb;
    font-weight: 600;
}

.publication-venue {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.publication-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* News Page Styles */
.featured-news {
    padding: 4rem 0;
    background: #f8fafc;
}

.featured-news-item {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-news .news-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-date {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    display: inline-block;
}

.news-category {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    display: inline-block;
}

.featured-news h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-links {
    display: flex;
    gap: 1rem;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-link:hover {
    background: #2563eb;
    color: white;
}

.news-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.news-grid-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-image {
    width: 100%;
    overflow: hidden;
}

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

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

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.newsletter-signup {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #334155;
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.press-kit {
    padding: 4rem 0;
    background: white;
}

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

.press-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.press-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.press-resource {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.press-resource h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.press-resource p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.press-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.press-link:hover {
    background: #2563eb;
    color: white;
}

.press-contact {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.press-contact p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .experience-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .experience-date {
        min-width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .experience-date i {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news .news-content {
        padding: 1.5rem;
    }
    
    .featured-news h2 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .press-resources {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .category-btn {
        white-space: nowrap;
    }
}

/* Publications Page Styles */
.publication-stats {
    padding: 4rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card.clickable {
    cursor: pointer;
    user-select: none;
}

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

.stat-card.clickable:active {
    transform: translateY(-2px);
}

.stat-card.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label-small {
    font-size: 0.7rem;
}

/* GitHub Stats Specific Styles */
.github-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.github-stats .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.github-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.github-stats .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.github-stats .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.github-stats .stat-card.clickable {
    cursor: pointer;
    user-select: none;
}

.github-stats .stat-card.clickable:active {
    transform: translateY(-2px);
}

.github-stats .stat-card.clickable.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.github-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    color: #fff;
}

.github-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

/* Loading state for stats */
.stat-number.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive design for github-stats */
@media (max-width: 1024px) {
    .github-stats .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .github-stats .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        max-width: 600px;
    }
    
    .github-stats .stat-card {
        padding: 1.25rem 0.75rem;
    }
    
    .github-stats .stat-number {
        font-size: 2rem;
    }
    
    .github-stats .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .github-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }
}

/* GitHub API Error Message */
.api-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Featured Repositories Loading and Error States */
.repos-grid.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-message, .error-message, .info-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.info-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.loading-message p, .error-message p, .info-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Featured Repositories Section */
.featured-repos {
    padding: 4rem 0;
    background: #f8fafc;
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.repo-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.repo-card:hover {
    transform: translateY(-5px);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.repo-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    font-family: 'Fira Code', monospace;
}

.repo-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.repo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.repo-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.repo-links {
    display: flex;
    gap: 1rem;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.repo-link:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
}

.repo-link i {
    font-size: 1rem;
}

/* Responsive design for repos */
@media (max-width: 768px) {
    .repos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .repo-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .repo-link {
        justify-content: center;
        text-align: center;
    }
}

/* Research Datasets Section */
.research-datasets {
    padding: 4rem 0;
    background: white;
}

.datasets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dataset-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dataset-card:hover {
    transform: translateY(-5px);
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dataset-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.dataset-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.dataset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dataset-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dataset-links {
    display: flex;
    gap: 1rem;
}

.dataset-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dataset-link:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
}

.dataset-link i {
    font-size: 1rem;
}

/* Responsive design for datasets */
@media (max-width: 768px) {
    .datasets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dataset-card {
        padding: 2rem;
    }
    
    .dataset-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .dataset-link {
        justify-content: center;
        text-align: center;
    }
}

/* Repository card enhancements */
.repo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Publications Navigation */
.publications-nav {
    padding: 2rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.pub-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Publications Content */
.publications-content {
    padding: 4rem 0;
    background: white;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.year-group {
    margin-bottom: 3rem;
}

.year-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.publication-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #2563eb;
}

.pub-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pub-type.journal {
    background: #dcfce7;
    color: #166534;
}

.pub-type.conference {
    background: #dbeafe;
    color: #1e40af;
}

.pub-type.preprint,
.pub-type.contributed {
    background: #fef3c7;
    color: #92400e;
}

.pub-type.thesis {
    background: #ede9fe;
    color: #6b21a8;
}

.pub-content h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.authors {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.journal {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.abstract {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: #2563eb;
    color: white;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .pub-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .publication-item {
        padding: 1.5rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Additional small screen styles */
@media (max-width: 480px) {
    .pub-content h3 {
        font-size: 1.1rem;
    }
    
    .pub-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pub-link {
        text-align: center;
        justify-content: center;
    }
}
