/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #fff;
    --gray-light: #f8f9fa;
    --gray-border: #e1e4e8;
    --max-width: 900px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

nav a:hover,
nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Main content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--gray-border);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Team members */
.team-member {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.team-member h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-top: 0.5rem;
}

.social-icons a {
    font-size: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Group Photo */
.group-photo-wrap {
    margin: 2rem 0;
    text-align: center;
}

.group-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

.group-photo-caption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Moffitt Banner */
.moffitt-banner {
    background-color: #062F6E;
    border-top: 3px solid #005eb8;
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.moffitt-banner .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.moffitt-logo {
    height: 60px;
    width: auto;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: white;
    margin-left: 1rem;
}

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

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 2rem 0;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    footer .container {
        flex-direction: column;
        text-align: center;
    }

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

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

    nav ul {
        width: 100%;
        justify-content: center;
    }
}
