 /* Global Styles */
 :root {
    --primary-color: #00567a; /* Deep blue for a professional look */
    --secondary-color: #1a8f9f; /* Teal/cyan for accents */
    --accent-color: #c0392b; /* A subtle red for highlights/errors */
    --light-color: #f8f9fa; /* Lighter background for content sections */
    --dark-color: #212529; /* Darker text and footer */
    --text-color: #343a40;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Lato', sans-serif; /* Professional, readable font */
    line-height: 1.8; /* Improved readability */
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f4f7f6; /* Light background for the whole page */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif; /* A more structured font for headings */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #156f7a; /* Darker shade of secondary color on hover */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem; /* Consistent padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-medium);
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick to the top */
    z-index: 1000; /* Ensure it stays on top of other content */
}

.logo {
    display: flex;
    align-items: center;
    /* padding-left: 1.5rem; Removed as header handles global padding */
}

.logo img {
    height: 50px; /* Slightly larger logo */
    margin-right: 15px;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px; /* Spacing between nav items */
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem; /* Adjusted padding */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--secondary-color);
    color: white;
}

.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

.banner-text {
    /* position: absolute; Removed, handled by flexbox */
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2.5rem; /* Increased padding */
    width: 100%; /* Ensure it spans full width */
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    gap: 25px; /* Increased gap */
    padding: 2.5rem 1.5rem; /* Consistent padding */
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: var(--shadow-light);
    padding: 2rem; /* Increased padding */
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: var(--shadow-medium);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.6rem; /* Slightly larger */
    margin-bottom: 0.7rem;
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.8rem 0; /* Adjusted padding */
    margin-top: 3rem; /* Increased margin-top */
    font-size: 0.95rem;
    color: #cccccc;
}

footer p {
    margin: 0.4rem 0;
}

/* Main Content Sections */
.content-section {
    background-color: white;
    border-radius: 10px; /* Consistent border-radius */
    box-shadow: var(--shadow-medium);
    padding: 3rem; /* Increased padding for main content */
    margin: 2.5rem auto; /* Adjusted margin */
    max-width: 1000px;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2.5rem; /* Increased margin */
    font-size: 2.4rem; /* Larger heading */
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px; /* Adjusted padding */
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px; /* Slightly wider underline */
    height: 4px; /* Thicker underline */
    background-color: var(--secondary-color);
}

.content-section h3 {
    color: var(--secondary-color);
    margin-top: 2rem; /* Adjusted margin */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem; /* Adjusted padding */
    margin-bottom: 1.2rem;
}

.content-section ul,
.content-section ol {
    list-style: disc;
    margin-left: 25px; /* Adjusted margin */
    margin-bottom: 1.2rem;
}

.content-section ol {
    list-style: decimal;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.6rem;
}

/* Specific Styles for new pages and cards */
.publication-list, .data-sets, .glossary-list {
    display: grid;
    gap: 25px; /* Consistent gap */
}

.publication-item,
.data-set-item,
.glossary-item,
.results-card, /* Apply consistent styling to results cards */
.project-card, /* Apply consistent styling to project cards */
.reference-card /* Apply consistent styling to reference cards */ {
    background-color: var(--light-color);
    border-left: 6px solid var(--secondary-color); /* Thicker border */
    border-radius: 10px; /* Consistent border-radius */
    padding: 2rem; /* Increased padding */
    margin-bottom: 1.8rem; /* Consistent margin-bottom */
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover,
.data-set-item:hover,
.glossary-item:hover,
.results-card:hover,
.project-card:hover,
.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.publication-item h3,
.data-set-item h4,
.glossary-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.9rem;
    border-bottom: none;
}

.download-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.2rem; /* Adjusted margin */
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #156f7a;
}

/* Contact Form Styles */
.contact-form {
    display: grid;
    gap: 1.5rem; /* Increased gap */
    max-width: 600px;
    margin: 2.5rem auto 0 auto; /* Adjusted margin */
    padding: 2rem; /* Increased padding */
    background-color: var(--light-color);
    border-radius: 10px; /* Consistent border-radius */
    box-shadow: var(--shadow-light);
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem; /* Adjusted margin */
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.chart-controls select {
    width: 100%;
    padding: 0.9rem; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.chart-controls select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 143, 159, 0.25); /* Stronger but soft focus ring */
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem; /* Increased padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.15rem; /* Slightly larger font */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    width: auto;
    margin-top: 1.5rem; /* Adjusted margin */
}

.submit-button:hover {
    background-color: #156f7a;
    transform: translateY(-3px); /* More pronounced lift */
}

.contact-info {
    text-align: center;
    margin-bottom: 2.5rem; /* Adjusted margin */
    font-size: 1.15rem;
}

.contact-info p {
    margin-bottom: 0.6rem;
}

/* Global adjustments for elements that might be reused */
.banner-text h2 {
    color: white;
    font-size: 2.8rem; /* Larger font size */
    margin-bottom: 1rem; /* Adjusted margin */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Subtle text shadow */
}

