body {
  font-family: "Times New Roman", Georgia, serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7f3e8 0%, #efe7cf 100%);
  color: #1f2937;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #f7f0ca 0%, #e9d79c 100%);
  padding: 16px 20px;
  border-bottom: 4px solid #8b0000;
  box-shadow: inset 0 -2px 0 #c19a2b;
  margin: 0;
}

.topbar-logo {
  flex: 0 0 auto;
}

.logo-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
}

.topbar-title {
  flex: 1;
  text-align: left;
}

.topbar-title h1 {
  margin: 0 0 6px;
  font-size: 32px;
  color: #6b1f1f;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.topbar-title p {
  margin: 0;
  font-size: 18px;
  color: #4b2e1f;
}

.ngo-name {
  font-size: 16px;
  font-weight: 700;
  color: #0a66c2;
  margin-top: 4px;
  margin-bottom: 4px;
}

.topbar-info {
  text-align: left;
  font-size: 14px;
  color: #374151;
}

.topbar-info p {
  margin: 2px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0b1f49 0%, #174a87 100%);
  padding: 10px 18px;
  margin: 0;
  border-bottom: 3px solid #8b0000;
}

.navbar-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}

.navbar-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 10px;
  position: relative;
  transition: background-color 0.2s ease;
}

.navbar-links a:hover {
  background-color: #8b0000;
  color: #ffffff;
}

.navbar-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -10px;
  color: #ffffff;
}

