/* HOME PAGE CSS */

* {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Header Styles */

header {
  background-color: #0a0a0a;
  padding: 20px 0;
  z-index: 999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.logo {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-width: 50px; /* Adjust as needed */
  margin-left: 10px;
  cursor: pointer;
  
}

.logo p {
  font: 1rem sans-serif;
}

#user-info{
  color: #ccc;
  margin: 0 0 0 50px;
  font-size: 18px;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  display: inline-block;
  margin-right: 20px;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#login-btn {
  background-color: #007bff;
  padding: 5px 15px;
  border-radius: 5px;
}
#login-btn:hover{
  background-color: #ffffff;
}

#logoutBtn {
  background-color: #007bff;
  padding: 5px 15px;
  border-radius: 5px;
  display: none;
}
#logoutBtn:hover{
  background-color: #ffffff;
}

a:hover {
  color: #007bff;
}

.hamburger {
  display: none;
  cursor: pointer;
  margin-right: 10px;
}

.bar {
  background-color: #ffffff;
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

.display-name{
  margin-right: 2px 5px 10px 0;
  color: red;
}

@media(max-width: 768px) {
  /* turn the hamburger icon to x */
  .hamburger.active .bar:nth-child(2){
      opacity: 0;
  }
  .hamburger.active .bar:nth-child(1){
      transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3){
      transform: translateY(-8px) rotate(-45deg);
  }

  .hamburger {
      display: block; /* Show hamburger icon on tablet screens */
  }
  /* How the menu will display when active */

  .menu{
      position: fixed;
      right: -100%;
      top: 95px;
      gap: 0;
      flex-direction: column;
      background-color: rgba(0, 0, 0, 0.8);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      z-index: 1;
      padding-bottom: 1rem;
      
  }
  #login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 10px 0;
  }
  #logoutBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 10px 0;
  }
  .menu li {
      margin: 16px 0;
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .menu.open{
      right: 0;
  }

  .testimonial-item {
    margin-top: 20px;
  }

  /* news section */

  .newsletter-section {
      flex-direction: column;
      align-items: center;
  }
  .newsletter-content {
      margin-right: 0;
      margin-bottom: 20px;
  }

  .footer-container{
    flex-direction: block;
  }
  
  .footer-content{
    display: inline-block;    
    margin: auto;
  }
}

@media(max-width: 480px) {
  .testimonial-container{
    display: block;
  }
  
 .testimonial-colun{
  display: block;
  margin: 20px 30px;
 }

 .testimonial-item{
  margin-top: 20px;
  display: block;
 }

  .footer-links{
    display: inline-block;
    gap: auto;
    margin: auto;
  }
}


/*Hero section*/

.hero-slider {
position: relative;
width: 100%;
height: 400px; /* Adjust height as needed */
overflow: hidden;
}

.slide {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.5s ease;
}

.slide.active {
opacity: 1;
}

.slide img {
width: 100%;
height: 100%;
-o-object-fit: cover;
   object-fit: cover;
}

.overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
}

.overlay h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}

.overlay p {
font-size: 1.1rem;
margin-bottom: 30px;
}

.overlay-btn {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
text-decoration: none;
border-radius: 5px;
}

.overlay-btn:hover {
  background-color: #0056b3;
}

/*Make a difference with your donation*/

.benefits-of-giving {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-of-giving h1 {
    padding: 0 20px;
}

.benefits-of-giving p {
    font-size: 18px;
    color: #666;
    padding: 10px 20px;
}

/*two grid benefits section*/

.two-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .image-container {
    position: relative;
    overflow: hidden;
  }
  
  .image-container img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  #grid-item {
    position: absolute;
    padding-left: 4%;
    padding-right: 4%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  
  .image-container:hover #grid-item {
    opacity: 1;
  }
  #grid-item h2 {
    margin-top: 50px;
  }
  
@media screen and (max-width: 768px) {
  #grid-item p {
   font-size: small;
  }
  #grid-item h2 {
   font-size: medium;
   margin: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  #grid-item p {
   font-size: xx-small;
   padding: auto;
  }
  #grid-item h2 {
   font-size: small;
  }
}

/*Donation section*/

