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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000;
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-photo {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: 35% center;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    margin-left: 2rem;
}

.title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.bio {
    margin-bottom: 1rem;
    text-align: justify;
}

/* News Section */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 1rem;
    padding-left: 0;
}

.date {
    display: inline-block;
    font-weight: 600;
    color: #000;
    min-width: 90px;
    margin-right: 1rem;
}

.news-item {
    color: #333;
}

/* Experience Section */
.experience-item {
    margin-bottom: 2rem;
}

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

.institution {
    color: #666;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.period {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    white-space: nowrap;
    margin-left: 1rem;
}

.description {
    color: #333;
    margin-top: 0.5rem;
    text-align: justify;
}

/* Publications Section */
.publication {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.publication:last-of-type {
    border-bottom: none;
}

.pub-image {
    flex-shrink: 0;
    width: 300px;
}

.pub-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: #555;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.pub-venue {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pub-venue em {
    font-style: normal;
}

.highlight {
    color: #d9534f;
    font-weight: 600;
}

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

.pub-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.pub-links a:hover {
    text-decoration: underline;
}

.see-more {
    margin-top: 1.5rem;
}

.see-more a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.see-more a:hover {
    text-decoration: underline;
}

/* Blog Section */
.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.blog-post:last-of-type {
    border-bottom: none;
}

.blog-post h3 {
    margin-bottom: 0.5rem;
}

.blog-post h3 a {
    color: #000;
    text-decoration: none;
}

.blog-post h3 a:hover {
    text-decoration: underline;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: #555;
    text-align: justify;
}

/* Running Section */
.race-item {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.race-item:last-of-type {
    margin-bottom: 0;
}

.race-item-no-image {
    display: block;
}

.race-item-no-image .race-content {
    padding-left: 0;
}

.race-image {
    flex-shrink: 0;
    width: 250px;
}

.race-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.race-content {
    flex: 1;
}

.race-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.race-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.race-time {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

/* Contact Section */
.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.social-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer */
footer {
    background-color: #f8f8f8;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .experience-header {
        flex-direction: column;
    }

    .period {
        margin-left: 0;
        margin-top: 0.25rem;
    }

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

    .pub-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .race-item {
        flex-direction: column;
        gap: 1rem;
    }

    .race-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .date {
        display: block;
        margin-bottom: 0.25rem;
    }

    .social-links {
        gap: 1rem;
    }

    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

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