* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  overflow-x: hidden;
}



.hero {
  position: relative;
  padding: 100px 0px 80px;
  /* top, sides, bottom padding */
  color: #fff;
  text-align: center;
  height: 500px;
  /* keep your fixed height */
  display: flex;
  justify-content: left;
  align-items: center;
  overflow: hidden;
  /* ensures any image overflow is hidden */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background:
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('/image/charity_banner.webp') center/cover no-repeat;
  z-index: -1;
  background-position: center top;
  filter: grayscale(100%);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  /* padding-top: 180px; */
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-buttons a.hero-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(to right, #f7941d, #E0663C);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hero-buttons a.hero-btn i {
  margin-right: 6px;
}

.hero-buttons a.hero-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #d35400, #ffcc80);
  opacity: 1;
}


.microtext {
  font-size: 0.85rem;
  color: #f0f0f0;
  margin-top: 10px;
}


@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
    height: auto;
    /* allow dynamic height */
  }

  .hero h1 {
    font-size: 24px;
    padding-top: 100px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons button {
    width: 100%;
    max-width: 280px;
    font-size: 15px;
    padding: 12px 20px;
  }

  .microtext {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .hero-buttons button {
    width: 85%;
    /* smaller than full width */
    max-width: 300px;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 22px;
    padding-top: 100px;
  }

  .hero p {
    font-size: 15px;
    margin: 10px 0;
  }

  .microtext {
    font-size: 0.75rem;
  }
}


@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
    padding-top: 80px;
  }

  .hero-buttons button {
    max-width: 60%;
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero::before {
    background-position: center center;
  }
}



/* Our Services Section - Improved */
.our-services {
  background: #e9ecef;
  padding: 20px;
  position: relative;
}

.services-header {
  padding-left: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #0e4037;
  position: relative;
  padding-left: 15px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: #E0663C;
  border-radius: 3px;
}

/* Swiper Container */
.swiper-container {
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 0 50px;
}

.swiper {
  padding: 20px 0 50px;
}

.swiper-slide {
  background: #fdfcf6;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: auto;
  display: flex;
  flex-direction: column;
}

.swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
  flex-grow: 1;
}

/* Badge Colors */
.badge.designer {
  background: #FFE082;
  color: #6D4C41;
}

.badge.environment {
  background: #A8E6CF;
  color: #2E7D32;
}

.badge.disaster {
  background: #FF8A80;
  color: #C62828;
}

.badge.volunteering {
  background: #FFD180;
  color: #E65100;
}

.badge.education {
  background: #82B1FF;
  color: #0D47A1;
}

.badge.rural {
  background: #D1C4E9;
  color: #512DA8;
}

/* Swiper Navigation */

/*option1 */

 .swiper-button-next,
 .swiper-button-prev {
   color: #0e4037;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   transition: all 0.3s;
   transform: translateY(-50%);
   top: 55%;
   margin-top: 0;
   z-index: 10;
   font-size: 25px;
   font-weight: 900;
 }

 .swiper-button-next {
   right: 10px;
   margin-right: 30px;
 }

 .swiper-button-prev {
   left: 10px;
   margin-left: 30px;
 }

 .swiper-button-next:hover,
 .swiper-button-prev:hover {
   background: #fff;
   transform: translateY(-50%) scale(1.1);
 }

 .swiper-button-next::after,
 .swiper-button-prev::after {
   font-size: 18px;
   font-weight: bold;
 }

/*option 2
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background-color: #f96302;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 60%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.swiper-button-next {
  right: 10px;
  margin-right: 30px;
}

.swiper-button-prev {
  left: 10px;
  margin-left: 30px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #ffae5f;
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}*/

/* pegination bullet*/
.swiper-pagination-bullet {
  background: #adb5bd;
  opacity: 1;
  width: 12px;
  height: 12px;
  overflow: hidden;
}

.swiper-pagination-bullet-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #0e4037;
  transform: scaleX(0);
  transform-origin: left center;
  animation: autoplay-loading 3s linear forwards;
}

.swiper-container:hover .swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}


@keyframes autoplay-loading {
  100% {
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }

  .swiper {
    padding: 20px 10px 50px;
  }

  .swiper :where(.swiper-button-next, .swiper-button-prev) {
    display: none;
  }
}

/*How it work section */
/* Button */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
}

.tab-btn.active {
  color: #f96302;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f96302;
  border-radius: 2px;
}


/* How it work card */

.HowItWorks {
  background: #f8f9fa;
  padding: 20px;
}

.HowItWorks-header {
  padding-left: 20px;
}

.content-grid {
  margin: 30px auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.info-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;

}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 18px;
  color: #f57c00;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 14px;
  color: #555;
}

