/* Modern Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1A88AD;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #004E9C;
    text-decoration: underline;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; /* Pushes footer down */
}

/* Banner */
.banner {
    background-color: #00214E;
    width: 100%;
    text-align: center; /* Centers image if it's smaller than width */
}

.banner img {
    margin: 0 auto; /* Centers block image */
}

/* Navigation */
.navbar {
    background-color: #1A88AD;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.navbar a:hover {
    color: #e0e0e0;
    text-decoration: none;
}

/* Typography */
h1 {
    color: #0C224B;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h2 {
    color: #004E9C;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    color: #004E9C;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: left; /* Improved readability over justify */
}

ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

/* People Grid System */
.people-section {
    margin-bottom: 40px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
}

.person-card {
    text-align: center;
    width: 100%;
}

.person-card img {
    margin: 0 auto 10px;
    max-height: 150px;
    object-fit: cover;
}

.person-card a {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.person-card span {
    color: #666;
    font-size: 0.9em;
}

/* Publications */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.link_year {
    background-color: #74BFD7;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

.link_year:hover {
    background-color: #529DB5;
    text-decoration: none;
}

.pub-list {
    list-style: none;
}

.pub-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pub-links {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tag {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    color: white;
}

.tag-pdf { background-color: #FF4040; }
.tag-pdf:hover { background-color: #CF1010; }

.tag-web { background-color: #4080FF; }
.tag-web:hover { background-color: #1060CF; }

.tag-dial { background-color: #40C040; }
.tag-dial:hover { background-color: #109010; }

.tag-link-wrapper {
    display: inline-flex;  /* Keeps it on one line and allows alignment */
    align-items: center;   /* Centers the badges vertically */
}

.tag-link-wrapper:hover {
    filter: brightness(1.2);
}

.tag-cit { background-color: #5C5C5C;}

.tag-link-wrapper:hover .tag-cit{
    color: #004E9C;
    background-color: #8C8C8C;
}

.tag-num {
    transform: translate(-7px, 0px);
    background-color: #E9B949;
}
.tag-link-wrapper:hover .tag-num {
    color: #004E9C;
    background-color: #D0A030;
}

/* Teaching */
.course-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #1A88AD;
}

.video-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.video-link {
    background: #f5a500;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #fff;
}

.video-link:hover {
    background: #ddd;
    text-decoration: none;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #0C224B;
    padding: 20px 0;
    background-color: #f9f9f9;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-links img {
    max-height: 50px; /* Standardized height */
    width: auto;
    transition: transform 0.2s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
