body{
  font-family: "Montserrat", sans-serif;
}
.donation_banner {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

@media (min-width: 990px) {
    .donation_banner {
     margin-top:75px;
    }
}

@media (max-width: 989px) {
    .donation_banner {
     margin-top:0px;
    }
    #carouselExampleDark
    {
      margin-top: 55px;
    }
}

/* Overlay image base style */
.banner-overlay {
  position: absolute;
  z-index: 2;
  max-width: 35%;
  height: auto;
  pointer-events: none;
}

/* Positioning for each image */
.banner-up {
  top: 0px;
  left: 0px;
}

.banner-low {
  bottom: 0px;
  right: 0px;
}

/* .banner-charity {
  height: 80px;
  width: auto;
  top: 20px;
  right: 20px;
} */

/* Optional: style caption text */
.carousel-caption h5 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-caption h5 {
  opacity: 0;
}

.carousel-caption h5.animate {
  animation: slideUp 0.8s ease-out forwards;
}


/* Yellow subtitle styling */
.carousel-caption .subtitle {
  color: #f9a825;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-out;
}

/* Animate main heading */
.carousel-caption h5 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.carousel-caption h5.animate {
  animation: slideUp 0.8s ease-out forwards;
}

/* Slide up keyframe */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in subtitle */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Donate button */
.button-6 {
    width: 150px;
    height: 50px;
    font-size: 18px;
  align-items: center;
  background-color: #f9a825;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  /* box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0; */
  box-sizing: border-box;
  color: black;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: absolute;         /* added */
  bottom: 50px;               /* added */
  right: 50px;                /* added */
  z-index: 10;                /* added */
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  /* box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.1); */

}

.button-6:hover,
.button-6:focus {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  color: rgba(0, 0, 0, 0.65);
}

.button-6:hover {
  transform: translateY(-1px);
}

.button-6:active {
  background-color: #F0F0F1;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(0);
}

.carousel-caption .subtitle {
  font-family: "Edu NSW ACT Hand Pre", cursive;
  color: #f9a825;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.carousel-caption .subtitle::before,
.carousel-caption .subtitle::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: #f9a825;
  vertical-align: middle;
  margin: 0 12px;
}


:root {
    --brand:       #3FA8F4;
    --brand-light: #39B44A;
}



/* ------------- Layout & Hero Section ------------- */
.hero {
    padding-block: 3.5rem;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .hero .row {
    min-height: 520px;
    }
}

/* ------------- Text Side ------------- */
.hero-tag {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
    padding: .35rem 1.1rem;
    /* border-radius: 2rem; */
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;  
    font-weight: 700;
    line-height: 1.15;
    color: var(--brand);
}

.hero-copy {
    font-size: 20px;  
    width: 100%;
    color: #252525;
}

.cta-btn {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #3FA8F4;
    --bs-btn-hover-border-color: #3ff4dc;
    --bs-btn-font-weight: 600;
    padding: .75rem 2.2rem;
    letter-spacing: .5px;
    border-radius: .25rem;
}

/* ------------- Image & Ring Wrappers ------------- */

/* .hero-img {
    width: 300px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease-out 0.6s;
} */

.dot {
  position: absolute;
  background: var(--brand-light);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.9s ease-out;
  z-index: 3;
}

.dot.top-right {
  top: 15px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: var(--brand);
}

.dot.bottom-left {
  left: -20px;
  bottom: 10px;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at center, var(--brand-light) 0 40%, transparent 40% 100%);
  background-size: 8px 8px;
  background-repeat: repeat;
}

.show-dots .dot {
  opacity: 1;
  transform: translateX(0);
}


/* ------------- Animations ------------- */
.show-text {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* .show-image .hero-img-wrapper {
    transform: translateX(0);
    opacity: 1;
}

.show-image .hero-img-wrapper::before,
.show-image .hero-img-wrapper::after,
.show-image .hero-img,
.show-image .dot {
    opacity: 1;
    transform: scale(1);
} */

#hero-text {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
    /* margin-left: 20px */
}


/* ----------------------- wave --------------------------------- */

@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");


.wavy-section {
  position: relative;
  width: 100%;
  height: 40vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wavy-bg-layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #49adff;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  transition: 0.5s;
  z-index: 0;
}

