:root {
    --bg: #f5f5f5;
    --text: #222222;
    --accent: #2f4f6f;
    --accent-soft: #e3edf7;
    --card-bg: #ffffff;
    --border: #dddddd;
    --max-width: 1100px;
}

/* Base */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */

.site-header {
    background: #2f4f6f;   /* unified slate blue */
    border-bottom: 1px solid #ffffff; /* white separator line */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-text {
    flex: 1;
}

.name {
    font-family: "Merriweather", "Georgia", serif;
    font-size: 2rem;
    margin: 0 0 0.25rem;
    color: #ffffff;
}

.title {
    margin: 0;
    font-weight: 600;
    color: #e8eef5;
}

.institution {
    margin: 0.25rem 0 0;
    color: #e8eef5;
}

.header-photo {
    flex: 0 0 220px;
    text-align: right;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Navigation */

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #2f4f6f;   /* same slate blue */
    border-top: 1px solid #ffffff; /* white line separating nav from header */
}

.nav-link {
    text-decoration: none;
    color: #ffffff; /* white text on slate blue */
    font-size: 0.95rem;
    border-right: 1px solid rgba(255,255,255,0.6); /* subtle white divider */
    padding-right: 1rem; /* spacing so divider isn't cramped */
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.nav-link.active {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

.nav-link:last-child {
    border-right: none;
}

/* Main layout */

.main {
    max-width: var(--max-width);
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

/* Sections */

.section {
    background: transparent;   /* or var(--bg) */
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.section-header {
    padding: 0 0 0.5rem;
    border-bottom: none;
}

.section-header h2 {
    margin: 0;
    font-family: "Merriweather", "Georgia", serif;
    font-size: 1.4rem;
    color: var(--accent);
}

.section-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Two-column layout */

.two-column-uneven {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 1.75rem;
}

.two-column-even {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
    gap: 1.75rem;
}

/* Cards & lists */

.highlight-card {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* space between image and text */
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(47, 79, 111, 0.15);
}

.highlight-card img.profile-pic {
    width: 180px;     /* bigger image */
    height: 180px;
    object-fit: cover;
    border-radius: 10px; /* softer corners */
    flex-shrink: 0;   /* prevents image from shrinking */
}

.highlight-card p {
    margin: 0;
}

.highlight-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.highlight-card.vertical-card {
    display: block !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.vertical-card {
    display: block !important;
}

.vertical-card h3,
.vertical-card p {
    margin-bottom: 0.75rem;
}
.bullet-list {
    margin: 0.25rem 0 0;
    padding-left: 1.2rem;
}

.bullet-list li {
    margin-bottom: 0.25rem;
}

/* Link list */

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li {
    margin-bottom: 0.4rem;
}

.link-list a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 79, 111, 0.3);
    padding-bottom: 1px;
}

.link-list a:hover {
    border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    color: #666666;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

/* Typography tweaks */

p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Responsive */


@media (max-width: 600px) {
    .nav {
        padding-bottom: 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .main {
        margin-top: 1.5rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
}

/* ============================
  MOBILE RESPONSIVE DESIGN
============================ */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .header-photo {
        flex: none;
        text-align: center;
    }

    .profile-pic {
        width: 160px;
        height: 160px;
    }

    .name {
        font-size: 1.6rem;
    }
}

@media (max-width: 800px) {
    .two-column-uneven,
    .two-column-even {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav {
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
        border-right: none;
        padding: 0.5rem 0.75rem;
    }

    .highlight-card,
    .highlight-card.vertical-card {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .main {
        margin: 1rem auto 2rem;
        padding: 0 1rem;
    }

    .site-footer {
        font-size: 0.85rem;
        padding: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }
}


