/* css/styles.css */

header { margin-bottom: 0 !important; }
nav { margin-top: 0 !important; }

* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}
header {
    background: #1a5d38;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 0;        /* removes bottom space */
    padding-bottom: 3rem;
}
header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
nav {
    background: #0f3d27;
    position: sticky;
    margin-top: 0;  !important;         /* removes any top margin */
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}
nav a {
    color: white;
    padding: 1rem 1.9rem;
    display: block;
    text-decoration: none;
}
nav a:hover { background: #1a5d38; }
main { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }

/* the whole section on the main body of the page*/
section {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0rem;
}
h2 { color: #1a5d38; margin-bottom: 1rem; font-size: 1.9rem; }
ul, ol { padding-left: 1.5rem; margin: 1rem 0; }
li { margin: 0.6rem 0; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
footer {
    background: #0f3d27;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}
.menu-toggle { display: none; padding: 1rem; background: #0f3d27; color: white; text-align: center; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 768px) {
    nav ul { flex-direction: column; display: none; }
    nav ul.show { display: flex; }
    .menu-toggle { display: block; }
}