.hero-section {
  width: 100%;
  height: 420px;
  margin-top: 0;
  background-image: url("../images/ngo-imaes/heroImage4.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #e5e7eb;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.main-content {
  padding: 24px 16px 40px;
}

.page-banner {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 0;
  height: auto;
  background: linear-gradient(90deg, #f7f1d0 0%, #efe3b3 100%);
  border: 1px solid #d8c88f;
  border-left: 8px solid #8b0000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.services-hero {
  background-image: url("../images/ngo-imaes/heroImage4.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner-content {
  display: block;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.hero-only-image {
  padding: 0;
}

.about-poster {
  width: 100%;
  min-height: 70vh;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
}

.page-banner h1 {
  margin: 0 0 6px;
  color: #6b1f1f;
  font-size: 28px;
}

.page-banner p {
  margin: 0;
  color: #4b2e1f;
  font-size: 16px;
}

.content-box {
  max-width: 1100px;
  margin: 0 auto;
  background: #fffdf7;
  padding: 28px 30px;
  border: 1px solid #d9d0b3;
  border-left: 8px solid #8b0000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.content-box p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: #053180;
}

/* Donation details two-column layout */
.donation-details-grid {
  display: flex;
  gap: 20px;
  align-items: center;
}

.donation-details-left {
  flex: 1;
}

.donation-details-right {
  width: 220px;
  text-align: center;
}

.donation-qr {
  max-width: 200px;
  width: 100%;
  border: 1px solid #e6e6e6;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

@media (max-width: 700px) {
  .donation-details-grid {
    flex-direction: column;
    gap: 12px;
  }

  .donation-details-right {
    width: 100%;
  }
}

.about-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #6b1f1f;
  font-size: 22px;
}

.about-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #243447;
  line-height: 1.7;
}

.services-hero {
  min-height: 320px;
  height: auto;
  display: flex;
  align-items: center;
}

.contact-hero {
  background: linear-gradient(90deg, rgba(5, 49, 131, 0.9) 0%, rgba(139, 0, 0, 0.75) 100%), url('https://www.shutterstock.com/image-photo/team-building-volunteer-success-ngo-260nw-2558547163.jpg') center/cover no-repeat;
  min-height: 320px;
}

.contact-hero .services-hero-text h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.contact-hero .banner-tag {
  color: #f7d96b;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.services-hero-content {
  width: 100%;
  justify-content: flex-start;
  padding: 36px 40px;
  min-height: 320px;
  height: auto;
}

.services-hero-text {
  max-width: 920px;
}

.services-hero-text h1 {
  margin: 0 0 12px;
  color: #6b1f1f;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
}

.services-hero-text .banner-desc {
  font-size: 20px;
  color: #4b2e1f;
  line-height: 1.9;
}

.services-scroll-wrap {
  overflow-x: visible;
  padding-bottom: 8px;
}

.services-scroll-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 0;
}

.service-card {
  background: #fffdf7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #8b0000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  margin: 12px 14px 8px;
  color: #053183;
  font-size: 18px;
}

.service-card p {
  margin: 0 14px 14px;
  color: #243447;
  line-height: 1.6;
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .services-scroll-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .services-scroll-track {
    grid-template-columns: 1fr;
  }
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  border: 1px solid #d8c88f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.contact-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-details {
  background: #faf6e7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #8b0000;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.contact-details h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #053183;
  font-size: 24px;
}

.contact-details p {
  margin: 0 0 10px;
  color: #243447;
  line-height: 1.7;
}

.contact-details a {
  color: #053183;
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.contact-form {
  background: #fffdf7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #053183;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.gallery-section {
  padding: 0 16px 40px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.gallery-card {
  min-width: 280px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5debf;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
}

/* Utilities: ensure images cover their boxes and never overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-box {
  position: relative;
  overflow: hidden;
}

.img-box img,
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-card h3 {
  margin: 10px 0 6px;
  color: #053183;
  font-size: 16px;
}

.gallery-card p {
  margin: 0;
  font-size: 14px;
  color: #053180;
  line-height: 1.5;
}

.donation-box h2 {
  margin-top: 0;
  color: #6b1f1f;
  font-size: 24px;
}

.donation-notice {
  margin-top: 20px;
  background: #faf6e7;
  border: 1px solid #d8c88f;
  border-left: 6px solid #053183;
  padding: 18px 20px;
}

.donation-notice h3 {
  margin-top: 0;
  color: #053183;
  margin-bottom: 10px;
}

.donation-notice p {
  margin: 6px 0;
  color: #243447;
}

.donation-form {
  margin-top: 20px;
  background: #fffdf7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #053183;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.donation-form h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #6b1f1f;
  font-size: 20px;
}

.gov-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.gov-form label {
  font-weight: 700;
  color: #053183;
}

.gov-form label span {
  color: #8b0000;
}

.gov-form input,
.gov-form select,
.gov-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cdbb75;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.gov-form textarea {
  min-height: 100px;
  resize: vertical;
}

.gov-form button {
  background: linear-gradient(90deg, #053183 0%, #0a66c2 100%);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.gov-form button:hover {
  background: linear-gradient(90deg, #072a63 0%, #0b4d92 100%);
}

.donor-section {
  max-width: 1100px;
  margin: 24px auto 0;
  background: #fffdf7;
  border: 1px solid #d8c88f;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.donor-section h3 {
  margin-top: 0;
  color: #6b1f1f;
  font-size: 22px;
}

.donor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.donor-card {
  background: #faf6e7;
  border-left: 5px solid #8b0000;
  padding: 16px;
}

.donor-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #053183;
}

.donor-card p {
  margin: 0;
  color: #243447;
  line-height: 1.6;
}

.gallery-caption {
  margin-top: 12px;
  text-align: center;
  color: #053183;
  font-weight: 600;
  min-height: 24px;
}

.gov-contact-section {
  padding: 0 16px 40px;
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-info-card {
  background: #faf6e7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #8b0000;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.contact-heading h2 {
  margin: 0 0 6px;
  color: #053183;
  font-size: 24px;
}

.contact-heading p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
}

.contact-info-card address {
  font-style: normal;
  display: grid;
  gap: 10px;
  color: #243447;
  line-height: 1.7;
}

.contact-info-card a {
  color: #053183;
  text-decoration: none;
  font-weight: 600;
}

.contact-info-card a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.form-card {
  background: #fffdf7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #0f2c5b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(90deg, #f7f1d0 0%, #efe3b3 100%);
  padding: 24px 28px;
  border-bottom: 1px solid #d8c88f;
}

.form-header h2 {
  margin: 0 0 6px;
  color: #053183;
  font-size: 24px;
}

.form-header p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.form-header p span {
  color: #c01b21;
  font-weight: 700;
}

.gov-form {
  padding: 24px 28px 28px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gov-form label {
  font-weight: 700;
  color: #053183;
  font-size: 15px;
}

.gov-form label span {
  color: #c01b21;
}

.gov-form input,
.gov-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbc7d4;
  border-radius: 4px;
  font-size: 15px;
  background: #fbfcfe;
  box-sizing: border-box;
}

.gov-form input:focus,
.gov-form textarea:focus {
  outline: none;
  border-color: #0a66c2;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.gov-form textarea {
  min-height: 120px;
  resize: vertical;
}

.gov-form button {
  width: fit-content;
  padding: 12px 24px;
  background: #053183;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.gov-form button:hover {
  background: #0a66c2;
}

.google-maps-section {
  padding: 0 16px 40px;
}

.maps-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.maps-info {
  background: #faf6e7;
  border: 1px solid #d8c88f;
  border-top: 6px solid #8b0000;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.maps-info h2 {
  margin: 0 0 8px;
  color: #053183;
  font-size: 24px;
}

.maps-info p {
  margin: 0 0 10px;
  color: #4b5563;
  font-weight: 600;
}

.maps-info address {
  font-style: normal;
  line-height: 1.7;
  color: #243447;
  margin-bottom: 12px;
}

.maps-info a {
  color: #053183;
  font-weight: 700;
  text-decoration: none;
}

.maps-info a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.maps-card {
  background: #fffdf7;
  border: 1px solid #d8c88f;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.maps-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.quick-contact-float {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.quick-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-contact-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.quick-contact-btn.whatsapp {
  background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
}

.quick-contact-btn.phone {
  background: linear-gradient(90deg, #0a66c2 0%, #053183 100%);
}

.quick-contact-btn.map {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.site-footer {
  background: linear-gradient(90deg, #0b1f49 0%, #174a87 100%);
  color: #ffffff;
  padding: 30px 16px 28px;
  margin-top: 24px;
  border-top: 4px solid #8b0000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-content > div {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 12px 0;
  border-left: 3px solid #f2c94c;
  padding-left: 14px;
}

.footer-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #f7d96b;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-content p {
  margin: 4px 0;
  color: #f7f7f7;
  line-height: 1.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.social-links a:hover {
  background: #f2c94c;
  color: #0b1f49;
}

@media (max-width: 992px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .topbar-title {
    order: 2;
  }

  .topbar-info {
    text-align: center;
    order: 3;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .navbar-links a:not(:last-child)::after {
    right: -6px;
  }

  .contact-card,
  .contact-layout,
  .maps-wrapper {
    grid-template-columns: 1fr;
  }

  .donor-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-banner-image-wrap {
    flex-basis: auto;
    width: 100%;
  }

  .about-poster {
    max-width: 100%;
  }

  .topbar {
    padding: 12px 14px;
  }

  .navbar {
    padding: 10px 14px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .navbar-links a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero-slider {
    height: 280px;
  }

  .main-content,
  .gallery-section,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .content-box {
    padding: 20px;
  }

  .gallery-card {
    min-width: 240px;
  }

  .donor-list {
    grid-template-columns: 1fr;
  }

  .services-hero-content {
    padding: 24px 20px;
    min-height: 280px;
  }

  .services-hero-text h1 {
    font-size: 32px;
  }

  .gallery-card img {
    height: 200px;
  }

  .services-hero {
    min-height: 280px;
  }

  .service-card img {
    height: 200px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .maps-wrapper {
    grid-template-columns: 1fr;
  }

  .maps-card iframe {
    height: 320px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-content > div {
    border-left: 0;
    border-top: 2px solid #f2c94c;
    padding-left: 0;
    padding-top: 12px;
    width: 100%;
  }

  .social-links {
    justify-content: center;
  }

  .quick-contact-float {
    right: 8px;
    gap: 8px;
  }

  .quick-contact-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .topbar-title h1 {
    font-size: 18px;
  }

  .topbar-title p,
  .topbar-info p {
    font-size: 13px;
  }

  .navbar-links {
    gap: 6px;
  }

  .navbar-links a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .hero-slider {
    height: 240px;
  }

  .content-box,
  .contact-details,
  .contact-form,
  .donor-section,
  .donation-form,
  .gallery-card {
    padding: 16px;
  }

  .services-hero-text h1 {
    font-size: 26px;
  }

  .services-hero-text .banner-desc {
    font-size: 16px;
  }

  .quick-contact-float {
    right: 6px;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .quick-contact-btn {
    padding: 7px 9px;
    font-size: 12px;
  }
}
