 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

   
        /* Reset & Fonts */
 html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
 
   .top-bar {
      background-color: #222;
      color: #fff;
      padding: 10px 20px; 
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      position: fixed;
      z-index: 1000;
      width: 100%;
    }

    .top-bar .left {
      display: flex;
      gap: 20px;
      align-items: center;
      font-size: 14px;
    }

    .top-bar .left i {
      margin-right: 5px;
    }

    .top-bar .right {
      display: flex;
      gap: 15px;
      font-size: 16px;
    }

    .top-bar .right a {
      color: white;
      text-decoration: none;
    }



    /* Header */
 header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 60px;
  margin-top: 35px;
  background-color: white;
}

    .logoe {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logoe img {
      height: 60px;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: #000;
      font-weight: bold;
    }

    .donate-btn {
      background-color: #f4431d;
      color: white;
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-weight: bold;
     
    }

    /* Hamburger */
    .hamburger {
      display: none;
      font-size: 24px;
      cursor: pointer;
      margin-left: 360px;
    }

        
.dropdown {
  position: relative;
}

.dropdown a {
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  color: black;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  top: 100%;
  left: 0;
  z-index: 1000;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}
    /* Mobile Responsive */
    @media (max-width: 768px) {
      .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        background: #fff;
        margin-top: 10px;
      }

      .nav-links.active {
        display: flex;
      }

      .hamburger {
        display: block;
        
       margin-top: -40px;
      
      }

      .donate-btn {
        margin-top: 10px;
      }

      header {
        flex-direction: column;
        align-items: flex-start;
        height: 72px;
        background-color: white;
      }

    }


 /* Slider Styles */
.slider {
  width: 100%;
  height: 500px; /* Fixed height for the slider */
  position: relative;
  overflow: hidden; /* Hide overflow content */
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* Ensure proper layering of slides */
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover; /* Keep image cropped and cover the screen */
  object-position: center;
  margin-top: 110px;
  background-size: cover;

}

.caption {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
 
  padding: 20px 30px;
  border-radius: 10px;
  color: #fff;
  z-index: 2; /* Ensure caption is on top of the image */
}

.caption h2 {
  font-size: 39px;
  margin-bottom: 10px;
  color:white;
}

.caption p {
  font-size: 18px;
}

/* Navigation buttons for slider */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 30px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background: #fff;
  color: #333;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cnt h1{
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
    margin-left: 30px;
    

}
.cnt p{
    font-size: 20px;
    font-family: sans-serif;
    line-height: 2.5rem;
    padding: 30px;
}

