:root {
    --max-width: 1200px;
    --content-padding: 2rem;
    --primary-color: #c41230; /* body link color */
    --border-color: #d1d9e0;
    --bg-color: #fefefe; /* body background */
    --text-color: #000000; /* body text */
    --hover-color: #008F91; /* hover color */
    --hover-bg-color: #c7c7c7;
    --code-bg: #f6f8fa;
    --header-bg: #c41230; /* nav background */
    --shadow: 0 1px 3px rgba(31, 35, 40, 0.12);
    --nav-offset: 80px;
}

/* Flama font faces */
@font-face {
    font-family: "Flama";
    src: url("../static/fonts/Flama-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Flama";
    src: url("../static/fonts/FlamaBook Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Flama";
    src: url("../static/fonts/FlamaBook Italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Flama";
    src: url("../static/fonts/Flama-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: "Flama", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    font-size: 16px;
    padding-top: var(--nav-offset);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--content-padding);
}

/* Reduce top gap below fixed nav */
main.container {
    padding-top: calc(var(--content-padding) - 12px);
}

/* Remove top padding for home page to eliminate gap between navbar and grey background */
.home-page main.container {
    padding-top: 0;
}

.home-page main.container > h1:first-child {
    margin-top: 0px;
    padding-top: 48px !important;
    padding-bottom: 16px !important;
}

/* Grey background for intro section (H1 + following content until H2) - only on home page */
.home-page main.container > h1:first-child,
.home-page main.container > h1:first-child + p,
.home-page main.container > h1:first-child + p + p {
    background-color: #f5f5f5;
    padding: 8px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-bottom: 0;
    min-width: 100vw;
    box-sizing: border-box;
    border-radius: 0;
}

.home-page main.container > h1:first-child {
    margin-bottom: 0;
    border-radius: 0;
}

.home-page main.container > h1:first-child + p {
    border-radius: 0;
}

.home-page main.container > h1:first-child + p + p {
    border-radius: 0;
    margin-bottom: 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
    margin-top: 36px;
}

h3 {
    font-size: 1.25em;
}
h4 {
    font-size: 1em;
}
h5 {
    font-size: 0.875em;
}
h6 {
    font-size: 0.85em;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    /* text-decoration-color: var(--hover-bg-color); */
}

/* Remove underline from specific link classes */
.publication-link:hover,
.project-link:hover,
.publication-title:hover,
.publication-title a:hover,
.publication-preview a:hover,
.site-nav .site-links a:hover,
.site-nav .site-links a.current-page {
    text-decoration: none;
}

/* Lists */
ul,
ol {
    padding-left: 2em;
    margin-bottom: 16px;
}

li {
    margin-bottom: 0.25em;
}

/* Code */
code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: var(--code-bg);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
        "Liberation Mono", Menlo, monospace;
}

pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: var(--code-bg);
    border-radius: 6px;
    /* margin-bottom: 16px; */
}

pre code {
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 100%;
}

/* Blockquotes */
blockquote {
    padding: 0 1em;
    color: var(--text-color);
    border-left: 0.25em solid var(--border-color);
    margin-bottom: 16px;
    opacity: 0.8;
}

blockquote > :last-child {
    margin-bottom: 0;
}

/* Tables */
table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
    overflow: auto;
}

table th,
table td {
    padding: 6px 13px;
    border: 1px solid var(--border-color);
}

table tr {
    background-color: var(--bg-color);
}

table tr:nth-child(2n) {
    background-color: #e9ecef;
}

table th {
    font-weight: 600;
    color: #ffffff;
    background-color: var(--header-bg);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
}

/* Horizontal rules */
hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: var(--border-color);
    border: 0;
}

/* Details/Summary */
details {
    margin-bottom: 16px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
}

/* Keyboard */
kbd {
    display: inline-block;
    padding: 3px 5px;
    font-size: 11px;
    line-height: 10px;
    color: var(--text-color);
    vertical-align: middle;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: inset 0 -1px 0 var(--border-color);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
        "Liberation Mono", Menlo, monospace;
}

/* Task lists */
.task-list-item {
    list-style-type: none;
}

.task-list-item input[type="checkbox"] {
    margin-right: 0.5em;
}

/* Responsive video/iframe */
iframe {
    width: 100%;
    max-width: 100%;
    height: 800px;
    margin: 16px 0;
}

video {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
}

/* Site navigation (fixed, full viewport width) */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: var(--nav-offset);
}

.site-nav .container {
    padding-top: 4px;
    padding-bottom: 4px;
}

.site-nav .inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav .site-title {
    font-weight: 700;
    color: var(--text-color); /* nav title color */
    text-decoration: none;
    margin-right: 12px;
    font-size: 1.75rem;
    margin-right: auto; /* push links to right */
}

