body, html {
    margin: 0;
    padding: 0;
   
  }
  
  * {
    font-family: "Open Sans", sans-serif;
  }
  span {
    /*font-family: 'Risque', cursive;*/
    font-size: 16px;
  }
  .navbar-nav .nav-link {
    margin: 0 10px; 
    
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 70px;
    text-align: right;
    margin: 0 10px; 
    color: #000 !important;

  }
  
.CircularProgress-div{
    display:flex;
    align-items: center;

}

/* For Donate Now Button */
.read-details {
    width: 169.2px;
    height: 47px;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 70px;
    text-align: center;
    cursor: pointer;
  }
  
  /* Donate Now Button */
  .donate-now {
    background-color: black;
    color: white;
    border: none;
    height: 47px;
    width: 169.2px;
    border-radius: 30px;
    margin-top: 50px; 

  }
  
  /* Read Details Button */
  .read-details {
    background-color: transparent;
    color: black;
    border: 1px solid #FBB019;
    margin-top: 50px; 
    margin-left: 20px; 
    border-radius: 30px;
    opacity: 1; 
    
   
    display: flex;
    align-items: center;
    justify-content: center;
    
  
    text-align: center;
  }
  
  
  .d-flex {
    display: flex;
    justify-content: flex-start; 
    align-items: center; 
    gap: 20px;
    position: relative; 
  }
  

  .d-flex button {
    position: relative;
    z-index: 2;
  }
  
  .first-section {
   
    background-image: url('images/firstbgimage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    position: relative;
  }
  
  #africa-image {
    display: block;
    margin-left: 33%;
 
    width: 60%; 
  }
  
  .image-container {
    position: relative;
    width: 100%;
    display: inline-block;
width: 100%;
margin-left: 10%;
height: 100%;
    
  }
  
  .africa-image {
    width: 100%;
    height: 80vh;
    object-fit: contain; 
    height:653px;
  }
  
  /* Text Overlay */
  .text-overlay {
    position: absolute;
    top: 20%;
    left: 5%; /* Align text to the left */
    max-width: 40%; /* Ensures text doesn't overflow */
    z-index: 2; /* Keeps it above the image */
    text-align: left; /* Aligns text content to the left */
}

  
  .text-overlay h1 {
    font-size: 3vw; /* Scales with screen size */
    line-height: 1.2;
  }
  
  .text-overlay p {
    font-size: 1.2vw; /* Adjust for smaller devices */
  }
  
  .text-overlay button {
    font-size: 1rem;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
  
    .donate_container {
      display: none; /* Completely hide the element */
    }
    .image-container {
        width: 100%; /* Make the container flexible to the parent column */
        max-width: 300px; /* Limit the width for larger screens */
        height: auto; /* Adjust height based on image */
        overflow: hidden; /* Prevent any overflow caused by image scaling */
      }
      
      .africa-image {
        width: 100%; /* Let the image scale to the container's width */
        height: auto; /* Maintain the image's aspect ratio */
        object-fit: contain; /* Ensures the entire image fits within the container */
      }
  
    .text-overlay h1 {
      font-size: 8vw;
      margin-right: 100px;
      margin-left: 10%;
    }
    .CircularProgress-div img{
      height: 75px;
      width: 75px;
  
  }
    .text-overlay p {
      font-size: 1rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
       
    }

    .content {
        max-width: 100%;
    }

    .featured .cards {
        flex-direction: column;
    }

    .menu {
        display: none;
    }
  
      .section-title {
        font-size: 1.5rem;
      }
    
      .text-muted {
        font-size: 1rem;
      }
    
    
  }
  
  .section-title {
    color: #0275d8;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .feature-box {
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
  }
  
  .feature-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .donate_container{
    width:25%;
    margin-top: 20%;
    
  }
  .donate_container img{
    margin-left: 55px;
  }
  .btn-custom {
    background-color: #ff5722;
    color: white;
    border-radius: 25px;
  }
  
.joinus {
  background-color: rgba(75, 125, 134, 0.17);  position: relative; /* For positioning the bottom-right image */

 /* margin-left: 12%; */
  
  /* width: 70%; */
  border-radius: 13px;
}


