*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0;
    padding: 2.5rem 2rem 4rem;
    color: #1a1a1a;
    background-color: #f7f9fb;
    min-height: 100vh;
}

.page-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2.5rem 3rem 3rem;
    border: 1px solid #d8e3ed;
    box-shadow: 0 2px 12px rgba(75, 120, 163, 0.08);
}

.header-name {
    color: #4B78A3;
    font-size: 2.25rem;
    margin: 0 0 1.25rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.top-banner {
    border: 4px solid #4B78A3;
    background-color: #D2E4F2;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
}

.photo-container {
    flex-shrink: 0;
}

.photo-container img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(75, 120, 163, 0.25);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info table {
    border-collapse: collapse;
    width: 100%;
}

.contact-info td {
    padding: 0.45rem 1.5rem 0.45rem 0;
    font-size: 1rem;
    vertical-align: top;
    line-height: 1.5;
}

.contact-info .label {
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    width: 8rem;
}

.contact-info a {
    color: #9E2B2B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-info a:hover {
    color: #7a1f1f;
}

.interests {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.interests div {
    margin-bottom: 0.5rem;
}

.interests div:last-child {
    margin-bottom: 0;
}

.interests-list {
    color: #9E2B2B;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid #D2E4F2;
}

.navigation a {
    border: 2px solid #4B78A3;
    padding: 0.55rem 1.1rem;
    text-decoration: none;
    color: #9E2B2B;
    font-size: 0.9375rem;
    font-weight: 600;
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navigation a:hover {
    background-color: #D2E4F2;
    color: #7a1f1f;
}

.navigation a.active {
    background-color: #4B78A3;
    color: #fff;
    border-color: #4B78A3;
}

.navigation a.active:hover {
    background-color: #3d6285;
    color: #fff;
}

.content-section {
    margin-bottom: 0;
}

.content-section + .content-section {
    margin-top: 0.25rem;
}

.section-title {
    background-color: #D2E4F2;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    border-left: 4px solid #4B78A3;
}

.section-content {
    padding: 1.25rem 1rem 2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.section-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.section-content ul {
    margin: 0;
    padding-left: 1.75rem;
}

.section-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

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

.section-content strong {
    color: #1a1a1a;
}

.section-content em {
    color: #444;
}

.section-content a {
    color: #9E2B2B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-content a:hover {
    color: #7a1f1f;
}

.summary {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0;
}

.entry {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e8eef4;
}

.entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.entry-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.35rem 1.5rem;
    margin-bottom: 0.35rem;
}

.entry-header strong {
    font-size: 1.0625rem;
    color: #1a1a1a;
}

.entry-dates {
    font-size: 0.9375rem;
    color: #555;
    white-space: nowrap;
}

.entry-meta {
    font-size: 0.9875rem;
    color: #444;
    margin-bottom: 0.65rem;
}

.entry-meta a {
    color: #9E2B2B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-meta a:hover {
    color: #7a1f1f;
}

.entry-body {
    margin: 0;
    padding-left: 1.25rem;
}

.entry-body li {
    margin-bottom: 0.55rem;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.project-header strong {
    font-size: 1.0625rem;
}

.project-link {
    font-size: 0.9375rem;
}

.project-link a {
    color: #9E2B2B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.project-link a:hover {
    color: #7a1f1f;
}

.project-role {
    font-size: 0.9375rem;
    color: #555;
    margin-bottom: 0.65rem;
}

.skill-category {
    margin-bottom: 1.1rem;
}

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

.skill-category strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #4B78A3;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.skill-category span {
    color: #333;
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    background-color: #eef4fa;
    color: #4B78A3;
    border: 1px solid #d8e3ed;
    border-radius: 4px;
}

.social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 1rem;
}

.social-bar a {
    color: #9E2B2B;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.9375rem;
}

.social-bar a:hover {
    color: #7a1f1f;
}

.edu-degree {
    font-weight: 700;
    color: #1a1a1a;
}

.edu-detail {
    color: #444;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem 2rem;
        font-size: 1rem;
    }

    .page-container {
        padding: 1.5rem 1.25rem 2rem;
    }

    .header-name {
        font-size: 1.75rem;
    }

    .top-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .photo-container img {
        width: 160px;
    }

    .contact-info td {
        display: block;
        padding: 0.25rem 0;
    }

    .contact-info .label {
        width: auto;
        padding-bottom: 0;
    }

    .contact-info tr {
        display: block;
        margin-bottom: 0.65rem;
    }

    .navigation a {
        flex: 1 1 auto;
        text-align: center;
        min-width: calc(50% - 0.25rem);
    }
}

@media (max-width: 480px) {
    .navigation a {
        min-width: 100%;
    }
}
