/* style.css */


body {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
  max-width: 100%;
}

/*TOP BAR STYLING*/
.top-bar {
  background-color: #5491f4;
  font-size: 0.9rem;
}

.top-contact span,
.top-social a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-social a:hover {
  opacity: 0.8;
}


.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

  /* @keyframes animate__slideInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}*/
   .navbar {
    animation-name: animate__slideInDown;
    animation-duration: 3s;
    animation-iteration-count: initial;
    animation-timing-function: ease-in;
    animation-direction: alternate;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 1000;
   }

/* Hero Slide Styles */


.hero-slide {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 22, 0.6);
  z-index: 1;
}

/* Text Content */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  max-width: 100%;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 10px;
  animation: fadeIn 1s ease forwards;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  animation: slideUp 1.2s ease-out forwards;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeIn 1.5s ease forwards;
}

/* Buttons */
.carousel-caption .btn {
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  border-radius: 30px;
  
}




/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .carousel-caption {
    padding: 0 20px;
  }

  .carousel-caption .btn {
    display: block;
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* Timing Delays */
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

/* Typing Effect (for Slide 1) */
.zoom-text span {
  display: inline-block;
  opacity: 0;
  transform: scale(2);
  animation: zoomLetter 0.5s forwards;
}

/* Animate each letter with delay */
.zoom-text span:nth-child(1)  { animation-delay: 0.1s; }
.zoom-text span:nth-child(2)  { animation-delay: 0.2s; }
.zoom-text span:nth-child(3)  { animation-delay: 0.3s; }
.zoom-text span:nth-child(4)  { animation-delay: 0.4s; }
.zoom-text span:nth-child(5)  { animation-delay: 0.5s; }
.zoom-text span:nth-child(6)  { animation-delay: 0.6s; }
.zoom-text span:nth-child(7)  { animation-delay: 0.7s; }
.zoom-text span:nth-child(8)  { animation-delay: 0.8s; }
.zoom-text span:nth-child(9)  { animation-delay: 0.9s; }
.zoom-text span:nth-child(10)  { animation-delay: 1.0s; }
.zoom-text span:nth-child(11)  { animation-delay: 1.1s; }
.zoom-text span:nth-child(12)  { animation-delay: 1.2s; }
.zoom-text span:nth-child(13)  { animation-delay: 1.3s; }
.zoom-text span:nth-child(14)  { animation-delay: 1.4s; }
.zoom-text span:nth-child(15)  { animation-delay: 1.5s; }
.zoom-text span:nth-child(16)  { animation-delay: 1.6s; }
.zoom-text span:nth-child(17)  { animation-delay: 1.7s; }
.zoom-text span:nth-child(18)  { animation-delay: 1.8s; }
.zoom-text span:nth-child(19)  { animation-delay: 1.9s; }
.zoom-text span:nth-child(20)  { animation-delay: 2.0s; }
.zoom-text span:nth-child(21)  { animation-delay: 2.1s; }
.zoom-text span:nth-child(22)  { animation-delay: 2.2s; }
.zoom-text span:nth-child(23)  { animation-delay: 2.3s; }
.zoom-text span:nth-child(24)  { animation-delay: 2.4s; }
.zoom-text span:nth-child(25)  { animation-delay: 2.5s; }
.zoom-text span:nth-child(26)  { animation-delay: 2.6s; }
.zoom-text span:nth-child(27)  { animation-delay: 2.7s; }
.zoom-text span:nth-child(28)  { animation-delay: 2.8s; }
.zoom-text span:nth-child(29)  { animation-delay:2.9s; }
.zoom-text span:nth-child(30) { animation-delay: 3.0s; }

@keyframes zoomLetter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide from Top (for Slide 2) */
.slide-top {
  transform: translateY(-40px);
  opacity: 0;
  animation: slideTop 1s ease forwards;
}

@keyframes slideTop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Slide from Bottom (for Slide 3) */
.slide-bottom {
  transform: translateY(40px);
  opacity: 0;
  animation: slideBottom 1s ease forwards;
}

@keyframes slideBottom {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Make hero carousel positioned relative for overlap context */
#heroCarousel {
  position: relative;
   overflow: hidden;
  z-index: 1;
}

/* Ensure card section stacks above */
.overlap-card-section {
  z-index: 5;
  position: relative;
}

/* Fix for mobile view */
@media (max-width: 768px) {
  .overlap-card-section {
    margin-top: 0 !important;
  }
}

/* Fix position and style of carousel buttons */
.custom-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position left & right */
.carousel-control-prev.custom-control {
  left: 20px;
}

.carousel-control-next.custom-control {
  right: 20px;
}

/* Remove background image icons if present */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none;
}


/*SECTION START*/
.section-bg {
    background-color: #fff;
    position: relative;
    z-index: 1;
  }

  .border-dashed {
    border: 2px dashed #ddd;
  }
 

  .left-bg-shape {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 90%;
    background-color: #abbbdd;
    z-index: 0;
    border-top-right-radius: 150px;
    border-bottom-right-radius: 150px;
  }

  .right-circle-shape {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 140px;
    background-color: #abbbdd;
    border-top-left-radius: 100% 100%;
    z-index: 0;
  }

  @media (max-width: 768px) {
    .left-bg-shape {
      width: 100%;
      height: 180px;
      border-radius: 0;
    }

    .right-circle-shape {
      display: none;
    }
  }

  /*Featured Project section Styling*/

 .featured-project {
  background: url('/images/education2.jpg') no-repeat center center/cover;
  position: relative;
  height: 500px;
  max-width: 100%;
  z-index: 1;
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 0;
}

.start-35 {
  left: 35%;
}