.stacked-image {
  position: absolute;
  bottom: -104px;
  right: -54px;
  width: 170px;
  z-index: 0;
}

/* Ensure content is above the stacked image */
.container {
  position: relative;
  z-index: 1;
}

/* Section title styling */
.joinus-section-title{
  color: #000000;
  text-align: left;
  font-family: "OpenSans-Bold", sans-serif;
  font-size: 42px;
  line-height: 52px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;

}

/* Text color */
.text-muted {
  font-size: 1.2rem;
  color: #6c757d;
}

/* Input and Button styles */
form .form-control {
  border-radius: 5px;
  padding: 10px;

}

form .btn-dark {
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  padding: 8px 20px;
}

form .btn-dark:hover {
  background-color: #333;
}
.section-image{
  height:209px ;
  width: 596px;
}
.goal-raised {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.goal-raised div {
  text-align: center;
 flex: 1;
 border-right: 1px solid gray;
 margin-top: 10px;
 margin-right: 10px;
}
.progress-bar {
  height: 10px;
  background-color: #74b2a8;
}

.progress-percentage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #4B7D86;
  color: white;
  font-weight: bold;
 border-radius: 35px;
 border: none;
}
.collection-text{
      color: #4B7D86;
}
.donate-btn {
  background-color: #efba6e;
  color: white;
  font-size: 20px;
font-family: "Open Sans";
font-weight: 700;
line-height: 30px;
word-wrap: break-word;
border-radius: 25px;
  border: none;
 width: 151px;
 height: 41px;
  cursor: pointer;
  width: 80%;
  padding: 10px 20px;
  text-decoration:none;
}

.donate-btn:hover {
  
}

.causes-title {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 1.8rem;
  color: white;
  display: inline-block;
  position: relative;
  background: #4a9c97;
  padding: 10px 20px;
  clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
}

