/* Base Styles */
:root {
    --maroon: #800000;
    --dark-maroon: #5a0000;
    --light-maroon: #a61919;
    --red: #cc0000;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Times New Roman', Times, serif, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--maroon);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ddd;
}

/* Hero Section */
/* Update the hero section in CSS - remove the background line */
.hero {
    background: url('./../images/WRO.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 0 120px; /* Even larger padding */
    margin-top: 70px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--dark-maroon);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--Black);
}

/* Research Section */
.research-section {
    background-color: var(--light-gray);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.research-card:hover {
    transform: translateY(-5px);
}

.research-card h3 {
    color: var(--maroon);
    margin-bottom: 1rem;
}

/* Publications Section */
.publication-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.journal {
    color: var(--maroon);
    font-style: italic;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--light-maroon);
    margin: 0 auto 1rem;
    background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=200&q=80');
    background-size: cover;
    background-position: center;
}

.team-member h3 {
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-maroon);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav li {
        margin: 0 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-member {
    text-align: center;
    width: 200px; /* uniform width for all members */
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 50%; /* circular shape */
    border: 3px solid #ccc; /* optional border */
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* maintain aspect ratio, crop if necessary */
}
