p, h1, h2, h3, h4, h5, h6, button {
    font-family: "Roboto", serif;
}

body {
    background-color: #f5f5f9;
    background-size: cover;
    width: auto; 
    overflow-x: hidden;
    font-family: "Roboto", serif;
    margin: 0px;
}

.nav-bar {
    width: 100%;
    background-color: #1C539F;
    font-family: "Roboto", serif;
    font-weight: 700 !important;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
}

.nav-content .logo-touch-target {
    display: inline-flex;
    height: 60%;
    width: 350px;
}

.nav-content .nav-logo {
    height: 60px;
    margin: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 200px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link-active {
    background-color: #ffffff;
    color: #1C539F;
    border-color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.nav-link-active:hover {
    background-color: #f0f4fa;
    color: #1C539F;
    transform: none;
}

.profile {
    background-color: #1d539f !important;
    text-align: center;
    height: 320px;
    margin-bottom: 50px;
}

.profile h1 {
        font-size: 50px;
        font-weight: 700;
        color: white;
}

.profile img {
        border-radius: 50%;
        max-width: 100%;
        max-height: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;        
        padding: 20px;
}

.profile .profile-picture {
    margin-bottom: 30px;
    height: 200px;
}

.banner {
    padding: 20px 0px 50px 0px;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width:180px;
    max-height:60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}

.team {
    width: 100%;
    max-width: none;
    margin: 0 0 60px;
    padding: 0 48px 0 80px;
    box-sizing: border-box;
}

.team-heading {
    color: #000000;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
}

.team-members {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 36px 0;
    border-bottom: 1px solid #d0d0d0;
    width: 100%;
}

.team-member:last-child {
    border-bottom: none;
}

.team-member-photo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--member-color, #000000);
    padding: 4px;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.team-member-info {
    flex: 1;
    padding-top: 8px;
}

.team-member-name {
    color: #000000;
    font-size: 42px;
    font-weight: 500;
    margin: 0 0 8px;
}

@media (max-width: 768px) {
    .team {
        padding: 0 32px;
    }

    .team-heading {
        font-size: 32px;
    }

    .team-member {
        gap: 28px;
        padding: 28px 0;
    }

    .team-member-photo {
        width: 160px;
        height: 160px;
    }

    .team-member-name {
        font-size: 32px;
    }

    .team-member-info .about-us-bio {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .team {
        padding: 0 20px;
    }

    .team-member {
        gap: 20px;
        padding: 24px 0;
    }

    .team-member-photo {
        width: 120px;
        height: 120px;
    }

    .team-member-name {
        font-size: 24px;
    }

    .team-member-info .about-us-role {
        font-size: 12px;
    }

    .team-member-info .about-us-bio {
        font-size: 14px;
    }

    .nav-content {
        padding: 0 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.page-content {
    width: 100%;
    padding: 48px 80px 60px;
    box-sizing: border-box;
}

.page-heading {
    color: #000000;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 32px;
}

.page-placeholder {
    color: #555555;
    font-size: 20px;
    margin: 0;
}

.hobbies-page {
    padding-bottom: 80px;
    text-align: center;
}

.hobbies-page .page-heading {
    text-align: center;
    font-size: 48px;
    margin-bottom: 48px;
}

.member-hobbies-section {
    margin-bottom: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-hobbies-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.member-hobbies-heading {
    color: #1d539f;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 36px;
    text-align: center;
}

.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}

.hobby-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: center;
    width: 240px;
    transition: transform 0.15s ease;
}

.hobby-card:hover {
    transform: translateY(-6px);
}

.hobby-card img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.hobby-card-name {
    color: #000000;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

/* Modal uses class toggles (not display:none) so open/close transitions can run in JS. */
.hobby-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hobby-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hobby-modal.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hobby-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hobby-modal.is-open .hobby-modal-overlay {
    opacity: 1;
}

.hobby-modal.is-closing .hobby-modal-overlay {
    opacity: 0;
}

.hobby-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 36px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hobby-modal.is-open .hobby-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.hobby-modal.is-closing .hobby-modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.hobby-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #555555;
    cursor: pointer;
    padding: 4px 8px;
}

.hobby-modal-close:hover {
    color: #000000;
}

.hobby-modal-title {
    color: #1d539f;
    font-size: 32px;
    font-weight: 700;
    margin: 0 48px 28px 0;
    text-align: center;
}

.hobby-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.hobby-modal-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hobbies-page .page-heading {
        font-size: 36px;
    }

    .hobbies-grid {
        gap: 28px;
    }

    .hobby-card {
        width: 180px;
    }

    .hobby-card img {
        width: 180px;
        height: 180px;
    }

    .hobby-card-name {
        font-size: 22px;
    }

    .member-hobbies-heading {
        font-size: 32px;
    }

    .hobby-modal-content {
        padding: 24px 20px;
    }

    .hobby-modal-gallery {
        grid-template-columns: 1fr;
    }
}

/* ============================== Work Experience ============================== */

.work-intro {
    color: #555555;
    font-size: 18px;
    margin: -16px 0 36px;
}

.work-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: start;
}

.work-column {
    background-color: #ffffff;
    border-radius: 16px;
    border-top: 4px solid var(--member-color, #1d539f);
    padding: 24px 24px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.work-member {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #15233d;
    margin: 0 0 24px;
}

.work-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--member-color, #1d539f);
    margin-right: 12px;
    flex-shrink: 0;
}

/* Vertical line that the role markers sit on. */
.work-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 22px;
    border-left: 2px solid #e3e6ee;
    margin-left: 6px;
}

.work-item {
    position: relative;
    margin-bottom: 22px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-marker {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--member-color, #1d539f);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--member-color, #1d539f);
}

.work-card {
    background-color: #f7f8fb;
    border-radius: 12px;
    padding: 14px 16px;
}

.work-dates {
    color: var(--member-color, #1d539f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.work-title {
    font-size: 18px;
    font-weight: 700;
    color: #15233d;
    margin: 0;
}

.work-org {
    font-size: 15px;
    color: #2f3a4d;
    margin: 3px 0 0;
}

.work-kind {
    color: #8a93a6;
}

.work-location {
    font-size: 13px;
    color: #8a93a6;
    margin: 2px 0 8px;
}

.work-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #444c5c;
    margin: 0;
}

.work-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1d539f;
    text-decoration: none;
}

.work-link:hover {
    text-decoration: underline;
}

/* ================================ Education ================================= */

.education-intro {
    color: #555555;
    font-size: 18px;
    margin: -16px 0 36px;
}

.education-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: start;
}

.education-column {
    background-color: #ffffff;
    border-radius: 16px;
    border-top: 4px solid var(--member-color, #1d539f);
    padding: 24px 24px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.education-member {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #15233d;
    margin: 0 0 24px;
}

.education-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--member-color, #1d539f);
    margin-right: 12px;
    flex-shrink: 0;
}

.education-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 22px;
    border-left: 2px solid #e3e6ee;
    margin-left: 6px;
}

.education-item {
    position: relative;
    margin-bottom: 22px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-marker {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--member-color, #1d539f);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--member-color, #1d539f);
}

.education-card {
    background-color: #f7f8fb;
    border-radius: 12px;
    padding: 14px 16px;
}

.education-dates {
    color: var(--member-color, #1d539f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.education-degree {
    font-size: 18px;
    font-weight: 700;
    color: #15233d;
    margin: 0;
}

.education-institution {
    font-size: 15px;
    color: #2f3a4d;
    margin: 3px 0 0;
}

.education-location {
    color: #8a93a6;
}

.education-gpa {
    font-size: 13px;
    font-weight: 600;
    color: var(--member-color, #1d539f);
    margin: 4px 0 0;
}

.education-highlights {
    font-size: 13px;
    line-height: 1.7;
    color: #444c5c;
    margin: 8px 0 0;
    padding-left: 18px;
}

.education-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1d539f;
    text-decoration: none;
}

.education-link:hover {
    text-decoration: underline;
}

/* Team member bios on the home page (data from about_us_data.py). */

.about-us-role {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--member-color, #1d539f);
    margin: 0 0 14px;
}

.about-us-bio {
    font-size: 16px;
    line-height: 1.75;
    color: #444c5c;
    margin: 0 0 20px;
}

.about-us-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.about-us-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--member-color, #1d539f);
    text-decoration: none;
    border: 1.5px solid var(--member-color, #1d539f);
    border-radius: 999px;
    padding: 5px 16px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.about-us-link:hover {
    background-color: var(--member-color, #1d539f);
    color: #ffffff;
}

/* ================================== Map ===================================== */

/* Dark "space" treatment so the globe pops against the otherwise light site. */
.map-page {
    background: radial-gradient(circle at 50% 0%, #0d1a40 0%, #060912 60%);
    color: #e8ecf6;
    padding: 48px 48px 56px;
    box-sizing: border-box;
    min-height: calc(100vh - 88px);
}

.map-intro {
    text-align: center;
    margin-bottom: 28px;
}

.map-title {
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #ffffff;
}

.map-subtitle {
    font-size: 17px;
    color: #aab4d4;
    margin: 0 auto;
    max-width: 640px;
}

.map-subtitle strong {
    color: #ffffff;
}

.globe-layout {
    display: flex;
    gap: 28px;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
}

.globe-panel {
    flex: 0 0 320px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 8px 14px 8px 4px;
}

.globe-member {
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 3px solid var(--member-color, #6ea8ff);
}

.globe-member-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: #ffffff;
    text-align: left;
}

.globe-member-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--member-color, #6ea8ff);
    box-shadow: 0 0 10px var(--member-color, #6ea8ff);
    flex-shrink: 0;
}

.globe-member-name {
    font-size: 18px;
    font-weight: 700;
}

.globe-member-go {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--member-color, #6ea8ff);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.globe-member-btn:hover .globe-member-go {
    opacity: 1;
}

.globe-place-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0 0 0 22px;
}

.globe-place-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #c7d0ec;
    font-size: 15px;
    padding: 7px 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.globe-place-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.globe-place-btn.is-active {
    background-color: var(--member-color, #6ea8ff);
    color: #06122e;
    font-weight: 700;
}

.globe-stage {
    position: relative;
    flex: 1;
    min-height: 72vh;
    border-radius: 18px;
    overflow: hidden;
    background-color: #05070f;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

#globe {
    width: 100%;
    height: 100%;
}

.globe-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background-color: rgba(5, 10, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 999px;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.globe-caption.is-visible {
    opacity: 1;
}

.globe-caption-member {
    color: #aab4d4;
}

.globe-hint {
    position: absolute;
    top: 14px;
    right: 18px;
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* globe.gl renders this inside its floating tooltip on hover. */
.globe-point-label {
    background-color: rgba(5, 10, 24, 0.9);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
}

@media (max-width: 900px) {
    .globe-layout {
        flex-direction: column;
    }

    .globe-panel {
        flex: none;
        max-height: 240px;
        order: 2;
    }

    .globe-stage {
        order: 1;
        min-height: 60vh;
    }

    .map-title {
        font-size: 34px;
    }
}

/* ================================ Timeline ================================== */

.timeline-page {
    max-width: 760px;
    margin: 0 auto;
}

.timeline-intro {
    color: #555555;
    font-size: 18px;
    margin: -16px 0 32px;
}

.timeline-form {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.timeline-form-heading,
.timeline-feed-heading {
    color: #1d539f;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

.timeline-form-row {
    margin-bottom: 16px;
}

.timeline-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.timeline-input,
.timeline-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: "Roboto", serif;
    font-size: 16px;
}

.timeline-input:focus,
.timeline-textarea:focus {
    outline: none;
    border-color: #1d539f;
    box-shadow: 0 0 0 3px rgba(29, 83, 159, 0.15);
}

.timeline-textarea {
    resize: vertical;
    min-height: 110px;
}

.timeline-submit {
    background-color: #1d539f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.timeline-submit:hover {
    background-color: #16427d;
}

.timeline-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.timeline-form-error {
    color: #b42318;
    font-size: 14px;
    margin: 0 0 12px;
}

.timeline-status {
    color: #666666;
    font-size: 16px;
    margin: 0 0 16px;
}

.timeline-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-post {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    animation: timeline-fade-in 0.25s ease;
}

@keyframes timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.timeline-post-body {
    flex: 1;
    min-width: 0;
}

.timeline-post-name {
    font-size: 18px;
    font-weight: 700;
    color: #15233d;
    margin: 0 0 4px;
}

.timeline-post-meta {
    font-size: 13px;
    color: #777777;
    margin: 0 0 10px;
}

.timeline-post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 640px) {
    .timeline-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-form {
        padding: 22px 20px;
    }

    .timeline-post {
        padding: 16px;
    }
}