/* ---------------- Header ---------------- */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom right, #bdc7ca);
}

.header {
  background-color:  #77bdf7;
;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 0.25rem 4rem;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header .logo img {
  height: 8rem;
}
.site-title {
  text-align: center;
}

.site-title h1 {
  font-family: serif;
  font-size: 3rem;
  color: black;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.site-title h1 {
  margin-bottom: 0.5px;
}

.site-title p {
  margin-top: 0;
}


/* ---------------- Main Content ---------------- */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
}

.donors-sidebar {
  background-color: #d1d5db;
  padding: 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex: 1 1 20%;
  max-height: 600px;
    overflow-y: auto;
}

.donors-sidebar h2 {
  font-size: 1.25rem;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 4px; /* underline thori neeche */
  margin-bottom: 0.1rem;
  margin-top: 0.2rem;
}

.donor-list li {
  position: relative;
  right: 40px;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  background: transparent;
  padding: 0.6rem;
  border-radius: 12px;

  box-shadow: 0 0 6px rgba(0,0,0,0.25);

  font-weight: 500;
  transition: 0.3s;

  margin-bottom: 6px;
  width: 110%;   /* box ki width control */
}


.donor-list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.donor-list li img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* ---------------- Project Cards ---------------- */
.projects-about {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #d1d5db;
  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 0.75rem;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.project-card .project-image img {
  border-radius: 1rem;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.project-card .project-text h2 {
  font-size: 1.75rem;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
  text-decoration: underline;
}

.project-card .project-text p {
  color: #111827;
}

.project-card {
  flex-direction: column;
}

@media(min-width:768px){
  .project-card {
    flex-direction: row;
    align-items: center;
  }
  .project-card .project-image {
    flex: 1 1 30%;
  }
  .project-card .project-text {
    flex: 1 1 70%;
  }
}

/* ---------------- About Us ---------------- */
.about-us {
  background-color: #d1d5db;
  padding: 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  
}

/* ---------------- Our Mission ---------------- */
.Mission {
  background-color: #d1d5db;
  padding: 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  
}

/* ---------------- Right Side Scrolling Images ---------------- */
.scrolling-images {
  flex: 1 1 20%;
  position: relative;
  background-color: #d1d5db;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-height: 600px;
  overflow: hidden;
}

.images-wrapper {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: scroll 20s linear infinite;
}

.images-wrapper img {
  border-radius: 1rem;
  width: 100%;
  object-fit: cover;
}

@keyframes scroll {

0%{
transform: translateY(0);
}

100%{
transform: translateY(-50%);
}

}


/* ---------------- Contact & Footer ---------------- */
.contact-section {
  background-color: #d1d5db;
  text-align: center;
  padding: 0.2rem;
  margin-top: 2rem;
  box-shadow: inset 0 4px 6px rgba(0,0,0,0.1);
}

.site-footer {
  background-color: #111827;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
}

/* ---------------- Floating Donate Button ---------------- */
:root {
  --btn-width: 25rem;          
  --btn-height: 5rem;
  --btn-padding: 0.75rem 1.5rem; 
  --btn-bottom: 40px;         
  --jump-distance: 15px;      /* jump height with px */
  --jump-speed: 1s;           
}

.floating-btn {
  position: fixed;
  bottom: var(--btn-bottom);
  left: 50%;
  transform: translateX(-50%);
  width: var(--btn-width);
  height: 5rem;
  padding: var(--btn-padding);
  background-color: #77bdf7;
  text-shadow: #111827 1px 1px 4px;
  font-weight: 400;
  font-size: 2rem;  /* text size controlled here */
  border-radius: 9999px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
  z-index: 100;

  /* Always jumping */
  animation: float-btn var(--jump-speed) ease-in-out infinite alternate;
}

.floating-btn:hover {
  transform: translateX(-50%) scale(1.1);
}

@keyframes float-btn {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(calc(-1 * var(--jump-distance)));
  }
}
/* ---------------- Donation Modal ---------------- */
.donation-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
}

.donation-modal.active {
  display: flex;
}

.modal-content {
  background-color: #d1d5db;
  padding: 0.5rem;
  border-radius: 1.5rem;
  max-width: 450px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}


.modal-content h2 {
  text-align: center;
  color: #000000;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  margin-top: auto;
}

.close-btn {
  
  float: right;
  font-size: 1rem;
  font-weight: bold;
  color: #6b7280;
  border: none;
  background: transparent;
}

.close-btn:hover {
  color: #111827;
}

.donation-options {
 
  display: flex;
  gap: 0.5rem;   /* gap kam */
  flex-wrap: wrap;
  justify-content: center;
}


.donation-options button {
  box-shadow: #000000 0px 4px 10px;
  font-size: 30px;
  padding: 0.5rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  color: white;
}

.donation-options button:first-child { background-color: #16a34a; }
.donation-options button:last-child { background-color: #2563eb; }
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}
.donation-details{
  display:none;
  margin-top:1rem;
}

.donation-details img{
  margin-top:-5px;
  border-radius:10px;
}

@media (max-width: 768px) {

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header .logo img {
    height: 6rem;
  }

  .site-title h1 {
    font-size: 2rem;
  }

  .main-content {
    flex-direction: column;
  }

  .donors-sidebar {
    max-height: none;
  }

  .scrolling-images {
    display: none;
  }

  .floating-btn {
    width: 80%;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  .header {
    padding: 1rem;
  }

  .nav-links {
    flex-direction: initial;
    gap: 0.5rem;
  }

  .site-title h1 {
    font-size: 1.6rem;
  }

  .site-title p {
    font-size: 0.9rem;
  }

  .header .logo img {
    height: 5rem;
  }

  .site-title {
    margin-top: -20px;
  }

  .site-title h1 {
    margin-bottom: 0;
  }

  .site-title h1 {
    font-size: 1.6rem;
  }

  .site-title p {
    font-size: 0.8rem;
  }

  .project-card {
    padding: 0.5rem;
  }

  .project-card .project-text h2 {
    font-size: 1.3rem;
  }

  .donation-options {
    flex-direction: initial;
  }

  .donation-options button {
    font-size: 20px;
  }

  .floating-btn {
    height: 4rem;
    font-size: 1.3rem;
  }
}
/* Donation Details */

.donation-details {
  display: none;
  margin-top: 0.1rem;
  background-color: #d1d5db;
}

/* Payment Card */

.payment-card{

  margin:10px 0;   /* gap bohat kam ho jayega */
  line-height:0.3;

background:#bdc7ca ;

 padding:0.5rem;

margin-top:1rem;

border-radius:1rem;

box-shadow:0 4px 10px rgba(0,0,0,0.2);

text-align:center;

}

/* QR */

.qr-img{

width: 150px;  /* QR chhota */

margin-top:6px;

border-radius:10px;

box-shadow:0 3px 8px rgba(0,0,0,0.3);

}

/* Copy Button */

.copy-btn{

margin-left:10px;

padding:5px 10px;

border:none;

background:#2563eb;

color:white;

border-radius:6px;

cursor:pointer;

font-size:14px;

}

.copy-btn:hover{

background:#1d4ed8;

}