.hidden {
  display: none;
}

/* priority causes section */
.Priority-Causes {
  background: #e9ecef;
  padding: 20px;
}

.Priority-Causes-header {
  padding-left: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  overflow-x: hidden;
}

/* Each card */
.cause-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

/* 🟡 Card Hover Animation */
.cause-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image container */
.cause-image {
  height: 200px;
  width: 100%;
  /* Full width of card */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.cause-image img {
  width: 100%;
  /* Fill container width */
  height: 100%;
  /* Fill container height */
  object-fit: cover;
  /* Changed from 'contain' to 'cover' to remove space */
  object-position: center;
  /* Center the image */
  display: block;
  margin: 0;
  padding: 0;
}

.cause-title {
  padding: 5px;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  margin: 0;
  /* Remove any default margins */
}

/* Card body */
.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Raised and backers info */
.fund-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.raised,
.backers {
  display: flex;
  align-items: center;
}

.raised strong {
  margin-right: 3px;
}

.raised span {
  margin-left: 3px;
  margin-right: 10px;
}

.backers .icon {
  margin-right: 3px;
  margin-left: 15px;
  font-size: 16px;
  color: #444;
}

.backers strong {
  margin-left: 3px;
  margin-right: 3px;
}

.backers span {
  margin-left: 3px;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #fb8c00, #e65100);
  border-radius: 4px 0 0 4px;
  transition: width 1s ease-in-out;
}

/* Actions: donate + read more */
.cause-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-donate {
  text-decoration: none;
  background-color: #f57c00;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-donate:hover {
  background-color: #e65100;
  transform: translateY(-2px) scale(1.05);
}


.read-more {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.read-more:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Responsive for Mobile Devices */
@media (max-width: 600px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .cause-card {
    width: 90%;
    max-width: none;
    min-width: auto;
  }
}


/* Our Impact Section */

.our-impact-title {
  padding-left: 20px;
}

.impact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f8f9fa;
  padding: 20px;
}

.our-impact-title {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}

/*impact cards */

.impact-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 50px;
}

.impact-card {
  background: #ffffff;
  border: 1px solid #1c3761;
  border-radius: 12px;
  padding: 20px 25px;
  text-align: center;
  width: 200px;
  box-shadow: 0 2px 10px rgba(255, 167, 38, 0.1);
  transition: transform 0.3s;
}

.impact-card:hover {
  border-color: #f9a825;
  transform: translateY(-5px);
}

.impact-card i {
  font-size: 28px;
  color: #f96302;
  margin-bottom: 10px;
}

.impact-card h4 {
  font-size: 22px;
  font-weight: bold;
  color: #1976d2;
  margin: 5px 0;
}

.impact-card p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

@media (max-width: 600px) {
  .impact-cards {
    flex-direction: column;
    gap: 20px;
  }

  .impact-card {
    width: 100%;
  }

  .our-impact-title {
    justify-content: center;
  }

  .section-title {
    text-align: center;
    padding-left: 0;
  }

  .section-title::before {
    display: none;
  }
}

/* Testimonials Section */

.testimonial-section {
  background-color: #e9ecef;
  padding: 20px;
}

.testimonial-header {
  padding-left: 20px;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 10px auto;
}

.testimonial-card {
  background: #fff8f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px 25px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #ffd8af;
  margin-bottom: 20px;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-card h3 {
  color: #283593;
  margin-bottom: 5px;
  font-size: 18px;
}

.designation {
  color: #777;
  font-size: 14px;
  margin-bottom: 15px;
}

.testimonial {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  position: relative;
  padding: 10px 5px;
}

.testimonial::before,
.testimonial::after {
  content: "“";
  font-size: 28px;
  color: #f9e7dc;
  position: absolute;
  font-weight: bold;
}

.testimonial::before {
  left: -10px;
  top: -10px;
}

.testimonial::after {
  content: "”";
  right: -10px;
  bottom: -10px;
}

/* Back to Top Button */
.back-to-top-container {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: none;
  align-items: center;
  flex-direction: column;
  z-index: 999;
}

/* Scroll bar background (track) */
.scroll-track {
  width: 4px;
  height: 60px;
  background-color: #ddd;
  /* light grey track */
  position: relative;
  overflow: hidden;
}

/* Fill bar that grows inside */
.scroll-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #f96302;
  /* yellow fill */
  height: 0%;
  transition: height 0.2s ease-out;
}

.back-to-top {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-weight: bold;
  color: #2b5c4b;
  cursor: pointer;
  margin-top: 10px;
}

html {
  scroll-behavior: smooth;
}