/* Cause cards styling */
.cause-card {
  border-radius: 10px;
  background: linear-gradient(135deg, #FF7043, #FFC107);
  text-align: center;
  padding: 20px;
  color: white;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cause-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Icon container */
.icon-container {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 50%;
}

.icon-container img {
  max-width: 40px;
  max-height: 40px;
}

/* Cause text */
.cause-text {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 798px) {
  .cause-text {
      font-size: 1rem;
  }
}

.card4{
  background-image: url('images/Card4.png'); /* Image for Card 1 */

}
.card1 {
  background-image: url('images/Causes1.png'); /* Image for Card 1 */
}

.card2 {
  background-image: url('images/Causes2.png'); /* Image for Card 2 */
}

.card3 {
  background-image: url('images/Causes3.png'); /* Image for Card 3 */
}

/* Media query for smaller screens */
@media (max-width: 768px) {

  .card1, .card2, .card3, .card4 {
    flex: 100% 100% 100%; 
    height: 100px;
    width: 162px;
  }
  
  .goal-raised {
    margin-bottom: 0px;
    gap: 5px;
  }

  .goal-raised div {
      margin-top: 0px;
      margin-right: 0px;
  }

  .progress-percentage {
    padding: 0px !important;
    font-size: 14px !important;
  }

  .goal-raised h6 {
    font-size: 14px !important;
  }

  .goal-raised p {
    font-size: 12px !important;
  }
}
.causes-container {
  max-width: 1200px; 
  padding: 20px;
  margin: auto;
}

/* Causes row to keep all cards in one row */
.causes-row {
  display: flex; 
  flex-wrap: nowrap; 
  overflow-x: auto;

  padding: 10px; 
  scroll-snap-type: x mandatory; 
}

/* Individual Cards */
.card1, .card2, .card3, .card4 {
  flex: 0 0 20%; 
  height: 150px; 
  background-size: cover; 
  background-position: center;
  display: flex; 
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  scroll-snap-align: start;
}
/* Media Query for smaller screens */
@media (max-width: 768px) {
  .stacked-image {
    width: 100px; 
    opacity: 0.5; 
  }
  .causes-row {
    flex-wrap: nowrap;
    overflow-x: auto; 
    justify-content: flex-start; 
  }
  .causes-container {
    max-width: 100%; 
    padding: 10px; 
  }
  .card1, .card2, .card3,.card4 {
    flex: 0 0 calc(45% - 1px);     margin-right: 10px;
    
  }
  .section-title {
    font-size: 1.5rem; 
  }
       
  .text-muted {
    font-size: 1rem;
  }
  .section-image{
    height:209px ;
    width: 596px;
  }
 
    .causes-title {
        font-size: 1.5rem;
    }

    .cause-text {
        font-size: 1rem;
    }
    /* Indicators Container */
.indicators {
  margin-top: 20px; /* Spacing above indicators */
  display: flex;
  justify-content: center; /* Center indicators horizontally */
  gap: 10px; /* Space between each dot */
}

/* Individual Indicator Dots */
.indicator {
  width: 12px;
  height: 12px;
  background-color: #ddd; /* Default color */
  border-radius: 50%; /* Make them circular */
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Active Indicator Style */
.indicator.active {
  background-color: #4B7D86; /* Highlight color */
}
.titleimage {
    width: 210px;
    height: 72px;
 
  
}
  
}


.group-16 {
  width: 386px;
  height: 532px;
  position: static;
}
.group-17 {
  width: 386px;
  height: 532px;
  position: static;
}
.frame-113 {
  border-radius: 15px;
  border-style: solid;
  border-color: #000000;
  border-width: 1px;
  width: 386px;
  height: 286.54px;
  position: absolute;
  left: 500px;
  top: 3204px;
  overflow: hidden;
  object-fit: cover;
}
.frame-123 {
  background: #ffffff;
  border-radius: 30px;
  border-style: solid;
  border-color: #000000;
  border-width: 1px;
  width: 386px;
  height: 329.8px;
  position: absolute;
  left: 500px;
  top: 3406.2px;
  overflow: hidden;
}
.group-12 {
  position: absolute;
  inset: 0;
}
.rectangle-65 {
  background: #4b7d86;
  border-radius: 40px;
  width: 84px;
  height: 45px;
  position: absolute;
  left: 278px;
  top: 184.8px;
}
._702 {
  color: #ffffff;
  text-align: left;
  font-family: "OpenSans-Bold", sans-serif;
  font-size: 14px;
  line-height: 34px;
  font-weight: 700;
  position: absolute;
  left: 306px;
  top: 190.8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.causes-container {
  display: block;
  visibility: visible; 
  margin: 20px auto; 
}



.recently-section {
  display: flex;
  gap: 20px; 
  padding-bottom: 20px; 

}


.recently-section .col-12 {
 
  flex: 0 0 100%;
}


section {
  /* margin-bottom: 50px;  */
}

.group-16, .group-17 {
  position: relative;
  z-index: 1;
}

.frame-113, .frame-123 {
  margin-top: 20px; 
  padding: 10px; 
}

.recently-section img {
  max-width: 100%; 
  height: auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .recently-section {
    flex-direction: column; 
    margin-top: 20px; 
  }

 
  .group-16, .group-17 {
    min-width: 100%; 
    margin-bottom: 10px; 
  }

    .titleimage {
      width: 210px;
      height: 72px;
  }
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: none;
    overflow-x: auto;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: auto; 
}
/* Stat Card Styling */
.stat-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    
}
.responsive-image {
    width: 70%; /* Scale the image width relative to its parent */
    max-width: 472px; /* Do not exceed the specific width */
    height: auto; /* Maintain aspect ratio */
    max-height: 476px; /* Do not exceed the specific height */
    object-fit: cover; /* Ensures image scales appropriately */
  }

  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Parent container height (can be a specific value or 100%) */
  }
.stat-card img {
    max-width: 100%;
    height: auto;
    width: 100px; /* Default width */
    margin: auto;
    display: block;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .stat-card img {
        width: 150px; /* Larger size for medium and larger screens */
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.about-content {
    padding: 20px;
  }
  .read-btn {
    background-color: #f0ad4e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  .read-btn:hover {
    background-color: #ec971f;
  }
  
  
  .map-container {
      position: relative;
      margin-bottom: 20px;
  }
  
  .map-image {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
  }
  
  .stat-card {
      background: #ffffff;
      border: 1px solid #e3e3e3;
      border-radius: 10px;
      padding: 20px;
      text-align: center;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .stat-card .icon {
      font-size: 2rem;
      color: #ff9800;
  }
  
  .stat-card h4 {
      font-size: 1.5rem;
      color: #333;
  }
  
  .stat-card p {
      color: #666;
      margin: 0;
  }
  
  @media (max-width: 768px) {
      .map-container {
          margin-bottom: 20px;
      }
  
      .stat-card {
          padding: 15px;
      }
  
      h2 {
          font-size: 1.5rem;
      }
  }
  .stat-card {
      background: #ffffff;
      border: 1px solid #e3e3e3;
      border-radius: 10px;
      padding: 20px;
      text-align: center;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .stat-card img {
      max-width: 100%;
      width: 166.96px;
          height: 157.14px;
      margin: auto;
      display: block;
  }
  
  @media (max-width: 768px) {
      .stat-card img {
          width: 100px;
          height: 100px;
      }
  }
  .custom-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-date {
    width: 80px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-date h4 {
    font-size: 2rem;
    margin: 0;
}

.card-date span {
    font-size: 1rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.card-content .btn {
    align-self: start;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
        text-align: center;
    }

    .card-date {
        width: 100%;
    }
}
.upcomingEventsContainer{
    background-color: rgba(75, 125, 134, 0.5);
    width: 100%;
    margin: none;
}
/* Ensure the cards adjust dynamically */
.custom-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 100%; /* Full width for its parent */
    height: auto; /* Automatically adjust height */
}

/* Dynamic height and padding for card date section */
.card-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25%; /* Take 25% of card width */
}

/* Content section adjusts dynamically */
.card-content {
    flex-grow: 1; /* Fill remaining space */
    padding: 15px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .custom-card {
        flex-direction: column; /* Stack items vertically */
    }

    .card-date {
        width: 100%; /* Full width on small screens */
    }
}
.logo-container {
    background-color: #e1f2f0;
    padding: 20px 0;
  }
  .logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
  }
  .logo-box img {
    max-width: 100%;
    max-height: 60px;
  }
  .logo-text {
    margin-left: 10px;
    font-weight: 500;
  }
  /* Subscribe Section (First Container) */
.subscribe-section {
    background: linear-gradient(135deg, #0066cc, #00ccff);
  color: white;
  padding: 30px 20px;
  width: 50%;
  position: relative;
  margin: -40 auto 0; /* Increased negative margin for more stacking */
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  }
  
  /* Info Section (Second Container) */
  .info-section {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px;
    z-index: 1;
    position: relative;
    border-radius: 20px 20px 0 0;
  }
  
  /* Social icons */
  .social-icons a {
    color: #00ccff;
    margin-right: 10px;
    text-decoration: none;
  }
  .social-icons a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .subscribe-section {
      width: 80%; /* Adjust for smaller screens */
      margin: -30px auto 0; /* Adjust negative margin */
    }
    .info-section {
      padding: 40px 15px;
    }
    .first-container{
        background: linear-gradient(94.15deg, #4B7D86 -0.22%, #121E20 99.79%);
        border-radius: 8px;
        color: white;
        padding: 20px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);         position: relative;
        margin-bottom: -30px; /* Adjust overlap amount */
        z-index: 2; /* Keep it above the second container */
        border-radius: 15px; /* Optional rounded corners */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
    }
  }
  .first-container {
    position: relative;
    margin-bottom: -80px; /* Adjust overlap amount */
    z-index: 2; /* Keep it above the second container */
    border-radius: 15px; /* Optional rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
  }
  
  .second-container {
    position: relative;
    z-index: 1; /* Keep it below the first container */
  }
  .bg-none{
      background:none;
  }
  .about-us-heading{
      font-weight:600;
      font-size:24px;
  }
  