.banner-text p {
    color: #f0f0f0;
    font-size: 1.2rem; /* Slightly larger font */
    max-width: 700px;
    margin: 0 auto; /* Center align for better readability */
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Adjustments for existing quick-links and cards */
.quick-links .card {
    text-align: left; /* Align card content to left */
    align-items: flex-start;
}

/* Footer adjustments */
/* Removed empty footer rule */

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .content-section, .quick-links {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        padding-left: 0;
        justify-content: center;
        margin-bottom: 1rem; /* Spacing below logo */
    }

    nav ul {
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    nav ul li a {
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: center;
    }

    .search-container {
        margin: 1rem 0 0 0; /* Adjusted margin */
        width: 90%; /* Take up more width */
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input {
        width: auto; /* Allow input to grow */
        flex-grow: 1;
    }
    
    .search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 8px 8px 0 0;
    }

    .banner {
        height: 280px; /* Adjusted height */
    }

    .banner-text {
        padding: 1.5rem;
    }

    .banner-text h2 {
        font-size: 2.2rem;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 20px;
    }

    .card {
        padding: 1.5rem;
        text-align: center; /* Re-center card text */
        align-items: center;
    }

    .content-section {
        padding: 2rem; /* Adjusted padding */
        margin: 2rem auto;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .publication-item,
    .data-set-item,
    .glossary-item,
    .results-card,
    .project-card,
    .reference-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .map-container {
        flex-direction: column; /* Stack map and legend */
        align-items: center; /* Center items when stacked */
        gap: 20px; /* Consistent gap */
    }

    .map-image {
        min-width: 150px; /* Ensure a minimum size */
        max-width: 300px; /* Limit max size on smaller screens */
        width: 100%; /* Take full width within its container */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Ensure it behaves as a block element */
        margin: 0 auto; /* Center the image */
    }

    .map-legend {
        min-width: unset;
        width: 100%;
        text-align: left;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Adjust gap for stacked buttons */
    }

    .download-btn {
        width: 90%; /* Make buttons take more width */
        justify-content: center;
        padding: 12px 15px; /* Adjusted padding */
    }

    .data-table th, .data-table td {
        padding: 8px; /* Smaller padding for tables */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner-text h2 {
        font-size: 1.6rem;
    }
    .banner-text p {
        font-size: 0.9rem;
    }
    .content-section h2 {
        font-size: 1.6rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
}
/* Chart specific adjustments */
.chart-container {
    position: relative;
    height: auto; /* Let Chart.js determine height */
    min-height: 250px; /* Minimum height for charts */
    margin: 20px 0;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.chart-controls label {
    font-weight: bold;
    color: var(--primary-color);
}

.chart-controls select {
    flex-grow: 1;
    max-width: 300px;
}

/* Table specific styles for hover effect */
.data-table tbody tr:hover {
    background-color: var(--border-color); /* Light highlight on hover */
    cursor: pointer;
}

.glossary-item {
    background-color: var(--light-color);
    border-left: 6px solid var(--secondary-color); /* Consistent with other cards */
    border-radius: 10px; /* Consistent border-radius */
    padding: 1.5rem 2rem; /* Adjusted padding for details/summary */
    margin-bottom: 1.5rem; /* Consistent margin-bottom */
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.glossary-item summary {
    display: block; /* Ensures summary behaves like a block for full click area */
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem; /* Slightly larger for emphasis */
    padding: 0.5rem 0; /* Padding for click area */
    outline: none; /* Remove default focus outline */
    -webkit-tap-highlight-color: transparent; /* Remove highlight on mobile tap */
}

.glossary-item summary::-webkit-details-marker, /* Hide default marker for Webkit browsers */
.glossary-item summary::marker { /* Hide default marker for Firefox */
    display: none;
}

.glossary-item summary h3 {
    display: inline; /* Keep h3 on the same line as summary */
    margin: 0; /* Remove default h3 margins */
    color: var(--primary-color); /* Ensure consistent color */
}

.glossary-item p {
    padding-top: 1rem; /* Space between summary and content */
    margin-bottom: 0;
    line-height: 1.7; /* Improved readability */
    color: var(--text-color);
}

/* Add a visual indicator for open/closed state */
.glossary-item summary::after {
    content: '\25B6'; /* Unicode right-pointing triangle */
    float: right;
    transition: transform 0.3s;
    font-size: 1rem;
    color: var(--secondary-color);
}

.glossary-item[open] summary::after {
    transform: rotate(90deg); /* Rotate to point down when open */
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* More spacing between team cards */
    margin-top: 2rem;
    padding: 1rem;
}

.team-member-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color); /* Highlight photo */
}

.team-member-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-member-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.team-member-card a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.team-member-card a:hover {
    color: var(--primary-color);
}

/* Partners Logos */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Spacing between logos */
    margin-top: 2.5rem;
    padding: 1rem;
}

.partners-logos img {
    max-width: 180px; /* Max width for logos */
    height: auto;
    opacity: 0.7; /* Slightly faded */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partners-logos img:hover {
    opacity: 1; /* Full opacity on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Project Update Info */
.project-update-info {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
}