.donate-section {
    text-align: center;
    padding: 20px 0;
    background-color:#e9e7e7;
    margin: 30px 0;
  }
  
  .donate-container {
    max-width: 1200px;
    margin: 0 auto;
    
  }
  
  .donate-section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .donate-section-title a{
    color: #000;
    text-decoration: underline;
  }
  .donate-section-title a:hover {
    color: #0056b3;
  }
  .section-description {
    font-size: 18px;
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .grid {
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    display: flex;
    /* Ensure the grid items overflow */
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    transition: transform 0.5s ease;
  }
  
  .grid-item {
    text-align: center;
    cursor: pointer;
    padding: 20px 0;
  }
  
  .grid-item img {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  .grid-item img:hover{
    transform: scale(1.1);
  }

  .grid-item p {
    margin-top: 10px;
    font-size: 16px;
  }
  
  /*Grid scroll*/
  .grid-container {
    position: relative;
    overflow-x: scroll;
  }
  
 
  /*testimonial section*/

.testimonial-container {
    overflow: hidden;
    margin: auto;
    text-align: center;
    height: auto;
  }

.testimonial-container h2 {
  font-size: 32px;
  margin-bottom: 0;
}

.testimonial-container p {
  margin-bottom: 30px;
  margin-top: 0;
}

.testimonial-colun {
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: transform 0.5s ease;
}
  
.testimonial-item {
  border: 2px solid #000;
  padding: 20px;
  border-radius: 10px;
}

.testimonial-content {
  margin-top: 10px;
}

.rounded-image {
  border-radius: 50%;
  width: 80px; /* Adjust size as needed */
  height: 80px;
}

.rating-stars {
  color: gold;
  font-size: 24px;
}

/* About testimonial section */

.aboutTesty-container {
  margin: auto;
  text-align: center;
  height: auto;
}

.aboutTesty-container h1 {
  margin: 100px 0 40px 0;
}

.aboutTesty-grid {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.aboutTesty-item {
  border: 2px solid #000;
  padding: 20px;
  border-radius: 10px;
}

.aboutTesty-item img {
  width: 200px;
  margin-bottom: 10px;
}

@media screen and (max-width: 480px) {
  .aboutTesty-grid{
    display: block;
    margin: 10px 30px;
  }
  .aboutTesty-item{
    margin-top: 20px;
  }
}
  /* newsletter section */

.newsletter-section {
  display: flex;
  margin: 40px 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #e9e7e7;
}

.newsletter-content {
  margin-right: 20px;
  
}

.newsletter-image img {
  width: 300px;
  height: auto;
}

.newsletter-subscription {
  text-align: center;
  font-size: 20px;
  margin-left: 30px;
}

.newsletter-subscription input {
  width: 80%;
  max-width: 300px;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.newsletter-subscription button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.newsletter-subscription button:hover {
  background-color: #0056b3;
}

/* Download app section */

.download-section{
  display: flex;
  margin: 4rem auto;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-content h1 {
text-align: center;
margin-bottom: 10px;
}

.app-content p {
  text-align: center;
  font-size: 18px;
}

.app-store-img {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  border: none;
}

.app-store-img img{
  border-radius: 5px;
  height: 50px;
  width: 150px;
  border: none;
}


/* black line */
.black-line{
  width: 100%;
  height: 30px;
  margin: 10px 0;
  display: flex;
  background-color: #000;
}

.social-icons {
  width: 100%;
  text-align: center;
}

/* Style all font awesome icons */
.fa {
  padding: 7px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
}

/* Add a hover effect if you want */
.fa:hover {
  opacity: 0.7;
}

 /* footer section*/

 .footer {
  background-color: #f8f9fa;
  padding: 20px 0;
  margin: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 50px; /* Adjust as needed */
  border-radius: 50%;
  margin-right: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  display: inline-block;
  margin-right: 20px;
}

.footer-links ul li:last-child {
  margin-right: 0;
}

.footer-links ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #007bff;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  margin: 0;
}


/* NEXT PAGE CSS */

/* Other pages heading */

.other-pages-heading {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 50px 0 0 0;
}

.other-pages-heading-content {
  text-align: center;
  margin-bottom: 20px;
}
.other-pages-heading-content p {
  
  text-align: center;
}

/* Contact form */

.contact-form-container {
  box-sizing: border-box;
  border: #666;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  display: flex;
}
.contact-content {
  padding: 25px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
}
.contact-content p {
  font-size: 1.5rem;
}
.contact-row {
  display: flex;
  border-radius: 5px;
  width: 80%;
  justify-content: center;
  background-color: #dfeeff;
}


.contact-content {
  width: 50%;
}
.contact-form {
  width: 50%;
  padding: 10px;
}
.contact-form p {
  margin-left: 15px;
  font-size: 2rem;
  font-weight: bold;
}
.form-group {
  width: 100%;
  margin: 15px;
}
.contact-submit-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 30px;
  font-size: large;
  margin-left: 15px;
}

.contact-submit-btn:hover {
  background-color: #0056b3;
  transition: 0.3s ease;
}

.form-group input {
  min-height: 2rem;
  width: 90%;
  border: none;
  padding-left: 10px;
  font-size: 14px;
}
.form-group label {
  font-size: 1rem;
}
.form-group textarea {
    min-height: 2rem;
    width: 90%;
    border: none;
    padding: 7px;
    font-size: 1rem;
}

/* About us page */

.about-section {
  background-color:#007bff;
  color: #fff;
  border-radius: 10px;
  margin: 80px 15% 0 15%;
  padding: 2% 5%;
}
.about-section h1 {
  text-align: center;
  padding-top: 10px;
  text-decoration: underline;
}
section {
  padding: 20px;
}


/* FAQ page */

 .faq-item {
   margin-bottom: 20px;
 }

 .question {
   cursor: pointer;
   font-weight: bold;
 }

 .answer {
   display: none;
   margin-top: 10px;
 }

 .answer.active {
   display: block;
 }

 /* Privacy policy page */

.policy-section {
  background-color: #007bff;
  color: #fff;
  border-radius: 10px;
  margin: 80px 15% 2% 15%;
  padding: 2% 5%;
  display: block;
}

.policy-item h2{
margin: 15px 0;
}

/* Terms and conditions page */

.terms-content h1 {
text-align: center;
margin: 10px 0;
}
.terms-content h4 {
  text-align: center;
  margin-bottom: 30px;
}
.terms-content h3 {
margin: 30px 0 10px 0;
}

/* Donation page */

.donation-page-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 90%;
  margin: 20px auto;
  background-color:#aed1ff ;
  padding: 10px;
}

.donate-image-grid {
  text-align: center;
  margin: 10px auto;
}
.donate-image-grid img {
  width: 100%;
  height: auto;
}

.description-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.description-grid h2 {
  margin: 5px 0 10px 0;
}

.donate-btn {
  width: 60%;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  margin: 15px 0;
  
}
.donate-btn:hover {
  background-color: #0056b3;
  transition: 0.3S ease;
}
@media screen and (max-width: 768px) {
  .donation-page-section {
      display: flex;
      flex-direction: column;
    }
  
    .donation-page-section img {
      order: -1;
      /* Places the image above the description */
    }
}