.site-nav .site-title .site-logo {
    height: 40px;
    /* width: 24px; */
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.site-nav .site-links a.current-page {
    font-weight: bold;
    color: var(--primary-color);
}

.site-nav .site-links a {
    margin-right: 20px;
    color: var(--text-color); /* nav link color */
}

.site-nav .site-title:hover,
.site-nav .site-links a:hover {
    color: var(--header-bg);
}




/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
}

.site-footer .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.footer-logo {
    height: 44px;
    display: block;
}

/* Link style utilities */
.link-plain {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #b0b0b0; /* light gray underline */
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.link-plain:hover {
    color: inherit;
    text-decoration-color: var(--hover-color);
}

.link-highlight {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--header-bg); /* red underline */
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.link-highlight:hover {
    color: var(--header-bg); /* text turns red on hover */
    text-decoration-color: var(--header-bg);
}

/* 
Team page specific styles 
*/

/* Shared styles for team members */
.team-headshot {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.team-headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faculty-photo a,
.student-photo a {
    display: block;
    text-decoration: none;
}

.team-name {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 400;
}

.team-name a {
    color: var(--text-color);
    text-decoration: none;
}

.team-name a:hover {
    color: var(--hover-color);
}

.team-email {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.team-email a {
    color: #666;
    text-decoration: none;
}

.team-email a:hover {
    color: var(--hover-color);
}

/* Faculty specific styles */

.faculty-member {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 36px;
    padding: 0;
}

.faculty-photo {
    flex-shrink: 0;
}

.faculty-info {
    flex: 1;
}

.faculty-bio {
    line-height: 1.6;
}

.faculty-bio p {
    margin-bottom: 12px;
}

.faculty-bio p:last-child {
    margin-bottom: 0;
}

/* Students specific styles */
.students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 0px;
}

.student-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 24px;
    /* padding: 24px 0px; */
    border-radius: 8px;
}

.student-photo {
    margin-bottom: 16px;
    align-self: flex-start;
}

.student-info {
    width: 100%;
}

.student-type,
.student-dept {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Alumni section styles */
.alumni-list {
    margin: 0;
}

.alumni-item {
    margin: 2px 0;
    padding: 4px 0;
    text-align: left;
}

.alumni-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.alumni-item a:hover {
    color: var(--hover-color);
}

.alumni-item span {
    color: var(--text-color);
}

/* Research page specific styles */
.year-heading {
    font-size: 1.7em;
    font-weight: 700;
    margin: 48px 0 24px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.year-heading:first-child {
    margin-top: 32px;
}

.publication {
    margin-bottom: 32px;
    padding-bottom: 24px;
    /* border-bottom: 1px solid #e0e0e0; */
    display: flex;
    gap: 24px;
    align-items: flex-start;
}


.publication-preview {
    flex-shrink: 0;
    width: 200px;
}

.preview-image {
    width: 100%;
    height: auto;
    /* border-radius: 8px; */
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.publication-preview a {
    display: block;
    text-decoration: none;
}
.publication-preview a:hover .preview-image {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.publication-content {
    flex: 1;
}

.publication-title {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
}

.publication-authors {
    margin-bottom: 8px;
    /* font-style: italic; */
    color: black;
}

.publication-venue-year {
    margin-bottom: 12px;
    font-weight: 400;
    color: black;
    font-style: italic;
}

.publication-meta {
    margin-bottom: 12px;
    color: #666;
}


.publication-award {
    margin-top: 12px;
    padding: 2px 6px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 2px;
    color: #856404;
    font-weight: 500;
    font-size: 0.85em;
    display: inline-block;
}

.publication-award i {
    color: #f39c12;
    margin-right: 6px;
}

.bibtex-content {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
}

.citation-content {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
}

.bibtex-btn {
    cursor: pointer;
    border: 1px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bibtex-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.publication-link i,
.project-link i {
    margin-right: 6px;
}

.publication-abstract {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.5;
}

.publication-title a {
    color: var(--text-color);
    text-decoration: none;
}

.publication-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

.publication-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border: 1px solid var(--hover-bg-color);
    border-radius: 2px;
    transition: all 0.2s ease;
    font-size: 0.85em;
}

.publication-link:hover {
    background-color: var(--hover-bg-color);
    /* color: white; */
}

/* Recent Highlights Section */
.recent-highlights {
    margin: 48px 0;
}

.recent-highlights h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-color);
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.highlight-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.highlight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.highlight-card:hover .highlight-image {
    transform: scale(1.05);
}

.highlight-content {
    padding: 20px;
}

.highlight-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.3;
}

.highlight-title a {
    color: var(--text-color);
    text-decoration: none;
}

.highlight-title a:hover {
    color: var(--primary-color);
}

.highlight-meta {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 500;
}


/* Project page specific styles */
.project-title {
    font-size: 2em;
    font-weight: 700;
    margin: 48px 0 16px 0;
    color: var(--text-color);
    line-height: 1.2;
}

.project-authors {
    font-size: 1em;
    margin-bottom: 12px;
    color: var(--text-color);
    font-style: italic;
}

.project-venue {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 12px;
    /* color: var(--primary-color); */
    color: black;
    font-style: italic;
}

.project-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 32px 0;
}

.project-preview {
    margin: 24px auto;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.project-award {
    margin-top: 16px;
    padding: 2px 6px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 2px;
    color: #856404;
    font-weight: 500;
    font-size: 0.85em;
    display: inline-block;
}

.project-award i {
    color: #f39c12;
    margin-right: 6px;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border: 1px solid var(--hover-bg-color);
    border-radius: 2px;
    transition: all 0.2s ease;
    font-size: 0.85em;
}

.project-link:hover {
    background-color: var(--hover-bg-color);
}


/* Research Highlights Styles */
.research-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
    margin-bottom: 80px;
}

.research-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.research-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.research-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.research-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.research-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.research-card-image .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.research-card:hover .research-card-image .preview-image {
    transform: scale(1.05);
}

.research-card-content {
    padding: 20px;
}

.research-card-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: inherit;
}

.research-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85em;
    flex-wrap: wrap;
}

