/* Modern CSS for Dr. Gennady Roshchupkin's Website */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    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;
    height: 70px;
}

.nav-logo a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

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

.nav-link {
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-institution {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
}

.expertise h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tag.primary {
    background: #3498db;
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #3498db;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 2rem;
    flex-direction: row-reverse;
}

.timeline-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-icon img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.timeline-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.institution {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.period {
    color: #666;
    font-size: 0.9rem;
}

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

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

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

.experience-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-card .period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: #555;
    font-style: italic;
}

/* Awards */
.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #f39c12;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.award-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.year {
    color: #f39c12;
    font-weight: 600;
    font-size: 1rem;
}

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

.talk-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #e74c3c;
}

.talk-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.talk-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.venue {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.talk-item .year {
    color: #666;
    font-size: 0.9rem;
}

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

.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    padding: 1.5rem;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-left h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer .social-links {
    justify-content: flex-end;
}

.footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

.footer .social-links a:hover {
    background: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Toggle functionality */
.toggle-transition {
    transition: all 0.5s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .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: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .profile-image img {
        width: 250px;
        height: 250px;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        flex-direction: row;
    }

    .timeline-icon {
        position: absolute;
        left: -80px;
        width: 60px;
        height: 60px;
    }

    .timeline-icon img {
        width: 30px;
    }

    .experience-grid,
    .awards-list,
    .talks-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .experience-card,
    .award-item,
    .talk-item {
        padding: 1.5rem;
    }
}

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

.section > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling enhancement */
html {
    scroll-padding-top: 70px;
}

/* Research Page Specific Styles */
.research-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.research-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.research-image {
    margin: 2rem 0;
    text-align: center;
}

.research-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.department-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

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

.department-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.expertise-section {
    margin-top: 3rem;
    text-align: center;
}

.expertise-section h3 {
    margin-bottom: 2rem;
}

.research-content {
    max-width: 1000px;
    margin: 0 auto;
}

.research-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.research-text ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.research-text li {
    margin-bottom: 0.5rem;
}

.research-images {
    margin-top: 2rem;
}

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

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.tool-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.tool-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.tool-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tool-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    margin: 0;
}

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

.collaboration-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.collaboration-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.collaboration-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.collaboration-section ul {
    list-style: none;
    padding: 0;
}

.collaboration-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

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

.collaboration-section li:hover {
    padding-left: 1rem;
    background: #f8f9fa;
}

.collaboration-section a {
    font-weight: 500;
}

/* Teaching Page Styles */
.philosophy-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.philosophy-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.philosophy-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.philosophy-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.philosophy-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

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

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.course-header {
    padding: 2rem 2rem 1rem;
}

.course-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.course-header .institution {
    color: #3498db;
    font-weight: 600;
    margin: 0;
}

.course-content {
    padding: 0 2rem;
    flex-grow: 1;
}

.course-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.topic-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-footer {
    padding: 1rem 2rem 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.data-science-visual {
    text-align: center;
    margin-top: 3rem;
}

.visual-container img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.journal-club-content {
    max-width: 1000px;
    margin: 0 auto;
}

.journal-club-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.journal-club-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.journal-club-program {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.journal-club-program h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.visual-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Team Page Styles */
.join-team-section {
    max-width: 1000px;
    margin: 0 auto;
}

.join-team-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.join-team-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.join-team-visual img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.team-member {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.member-photo {
    height: 80px;
    width: 80px;
    overflow: hidden;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid #3498db;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-info {
    /* No additional styling needed - content flows naturally */
}

.member-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.member-position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.member-period {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.member-research {
    color: #555;
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto;
}

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

.alumni-member {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.alumni-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.alumni-member .member-photo {
    height: 70px;
    width: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid #95a5a6;
}

.alumni-member .member-info {
    /* No additional styling needed - content flows naturally */
}

.alumni-list {
    margin-top: 3rem;
    text-align: center;
}

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

.alumni-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.alumni-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.alumni-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.alumni-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.alumni-item p:last-child {
    color: #555;
    font-style: italic;
    margin: 0;
}

.alumni-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for all pages */
@media (max-width: 768px) {
    .departments {
        grid-template-columns: 1fr;
    }
    
    .image-pair {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .journal-club-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .join-team-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    .alumni-simple {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Table of Contents Styles */
.toc-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.toc-container {
    max-width: 1000px;
    margin: 0 auto;
}

.toc-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.toc-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

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

.toc-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.toc-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.toc-category h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.75rem;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.toc-list a:hover {
    background: #3498db;
    color: white;
    border-left-color: #2980b9;
    transform: translateX(5px);
}

/* Educational Resources & Workshops Styles */
.resources-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resources-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.resource-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.resource-category h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.resource-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Workshop Cards */
.workshop-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.workshop-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.workshop-header {
    margin-bottom: 1.5rem;
}

.workshop-header h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.workshop-type {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workshop-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.workshop-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.workshop-footer {
    margin-top: auto;
}

/* Research Resource Card */
.research-resource-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.research-resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.research-header {
    margin-bottom: 1.5rem;
}

.research-header h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.resource-type {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

/* Educational Links Card */
.educational-links-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid #b3d9ff;
    position: relative;
    overflow: hidden;
}

.educational-links-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #3498db);
}

.links-header {
    margin-bottom: 1.5rem;
}

.links-header h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.links-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.links-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.feature-icon {
    font-size: 1.2rem;
}

.links-footer {
    margin-top: auto;
}

/* Responsive Design for Educational Resources */
@media (max-width: 768px) {
    .resources-grid {
        gap: 2rem;
    }
    
    .resource-category {
        padding: 2rem 1.5rem;
    }
    
    .workshop-cards {
        grid-template-columns: 1fr;
    }
    
    .workshop-card {
        padding: 1.5rem;
    }
    
    .research-resource-card,
    .educational-links-card {
        padding: 2rem 1.5rem;
    }
    
    .links-features {
        grid-template-columns: 1fr;
    }
    
    .research-links {
        flex-direction: column;
    }
    
    /* Table of Contents Responsive */
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .toc-category {
        padding: 1.5rem;
    }
    
    .toc-list a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}