/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; background: #f0fdf4; color: #222; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; background: #064e3b; padding: 1rem 2rem; color: white; }
.navbar .logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { color: white; text-decoration: none; }
.btn-primary { background: #10b981; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }

/* Banner */
.banner {
  position: relative;
  text-align: center;
  padding: 3rem 1rem;
  background: #d1fae5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.banner-content {
  max-width: 500px;
  z-index: 2;
}

.banner h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.banner-img {
  flex: 1;
  max-width: 200px;
}

.banner-img img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
  }
  .banner-img {
    max-width: 150px;
  }
}


/* Main Container */
.container { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1rem; padding: 2rem; }

/* Sidebar */
.sidebar { background: #ecfdf5; padding: 1rem; border-radius: 8px; }
.category-list button { display: block; width: 100%; margin: 0.3rem 0; padding: 0.5rem; border: 1px solid #10b981; border-radius: 5px; background: white; cursor: pointer; }
.category-list .active { background: #10b981; color: white; }

/* Cards */
.cards-section { padding: 1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { background: white; border-radius: 8px; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: center; }
.card img { max-width: 100%; height: 150px; object-fit: cover; border-radius: 5px; }
.card h4 { margin: 0.5rem 0; cursor: pointer; }
.card button { margin-top: 0.5rem; }

/* Cart */
.cart { background: #ecfdf5; padding: 1rem; border-radius: 8px; }
.cart ul { list-style: none; margin-top: 0.5rem; }
.cart li { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }

/* About */
.about { display: flex; padding: 2rem; gap: 2rem; align-items: center; }
.about img { max-width: 300px; border-radius: 8px; }

/* Impact */
.impact { text-align: center; padding: 2rem; background: #d1fae5; }
.impact-stats { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.impact-card { background: white; padding: 1rem 2rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Donate */
.donate { text-align: center; padding: 2rem; background: #065f46; color: white; }
.donate form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 400px; margin: auto; }
.donate input { padding: 0.5rem; border-radius: 5px; border: none; }
.donate button { background: #10b981; }

/* Footer */
footer { text-align: center; padding: 1rem; background: #064e3b; color: white; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; }
.modal.hidden { display: none; }
.modal-content { background: white; padding: 2rem; border-radius: 8px; max-width: 500px; width: 90%; }
.modal-close { float: right; cursor: pointer; font-size: 1.5rem; }

/* Spinner */
.spinner { border: 5px solid #eee; border-top: 5px solid #10b981; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; }
  .impact-stats { flex-direction: column; }
}