/* ==========================
   Global
========================== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #111;
  margin: 0;
  padding: 0;
}

/* ==========================
   Hero Section
========================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('/img/about.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-btn {
  background: #008000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #006400;
}

/* ==========================
   Campaign Section
========================== */
#campaign-section{
  margin-bottom: 20px;
}

.campaign-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #111;
}

/* Campaign grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

/* Campaign card */
.campaign-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Image above title */
.campaign-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.campaign-content {
  padding: 16px;
}

.campaign-title a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.campaign-title a:hover {
  color: #008000;
}

.campaign-desc {
  font-size: 0.95rem;
  color: #444;
  margin: 10px 0;
  line-height: 1.5;
}

/* Progress Bar */
.progress-section p {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #222;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 8px;
  background: #008000;
  width: 0;
  transition: width 0.4s ease;
}

.days-left {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

/* Button */
.donate-btn {
  display: inline-block;
  background: #008000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: 12px;
}

.donate-btn:hover {
  background: #006400;
}

.no-campaigns {
  text-align: center;
  color: #777;
  font-size: 1rem;
  margin-top: 20px;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* ==========================
   Navbar
========================== */
.navbar {
  background: #fff;
  border-bottom: 2px solid #008000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: #008000;
}

.navbar-logo img {
  width: 40px;
  height: 40px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
}

.navbar-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-links li a:hover,
.navbar-links li a.active {
  color: #008000;
}

.btn-login,
.btn-donate,
.btn-logout {
  background: #008000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-login:hover,
.btn-donate:hover,
.btn-logout:hover {
  background: #006400;
}

/* ==========================
   Footer
========================== */
.footer {
  background: #111;
  color: #fff;
  padding-top: 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.footer h4 {
  font-size: 1.2rem;
  color: #00cc00;
  margin-bottom: 10px;
}

.footer p,
.footer a {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer a:hover {
  color: #00cc00;
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social img {
  width: 22px;
  filter: brightness(0) invert(1);
  transition: 0.3s ease;
}

.footer-social img:hover {
  filter: invert(73%) sepia(45%) saturate(509%) hue-rotate(75deg) brightness(95%) contrast(90%);
}

.footer-bottom {
  background: #0a0a0a;
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #aaa;
}


/* ==========================
   Responsive Navbar (Mobile)
========================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu hidden by default */
.navbar-links {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .navbar-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 10px 0;
  }

  .navbar-links li {
    text-align: center;
    margin: 10px 0;
  }

  .navbar-links.show {
    display: flex;
  }

  .btn-login, .btn-donate {
    width: 80%;
    margin: 8px auto;
    text-align: center;
  }
}

/* Animation for menu toggle (optional aesthetic) */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================
   Hero Section Styling
========================== */
.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  background: url('/img/about.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 100%;
  padding: 0 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #00a859; /* Green accent */
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #f2f2f2;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary {
  background-color: #00a859;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #007d42;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #fff;
  color: #00a859;
}

/* Responsive hero text */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

.campaign-heading {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

/* ================================
   Campaign Cards Styling
================================ */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.campaign-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.campaign-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.campaign-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.campaign-title a {
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.campaign-title a:hover {
  color: #00a859; /* green accent */
}

.campaign-desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0.75rem 0 1rem;
  flex-grow: 1;
}

.campaign-stats .amount {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  background: #e9e9e9;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  background: #00a859;
  height: 100%;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.days-left {
  font-size: 0.8rem;
  color: #888;
}

.btn-donate {
  display: inline-block;
  margin-top: 1rem;
  background-color: #00a859;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-donate:hover {
  background-color: #007d42;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .campaign-img img {
    height: 180px;
  }
  .campaign-title a {
    font-size: 1.1rem;
  }
}

/* ======================================
   DonateNG-style Hover Animations
====================================== */

.campaign-img {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #00a859;
}

.campaign-img img {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.campaign-card:hover .campaign-img img {
  transform: scale(1.08);
  opacity: 0.95;
}

.btn-donate {
  position: relative;
  overflow: hidden;
  background-color: #00a859;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-donate:hover {
  background-color: #007d42;
  box-shadow: 0 0 12px rgba(0, 168, 89, 0.5);
}

/* Subtle hover lift effect */
.campaign-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Hero Section Polish */
.hero {
  background: linear-gradient(90deg, #000 0%, #00a859 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 0 0 40px 40px;
  margin-bottom: 3rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero p {
  max-width: 700px;
  margin: 1rem auto 0;
  color: #e2e2e2;
}


/* ======================================
   DonateNG-style Image Hover Overlay
====================================== */

.campaign-img {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #00a859;
}

.campaign-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.campaign-card:hover .campaign-img img {
  transform: scale(1.1);
}

/* Overlay container */
.campaign-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 168, 89, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover state */
.campaign-card:hover .campaign-overlay {
  opacity: 1;
}

/* Overlay button */
.overlay-btn {
  background: #fff;
  color: #00a859;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.overlay-btn:hover {
  background: #00a859;
  color: #fff;
  transform: scale(1.05);
}

/* ======================================
   Donate Now Button Styling
====================================== */

.donate-btn {
  display: inline-block;
  background: #00a859;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.3);
  text-decoration: none;
}

.donate-btn:hover {
  background: #008f4e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 168, 89, 0.4);
}


/* === Campaign Detail Page === */
.campaign-detail {
    background-color: #f9faf9;
    padding: 3rem 0;
}

.campaign-detail .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: auto;
    padding: 0 1.5rem;
}

.campaign-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.campaign-title-detail {
    font-size: 2rem;
    font-weight: 700;
    color: #0d3b1f;
    margin-bottom: 1rem;
}

.campaign-description {
    color: #333;
    line-height: 1.7;
    font-size: 1.05rem;
}

.progress-section {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 20px;
    height: 10px;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 10px;
    border-radius: 20px;
    background-color: #00b894;
    transition: width 0.4s ease-in-out;
}

.raised-text {
    font-size: 1rem;
    color: #222;
}

.days-left {
    font-size: 0.9rem;
    color: #555;
}

.donation-box {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.donation-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d3b1f;
    margin-bottom: 1rem;
}

.donate-input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.donate-btn {
    width: 100%;
    background-color: #00b894;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.donate-btn:hover {
    background-color: #0d3b1f;
}

.direct-btn {
    width: 100%;
    background-color: #0d3b1f;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.direct-btn:hover {
    background-color: #00b894;
}

.or-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #777;
    font-weight: 600;
    letter-spacing: 1px;
}

.fixed_whatsapp{
  position: fixed;
  right: 10px;
  bottom: 15px;
  z-index: 19;
  display:flex;
  justify-content: end;
}

.logo1{
  width: 70px;
  height: 70px;
}