.btn:hover {
  background: #333;
  color: #fff;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in animation */
.slide-in {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-in.show {
  opacity: 1;
  transform: translateX(0);
}
.section:nth-child(even) {
  background: #f9f9f9;
}

.pare{
  text-align:center;
  padding: 60px;
  line-height: 1.5rem;
  color: lightblue;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-top: -30px;

}
.pares{
  text-align: center;
  padding: 60px;
  line-height: 1.5rem;
  margin-top: -70px;
  color: lightblue;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;

}
.tren{
  margin-left: 600px;
  text-decoration: none;
  border: none;
  
  background-color: white;
  margin-top: -30px;
}
.tren a{
  text-decoration: none;
   color: lightgreen;
}
.impact{
  background-color: whitesmoke;
  height:350px;
}
.impact h1{
  text-align: center;
  margin-top: 50px;
  padding-top: 50px;
  text-transform: capitalize;
  
}
.tremp{
   margin-top: 50px;
}
.tremp h5{
  text-align: center;
  font-size: 20px;
  color:  rgb(102, 171, 41);
}
.tremp p{
  text-align: center;
  font-size: 90px;
  font-weight: bold;
  color: rgb(102, 171, 41);
}
.tremp span{
 
text-align: center;
  
}
.tmen{
  display: flex;
  justify-content: space-around;
}
.programes h1{
  text-align: center;
  margin-top: 70px;

}
.edrcm img{
  height: 100px;
  width: 100px;
}
.edc{
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px; 
}
.cntx p{
  margin-top: 20px;
}
.cntx h2{
  text-decoration: underline;
}

.trex img {
  height: 300px;
  width: 350px;
}

.story  h1{
  text-align: center;
  margin-top: 40px;
}
.ingh {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 40px;
}
.vrc h1{
  text-align: center;
  margin-top: 50px;
}
.intrs img {
  height: 230px;
  width: 220px;
}
.trc{
  display: flex;
  justify-content:center;
  margin: 0;
  padding: 0;
}
.supporter h1{
  text-align: center;

}

 .yret p{
  margin-top: -100px;
  color: white;
  font-size: 25px;
  padding: 10px;
  
 }
 .yret {
      position: relative;
      width: 270px;
      height: 300px;
      overflow: hidden;
      border-radius: 10px;
    }

    .yret img {
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease;
    }

    .yret:hover img {
      transform: scale(1.1);
    }
    /*--------loop staart--------*/
      .tree {
    
      font-family: Arial, sans-serif;
     
    }

    .containerx {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 40px;
      text-align: center;
      margin-top: 30px;
    }

    .boxx { 
       
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    }

    .title {
      font-size: 24px;
      margin-bottom: 15px;
      color: #444;
    }

    .counter {
      font-size: 50px;
      font-weight: bold;
      color: #007BFF;
    } 

    .ytr {
      text-align: center;
      margin-top: 40px;
      font-size: 32px;
    }


       /*--------loop end--------*/

    .overlay-text {
      position: absolute;
      bottom: 0;
      color: white;
      width: 100%;
      padding: 15px;
      text-align: center;
      font-size: 18px;
      transform: translateY(100%);
      transition: transform 0.5s ease;
    }

    .overlay-text {
      transform: translateY(0%);
    }
    .tr{
      height: 450px;
     
      width: 270px;
    }
    .tr p {
      padding: 5px;
    }

.imrg {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.award-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100vh;
  margin-top: 50px;
}

.text-content {
  background-color: #dceb87;
  color: #fff;
  padding: 60px 40px;
  flex: 1;
  min-width: 300px;
  height: 350px;
}

.text-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 30px;
}

.text-content p {
  color: black;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.text-content a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1rem;
}

.image-content {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
}

.image-content img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}


.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
}

.footer-about {
  flex: 1 1 250px;
  max-width: 350px;
}

.footer-about .logo {
  width: 80px;
}

.footer-about h2 {
  color: #ff6a00;
  font-size: 28px;
  margin: 10px 0;
}

.footer-about p {
  font-size: 14px;
}

.social-icons i {
  font-size: 18px;
  background-color: white;
  color: #ff6a00;
  padding: 10px;
  margin: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.footer-links {
  flex: 1 1 180px;
}

.footer-links h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}
  
.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links li i {
  color: white;
  margin-right: 8px;
}

.footer-contact h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-contact i {
  margin-right: 8px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #555;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
  background-color: #555;
  color: white;
  padding: 20px;
}

.footer-bottom .bottom-right a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
}

.footer-bottom a i {
  margin-right: 5px;
}

.sed {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo {
  width: 60px;
  height: auto;
}

.logo-title h2 {
  color: #ff6a00;
  font-size: 24px;
  margin: 0;
}


@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom .bottom-right a {
    display: inline-block;
    margin: 5px 10px;
  }
}

/* ✅ Tablet and below (≤ 768px) */
@media (max-width: 768px) {

  /* Center all paragraphs */
  .cnt p,
  .pare,
  .pares,
  .tremp p,
  .tremp h5,
  .text-content p {
    text-align: center;
    margin: 0 auto;
  }

  /* Center headings */
  .cnt h1,
  .impact h1,
  .story h1,
  .vrc h1,
  .programes h1,
  .supporter h1 {
    text-align: center;
  }

  /* Center images inside flex containers */
  .trex img,
  .intrs img,
  .yret img {
    display: block;
    margin: 0 auto;
  }

  /* Flex layouts stack and center */
  .tmen,
  .edc,
  .ingh,
  .trc,
  .imrg {
    flex-direction: column;
    align-items: center;
  }
}

