@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* McGovern Institute Color Palette */
:root {
    /* Primary Colors */
    --mcgovern-blue: #105EB7;
    --mcgovern-black: #000000;

    /* Secondary Colors */
    --mcgovern-teal: #009DAA;
    --mcgovern-yellow: #F7CB0C;
    --mcgovern-purple: #573881;
    --mcgovern-orange: #D1622E;
    --mcgovern-dark-gray: #262C34;
    --mcgovern-gray: #3E434A;

    /* Legacy MIT variables (keeping for compatibility) */
    --mit-red: #A31F34;
    --mit-dark-red: #8A1B2A;
    --mit-light-red: #C1272D;
    --mit-gray: var(--mcgovern-gray);
    --mit-dark-gray: var(--mcgovern-dark-gray);
    --mit-light-gray: #D0D0CE;
    --mit-white: #FFFFFF;
    --mit-black: var(--mcgovern-black);
    --mit-blue: var(--mcgovern-blue);
    --mit-light-blue: var(--mcgovern-teal);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--mit-black);
    background-color: var(--mit-white);
}

/* Header and Navigation */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo h1 {
    margin: 0;
}

.logo h1 a {
    color: var(--mit-white) !important;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo h1 a:hover {
    opacity: 0.9;
}

.logo .subtitle {
    color: var(--mit-gray);
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--mit-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mit-white);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--mit-white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -8px);
}

