/* /// VARIABLES & GLOBAL STYLES /// */
:root {
    --primary-color: #007bff; /* A nice, trustworthy blue */
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --white-color: #ffffff;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-header);
    color: var(--dark-color);
    line-height: 1.2;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

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

/* /// HEADER & NAVIGATION /// */
#main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* /// HERO SECTION /// */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url(https://via.placeholder.com/1920x1080/cccccc/FFFFFF?text=Clean+Water+Background) no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

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

.cta-button {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* /// BLOG SECTION /// */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card a {
    display: block;
    color: var(--text-color);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 700;
    color: var(--primary-color);
}

/* /// MISSION SECTION /// */
.mission-section {
    background-color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.mission-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* /// FOOTER /// */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links li {
    margin-left: 20px;
}

.footer-links a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* /// ANIMATIONS /// */
.fade-in {
    animation: fadeInAnimation 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInAnimation {
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* /// RESPONSIVE DESIGN /// */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplifies header for mobile, can add a hamburger menu later */
    .hero-content h1 { font-size: 2.5rem; }
    footer .container { flex-direction: column; text-align: center; }
    .footer-links { margin-top: 15px; }
    .footer-links li { margin: 0 10px; }
}