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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 1rem 0;
}

nav li {
    margin-right: 2rem;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.btn:hover {
    background-color: #2980b9;
}

.btn.primary {
    background-color: #3498db;
}

.btn.secondary {
    background-color: #2c3e50;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.cta-buttons {
    margin: 2rem 0;
}

/* Sections */
section {
    padding: 3rem 0;
}

.hero {
    background-color: #e3f2fd;
    padding: 4rem 0;
    text-align: center;
}

.key-findings, .methodology {
    background-color: #fff;
}

.key-findings ul, .methodology ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.key-findings li, .methodology li {
    margin-bottom: 0.5rem;
}

/* Visualization cards */
.viz-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Chart containers - FIXED to prevent overflow issues */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Responsive images - FIXED to prevent positioning issues */
.responsive-img {
    position: relative !important;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Interactive elements - FIXED to ensure they're clickable */
a, button, input, select, textarea {
    position: relative;
    z-index: 5;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    text-decoration: underline;
}

.footer-nav {
    margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
}