.wavy-circle {
  position: absolute;
  width: 325vh;
  height: 200vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
}

.wave1 {
  border-radius: 45%;
  /* background: rgba(20, 20, 20, 1); */
  background: #2efd49bb;
  animation: wave-rotate 5s linear infinite;
}

.wave2 {
  border-radius: 40%;
  /* background: rgba(20, 20, 20, 0.5); */
  background:#3fa9f4bb;
  animation: wave-rotate 10s linear infinite;
}

.wave3 {
  border-radius: 42.5%;
  background: rgb(48, 48, 48);
  animation: wave-rotate 15s linear infinite;
}

.wavy-text-content {
  position: relative;
  z-index: 1;
  font-size: 22px;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 15% 0 15%;
  text-align: center;
}

@keyframes wave-rotate {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}

.wave_head{
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 10px;
}

.wave_p{
  font-size: 18px;
}
/* 
.why_donation{
  background-image: url(https://www.b2of.com/img/subs-bg.jpg);
  background-size: cover;
  background-position: center;
}
.why_donation p {
  font-size: 1.2rem;
  text-align: center;
  margin:0 50px 50px 50px;
  padding: 20px;
} */

.donate-impact-section {
  padding: 20px 0;
}

.donate-impact-left {
  position: relative;
}

.donate-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; /* Adjust as needed */
  z-index: 1;
  animation: donateFloat 3s ease-in-out infinite;
  opacity: 0.5;
}

.donate-main-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Float animation */
@keyframes donateFloat {
  0%   { transform: translate(-50%, -48%); }
  50%  { transform: translate(-50%, -52%); }
  100% { transform: translate(-50%, -48%); }
}
/* .donate-impact-section{
  background-image: url(img/login-bg-img.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  margin: 20px 0;
}  */
.donate-impact-text {
  padding: 20px;
  padding-left: 70px;
  text-align: center;
  /* background-image: url(img/round-2.png); */
  background-size: cover;
  background-position: center;

}
.donate-impact-text h2 {
  font-size: 26px !important;
  /* font-weight: 700; */
}

.donate-impact-text h2, .donate-impact-text p{
  text-align: left;
  font-size: 18px;
}

.donate-impact-text p {
  margin-top: 10px;
  /* text-align: center !important; */
}
.program-item-text{ 
  text-align: center !important;
  color: rgb(31, 31, 31);
}
.bi-heart-fill{
  margin-left: 10px;
}

.hero-img-wrapper .img-fluid{
  max-width: 80% !important;
}

.b2of-hero-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: auto;
  padding: 2rem 0;
  opacity: 0;
  transform: translateX(100px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  overflow: hidden;
}

.b2of-hero-img-wrapper.active {
  opacity: 1;
  transform: translateX(0);
}

.b2of-front-img {
  position: relative;
  max-width: 80% !important;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease-in-out 0.3s;
}

.b2of-hero-img-wrapper.active .b2of-front-img {
  opacity: 1;
}

.b2of-bg-circle {
  position: absolute;
  width: 100%;
  max-width: 85%;
  z-index: 1;
  opacity: 0;
  animation: b2of-rotate 60s linear infinite;
  transition: opacity 0.8s ease-in-out 1s;
}

.b2of-hero-img-wrapper.active .b2of-bg-circle {
  opacity: 1;
}

@keyframes b2of-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.donation-cta{
  background-image: url(https://www.b2of.com/img/subs-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  margin: 20px 0;

}
.donation-cta-buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

}

.donate-impact-top .subtitle {
  color: #f9a825;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-out;
  margin-left: 20px;
}

/* subtitle styling */
.donate-subtitle {
  font-family: "Edu NSW ACT Hand Pre", cursive;
  color: #f9a825;                 /* the yellow you’d used */
  font-size: 30px !important;
  font-weight: 600;
  margin: 0 0 12px 0;             /* flush left – no extra indent */
  text-align: left;               /* ensure left alignment */
  animation: fadeIn 1s ease-out;
}

/* optional: remove duplicated rule-sets you no longer need */

.donate-impact-top .subtitle::before,
.donate-impact-top .subtitle::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: #f9a825;
  vertical-align: middle;
  margin: 0 12px;
}

