:root {
    --primary-green: #2d6a4f;
    --light-green: #d8f3dc;
    --dark-green: #1b4332;
    --bg-color: #f4f1de;
    --text-color: #333;
}

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

/* Navigation & Header */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark-green);
    color: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.donate-btn, .cta-btn, button {
    background-color: #e07a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.donate-btn:hover, button:hover, .cta-btn:hover {
    background-color: #d0664a;
}

.hero {
    background-color: var(--primary-green);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 { margin-top: 0; font-size: 2.5rem;}
.cta-btn { display: inline-block; margin-top: 20px; text-decoration: none; font-size: 1.1rem; }

/* Main Content & Cards */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

h2 { color: var(--primary-green); border-bottom: 2px solid var(--light-green); padding-bottom: 10px; }

/* Forms */
form { display: flex; flex-direction: column; }
label { margin-top: 15px; font-weight: bold; font-size: 0.9rem;}
input, textarea { padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit;}
button[type="submit"] { margin-top: 20px; background-color: var(--primary-green); }
button[type="submit"]:hover { background-color: var(--dark-green); }

.success-msg { background: var(--light-green); color: var(--dark-green); padding: 10px; border-radius: 5px; margin-top: 15px; text-align: center;}
.hidden { display: none !important; }

/* Project Grid */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px;}
.project-item { border: 1px solid #ddd; padding: 15px; border-radius: 5px; background: #fafafa; display: flex; flex-direction: column; justify-content: space-between;}
.vote-btn { background: var(--primary-green); width: 100%; margin-top: 10px; }

/* Chatbot */
#chat-toggle { position: fixed; bottom: 20px; right: 20px; border-radius: 50px; padding: 15px 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000;}
#chat-container { position: fixed; bottom: 80px; right: 20px; width: 300px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; z-index: 1000;}
.chat-header { background: var(--primary-green); color: white; padding: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: bold;}
.chat-header button { background: none; padding: 0; color: white; }
.chat-window { height: 250px; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #f9f9f9;}
.bot-msg { background: var(--light-green); align-self: flex-start; padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; max-width: 80%;}
.user-msg { background: #e0e0e0; align-self: flex-end; padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; max-width: 80%;}
.chat-input-area { display: flex; border-top: 1px solid #ddd; }
.chat-input-area input { flex: 1; border: none; padding: 10px; border-radius: 0; margin: 0;}
.chat-input-area button { border-radius: 0; margin: 0; }