/* styles.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Colors */
.text-green {
    color: #078507 !important;
}
.text-yellow {
    color: #ffc34e !important;
}
.btn-green {
    background-color: #078507;
    color: #fff;
}
.btn-green:hover {
    background-color: #056f04;
    color: #fff;
}
.btn-yellow {
    background-color: #ffc34e;
    color: #000;
}
.btn-yellow:hover {
    background-color: #e6b840;
    color: #000;
}
.btn-outline-green {
    border: 1px solid #078507;
    color: #078507;
}
.btn-outline-green:hover {
    background-color: #078507;
    color: #fff;
}

.navbar{ 
    
    background-color: white;
}

/* Navbar adjustments */
.navbar .nav-link {
    font-weight: 500;
    color: #333;
    
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #078507;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

/* Background Video Wrapper */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; /* allow clicks through */
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;   /* overscale */
  height: 200%;  /* overscale */
  transform: translate(-50%, -50%); /* perfectly center */
}


/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* darker */
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 90%;
  text-align: center;
}

.hero-content h1,
#typed-text {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* CTA buttons */
.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  border: 2px solid white;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  font-size: 0.95rem;
}

.cta-btn:hover {
  background: white;
  color: #078507;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-section {
    height: 520px; /* taller on mobile */
    padding-top: 50px;
  }

  .hero-video-wrapper iframe {
    width: 220%; /* zoom more for mobile */
  }

  .hero-content h1,
  #typed-text {
    font-size: 1.3rem;
    line-height: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}



/* NGO Listing  */

.top-ngos-section {
  padding: 60px 20px;
  background-color: #f4f7f9;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #078507;
  margin: 0;
}

.carousel-nav .carousel-btn {
  background: transparent;
  border: 2px solid #078507;
  color: #078507;
  font-size: 1.2rem;
  padding: 6px 12px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.carousel-nav .carousel-btn:hover {
  background-color: #078507;
  color: white;
}

.ngo-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.ngo-carousel::-webkit-scrollbar {
  height: 6px;
}
.ngo-carousel::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.ngo-card {
  flex: 0 0 calc(25% - 15px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  min-width: 250px;
}

.ngo-card:hover {
  transform: translateY(-5px);
}

.ngo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ngo-info {
  padding: 15px;
}

.ngo-info h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 10px;
}

.ngo-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  min-height: 85px;
}

.view-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #078507;
  border: 1px solid #078507;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background-color: #078507;
  color: white;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ngo-card {
    flex: 0 0 calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .ngo-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  .ngo-card {
    flex: 0 0 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-nav {
    margin-top: 10px;
  }
}

.view-all-link {
  margin-right: 15px;
  font-size: 0.95rem;
  color: #078507;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #055b05;
}
.image-wrapper {
  position: relative;
}

.category-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background-color: rgba(7, 133, 7, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 500;
  z-index: 2;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.category-btn {
  background-color: #e5f3e5;
  color: #078507;
  border: 1px solid #078507;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: #078507;
  color: white;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .category-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1rem;
  }

  .category-btn {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 15px;
  }

  .carousel-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .view-all-link {
    font-size: 0.75rem;
  }

  .ngo-info h3 {
    font-size: 0.9rem;
  }

  .ngo-info p {
    font-size: 0.75rem;
    min-height: 60px;
  }

  .view-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .category-label {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .section-header {
    margin-bottom: 15px;
  }

  .category-buttons {
    gap: 6px;
  }

  .ngo-card img {
    height: 140px;
  }
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* dark overlay, adjust opacity as needed */
  z-index: 1;
  border-radius: inherit;
}

.image-wrapper img {
  position: relative;
  z-index: 0;
}

/* events */

    .events-section {
      max-width: 1200px;
      margin: 60px auto;
      padding: 0 20px;
    }

    .events-section h2 {
      font-size: 2rem;
      color: #304864;
      margin-bottom: 20px;
    }

    .filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 25px;
    }

    .filter-bar select,
    .filter-bar button {
      padding: 8px 14px;
      border: 1px solid #ccc;
      background: white;
      border-radius: 6px;
      cursor: pointer;
    }

    .filter-bar button.active {
      background: #ed945b;
      color: white;
      border: none;
    }

    .carousel-wrapper {
      position: relative;
      overflow: hidden;
    }

    .carousel {
      display: flex;
      transition: transform 0.4s ease-in-out;
    }

    .event-card {
      flex: 0 0 300px;
      background: #fff;
      border-radius: 12px;
      margin: 0 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.07);
      overflow: hidden;
      transition: transform 0.3s;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .card-image {
      overflow: hidden;
    }

    .card-image img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .event-card:hover {
      transform: translateY(-5px);
    }

    .event-card:hover .card-image img {
      transform: scale(1.08);
    }

    .event-info {
      padding: 16px;
    }

    .event-info h3 {
      margin: 10px 0;
      color: #304864;
      font-size: 1.2rem;
    }

    .event-info p {
      font-size: 0.95rem;
      color: #444;
    }

    .event-meta {
      font-size: 0.85rem;
      color: #777;
      display: flex;
      justify-content: space-between;
    }

    .event-footer {
      margin-top: 12px;
      font-size: 0.85rem;
      color: #666;
      display: flex;
      justify-content: space-between;
    }

    .details-btn {
      margin-top: 12px;
      background-color: #078507;
      color: #fff;
      border: none;
      padding: 8px 14px;
      font-size: 0.9rem;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .details-btn:hover {
      background-color: #055f05;
    }
    
    /* Remove description and emphasize title */
.events-section .event-info p {
  display: none; /* hide description text */
}

.events-section .event-info h3 {
  font-size: 1.4rem;   /* make title more prominent */
  font-weight: 700;
  color: #1e3d59;
  margin: 8px 0;
  text-transform: capitalize;
  line-height: 1.3;
}

/* Adjust event meta and footer for better balance */
.events-section .event-meta span,
.events-section .event-footer span {
  font-size: 0.85em;
  color: #555;
}

.events-section .event-info {
  padding: 12px 14px;
}

/* Make button smaller and more compact */
.events-section .details-btn {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 5px;
}


    .arrow {
      /* position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.6);
      color: white;
      border: none;
      padding: 10px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 10; */
    }

    .arrow.left {
      left: 0;
    }

    .arrow.right {
      right: 0;
    }

    @media screen and (max-width: 768px) {
      .carousel {
        flex-wrap: nowrap;
        overflow-x: scroll;
      }

      .event-card {
        margin: 0 5px;
      }

      .arrow {
        display: none;
      }
    }

    .card-image {
  position: relative;
}

.card-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* subtle black overlay */
  z-index: 1;
  pointer-events: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-image img {
  position: relative;
  z-index: 0;
}

/* Parallax NGO Registration Section */
.register-ngo-section {
  position: relative;
  background-image: url('../image/7f8210939b48ebc0b15631cd260931c4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  overflow: hidden;
}

.register-ngo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.register-ngo-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.register-ngo-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color:white;
}

.register-ngo-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color:white;
}

.register-btn {
  display: inline-block;
  background-color: #ffc34e;
  color: #222;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background-color: #ffb930;
  transform: translateY(-3px);
}

.btn-container {
  margin-top: 15px;
}

@media screen and (max-width: 768px) {
  .register-ngo-content h2 {
    font-size: 2rem;
  }

  .register-ngo-content p {
    font-size: 1rem;
  }

  .register-btn {
    padding: 12px 26px;
    font-size: 0.95rem;
  }
}


/* Post your event section */

.post-event-section {
  padding: 80px 0;
  background-color: #fff;
}

.post-event-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 20px;
}

