@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

/* =====================================================================
   styles.css — Melinda Soares-Furtado
   Academic serif theme: cream background, Times/Georgia serif,
   maroon headings & accents, dark-blue links.
   (No web font needed; the Google Fonts <link> can be removed.)
   ===================================================================== */

:root {
    --accent-color: #7a0000;   /* maroon: headings, rules, accents, borders */
    --highlight-color: #9b0000;/* brighter maroon: hovers */
    --link-color: #000099;     /* dark blue: hyperlinks */
    --text-color: #1a1b1c;
    --text-muted: #555;
    --bg-color: #efe9db;       /* cream page background (one shade darker) */
    --page-bg: #f9f4ea;        /* content column (a hair darker than original) */
    --bg-subtle: #f1ebdd;      /* cards / subtle fills */
    --border-light: #d8d4c4;   /* tan borders */
    --serif: 'Spectral', Georgia, "Times New Roman", serif;
}
* {
    box-sizing: border-box;
}
body {
    font-family: var(--serif);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 300;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 32px 40px;
    background: var(--page-bg);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}
a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--highlight-color);
}
a:visited {
    color: var(--link-color);   /* keep all links the same blue */
}
.highlighted {
    color: var(--highlight-color);
    font-weight: 700;
}
/* Navigation */
.header {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 2px solid var(--accent-color);
    border-top: 2px solid var(--accent-color);
    font-size: 14px;
    letter-spacing: 0.5px;
}
.header a {
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.header a:hover {
    background-color: var(--bg-subtle);
    color: var(--highlight-color);
    text-decoration: none;
}
.header a.current {
    font-weight: 700;
    color: var(--highlight-color);
    background-color: var(--bg-subtle);
}
.nav-sep {
    color: var(--border-light);
}
/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin: 30px 0 25px 0;
}
.profile-picture {
    flex-shrink: 0;
    width: 155px;
    height: 155px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    background-image: url('https://msoaresfurtado.github.io/WebPage/photos/profile4.png');
    background-size: 105%;
    background-position: 65% 35%;
    box-shadow: 0 0 0 3px var(--text-color), 0 6px 18px rgba(0,0,0,0.1);
}
.profile-info {
    flex: 1;
}
.profile-name {
    font-family: var(--serif);
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--accent-color);
}
.profile-title {
    font-size: 1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.profile-links {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 9px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.profile-links a:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-subtle);
    text-decoration: none;
}
.orcid-logo {
    height: 15px;
    vertical-align: middle;
}
/* Introduction */
.intro-text {
    font-size: 0.98em;
    line-height: 1.7;
}
.intro-text p {
    margin: 0 0 10px 0;
}
/* Section Styling */
.section-title {
    font-family: var(--serif);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-color);
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
/* Research Cards */
.research-grid {
    display: grid;
    gap: 16px;
}
.research-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.research-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}
.research-figure {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 2px var(--text-color);
}
/* Self-hosted, properly-licensed figures (place files in /photos).
   Base .research-figure already sets background-size: cover; position: center. */