/* ✅ Mobile small screens (≤ 480px) */
@media (max-width: 480px) {

  /* Center all paragraphs & reduce padding */
  .cnt p,
  .pare,
  .pares,
  .tremp p,
  .tremp h5,
  .text-content p {
    text-align: center;
    margin: 0 auto;
    padding: 10px;
  }

  /* Center all headings */
  .cnt h1,
  .impact h1,
  .story h1,
  .vrc h1,
  .programes h1,
  .supporter h1 {
    text-align: center;
  }

  /* Center and resize images */
  .trex img,
  .intrs img,
  .yret img {
    display: block;
    margin: 10px auto;
  }

  /* Flex sections fully centered */
  .tmen,
  .edc,
  .ingh,
  .trc,
  .imrg {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}


@media (max-width: 768px) {
  .slider {
    height: 400px !important; 
    width: 100% !important;
  }
  .slider img {
    height: 300px !important;  
    object-fit: cover !important;
    
  }
}
    @media (max-width: 768px) {
  .containerx {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 20px;
  }

  .title {
    font-size: 20px; /* Slightly smaller titles */
  }

  .counter {
    font-size: 40px; /* Slightly smaller counters */
  }

  .ytr {
    font-size: 28px; /* Adjust heading size */
  }

  .contex{
    margin-top: 40px;
  }
  .image-content img{
    margin-top: 5px;
  }


}

/* ✅ Media Query for Phones */
@media (max-width: 768px) {
  .award-section {
    flex-direction: column;     /* Stack text & image vertically */
    min-height: auto;          /* Remove fixed height */
    margin-top: 20px;
  }

  .text-content {
    padding: 30px 20px;        /* Reduce padding for small screens */
    height: auto;              /* Let content adjust naturally */
  }

  .text-content h1 {
    font-size: 1.3rem;         /* Smaller heading */
    margin-bottom: 20px;
    text-align: center;
  }

  .text-content p {
    font-size: 1rem;
   
  }

  .image-content img {
    height: 250px;             /* Smaller image height for mobile */
  }

  .imrg {
    flex-wrap: wrap;           /* Allow wrapping for images/buttons */
    gap: 8px;
    margin-top: 20px;
  }
}


    .director-section {
      max-width: 1100px;
      margin: 60px auto;
      background: #c5c19e;
      display: flex;
      gap: 40px;
      padding: 50px;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      align-items: center;
      animation: fadeInUp 0.8s ease-in-out;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .director-photo {
      flex: 1;
      text-align: center;
    }

    .director-photo img {
      width: 240px;
      height: 240px;
      border-radius: 50%;
      object-fit: cover;
      border: 6px solid #0077ff;
      box-shadow: 0 8px 20px rgba(0,119,255,0.2);
      transition: transform 0.4s ease;
    }

    .director-photo img:hover {
      transform: scale(1.05);
    }

    .director-photo h2 {
      margin-top: 20px;
      font-size: 26px;
      color: #222;
    }

    .director-photo p {
      font-size: 16px;
      color: #666;
      margin-top: 8px;
    }

    .message-box {
      flex: 1.5;
      background: #f8fbff;
      padding: 30px;
      border-radius: 15px;
      box-shadow: inset 0 4px 12px rgba(0,0,0,0.05);
    }

    .message-box h3 {
      margin-bottom: 15px;
      font-size: 22px;
      color: #333;
    }

    .message-box textarea {
      width: 100%;
      height: 130px;
      width: 99%;
      padding: 15px;
      font-size: 16px;
      border: 1px solid #dde6f7;
      border-radius: 10 px;
      resize: none;
      outline: none;
      transition: all 0.3s;
      background: #fff;
    }

    .message-box textarea:focus {
      border-color: #0077ff;
      box-shadow: 0 0 10px rgba(0,119,255,0.15);
      
      
    }

    .send-btn {
      margin-top: 20px;
      padding: 14px 35px;
      background: linear-gradient(135deg, #0077ff, #005dcc);
      color: #fff;
      font-size: 17px;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: 0.4s;
      display: inline-block;
    }

    .send-btn:hover {
      background: linear-gradient(135deg, #005dcc, #003d99);
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    /* ✅ MEDIA QUERIES for responsiveness */
    @media (max-width: 992px) {
      .director-section {
        gap: 25px;
        padding: 40px;
      }
      .director-photo img {
        width: 200px;
        height: 200px;
      }
    }

    @media (max-width: 768px) {
      .director-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
      }
      .message-box {
        margin-top: 25px;
        width: 100%;
      }
    }

    @media (max-width: 480px) {
      .director-photo img {
        width: 160px;
        height: 160px;
      }
      .message-box h3 {
        font-size: 18px;
      }
      .message-box textarea {
        height: 110px;
        font-size: 15px;
      }
      .send-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
      }
    }













