:root {
    --feec-blue: #00427A;
    --feec-green: #B0D361;
    --feec-orange: #C45A00;
    --feec-blue-light: rgba(0, 66, 122, 0.08);
    --text-main: #363636;
    --bg-light: #f8f9fa;
    --border-light: #eaeaea;
    --text-muted: #546881;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.institution-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px max(24px, calc((100vw - 900px) / 2 + 24px));
    background: linear-gradient(90deg, var(--feec-blue) 0%, #0068b3 45%, var(--feec-green) 100%);
    border-bottom: 4px solid var(--feec-green);
    box-shadow: 0 2px 8px rgba(0, 66, 122, 0.15);
}

.institution-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.institution-logos a {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.institution-logos img {
    display: block;
    height: 32px;
    width: auto;
    max-height: 32px;
    object-fit: contain;
}

.logo-feec {
    max-width: 120px;
}

.logo-unicamp {
    height: 28px;
    max-height: 28px;
    max-width: 28px;
    filter: brightness(0) invert(1);
}

.lang-toggle {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-btn:hover {
    border-color: var(--feec-green);
}

.lang-btn.active {
    border-color: var(--feec-green);
    box-shadow: 0 0 0 2px var(--feec-green);
}

.site-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.site-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--feec-blue);
    letter-spacing: -0.5px;
}

.site-header .title {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 400;
}

.site-header .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--feec-blue-light);
    border-radius: 6px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

nav a:hover {
    color: var(--feec-blue);
    background: rgba(255, 255, 255, 0.55);
}

nav a.active {
    color: var(--feec-orange);
    font-weight: 700;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 66, 122, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.about-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 66, 122, 0.12);
    display: block;
}

.about-card {
    background: white;
    padding: 28px 32px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 66, 122, 0.06);
    border-left: 4px solid var(--feec-green);
}

.about-card p {
    margin: 0 0 1em;
    font-size: 1.05rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--feec-blue);
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.content-section h3 {
    color: var(--feec-blue);
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.research-subheading {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 16px 0 8px;
}

.research-examples {
    margin-bottom: 8px;
}

.content-section p {
    font-size: 1.05rem;
    margin: 0 0 1em;
}

.semester-block {
    margin-bottom: 32px;
}

.semester-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.semester-header h2 {
    margin: 0;
}

.badge {
    display: inline-block;
    background: var(--feec-blue-light);
    color: var(--feec-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-future {
    background: rgba(176, 211, 97, 0.25);
    color: #4a6b1f;
}

.course-card {
    background: white;
    padding: 20px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 66, 122, 0.06);
    border-left: 4px solid var(--feec-green);
    margin-bottom: 16px;
}

.course-card.future {
    opacity: 0.75;
    border-left-color: #ccc;
}

.course-card h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--feec-blue);
}

.course-card .course-name {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.course-card ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.course-card li {
    margin-bottom: 4px;
}

.course-card a {
    color: var(--feec-blue);
    font-weight: 600;
    text-decoration: none;
}

.course-card a:hover {
    color: var(--feec-green);
    text-decoration: underline;
}

.research-list {
    padding-left: 1.2em;
}

.research-list li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.research-list a,
.content-section a:not(.cta-link) {
    color: var(--feec-blue);
    font-weight: 600;
    text-decoration: none;
}

.research-list a:hover,
.content-section a:not(.cta-link):hover {
    color: #003358;
    text-decoration: underline;
}

.cta-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--feec-blue);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-bottom: 2px solid var(--feec-green);
    padding-bottom: 2px;
}

.cta-link:hover {
    color: #003358;
}

.opportunity-card {
    background: white;
    padding: 28px 32px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 66, 122, 0.06);
    border-left: 4px solid var(--feec-green);
}

.opportunity-card p {
    font-size: 1.05rem;
    margin: 0 0 1em;
}

.opportunity-card p:last-child {
    margin-bottom: 0;
}

.opportunity-card a {
    color: var(--feec-blue);
    font-weight: 600;
    text-decoration: none;
}

.opportunity-card a:hover {
    text-decoration: underline;
}

.contact-card {
    margin-top: 8px;
}

.contact-email-row {
    margin-bottom: 0;
}

.contact-email-link {
    color: var(--feec-blue);
    font-weight: 600;
    text-decoration: none;
}

.contact-email-link:hover {
    color: var(--feec-orange);
    text-decoration: underline;
}

.cta-link-wrap {
    margin-top: 20px;
    margin-bottom: 0;
}

.cta-link-wrap .cta-link {
    margin-top: 0;
}

.site-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--feec-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--feec-green);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .page {
        padding: 0 16px 40px;
    }

    .institution-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .institution-logos {
        gap: 12px;
    }

    .institution-logos img {
        height: 26px;
        max-height: 26px;
    }

    .logo-feec {
        max-width: 100px;
    }

    .logo-unicamp {
        height: 24px;
        max-height: 24px;
        max-width: 24px;
    }

    .lang-toggle {
        margin-left: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-photo {
        text-align: center;
    }

    .about-photo img {
        margin: 0 auto;
    }
}
