/* ================= BASE ================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7fb;
  color: #222;
}

h1, h2, h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10vw;
  background: #1c4f8c;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 70px;
  width: auto;
  background-color: #fff;
  padding: 8px;
  border-radius: 10px;
  animation: floatLogo 3s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Logo हल्का move */
@keyframes floatLogo {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  font-size: 1.08rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav .active {
  background: #eaf3ff;
  color: #0a1a2f;
}

/* ================= QUICK DONATE ================= */
.quick-donate {
  position: fixed;
  right: 16px;
  bottom: 18px;
  background: #2b52a0;
  color: #fff;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(43,82,160,0.15);
  z-index: 999;
  transition: background 0.2s;
}
.quick-donate:hover {
  background: #194d7d;
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  padding: 48px 6vw 34px 6vw;
  background: linear-gradient(90deg, #eaf3ff 60%, #fff 100%);
}
.hero h1 {
  font-size: 2rem;
  color: #194d7d;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.07rem;
  color: #555;
  margin-bottom: 20px;
}
.hero-buttons {
  margin-top: 18px;
}
.hero-btn {
  background: #194d7d;
  color: #fff;
  padding: 10px 22px;
  margin: 0 6px 0 0;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.hero-btn.secondary {
  background: #2b52a0;
}
.hero-btn:hover {
  background: #13385a;
}

/* Search bar */
.search-bar {
  margin: 18px auto 0 auto;
  display: flex;
  justify-content: center;
  max-width: 350px;
}
.search-bar input {
  padding: 10px 12px;
  border: 1px solid #bdd0ed;
  border-radius: 8px 0 0 8px;
  width: 70%;
  outline: none;
  font-size: 1rem;
}
.search-bar button {
  padding: 10px 18px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: #2b52a0;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}
.search-bar button:hover {
  background: #194d7d;
}

/* ================= STORIES (slider move) ================= */
.success-stories {
  padding: 28px 4vw;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(43,82,160,0.07);
}
.success-stories h2 {
  color: #194d7d;
  margin-bottom: 18px;
}

.stories-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}
.story {
  min-width: 220px;
  background: #eaf3ff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(43,82,160,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s;
  animation: floatCard 4s ease-in-out infinite;
}
.story.active {
  opacity: 1;
  transform: scale(1.02);
}
.story img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.story-text strong {
  color: #2b52a0;
}
.story-text p {
  color: #222;
  font-size: 0.97rem;
}

/* हल्की movement */
@keyframes floatCard {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ================= FUNDRAISERS ================= */
.fundraisers {
  padding: 26px 4vw;
  max-width: 1100px;
  margin: 0 auto;
}
.fundraisers h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #194d7d;
}
.fundraiser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.fundraiser-card {
  width: 98vw;
  max-width: 350px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.fundraiser-card:hover {
  transform: translateY(-5px);
}
.card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff0f0;
  color: #a03030;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  padding: 3px 10px;
  box-shadow: 0 2px 10px rgba(160,48,48,0.08);
}
.card-content {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-content h2 {
  font-size: 1.07rem;
  color: #222;
  margin: 0 0 10px 0;
  font-weight: 600;
}
.description {
  color: #555;
  font-size: 0.97rem;
  margin-bottom: 10px;
}
.funds-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.raised { color: #a03030; font-weight: bold; }
.goal { color: #888; font-size: 0.95rem; }
.progress-bar {
  background: #f3f3f3;
  height: 7px;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 6px;
  width: 100%;
  position: relative;
}
.progress {
  background: #29d529;
  height: 100%;
  border-radius: 5px;
}
.creator {
  color: #666;
  font-size: 0.93rem;
  margin-bottom: 6px;
}
.supporters-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.supporters {
  background: #fff5de;
  color: #914c00;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 500;
}
.share-btn {
  background: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background 0.2s;
}
.share-btn:hover {
  background: #f8f8f8;
}

/* ================= GENERIC SECTION ================= */
.section {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  text-align: left;
}
.section h1 {
  font-size: 1.6rem;
  color: #194d7d;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}
.section p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

/* ================= GENERIC FORM ================= */
/* Form container wrapper */
.form-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

/* Form heading */
.form-section h1,
.form-section h2,
.form-section h3 {
  text-align: center;
  color: #194d7d;
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 1.8rem;
}

/* Form element */
form, .form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Labels */
form label,
.form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #222;
  font-weight: 500;
}

/* Inputs, textarea, select */
form input,
form textarea,
form select,
.form input,
.form textarea,
.form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d4d4df;
  font-size: 0.97rem;
  background: #f6f8fa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state */
form input:focus,
form textarea:focus,
form select:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: #194d7d;
  box-shadow: 0 0 6px rgba(25,77,125,0.2);
  outline: none;
}

/* Buttons */
form button,
.form button {
  width: 100%;
  background: #194d7d;
  color: #fff;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  margin-top: 10px;
}

form button:hover,
.form button:hover {
  background: #13385a;
}

form button:active,
.form button:active {
  transform: scale(0.97);
}
