@import url('https://fonts.googleapis.com/css2?family=Carlito:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #17709C;
    color: #ffffff;
    font-family: 'Carlito', sans-serif;
    line-height: 1.6;
    padding: 20px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #17709C;
    padding: 20px;
    z-index: 1000;
}

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

.nav-logo {
    height: 120px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.nav-highlight {
    font-weight: 700;
}

main {
    max-width: 900px;
    margin: 160px auto 0;
    padding: 20px;
}

h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #ffffff;
}

h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffffff;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #ffffff;
}

.contact-info {
    margin-top: 40px;
}

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

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

.update-item {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff;
}

.update-date {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 10px;
}

.update-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
}

.job-listing {
    margin-bottom: 30px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 20px;
}

.job-listing:last-child {
    border-bottom: none;
}

.job-title {
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.job-title:hover {
    opacity: 0.7;
}

.job-description {
    display: none;
    margin-top: 15px;
    padding-left: 20px;
}

.job-description ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.job-description li {
    margin-bottom: 8px;
    color: #ffffff;
}

/* Blog styles */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-card {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-card-content {
    flex: 1;
}

.blog-card-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-card-content h2 a {
    color: #ffffff;
    text-decoration: none;
}

.blog-card-content h2 a:hover {
    text-decoration: underline;
}

.blog-date {
    font-size: 14px;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}

.blog-post a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.blog-post a:hover {
    text-decoration-color: #ffffff;
}

.blog-post article {
    max-width: 700px;
    text-align: justify;
}

.blog-author {
    font-size: 16px;
    opacity: 0.8;
    display: block;
    margin-bottom: 30px;
}

.blog-post h1 {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.blog-post h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-hero {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
}

/* Blog figures */
.blog-figure {
    margin: 30px 0;
}

.blog-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.blog-figure figcaption {
    font-size: 14px;
    opacity: 0.75;
    margin-top: 10px;
    line-height: 1.5;
}

/* KaTeX math display */
.blog-post .katex-display {
    margin: 24px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
}

.blog-post .katex {
    color: #ffffff;
    font-size: 1.1em;
}

/* Citation styles */
.blog-citation-text {
    font-style: italic;
}

.blog-bibtex {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 16px 0;
}

.blog-bibtex code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ffffff;
    white-space: pre;
}

/* Footer */
footer {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logos {
    margin-bottom: 40px;
}

.footer-logos-label {
    font-size: 13px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.footer-logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.footer-logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.footer-logo-track:hover {
    animation-play-state: paused;
}

.footer-logo-track img {
    height: 30px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-track img.logo-svg-color {
    color: white;
}

.footer-logo-track img.logo-no-filter {
    filter: none;
    opacity: 0.6;
}

.footer-logo-track img.logo-lg  { height: 50px; }
.footer-logo-track img.logo-sm  { height: 20px; }
.footer-logo-track img.logo-xs  { height: 14px; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-right {
    font-size: 15px;
    opacity: 0.6;
}

