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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f6f8fa;
    color: #000000;
    line-height: 1.6;
}

/* Tab Bar Navigation */
.tab-bar {
    background-color: #f6f8fa;
    display: flex;
    justify-content: center;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #d0d7de;
}

.tab {
    color: #24292f;
    text-decoration: none;
    padding: 18px 30px;
    display: block;
    transition: background-color 0.3s ease;
    border-right: 1px solid #d0d7de;
}

.tab:hover {
    background-color: #f6f8fa;
}

.tab.active {
    background-color: #f6f8fa;
    color: #24292f;
    font-weight: 500;
}

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

/* Profile Section */
.profile-section {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
    padding: 30px 0 40px 0;
    background-color: #f6f8fa;
    border-bottom: 2px solid #f6f8fa;
    border-radius: 8px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    border: 3px solid #d0d7de;
}

.profile-content {
    flex: 1;
}

.profile-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #000000;
}

.bio {
    font-size: 1.1em;
    color: #57606a;
    line-height: 1.8;
}

/* Sections */
section {
    margin-bottom: 25px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #d0d7de;
    padding-bottom: 10px;
}

/* Contact Section */
.contact-section {
    overflow: hidden;
}

.contact-info {
    background-color: #f6f8fa;
    color: #000000;
    padding: 25px;
    border-left: 4px solid #f6f8fa;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.contact-info strong {
    color: #000000;
    display: inline-block;
    width: 80px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f6f8fa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: #0550ae;
}

/* Location Section */
.map-container {
    background-color: #f6f8fa;
    padding: 20px 0;
    border: 2px solid #f6f8fa;
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-caption {
    text-align: center;
    margin-top: 10px;
    color: #57606a;
}

/* News Section */
.news-section {
    background-color: #f6f8fa;
    color: #24292f;
    padding: 30px 0;
    border-left: 4px solid #f6f8fa;
}

.news-section h2 {
    color: #24292f;
    border-bottom-color: #d0d7de;
}

.news-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #24292f;
}

/* Alternating Image-Text Blocks */
.content-block {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
    padding: 30px;
    background-color: #f6f8fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(36, 41, 47, 0.1);
}

.content-block-reverse {
    flex-direction: row-reverse;
}

.content-block-image {
    flex: 0 0 550px;
}

.content-block-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #d0d7de;
}

.content-block-text {
    flex: 1;
}

.content-block-text h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #24292f;
}

.content-block-text p {
    font-size: 1.05em;
    line-height: 1.8;
    color:  #000000;
}

/* Centered content blocks for image-only sections */
.content-block-centered {
    justify-content: center;
}

/* Responsive adjustments for alternating blocks */
@media (max-width: 768px) {
    .content-block,
    .content-block-reverse {
        flex-direction: column;
    }
    
    .content-block-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .content-block-image img {
        height: auto;
    }

    /* Navigation */
    .tab-bar {
        flex-wrap: wrap;
    }

    .tab {
        padding: 12px 16px;
        flex: 1 1 auto;
        text-align: center;
    }

    /* Profile section */
    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

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

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

    .profile-content h1 {
        font-size: 1.8em;
    }

    /* Headings */
    h2 {
        font-size: 1.4em;
    }

    /* Container padding */
    .container {
        padding: 20px 15px;
    }

    /* Contact info label width */
    .contact-info strong {
        width: auto;
        display: block;
    }

    /* Social links */
    .social-links {
        gap: 12px;
    }

    .social-link {
        padding: 10px 18px;
    }

    /* Map height */
    .map-container iframe {
        height: 250px;
    }
}

/* Content Lists */
.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f6f8fa;
    color: #24292f;
    border-left: 4px solid #f6f8fa;
}

.content-list li strong {
    color: #24292f;
    font-size: 1.1em;
}

/* Paper Link Button */
.paper-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f6f8fa;
    color: #24292f;
    text-decoration: none;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
}

.paper-link:hover {
    background-color: #d0d7de;
}

/* Abstract Toggle Button */
.abstract-toggle {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f6f8fa;
    color: #24292f;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
    font-family: inherit;
}

.abstract-toggle:hover {
    background-color: #d0d7de;
}

/* Abstract Content */
.abstract-content {
    margin-top: 15px;
    padding: 15px;
    background-color: #f6f8fa;
    border-left: 4px solid #f6f8fa;
    border-radius: 4px;
}

.abstract-content p {
    color: #57606a;
    line-height: 1.8;
    margin-bottom: 0;
}

.abstract-content strong {
    color: #24292f;
}

/* Footer */
footer {
    background-color: #f6f8fa;
    color: #57606a;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #d0d7de;
}

footer p {
    margin: 0;
}