/* Hero Section */
.hero {
    width: 100%;
    height: 65vh;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-color: var(--mit-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay h2 {
    color: var(--mit-white);
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.image-placeholder {
    text-align: center;
    color: var(--mit-gray);
    font-size: 1.2rem;
    padding: 2rem;
    border: 2px dashed var(--mit-gray);
    border-radius: 8px;
    background-color: rgba(208, 208, 206, 0.3);
}

/* Content Sections */
.content {
    padding: 4rem 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1.5rem;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--mit-black);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card h3 {
    color: var(--mit-black);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--mit-dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--mit-black);
    color: var(--mit-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--mit-dark-gray);
}

/* Footer */
footer {
    background-color: #000000;
    color: var(--mit-white);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content .footer-section:not(.logos-section) {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-content .footer-section:not(.logos-section)>div {
    flex: 1;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--mit-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--mit-light-gray);
}

.footer-section address {
    font-style: normal;
    color: var(--mit-light-gray);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--mit-white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--mit-white);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--mit-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--mit-white);
}

.footer-bottom {
    border-top: 1px solid var(--mit-gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--mit-light-gray);
    font-size: 0.9rem;
}

/* Page-specific styles */
.page-header {
    background-color: var(--mit-light-gray);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--mit-black);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--mit-dark-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Research Page Styles */
.research-areas {
    margin-top: 3rem;
}

.research-area {
    background: none;
    padding: 0;
    margin-bottom: 3rem;
    border: none;
    box-shadow: none;
}

.research-area h3 {
    color: var(--mit-black);
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
}

.research-area p {
    color: var(--mit-dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-details h4 {
    color: var(--mit-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.research-details ul {
    list-style: none;
    padding-left: 0;
}

.research-details li {
    color: var(--mit-dark-gray);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.research-details li:before {
    content: "•";
    color: var(--mit-black);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.research-highlights {
    margin-top: 4rem;
}

.research-highlights h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}

.highlight-card h4 {
    color: var(--mit-black);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--mit-dark-gray);
    line-height: 1.6;
}

/* People Page Styles */
.team-section {
    margin-bottom: 4rem;
}

.team-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}

.team-member {
    display: flex;
    gap: 2rem;
    background: var(--mit-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--mit-light-gray);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.team-member-simple {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
    border: none;
    box-shadow: none;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.member-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--mit-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mit-gray);
    font-size: 0.9rem;
    text-align: center;
    border: 2px dashed var(--mit-gray);
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    color: var(--mit-black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--mit-dark-gray);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--mit-dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-links {
    display: flex;
    gap: 1rem;
}

.member-link {
    color: var(--mit-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.member-link:hover {
    color: var(--mit-dark-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.alumni-member {
    background: none;
    padding: 0;
    border: none;
    text-align: center;
}

.alumni-member h4 {
    color: var(--mit-black);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alumni-title {
    color: var(--mit-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.alumni-current {
    color: var(--mit-dark-gray);
    font-weight: 500;
}

/* Publications Page Styles */
.publications-section {
    margin-bottom: 4rem;
}

.publications-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: left;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    display: flex;
    gap: 1.5rem;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
}

.publication-item:hover {
    transform: none;
    box-shadow: none;
}

.publication-item.preprint {
    border-left: 4px solid var(--mit-blue);
}

.publication-item.software {
    border-left: 4px solid var(--mit-light-blue);
}

.pub-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--mit-black);
    color: var(--mit-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.pub-content {
    flex: 1;
}

.pub-content h4 {
    color: var(--mit-black);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    color: var(--mit-black);
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.pub-journal {
    color: var(--mit-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doi-text {
    color: var(--mit-dark-gray);
    text-decoration: underline;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.doi-text:hover {
    color: var(--mit-black);
    text-decoration: underline;
}

.pub-links {
    display: flex;
    gap: 1rem;
}

.pub-link {
    color: var(--mit-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: var(--mit-dark-gray);
}

/* Join Page Styles */
.opportunities-section {
    margin-bottom: 4rem;
}

.opportunities-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}

.position-card {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
    border: none;
    box-shadow: none;
}

.position-card h4 {
    color: var(--mit-black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.position-description {
    color: var(--mit-dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.position-details {
    margin-bottom: 1.5rem;
}

.position-details h5 {
    color: var(--mit-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.position-details ul {
    list-style: none;
    padding-left: 0;
}

.position-details li {
    color: var(--mit-dark-gray);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.position-details li:before {
    content: "•";
    color: var(--mit-black);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.application-section {
    margin-bottom: 4rem;
}

.application-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--mit-black);
    color: var(--mit-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.step-content h4 {
    color: var(--mit-black);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--mit-dark-gray);
    line-height: 1.6;
}

.lab-culture-section {
    margin-bottom: 4rem;
}

.lab-culture-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.culture-item {
    background: var(--mit-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--mit-light-gray);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.culture-item h4 {
    color: var(--mit-black);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.culture-item p {
    color: var(--mit-dark-gray);
    line-height: 1.6;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-section h3 {
    color: var(--mit-black);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-lead {
    color: var(--mit-dark-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.contact-item h4 {
    color: var(--mit-black);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--mit-dark-gray);
    line-height: 1.6;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--mit-black);
    color: var(--mit-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--mcgovern-blue);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Progressive Image Loading */
.progressive-image {
    opacity: 0.8;
    filter: blur(1px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.progressive-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Logo Section */
.logos-section {
    margin-bottom: 20px;
    width: 100%;
}

.logos-section h4 {
    margin-bottom: 15px;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.logos-container a {
    text-decoration: none;
    transition: transform 0.2s ease;
    flex: 1;
    display: flex;
    justify-content: center;
}

.logos-container a:hover {
    transform: scale(1.05);
}

/* MIT Logo */
.mit-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.mit-logo:hover {
    opacity: 1;
}

/* McGovern Logo */
.mcgovern-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.mcgovern-logo:hover {
    opacity: 1;
}

/* BCS Logo */
.bcs-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.bcs-logo:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        padding: 0 20px;
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 120px 2rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        color: var(--mit-white);
        transform: translateX(8px);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(45deg, var(--mcgovern-blue), var(--mcgovern-teal));
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-links a:hover::before,
    .nav-links a.active::before {
        transform: scaleY(1);
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }







    .hero-overlay h2 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content .footer-section:not(.logos-section) {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

    /* Reorder contact info on mobile - proper order */
    .contact-info {
        display: flex;
        flex-direction: column;
    }

    .contact-info>div:nth-child(1) {
        order: 1;
        /* Contact first */
    }

    .contact-info>div:nth-child(2) {
        order: 2;
        /* Mailing Address second */
    }

    .contact-info>div:nth-child(3) {
        order: 3;
        /* For Visitors third */
    }

    /* Stack affiliations logos on mobile */
    .logos-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .logos-container a {
        max-width: 200px;
    }

    .social-links {
        justify-content: center;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .team-member-simple {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .member-photo {
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .publication-item {
        flex-direction: column;
        text-align: left;
    }

    .pub-number {
        margin: 0 auto 1rem auto;
    }

    .application-steps {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links a {
        display: block;
        text-align: center;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }







    .hero-overlay h2 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
    }

    .position-card {
        padding: 0;
    }

    .step {
        padding: 0;
    }
}