*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #e0455f;
  background-image: linear-gradient(147deg, #e0455f 0%, #44000b 74%);
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.nav a:hover {
  color: rgb(225, 168, 168);
}

.nav img {
  height: 60px;
  width: 60px;
}


.first{
  position: relative;
}
.first img{
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  top: 30%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: white;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  opacity: 0.65; 
}

.quote {
  position: absolute;
  top: 40%;  
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 18px;  
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
  text-align: center;
  font-style: italic;
}

.quote1{
  position: absolute;
  top: 50%;  
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 18px;  
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
  text-align: center;
  font-style: italic;
}

.donor-btn {
  position: absolute;
  top: 70%; 
  left: 50%;
  transform: translateX(-50%);
  background-color: #a20721; 
  color: white;  
  padding: 15px 30px;  
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
  outline: 0; 
  border: 0;
}

.donor-btn:hover {
  background-color: #610a19;  
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);  
  cursor: pointer;
}

.about {
  padding: 40px 20px;
  background-color: #2e0f0f;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e80d0d;
  margin-bottom: 20px;
}

.about p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color:#f1f1f1;
}

.why-donate {
  padding: 50px 20px;
  background-color: #f8f9fa;
  text-align: center;
}
.why-donate h2 {
  font-size: 30px;
  color: #a20721;
  margin-bottom: 40px;
  font-weight: bold;
}
.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.feature .text {
  flex: 1;
  text-align: left;
  padding: 20px;
}
.feature h3 {
  font-size: 24px;
  color: #44000b;
}
.feature p {
  font-size: 18px;
  color: #333;
  margin-top: 10px;
}
.feature img {
  width: 250px;
  height: 180px;
  border-radius: 10px;
}

.faq-section {
  background-color: whitesmoke;
  padding: 50px 20px;
  text-align: center;
}

.faq-title {
  font-size: 36px;
  font-weight: 900;
  color: #a20429;
  margin-bottom: 10px;
}

.faq-subtitle {
  font-size: 18px;
  color: #383737;
  margin-bottom: 30px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  padding: 15px;
  cursor: pointer;
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #d40032;
}

.faq-answer {
  font-size: 18px;
  color: #050505;
  margin-top: 10px;
  display: none;
  font-style: italic;
}

.contact-us {
  background-color: #121111; 
  color: white;
  text-align: start;
  display: flex;
  justify-content: space-between;
  
}

.contact-us h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e80d0d;
  
}

.contact-us p {
  font-size: 18px;
  
}

.contact-us a {
  color: #ffcccb;
  text-decoration: none;
  font-weight: bold;
}

.contact-us a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

/* Navbar */
.nav {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.nav img {
  height: 80px;
  width: 80px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
}

/* Hero Section */
.first {
  position: relative;
  text-align: center;
}

.first img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  top: 20%;  /* Moved slightly up */
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  text-align: center;
  width: 80%;
}

.quote,
.quote1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 18px;
  text-align: center;
  font-style: italic;
  width: 80%;
}

.quote {
  top: 35%;  /* Increased gap */
}

.quote1 {
  top: 45%;  /* Adjusted accordingly */
}

.donor-btn {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #a20721;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  border: 0;
}

.donor-btn:hover {
  background-color: #610a19;
  cursor: pointer;
}
.footer {
  background-color: black;
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 15px;
}
/* 🔹 Media Queries for Mobile */
@media (max-width: 768px) {
  .overlay-text {
    font-size: 24px;
    top: 18%;
  }

  .quote {
    top: 38%;
    font-size: 16px;
  }

  .quote1 {
    top: 48%;
    font-size: 16px;
  }

  .donor-btn {
    top: 70%;
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* About & Features Section */
.about, .why-redhearts, .faq-section {
  padding: 40px 20px;
  text-align: center;
}

/* Responsive Grid for Features */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-box img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

/* FAQ Section */
.faq-box {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Contact Section */
.contact-us {
  background-color: #810d0d;
  color: white;
  text-align: center;
  padding: 30px;
}

.contact-us h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.contact-us p {
  font-size: 18px;
}

.contact-us a {
  color: #ffcccb;
  text-decoration: none;
}

.contact-us a:hover {
  text-decoration: underline;
}

/* 🔹 Media Queries for Mobile */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    text-align: center;
  }

  .nav img {
    margin-bottom: 10px;
  }

  .overlay-text {
    font-size: 22px;
  }

  .quote,
  .quote1 {
    font-size: 14px;
  }

  .donor-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .feature-box {
    width: 100%;
    max-width: 400px;
  }

  .faq-box {
    width: 90%;
  }
}
.feature {
  opacity: 0;
  transform: translateX(-100px); 
  transition: opacity 1s ease-out, transform 1s ease-out;
}


.feature.show {
  opacity: 1;
  transform: translateX(0);
}
