/* reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background:#f7f7f7; height: 100%; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* Navbar - fixed */
.header { position: relative; }
.navbar {
  position: fixed;   /* keeps navbar always visible */
  top: 0;
  left: 0;
  width: 100%;
  padding: 02px 0;
  z-index: 1000;     /* ensure it stays above content */
  transition: background-color 0.3s, box-shadow 0.3s;
  background: transprent;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: bold; color: #222; text-decoration: none; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 18px; }
.nav-links a { color: #222; text-decoration: none; padding: 8px 12px; transition: color 0.3s; }
.nav-links a:hover { color: #ff6f00;}
.btn-donate { background-color: #ff6f00; color: #fff; padding: 8px 15px; border-radius: 4px; }
.btn-donate:hover { opacity: 0.95; }

/* Add top padding so content isn’t hidden behind fixed navbar */
body { display: flex; flex-direction: column; padding-top: 70px; }

/* Hero */
.hero { position: relative; min-height: 60vh; background: url('../images/hero-bg.jpg') center center/cover no-repeat; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.35); }
.hero-content { position: relative; color: #fff; text-align: left; width: 100%; padding: 60px 0; }
.hero-content h1 { font-size: 2.2em; margin-bottom: 12px; }
.hero-content p { font-size: 1.05em; margin-bottom: 18px; max-width: 700px; }
.btn-primary { background-color: #ff6f00; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 4px; display: inline-block; }

/* Sections */
.section { padding: 60px 0; background: #fff; margin-bottom: 18px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.03); flex: 1; }
.section h2 { text-align: center; margin-bottom: 30px; font-size: 1.8em; color: #222; }

/* Cards */
.cause-cards { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.06); width: 300px; }
.card img { width: 100%; height: 180px; object-fit: cover; display:block; }
.card-body { padding: 16px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.15em; }
.card-body p { font-size: 0.95em; color: #555; }

/* Gallery */
.project-gallery { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.project-item { flex: 1 1 30%; overflow: hidden; min-width: 220px; max-width: 360px; }
.project-item img { width: 100%; height: 190px; object-fit: cover; }

/* Team */
.team-members { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.member { text-align: center; width: 220px; background:#fff; padding:14px; border-radius:8px; }
.member img { width: 130px; height:130px; border-radius:50%; object-fit:cover; margin-bottom:10px; }

/* Contact form */
.contact form { max-width: 700px; margin: auto; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 12px;
  border-radius:6px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.footer h4 { font-size: 1.1rem; margin-bottom: 10px; color: #ffdd57; }
.footer p, .footer a { font-size: 0.95rem; color: #ddd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 0.85rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 5px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-content { padding: 40px 0; text-align: center; }
  .hero-content h1 { font-size: 1.6em; }
  .project-item img, .card img { height: 160px; }
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-info { font-size: 1.1rem; }
.contact-form form { display: flex; flex-direction: column; }
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.contact-form button {
  background: #2d89ef;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.map-section { margin-top: 2rem; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #222;
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2000;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 12px 0;
  }
  .nav-links li { margin: 10px 0; text-align: center; }
  .nav-links.show { display: flex; }
}

/* ---- New Sections Styling ---- */
.about-us .about-text { text-align: center; max-width: 800px; margin: 0 auto; }
.about-us .about-image img { display:block; max-width: 400px; margin: 20px auto; border-radius: 10px; }
.mission-vision .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mission-vision .mission, .mission-vision .vision { background:#fafafa; padding: 20px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.president-message .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.president-message img { width: 80%; max-width: 320px; border-radius: 10px; display:block; margin:auto; }
.video-banner { text-align: center; }
.video-banner video { border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.donation-box { text-align: center; background:#fff6ef; border: 2px solid #ff6f00; border-radius: 8px; padding: 40px 20px; }
.donation-box p { max-width: 700px; margin: 0 auto 20px; }
@media (max-width: 768px) {
  .mission-vision .container, .president-message .container { grid-template-columns: 1fr; text-align:center; }
  .president-message img { max-width: 250px; }
  .about-us .about-image img { max-width: 300px; }
}


/* Collaborators Section */
.collaborators {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.collaborators h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

.collaborators-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.collaborator img {
  max-width: 180px;
  height: auto;
  filter: grayscale(30%);
  transition: transform 0.3s, filter 0.3s;
}

.collaborator img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}