.figure-engulfment    { background-image: url('photos/research_engulfment.jpg'); }
.figure-young-planets { background-image: url('photos/research_youngplanets.jpg'); }
.figure-exomoons      { background-image: url('photos/research_exomoons.jpg'); }
.figure-clusters      { background-image: url('photos/research_clusters.jpg'); }
.figure-ages          { background-image: url('photos/research_ages.jpg'); }
.research-content h3 {
    font-family: var(--serif);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 6px 0;
}
.research-content p {
    margin: 0 0 6px 0;
    font-size: 0.9em;
}
.research-content p:last-child {
    margin-bottom: 0;
}
/* Join Section */
.join-section {
    background: linear-gradient(135deg, #f6f2e8 0%, #efe8d8 100%);
    border-radius: 8px;
    padding: 22px 26px;
    margin: 28px 0;
    border: 2px solid var(--accent-color);
}
.join-section h2 {
    font-family: var(--serif);
    font-size: 1.3em;
    color: var(--accent-color);
    margin: 0 0 12px 0;
}
.join-section p {
    margin: 0 0 8px 0;
    font-size: 0.93em;
}
.join-section ul {
    margin: 8px 0;
    padding-left: 20px;
}
.join-section li {
    margin-bottom: 4px;
    font-size: 0.93em;
}
.join-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 18px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.93em;
    text-decoration: none;
    transition: all 0.2s ease;
}
.join-cta:hover {
    background-color: var(--highlight-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}
/* Footer */
footer {
    margin-top: 35px;
    padding: 14px 0;
    border-top: 2px solid var(--accent-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
footer a {
    color: var(--link-color);
}
footer .sub {
    margin-top: 5px;
    font-size: 10px;
    opacity: 0.6;
}
/* ---------- Courses page (page heading + course cards) ---------- */
.page-title {
    font-family: var(--serif);
    font-size: 1.7em;
    font-weight: 700;
    color: var(--accent-color);
    margin: 30px 0 4px 0;
}
.page-subtitle {
    font-size: 1.02em;
    color: var(--text-muted);
    margin: 0 0 6px 0;
}
.course-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}
.course-card h3 {
    font-family: var(--serif);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 4px 0;
}
.course-meta {
    font-size: 0.86em;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 12px 0;
}
.course-card p {
    margin: 0 0 12px 0;
    font-size: 0.94em;
}
.course-link {
    font-weight: 700;
}
.course-link::after {
    content: " \2192";
}
/* ---------- Per-card "related paper" link ---------- */
.card-link {
    margin: 4px 0 0 0 !important;
    font-size: 0.85em !important;
    font-weight: 600;
}

/* ---------- In the News list ---------- */
.news-list {
    margin: 6px 0 0 0;
    padding-left: 20px;
}
.news-list li {
    margin-bottom: 8px;
    font-size: 0.95em;
}
.news-outlet {
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Supporters / logos (home page) ---------- */
.supporters-section { margin: 48px 0 10px; text-align: center; }
.supporters-section h2 {
    font-family: var(--serif);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 6px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
.supporters-subtitle { font-size: 1.04em; color: var(--text-muted); margin: 0 0 10px 0; line-height: 1.6; text-align: left; }
.supporters-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; max-width: 960px; margin: -22px auto 0; }
.supporters-logos a { display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease; }
.supporters-logos a:hover { transform: scale(1.05); text-decoration: none; }
.supporters-logos img { height: 74px; max-width: 170px; width: auto; object-fit: contain; }
.supporters-logos img.logo-square-lg { height: 96px; max-width: 96px; }
.supporters-logos img.logo-square-xl { height: 143px; max-width: 143px; }
.supporters-logos img.logo-nasa { height: 129px; max-width: 129px; }
.supporters-logos img.logo-nsf { height: 119px; max-width: 119px; }
.supporters-logos img.logo-square-xl-sm { height: 135px; max-width: 135px; }
.supporters-logos img.logo-square-xxl { height: 150px; max-width: 228px; }
.supporters-logos img.logo-wide { height: 62px; max-width: 210px; }
.supporters-logos img.logo-wide-sm { height: 48px; max-width: 170px; }
.supporters-logos img.logo-md { height: 78px; max-width: 170px; }
.supporters-logos img.logo-wide-lg { height: 100px; max-width: 340px; }
.supporters-logos img.logo-wide-md { height: 85px; max-width: 300px; }
.supporters-logos img.logo-wide-sloan { height: 75px; max-width: 255px; }
.supporters-logos img.logo-wide-wicor { height: 103px; max-width: 350px; }
.supporters-logos img.logo-wide-lamat { height: 83px; max-width: 277px; }
.supporters-logos img.logo-wide-hs { height: 70px; max-width: 360px; }
.supporters-logos img.logo-doe { height: 116px; max-width: 116px; }
.supporters-logos-row2 { margin-top: 16px; }
.supporters-logos-row3 { margin-top: 16px; }
.supporters-logos-row4 { margin-top: 16px; }
.supporters-note { margin-top: 24px; font-size: 1.05em; color: var(--text-muted); letter-spacing: 0.01em; text-align: left; }

/* Responsive */
@media only screen and (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .research-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .research-figure {
        margin: 0 auto;
    }
    .header {
        flex-wrap: wrap;
        gap: 5px;
    }
    .nav-sep {
        display: none;
    }
    .supporters-logos { gap: 20px 28px; }
    .supporters-logos img { height: 56px; max-width: 140px; }
    .supporters-logos img.logo-square-lg { height: 72px; max-width: 72px; }
    .supporters-logos img.logo-square-xl { height: 90px; max-width: 90px; }
    .supporters-logos img.logo-nasa { height: 86px; max-width: 86px; }
    .supporters-logos img.logo-nsf { height: 84px; max-width: 84px; }
    .supporters-logos img.logo-square-xl-sm { height: 80px; max-width: 80px; }
    .supporters-logos img.logo-square-xxl { height: 70px; max-width: 130px; }
    .supporters-logos img.logo-wide { height: 48px; max-width: 170px; }
    .supporters-logos img.logo-wide-sm { height: 38px; max-width: 140px; }
    .supporters-logos img.logo-md { height: 60px; max-width: 140px; }
    .supporters-logos img.logo-wide-lg { height: 62px; max-width: 230px; }
    .supporters-logos img.logo-wide-md { height: 54px; max-width: 200px; }
    .supporters-logos img.logo-wide-sloan { height: 49px; max-width: 172px; }
    .supporters-logos img.logo-wide-wicor { height: 63px; max-width: 232px; }
    .supporters-logos img.logo-wide-lamat { height: 55px; max-width: 187px; }
    .supporters-logos img.logo-wide-hs { height: 50px; max-width: 250px; }
    .supporters-logos img.logo-doe { height: 78px; max-width: 78px; }
}