/* .donate-impact-top .subtitle::before, .donate-impact-top .subtitle::after{
  display: none;
} */

.impact-title{
  color: #3FA8F4;
}

.donation-cta-buttons{
  margin-top: 50px;
}



/* CSS */
.button-5 {
  align-items: center;
  background-clip: padding-box;
  background: linear-gradient(to right, #3FA8F4, #39B44A);
  border: 1px solid transparent;
  border-radius: 50px;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
}

.button-5:hover,
.button-5:focus {
  background: linear-gradient(to right, #39B44A, #3FA8F4);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button-5:hover {
  transform: translateY(-1px);
}

.button-5:active {
  background-color: #39B44A;
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}
.donate-now-bottom{
  background: #f9a825 !important; /* Yellow background */
}
.donate-now-bottom:hover{
  background: #fd9e04 !important; /* Yellow background on hover */
}


/* Responsive for tablet and mobile */

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title{
    font-size: 1.5rem;  
  }
  .hero-copy{
    font-size: 1rem;  
  }
  .hero{
    padding-block: 0;
  }
  .carousel-caption h5
  {
    font-size: 1.8rem;
  }
  .wave_head{
    font-size: 30px;
  }
  .wave_p{
    font-size: 14px;
  }
  .donate-subtitle{
    font-size: 24px !important;
  }
  .donate-impact-text h2{
    font-size: 18px !important;
  }
  .donate-impact-text p{
    font-size: 16px;
    /* text-align: center; */
  }
  .donation-cta-title{
    font-size: 24px !important;
  }
}

@media (max-width: 767px) {
  .wave_p{
    font-size: 12px;
    margin: 0 -50px;
    padding: 0;
  }
  .donate-bg-img{
    left: 40%;
    top: 35%;
  }
  .wave_head{
    font-size: 20px;
    margin-top: 10px;
  }
  .wave1, .wave2, .wave3 {
    display: none;
  }
  .wavy-bg-layer{
    background: rgb(58, 58, 58);
  }
  .donate-impact-text{
    padding-left: 10px;
  }
  .donate-impact-text h2{
    font-size: 18px !important;
  }
  .donate-impact-text p{
    font-size: 16px;
  }
  .donation-cta-title{
    font-size: 16px !important;
  }
  .donation-cta{
    padding: 30px 0; 
    margin: 0;
  }
  .hero-title{
    font-size: 1.5rem; 
  }
  .hero-copy{
    font-size: 16px; 
  }
  .button-6{
    width: 100px;
    height: 37px;
    font-size: 14px;
    min-height: 0;
    bottom: 20px;
    right: 20px;
  }
  .donation_banner{
    min-height: 0;
  }
  .donation-form {
    padding: 20px 0 20px 0;
  }
  .b2of-hero-img-wrapper{
    padding: 10px 0;
  }
  .donate-subtitle{
    font-size: 26px !important;
  }
}


.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  /* max-width: 800px;
  margin: 0 auto;
  /* padding: 20px; */
}

.program-item {
  /* background: #f8f8f8; */
  border-radius: 12px;
  text-align: center;
  /* padding: 20px; */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.program-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  /* margin-bottom: 10px; */
}

@media (max-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 767px) {
  .carousel-caption {
    display: block !important;  /* or 'flex' if your layout needs it */
    bottom: 50px;
    text-align: center;
  }

  .carousel-caption h5 {
    font-size: 22px;
    color: #fff;                /* ensure text is visible */
    display: block !important; /* override hidden state */
  }
  .carousel-caption .subtitle{
    margin: 0;
    font-size: 22px;
  }
  .carousel-caption .subtitle::before,
  .carousel-caption .subtitle::after {
    display: none;
  }
  .carousel-caption{
    bottom: 0;
  }
}
@media (max-width: 550px){
  .carousel-caption h5 {
    font-size: 12px;
    color: #fff;  
    display: block !important;
  }
  .carousel-caption .subtitle{
    margin: 0;
    font-size: 12px;
  }
  .button-6 {
    width: 80px;
    height: 27px;
    font-size: 10px;
    min-height: 0;
    bottom: 20px;
    right: 20px;
}
}