@media (max-width: 768px) {
  .start-35 {
    left: 50%;
  }
}

/*Volunteer Card sec styling*/

.volunteer-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 80%; /* ✅ makes the image smaller */
  margin: 0 auto; /* ✅ centers the image */
}

.volunteer-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.volunteer-wrapper:hover img {
  transform: scale(1.05);
  box-shadow: 0px 30px 30px -15px rgba(0, 0, 0, 0.2);
}

.volunteer-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: bottom 0.4s ease;
}

.volunteer-wrapper:hover .volunteer-overlay {
  bottom: 0;
}

.volunteer-info {
  color: rgb(15, 49, 139);
  font-weight: bold;
  text-align: center;
}

.volunteer-info span {
  color: #fff;
  font-weight: normal;
  font-size: 14px;
}

  .volu-left-bg-shape {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 60%;
    background-color: #abbbdd;
    z-index: 0;
    border-top-right-radius: 120px;
    border-bottom-right-radius: 90%;
  }

  .volu-right-circle-shape {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 260px;
    background-color: #abbbdd;
    border-top-left-radius: 100% 100%;
    z-index: 0;
  }

  @media (max-width: 768px) {
    .left-bg-shape {
      width: 100%;
      height: 150px;
      border-radius: 0;
    }

    .right-circle-shape {
      display: none;
    }
  }

   /*  Banner Section */

    .counters-section {
      background: url('/images/banner.jpeg') center center/cover no-repeat;
      position: relative;
      padding: 60px 0;
      color: #f4f0f0;
      height: 50vh;
      max-width: 100%;
    }
    .counters-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    }
    .counters-section .container {
      position: relative;
      z-index: 2;
    }
    .counter-number {
      font-size: 2.5rem;
      font-weight: bold;
      color: #2947da;
    }
    .counter-label {
      font-size: 1.5rem;
      margin-top: 0.5rem;
      font-weight: bold;
    }
    .counter-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    /*  Upcoming Events Section  */

    .events-section {
      padding: 60px 0;
    }

    .events-section h2 {
      font-weight: 700;
    }

    .underline {
      width: 60px;
      height: 3px;
      background-color: #007bff;
      margin: 10px auto;
    }

    .event-card {
      border: 1px dashed #ccc;
      background-color: #fff;
      display: flex;
      flex-direction: row;
      height: 100%;
       max-width: 500px;  /* ✅ NEW: limits card width */
  margin: auto; 
    }

    .event-card img {
      width: 250px;
      height: 100%;
      object-fit: cover;
    }

    .event-card .text {
      padding: 20px;
      flex: 1;
      text-align: left;
    }

    .event-card .text h5 {
      font-weight: 600;
    }

    .event-card .text small {
      display: block;
      color: gray;
      font-size: 0.9rem;
    }

    .event-card .text p {
      margin-top: 10px;
    }

    .event-card .text .btn {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 5px 15px;
    }

    .event-card .text .btn:hover {
      background-color: #0056b3;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      background-color: #007bff;
      border-radius: 50%;
      padding: 10px;

    }

    .carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007bff;
  border-radius: 50%;
  opacity: 1;
}

.carousel-control-prev {
  left: -60px; 
}

.carousel-control-next {
  right: -60px;
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none; 
  }
}

/* What People Say Section*/

   
    :root { --accent:#0d6efd; }

    /* underline under the section title */
    .section-title::after{
      content:"";
      display:block;
      width:55px; height:3px;
      background:var(--accent);
      margin:10px auto 0;
    }

    /* testimonial cards */
    .testimonial-card{
      border:none;
      background-color: #dee5f3;
      box-shadow:0 4px 12px rgba(0,0,0,.05);
      transition:.2s;
      height:100%;
      width: 350px;
    }
    .testimonial-card:hover{ transform:translateY(-4px); }

    /* carousel dots */
    .carousel-indicators [data-bs-target]{
      width:8px; height:8px;
      border-radius:50%;
      background:#abadae;
      opacity:1;
    }
    .carousel-indicators .active{ background:var(--accent); }












/*About Page Hero Section*/

#about,
#causes,
#event,
#pages,
#blog, 
#contact,
#donate{
  background-image: url('https://html.dynamiclayers.net/dl/charitify/img/page-header-bg.jpg');
   background-repeat: no-repeat;
   background-size: cover;
  
    position: relative;
  z-index: 1;
  min-height: 40vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
 
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* Adjust darkness */
  z-index: 2;
}
#about .container-xxl {
  position: relative;
  z-index: 3;
}


  .stories-section{
      background:#f3f4f6;     
      padding:4.5rem 0;
    }

    .stories-section .section-title::after{
      content:"";
      display:block;
      width:55px; height:3px;
      background:var(--accent);
      margin:12px auto 0;
    }

    /* ----- Card look ----- */
    .story-card{
      border:none;
      background:#fff;
      box-shadow:0 4px 12px rgba(0,0,0,.05);
      transition:.3s;
      height:100%;
    }
    .story-card:hover{ transform:translateY(-4px); }

    /* make image top corners rounded ONLY */
    .story-card img{
      border-top-left-radius:.25rem;
      border-top-right-radius:.25rem;
    }






    /*FOOTER STYLING*/

.footer-link {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link i{
  color: #1c70f7;
}

.footer-link:hover {
  color: #1c70f7;
  text-decoration: underline;
}

.contact-hero {
   background-image: url('https://html.dynamiclayers.net/dl/charitify/img/page-header-bg.jpg');
   background-repeat: no-repeat;
   background-size: cover;
   
  position: relative;
  z-index: 1;
  min-height: 40vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* dark overlay */
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .contact-hero {
    height: 40vh;
  }
}