.research-card-venue {
    color: #888;
    font-weight: 500;
}

.research-card-award {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.research-card-links {
    display: flex;
    gap: 12px;
}


/* Image Modal Overlay */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: default;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.image-modal.active .image-modal-close {
    opacity: 1;
    transform: translateY(0);
}

.image-modal-close:hover {
    color: #ccc;
}

/* Make project images clickable (only on individual project pages) */
.project-image {
    cursor: pointer;
}

/* Supporters section */
.supporters-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
    margin: 0;
    margin-bottom: 30px;
}

.supporters-container a {
    text-decoration: none;
}

.supporters-container img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.supporters-container img:hover {
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN - ALL MEDIA QUERIES
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .students-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .team-headshot {
        width: 220px;
        height: 220px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    /* Fix full-width background on mobile */
    .home-page main.container > h1:first-child,
    .home-page main.container > h1:first-child + p,
    .home-page main.container > h1:first-child + p + p {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .publication {
        flex-direction: column;
        gap: 16px;
    }
    
    .publication-preview {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .highlight-preview {
        height: 180px;
    }
    
    .highlight-content {
        padding: 16px;
    }
    
    .project-header {
        flex-direction: column;
        gap: 24px;
    }

    .project-preview {
        width: 100%;
        max-width: 400px;
        margin: 24px auto;
    }
    
    .research-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
        margin-bottom: 50px;
    }
    
    .research-card-content {
        padding: 16px;
    }
    
    .research-card-image {
        height: 160px;
    }
    
    .research-card-meta {
        align-items: flex-start;
        gap: 8px;
    }
}

/* Mobile phones */
@media (max-width: 640px) {
    :root {
        --nav-offset: 105px;
    }

    h2 {
        font-size: 1.75em;
        margin-top: 0px;
    }

    .site-logo {
        margin: 0 0 4px 0;
    }

    .footer-logo {
        height: 32px;
        width: auto;
        display: block;
        object-fit: contain;
        max-width: 100%;
    }
    
    /* Ensure SVGs display properly */
    .footer-logo[src$=".svg"] {
        height: 32px;
        width: auto;
    }
    
    .site-nav .site-title { 
        margin-right: 0; 
        font-size: 1.4rem;
    }
    
    .site-nav .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .site-nav .site-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }
    
    .site-nav .site-links a { 
        display: inline-block; 
        margin: 0;
        padding: 4px 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
        white-space: nowrap;
    }
    
    .site-nav .site-links a:hover {
        background-color: var(--hover-bg-color);
    }
    
    /* Ensure main content is pushed down properly on mobile */
    body {
        padding-top: var(--nav-offset) !important;
    }
    
    main.container {
        padding-top: calc(var(--content-padding) - 12px) !important;
    }
    
    .home-page main.container {
        padding-top: 0 !important;
    }
    
    /* Supporters mobile layout */
    .supporters-container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .supporters-container img {
        height: 30px;
    }
    
    .faculty-member {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }
    
    .faculty-photo {
        align-self: flex-start;
    }
    
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .team-headshot {
        width: 200px;
        height: 200px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .students-grid {
        gap: 10px;
    }
    
    .student-card {
        padding: 16px 12px;
    }
    
    .team-headshot {
        width: 150px;
        height: 150px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }
}
