/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header and Banner styles */
.banner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    background-color: rgba(51, 51, 51, 0.95);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
}

/* Improved Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content:hover {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* Banner Section */
.banner {
    position: relative;
    color: white;
    padding: 6rem 2rem 3rem;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Add this to keep text readable */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(153, 0, 0, 0.85);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.banner p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Main content layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Main content styles */
.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-content h2 {
    color: #990000;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.main-content p {
    margin-bottom: 1.5rem;
}

/* Sidebar styles */
.sidebar {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar h2 {
    color: #990000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* People page styles */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.person-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.person-info {
    padding: 1.5rem;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.person-title {
    color: #666;
    margin-bottom: 1rem;
}

/* Contact page styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    background-color: #990000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #800000;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Publications and projects styles */
.publication-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.publication-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.publication-authors {
    color: #666;
    margin-bottom: 1rem;
}

.publication-authors a {
    color: #990000;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .banner {
        padding: 5rem 1rem 2rem;
    }

    .banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.75rem;
    }
    
    .main-content,
    .sidebar {
        padding: 1.5rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }
}
