/* styles.css */
:root {
    --brown-primary: #4E3629;
    --brown-secondary: #C00404;
    --text-color: #333333;
    --bg-color: #FAFAFA;
    --link-color: #0056b3;
}

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

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

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

header {
    background-color: var(--brown-primary);
    color: white;
    padding: 40px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.header-text h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #E0E0E0;
}

.header-text p {
    margin-top: 10px;
}

.header-text a {
    color: #FFD1A4;
    text-decoration: none;
}

.header-text a:hover {
    text-decoration: underline;
}

nav {
    background-color: white;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    gap: 20px;
}

nav a {
    padding: 15px 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--brown-secondary);
    border-bottom: 3px solid var(--brown-secondary);
}

main {
    padding: 40px 20px;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section {
    margin-bottom: 40px;
}

h2 {
    color: var(--brown-primary);
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}
/* Redistricting Project Image */
.project-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-img {
    max-width: 180px; /* Adjust this number down to make the image smaller */
    height: auto;
    border-radius: 6px;
    border: 1px solid #E0E0E0;
}

/* Photo Gallery Images */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.photo-gallery img {
    height: 250px; /* Forces a uniform height for all gallery photos */
    width: auto;
    border-radius: 6px;
    border: 1px solid #E0E0E0;
    object-fit: cover; /* Prevents distortion */
    flex-grow: 1; /* Allows images to naturally fill the row */
}

@media (max-width: 600px) {
    .project-content {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-gallery img {
        width: 100%;
        height: auto;
    }
}
/* Publications Page Styles */
.publications-page h2 {
    margin-top: 30px;
    font-size: 1.5rem;
}

.pub-list {
    list-style-type: none; /* Removes the default bullet points */
    padding-left: 0;
}

.pub-list li {
    margin-bottom: 20px;
    line-height: 1.5;
}

.pub-list strong {
    color: var(--link-color); /* Makes the title pop */
    font-size: 1.1rem;
}

/* Books Section Styles */
.book-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-cover {
    width: 75px; /* Adjust thumbnail width here */
    height: auto;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    border: 1px solid #E0E0E0;
    border-radius: 2px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.book-cover:hover {
    transform: translateY(-2px); /* Slight lift effect on hover */
}

/* Keeps the upcoming book text perfectly aligned with the others */
.book-cover-placeholder {
    width: 75px; 
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .book-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .book-cover-placeholder {
        display: none; /* Removes the empty gap on mobile */
    }
}
