@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.7;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #2c6e49;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: #2c6e49;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #f7cc5e;
}

.page-subtitle {
  font-size: 1.15rem;
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

header {
  background-color: #2c6e49;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.75rem;
}

nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f7cc5e;
  color: #2c6e49;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.hero {
  background: linear-gradient(rgba(44, 110, 73, 0.8), rgba(44, 110, 73, 0.9)), #2c6e49;
  /* background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover; */
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  color: white;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  color: #f0f0f0;
}

.btn {
  padding: 0.85rem 2.25rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: #f7cc5e;
  color: #2c6e49;
}
.btn-primary:hover {
  background-color: #e6b84f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: transparent;
  color: #2c6e49;
  border: 2px solid #2c6e49;
}
.btn-secondary:hover {
  background-color: #2c6e49;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44, 110, 73, 0.2);
}

.btn-submit {
  background-color: #2c6e49;
  color: white;
}
.btn-submit:hover {
  background-color: #1e4f36;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

section {
  padding: 3rem 0;
}

.about-page, .work-page, .donate-page, .get-involved-page, .contact-page {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.about-page h1, .work-page h1, .donate-page h1, .get-involved-page h1, .contact-page h1 {
    text-align: center;
}

.section-bg-light {
  background-color: #f5f9f7;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.mission-home {
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: #f5f9f7;
  border-radius: 10px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.mission-home h2 { text-align: center; }
.mission-home p {
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.projects {
  padding-bottom: 3rem;
}
.projects h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.see-more-link {
  text-align: center;
  margin-top: 2.5rem;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card h3 {
  padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  font-size: 1.3rem;
}
.card p {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.testimonials {
  background-color: #e9f5ee;
  padding: 3.5rem 1.5rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 3rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}
blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: #444;
  border-left: 6px solid #f7cc5e;
  padding-left: 1.75rem;
  margin: 0 auto;
}
blockquote footer {
  margin-top: 1rem;
  text-align: right;
  font-weight: 600;
  color: #2c6e49;
  font-style: normal;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.about-intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
  justify-content: space-between;
}
.mission-vision-block {
  flex: 1 1 calc(50% - 1rem);
  min-width: 280px;
  background-color: #f5f9f7;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.mission-vision-block h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.values {
  margin-top: 3rem;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.values h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.values ul {
  list-style-type: none;
  padding-left: 0;
}
.values li {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
}
.values li::before {
  content: "✔";
  color: #2c6e49;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.work-card {
  background: #ffffff;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(44, 110, 73, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(44, 110, 73, 0.12);
}
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.work-card h2 {
  margin: 1.5rem 1.5rem 0.75rem 1.5rem;
  font-size: 1.4rem;
}
.work-card p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.google-form-container {
  margin-top: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.google-form-container iframe {
  display: block;
}

.donation-info {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background-color: #e9f5ee;
  border-radius: 8px;
}
.donation-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.donation-info p {
  font-size: 1.05rem;
}

.donation-form-container {
  display: flex;
  justify-content: center;
}
.donation-form {
  max-width: 450px;
  width: 100%;
  padding: 2.5rem;
  background-color: #f5f9f7;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}
.donation-form label {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
}
.donation-form input[type="number"] {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.donation-form #donate-btn {
  width: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  margin-top: 1rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-info-block {
  background-color: #f5f9f7;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-info-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.contact-info-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.contact-info-block p a {
    word-break: break-all;
}

.google-form-container h2{
  text-align: center;
}

.map-section {
  margin-bottom: 3rem;
  text-align: center;
}

.map-section h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.map-embed-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

form {
  margin-top: 1.5rem;
}
form div {
  margin-bottom: 1.25rem;
}
form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c6e49;
  font-size: 1rem;
}
form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus {
  outline: none;
  border-color: #f7cc5e;
  box-shadow: 0 0 0 3px rgba(247, 204, 94, 0.3);
}
form textarea {
  resize: vertical;
  min-height: 130px;
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
}

#chatbot-toggle-btn {
  background-color: #2c6e49;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#chatbot-toggle-btn:hover {
  background-color: #1e4f36;
  transform: scale(1.1);
}

#chatbot-window {
  width: 350px;
  max-width: 90vw;
  height: 450px;
  max-height: 70vh;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 80px;
  right: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

#chatbot-window:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#chatbot-header {
  background-color: #2c6e49;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

#chatbot-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
}

#chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f4f7f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.user {
  background-color: #f7cc5e;
  color: #2c6e49;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
  background-color: #e0e0e0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.chatbot-message.bot a {
    color: #2c6e49;
    font-weight: 500;
    text-decoration: underline;
}
.chatbot-message.bot a:hover {
    color: #1e4f36;
}


#chatbot-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

#chatbot-input {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 0.95rem;
  margin-right: 10px;
}
#chatbot-input:focus {
  outline: none;
  border-color: #f7cc5e;
  box-shadow: 0 0 0 2px rgba(247, 204, 94, 0.3);
}

#chatbot-send-btn {
  background-color: #2c6e49;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#chatbot-send-btn:hover {
  background-color: #1e4f36;
}

.hidden {
  display: none !important;
  opacity: 0 !important;
  transform: translateY(20px) scale(0.95) !important;
  pointer-events: none !important;
}

#chatbot-toggle-btn ~ #chatbot-window {
  
}

.team-page {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.team-page h1 {
  text-align: center;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.team-member-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 4px solid #f7cc5e;
  display: block;
}

.team-member-info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: #2c6e49;
}

.member-role {
  font-size: 1.05rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.member-bio {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 768px) {
  .team-member-photo {
    width: 120px;
    height: 120px;
  }
  .team-member-info h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .team-members {
    grid-template-columns: 1fr;
  }
  .team-member-card {
    padding: 1.5rem;
  }
   .team-member-photo {
    width: 100px;
    height: 100px;
  }
}

footer {
  background-color: #2c6e49;
  color: #e0e0e0;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
  margin-top: auto;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-container p {
  color: #e0e0e0;
  margin-bottom: 0;
}
.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-grow: 1;
  }

  .footer-social a {
    text-decoration: none;
    line-height: 0;
  }

  .socialIcons {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .footer-social a:hover .socialIcons {
    opacity: 1;
    transform: scale(1.1);
  }

  .invert {
    filter: invert(1);
  }
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 4rem 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.15rem; }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2c6e49;
    flex-direction: column;
    width: 220px;
    display: none;
    border-bottom-left-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    text-align: left;
  }

  .nav-toggle {
    display: block;
  }

  .mission-vision {
    flex-direction: column;
  }
  .mission-vision-block {
    flex-basis: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.25rem;
  }
  .footer-container p { text-align: center; }
}

@media (max-width: 480px) {
  .container { width: 95%; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
  .btn { padding: 0.75rem 1.8rem; font-size: 0.95rem; }

  .project-cards, .work-cards {
    grid-template-columns: 1fr;
  }
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
  .donation-form {
    padding: 2rem 1.5rem;
  }
  .contact-form-section {
    padding: 2rem 1.5rem;
  }
}