/* Main Styles for Spur Lake Website */
:root {
    --primary-color: #2c6e49;
    --secondary-color: #4c956c;
    --accent-color: #d68c45;
    --light-color: #f2e8cf;
    --dark-color: #2f3e46;
    --white: #ffffff;
    --gray: #f5f5f5;
    --text-color: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    height: 50px;
    margin-right: 1rem;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    background-color: var(--primary-color);
    padding: 0 2rem;
}

nav li {
    padding: 1rem 0;
}

nav a {
    color: var(--white);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/spurlake2.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0;
}

figure {
    flex: 1;
    text-align: center;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--dark-color);
}

/* Chart Styles */
.chart-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
    height: 400px;
}

.data-note {
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Key Facts */
.key-facts {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.key-facts ul {
    margin-left: 1.5rem;
}

.key-facts li {
    margin-bottom: 0.5rem;
}

/* Cause Cards */
.cause-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cause-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.cause-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.cause-card h3 {
    margin-bottom: 0.8rem;
}

.cause-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.unlock-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.unlock-btn:hover {
    background-color: #c07a35;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
}

#passwordForm {
    margin: 1.5rem 0;
}

#password {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.error-message {
    color: #d9534f;
    display: none;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light-color);
}

.footer-section p {
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        height: auto;
        padding: 4rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .image-container {
        flex-direction: column;
    }
    
    .cause-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
}
