/* Core body styling - merged and cleaned */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 0 2rem 0;  /* bottom padding only, reduces empty space */
  background: #f9f9f9;
  color: #333;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* General text */
p, li, .newsletter-content {
  font-size: 1.15rem;
  margin: 1.5rem 0;
}

ul {
  padding-left: 2rem;
  margin: 1.5rem 0;
}

li {
  margin: 0.8rem 0;
}

/* Layout sections */
section, .main-content, .page-section:last-of-type {
  margin-bottom: 2rem;
  padding: 2rem;
  text-align: center;
}

.privacy-section {
  padding: 2rem 2rem 2rem;  /* keeps top padding, reduces bottom */
}

/* Header & Nav */
header {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 0;
}

.logo {
  height: 100px;
}

nav {
  background: #003366;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body { font-size: 1.2rem; }
  nav {
    gap: 1rem 2rem;
    padding: 1rem;
  }
  nav a {
    font-size: 0.95rem;
  }
}

/* Hero & Content */
.hero-carousel .slide iframe {
  width: 80%;
  max-width: 800px;
  height: 450px;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.gallery-grid video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto 1rem;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

button {
  background: #ff6600;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Team member photos */
.team .member img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #003366;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto 1rem;
}

/* Footer - merged and tightened */
footer {
  padding: 1rem 1rem 1rem;
  margin-top: 0;
}

footer .container,
footer .footer-content,
footer .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

/* Links row - keep horizontal but closer together */
footer .links,
footer nav,
footer .footer-links {
  margin: 0.5rem 0;
  padding: 0;
}

footer .links a,
footer nav a {
  margin: 0 0.8rem;           
  font-size: 0.95rem;
}

/* Copyright line */
footer .copyright,
footer p:last-child {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Hero toast overlay */
.hero-toast {
  background: url('images/pakistan-flag.jpg') center/cover no-repeat, rgba(0, 40, 80, 0.85);
  color: white !important;
  border: 3px solid white;
  padding: 2.5rem 3rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
}