.post-event-image {
  flex: 1;
  max-width: 500px;
  text-align: center;
}

.post-event-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  /* clip-path: polygon(25% 0%, 75% 0%, 100% 35%, 90% 75%, 60% 100%, 40% 100%, 0% 65%, 0% 30%); */
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.post-event-image img:hover {
  transform: scale(1.03);
}

.post-event-content {
  flex: 1;
  max-width: 600px;
}

.post-event-content h2 {
  font-size: 2.2rem;
  color: #304864;
  margin-bottom: 20px;
}

.post-event-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #444;
}

.post-event-btn {
  display: inline-block;
  background-color: #078507;
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.post-event-btn:hover {
  background-color: #055f05;
}
@media screen and (max-width: 768px) {
  .post-event-container {
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
  }

  .post-event-image,
  .post-event-content {
    max-width: 100%;
  }

  .post-event-content h2 {
    font-size: 1.8rem;
  }

  .post-event-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .post-event-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}


/* Support an Initiative */

.donation-section {
  position: relative;
  background-color: #078507;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
  z-index: 1;
}

.donation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.donation-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
}

.donation-text {
  flex: 1;
  max-width: 600px;
}

.donation-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #fff;
}

.donation-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #fff;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form input,
.search-form select,
.search-form button {
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
}

.search-form input {
  flex: 2;
  min-width: 180px;
}

.search-form select {
  flex: 1;
  min-width: 120px;
}

.search-form button {
  background: #fff;
  color: #078507;
  cursor: pointer;
  border: none;
}

.search-form button i {
  font-size: 1rem;
}

.donation-image {
  flex: 1;
  max-width: 500px;
  text-align: center;
  transform: translateY(60px) translateX(40px); /* Looks like it's coming from bottom right */
  transition: transform 0.4s ease;
}

.donation-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  transition: transform 0.3s ease;
  margin-bottom: -50px;
}

.donation-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donation-form select,
.donation-form button {
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
}

.donation-form select {
  flex: 1;
  min-width: 140px;
}

.donation-form button {
  background: #fff;
  color: #078507;
  cursor: pointer;
  border: none;
}

@media screen and (max-width: 768px) {
  .donation-container {
    flex-direction: column;
    text-align: center;
  }

  .donation-text h2 {
    font-size: 1.8rem;
  }

  .donation-text p {
    font-size: 1rem;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form input,
  .search-form select,
  .search-form button {
    width: 100%;
  }

  .donation-image {
    transform: translateY(20px) translateX(0);
  }
}


/*NGO registation page form style*/

/* Center the form and limit width */
#ngoRegisterForm {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Optional spacing on the container */
.container.my-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stylish submit button with loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


/*stats section*/

/* Stats Section */
.stats-section {
  background: #064d2e; /* deep green */
  color: #fff;
  padding: 40px 10px;
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap; /* keep one row on all screens */
}

.stat-box {
  text-align: center;
  min-width: 70px;
}

.stat-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-box p {
  font-size: 0.9rem;
  margin: 0;
  color: #f1f1f1;
}

/* Divider line */
.divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
  height: 40px;
}


/*chat box*/


